hxl13994548489 2 лет назад
Родитель
Сommit
87d5e8f3c7
1 измененных файлов с 12 добавлено и 10 удалено
  1. 12 10
      src/views/PeopleManage/Agent/AgentManage.vue

+ 12 - 10
src/views/PeopleManage/Agent/AgentManage.vue

@@ -612,16 +612,18 @@ export default {
           confirmButtonText: '确定',
           cancelButtonText: '取消',
           type: 'warning'
-        }).then(() => {
-          this.$api.user.separationReinstatement(data.row.userId).then((res) => {
-            if (res.code == 200) {
-              this.$message({
-                type: 'success',
-                message: res.msg
-              });
-              this.findPage();
-            }
-          })
+        }).then((res) => {
+          if (res == 'confirm') {
+            this.$api.user.separationReinstatement(data.userId).then((res) => {
+              if (res.code == 200) {
+                this.$message({
+                  type: 'success',
+                  message: res.msg
+                });
+                this.findPage()
+              }
+            })
+          }
         }).catch(() => {
           this.$message({
             type: 'info',