hxl13994548489 2 жил өмнө
parent
commit
87d5e8f3c7

+ 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',