Browse Source

Merge remote-tracking branch 'origin/AIControl_zn' into test

zhouna 4 years ago
parent
commit
2990bd80a5
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/components/qualityControl/QCTypeMang.vue

+ 4 - 4
src/components/qualityControl/QCTypeMang.vue

@@ -250,9 +250,9 @@
           type:type||'warning'
         })
       },
-      showConfirmDialog(msg,resolve){
+      showConfirmDialog(msg,resolve,okText){
         this.$confirm(msg, '提示', {
-          confirmButtonText: '确定',
+          confirmButtonText: okText||'确定',
           cancelButtonText: '取消',
           type: 'warning'
         }).then(() => {
@@ -265,7 +265,7 @@
           if(code==='00000005'){
             this.showConfirmDialog(msg,()=>{
               this.unbindQcType(data,type);
-            });
+            },'解绑');
           }else{
             if(type==='modify'){
               this.toEditField(data,type);     //编辑
@@ -279,7 +279,7 @@
       },
       unbindQcType(data,type){
         api.ifNeedUnbind({id:data.id,hospitalId:data.hospitalId,cancel:1}).then((res)=>{
-          if(res.data.code=='00000005'){
+          if(res.data.code=='0'){
             this.warning(res.data.msg||'解绑成功','success');
             if(type==='modify'){
               this.toEditField(data,type);     //编辑