管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-13 25aa698ba7e077c80ba115697aeadc12226ad48e
src/views/maintenance/blackwhiteList.vue
@@ -547,20 +547,46 @@
        std.push(this.multipleSelection[i].id);
      }
      //deletes
      const data = await deletelacklist({ ids: std.toString() });
      if (data.code == 200) {
      this.$confirm('此操作将永久删除该名单, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await deletelacklist({ ids: std.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.BGetList();
          this.WGetList();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          message: "删除成功!",
          type: "success",
          type: 'info',
          message: '已取消删除'
        });
        this.BGetList();
        this.WGetList();
      } else {
        this.$message({
          message: "删除失败!",
          type: "warning",
        });
      }
      });
      // const data = await deletelacklist({ ids: std.toString() });
      // if (data.code == 200) {
      //   this.$message({
      //     message: "删除成功!",
      //     type: "success",
      //   });
      //   this.BGetList();
      //   this.WGetList();
      // } else {
      //   this.$message({
      //     message: "删除失败!",
      //     type: "warning",
      //   });
      // }
    },
    blackSelectionChange(val) {
      this.multipleSelection = val;