Преглед на файлове

质控类型解绑按钮修改

zhouna преди 4 години
родител
ревизия
e521cc9273
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/components/qualityControl/QCTypeMang.vue

+ 3 - 3
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);     //编辑