jiawuxian hai 1 ano
pai
achega
d6dfce2f47
Modificáronse 1 ficheiros con 19 adicións e 12 borrados
  1. 19 12
      src/views/resumption/plan/index.vue

+ 19 - 12
src/views/resumption/plan/index.vue

@@ -623,18 +623,25 @@ export default {
       } else {
         msg = "是否立即生效";
       }
-      this.$modal
-        .confirm(msg, "提示")
-        .then(() => {
-          // 用户点击了确认按钮
-          console.log("执行操作...");
-          distributeHS(row.id, true);
-        })
-        .catch(() => {
-          // 用户点击了取消按钮
-          // console.log("取消操作...");
-          distributeHS(row.id, false);
-        });
+      this.$refs["DialogThreeState"].show(msg, async (state) => {
+        if (state == 2) {
+          return;
+        }
+
+        this.distributeHS(row.id, state == 1);
+      });
+      // this.$modal
+      //   .confirm(msg, "提示")
+      //   .then(() => {
+      //     // 用户点击了确认按钮
+      //     console.log("执行操作...");
+      //     distributeHS(row.id, true);
+      //   })
+      //   .catch(() => {
+      //     // 用户点击了取消按钮
+      //     // console.log("取消操作...");
+      //     distributeHS(row.id, false);
+      //   });
     },
     distributeHS(id, immediateEffect) {
       this.loading = true;