|
@@ -1,6 +1,6 @@
|
|
|
const $ = require('jquery');
|
|
|
require("../css/qcList.less");
|
|
|
-
|
|
|
+require('./modal.js');
|
|
|
const {api} = require('./api.js')
|
|
|
const {post} = require('./utils.js')
|
|
|
require('./../resource/jquery-ui/jquery-ui.min.js');
|
|
@@ -51,11 +51,7 @@ function getTabData(activePage){
|
|
|
$('.pagination').html("")
|
|
|
}
|
|
|
}else{
|
|
|
- removeDialog()
|
|
|
- dialog(res.data.msg)
|
|
|
- setTimeout(function(){
|
|
|
- removeDialog()
|
|
|
- },2000)
|
|
|
+ $.alerModal({"message":res.data.msg,type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
}
|
|
|
}).catch((e) =>{
|
|
|
|
|
@@ -70,11 +66,7 @@ $(".filter").on("click", function(e){
|
|
|
const start = new Date(behosDateStart).getTime()
|
|
|
const end = new Date(behosDateEnd).getTime()
|
|
|
if(start > end){
|
|
|
- removeDialog()
|
|
|
- dialog('开始时间不能大于结束时间~')
|
|
|
- setTimeout(function(){
|
|
|
- removeDialog()
|
|
|
- },2000)
|
|
|
+ $.alerModal({"message":'开始时间不能大于结束时间~',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
}
|
|
|
if(behosDateStart){
|
|
@@ -142,11 +134,7 @@ function bindScoreDetail(){
|
|
|
const age = tabList[index].age
|
|
|
const noScore = tabList[index].level == '未评分'
|
|
|
if(noScore){
|
|
|
- removeDialog()
|
|
|
- dialog('请先进行评分!')
|
|
|
- setTimeout(function(){
|
|
|
- removeDialog()
|
|
|
- },2000)
|
|
|
+ $.alerModal({"message":'请先进行评分!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
} else{
|
|
|
scoreDetail(id,age)
|
|
@@ -247,11 +235,7 @@ $('.recordScoreBtn').on("click",function(e){
|
|
|
}
|
|
|
}
|
|
|
if(scoreList.length === 0){
|
|
|
- removeDialog()
|
|
|
- dialog('请选择要评分的项!')
|
|
|
- setTimeout(function(){
|
|
|
- removeDialog()
|
|
|
- },2000)
|
|
|
+ $.alerModal({"message":'请选择要评分的项!',type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
return
|
|
|
} else{
|
|
|
loading()
|