|
|
@@ -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;
|