瀏覽代碼

no message

linwenxin 6 月之前
父節點
當前提交
ab753faef6
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      src/views/userManagement/masterManagement/index.vue

+ 10 - 4
src/views/userManagement/masterManagement/index.vue

@@ -126,8 +126,12 @@
             <el-form-item>
               <div style="text-align: right">
                 <el-button @click="shenheClose">取消</el-button>
-                <el-button type="primary" v-if="[2].includes(openType)" @click="examineWait">确定</el-button>
-                <el-button type="primary" v-if="[3].includes(openType)" @click="workerManagerExamine">确定</el-button>
+                <el-button type="primary" v-if="[2].includes(openType)" @click="examineWait(data.removeTab())"
+                  >确定</el-button
+                >
+                <el-button type="primary" v-if="[3].includes(openType)" @click="workerManagerExamine(data.removeTab())"
+                  >确定</el-button
+                >
               </div>
             </el-form-item>
           </el-form>
@@ -1174,24 +1178,26 @@ export default {
         }
       })
     },
-    examineWait() {
+    examineWait(Close_) {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
           workerManagerExamineWait(this.getPam()).then(res => {
             this.$message({ type: 'success', message: `保存成功!` })
             this.shenheClose()
             this.$refs.pageRef.refreshList()
+            Close_?.()
           })
         }
       })
     },
-    workerManagerExamine() {
+    workerManagerExamine(Close_) {
       this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
         if (valid) {
           workerManagerExamine(this.getPam()).then(res => {
             this.$message({ type: 'success', message: `保存成功!` })
             this.shenheClose()
             this.$refs.pageRef.refreshList()
+            Close_?.()
           })
         }
       })