管道基础大数据平台系统开发-【前端】-新系統界面
liupengpeng
2023-02-13 25aa698ba7e077c80ba115697aeadc12226ad48e
所有的删除提示
已修改12个文件
529 ■■■■ 文件已修改
src/views/AuthorizationManagement/menuRoleAuthorization.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/AuthorizationManagement/roleMenuAuthorization.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/AuthorizationManagement/roleResAuthorization.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/AuthorizationManagement/userRoleAuthorization.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/catalogueManage.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/dataLoader.vue 89 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/datamanage/projectManage.vue 30 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/blackwhiteList.vue 50 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/maintenance/tokentool.vue 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userManage/authorityManage.vue 48 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userManage/resourceManage.vue 47 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/userManage/templateManage.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/AuthorizationManagement/menuRoleAuthorization.vue
@@ -341,15 +341,40 @@
      this.usermultipleSelection.forEach((e) => {
        arr.push(e.id);
      });
      const data = await menuAuthDeletes({ ids: arr.toString() });
      if (data.code !== 200) {
        return this.$message.error('删除失败');
      }
      this.$message({
        message: '删除成功',
        type: 'success',
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await menuAuthDeletes({ ids: arr.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getRole();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.getRole();
      // const data = await menuAuthDeletes({ ids: arr.toString() });
      // if (data.code !== 200) {
      //   return this.$message.error('删除失败');
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success',
      // });
      // this.getRole();
    },
    async getadduserList() {
src/views/AuthorizationManagement/roleMenuAuthorization.vue
@@ -455,15 +455,40 @@
      this.usermultipleSelection.forEach((e) => {
        arr.push(e.id);
      });
      const data = await roleMenuAuthDeletes({ ids: arr.toString() });
      if (data.code !== 200) {
        return this.$message.error('删除失败');
      }
      this.$message({
        message: '删除成功',
        type: 'success',
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await roleMenuAuthDeletes({ ids: arr.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getRoleMenu();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.getRoleMenu();
      // const data = await roleMenuAuthDeletes({ ids: arr.toString() });
      // if (data.code !== 200) {
      //   return this.$message.error('删除失败');
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success',
      // });
      // this.getRoleMenu();
    },
    addConfirm() {
      this.$confirm('确定是否新增', '提示', {
src/views/AuthorizationManagement/roleResAuthorization.vue
@@ -498,15 +498,40 @@
      this.usermultipleSelection.forEach((e) => {
        arr.push(e.id);
      });
      const data = await roleResDeletes({ ids: arr.toString() });
      if (data.code !== 200) {
        return this.$message.error('删除失败');
      }
      this.$message({
        message: '删除成功',
        type: 'success',
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await roleResDeletes({ ids: arr.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getuserList();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.getuserList();
      // const data = await roleResDeletes({ ids: arr.toString() });
      // if (data.code !== 200) {
      //   return this.$message.error('删除失败');
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success',
      // });
      // this.getuserList();
    },
    //用户表多选
    handleSelectionChange(val) {
src/views/AuthorizationManagement/userRoleAuthorization.vue
@@ -318,15 +318,40 @@
      this.usermultipleSelection.forEach((e) => {
        arr.push(e.id);
      });
      const data = await roleUserdeletes({ ids: arr.toString() });
      if (data.code !== 200) {
        return this.$message.error('删除失败');
      }
      this.$message({
        message: '删除成功',
        type: 'success',
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await roleUserdeletes({ ids: arr.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getuserList();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.getuserList();
      // const data = await roleUserdeletes({ ids: arr.toString() });
      // if (data.code !== 200) {
      //   return this.$message.error('删除失败');
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success',
      // });
      // this.getuserList();
    },
    //用户表多选
    handleSelectionChange(val) {
src/views/datamanage/catalogueManage.vue
@@ -537,7 +537,18 @@
      }
    },
    setDelNode() {
      this.remove(this.newNode, this.itemdetail)
      this.$confirm('此操作将永久删除该目录, 是否继续?', '提示', {
          confirmButtonText: '确定',
          cancelButtonText: '取消',
          type: 'warning'
        }).then(() => {
          this.remove(this.newNode, this.itemdetail)
        }).catch(() => {
          this.$message({
            type: 'info',
            message: '已取消删除'
          });
        });
    },
    setNewNode(res) {
      var id, lever, orderNum;
src/views/datamanage/dataLoader.vue
@@ -589,18 +589,45 @@
      for (var i in this.multipleDelete) {
        std.push(this.multipleDelete[i].id);
      }
      const res = await dataLoader_deleteMetas({ ids: std.toString() })
      if (res.code != 200) {
        this.$message.error('删除失败');
      } else {
      this.$confirm('此操作将永久删除所选内容, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data =await dataLoader_deleteMetas({ ids: std.toString() })
        if (data.code == 200) {
          this.$message({
            message: "删除成功!",
            type: "success",
          });
          this.listData.pageIndex = 1;
          this.listData.pageSize = 10;
          this.getAllWareTable();
        } else {
          this.$message({
            message: "删除失败!",
            type: "warning",
          });
        }
      }).catch(() => {
        this.$message({
          message: '删除成功',
          type: 'success'
          type: 'info',
          message: '已取消删除'
        });
        this.listData.pageIndex = 1;
        this.listData.pageSize = 10;
        this.getAllWareTable();
      }
      });
      // const res = await dataLoader_deleteMetas({ ids: std.toString() })
      // if (res.code != 200) {
      //   this.$message.error('删除失败');
      // } else {
      //   this.$message({
      //     message: '删除成功',
      //     type: 'success'
      //   });
      //   this.listData.pageIndex = 1;
      //   this.listData.pageSize = 10;
      //   this.getAllWareTable();
      // }
    },
    handleDelteChange(val) {
      this.multipleDelete = val;
@@ -800,14 +827,40 @@
    async setFileDelete() {
      this.handlerLoading(true);
      var data = JSON.stringify(this.multipleSelection);
      const res = await dataUploadDeleteFiles(data);
      if (res.code != 200) {
        this.$message.error('删除失败');
        this.handlerLoading(false);
        return;
      }
      this.getFileLength();
      this.handlerLoading(false);
      this.$confirm('此操作将永久删除所选内容, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data =await dataUploadDeleteFiles(data);
        if (data.code == 200) {
          this.$message({
            message: "删除成功!",
            type: "success",
          });
          this.getFileLength();
          this.handlerLoading(false);
        } else {
          this.$message({
            message: "删除失败!",
            type: "warning",
          });
          this.handlerLoading(false);
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      // const res = await dataUploadDeleteFiles(data);
      // if (res.code != 200) {
      //   this.$message.error('删除失败');
      //   this.handlerLoading(false);
      //   return;
      // }
      // this.getFileLength();
      // this.handlerLoading(false);
src/views/datamanage/projectManage.vue
@@ -355,12 +355,30 @@
    //删除项目
    async deleteProject(row) {
      const data = await project_delete({ gid: row.gid });
      if (data.code != 200) {
        this.$message.error('项目删除失败');
        return;
      }
      this.getSelectProject();
      this.$confirm('此操作将永久删除该项目, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await project_delete({ gid: row.gid });
        if (data.code == 200) {
          this.$message({
            message: "删除成功!",
            type: "success",
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: "删除失败!",
            type: "warning",
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
    },
    //修改项目
    EditProject(row) {
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;
src/views/maintenance/tokentool.vue
@@ -409,19 +409,44 @@
      for (var i in this.multipleSelection) {
        std.push(this.multipleSelection[i].id);
      }
      const data = await deleteTokens({ ids: std.toString() });
      if (data.code == 200) {
      this.$confirm('此操作将永久删除该令牌, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await deleteTokens({ ids: std.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          message: '删除成功!',
          type: 'success',
          type: 'info',
          message: '已取消删除'
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '删除失败!',
          type: 'warning',
        });
      }
      });
      // const data = await deleteTokens({ ids: std.toString() });
      // if (data.code == 200) {
      //   this.$message({
      //     message: '删除成功!',
      //     type: 'success',
      //   });
      //   this.getRoleTabelData();
      // } else {
      //   this.$message({
      //     message: '删除失败!',
      //     type: 'warning',
      //   });
      // }
    },
    editFromDataClose() {
      this.EditFormdialog = false;
src/views/userManage/authorityManage.vue
@@ -390,19 +390,45 @@
      for (var i in this.multipleSelection) {
        std.push(this.multipleSelection[i].id);
      }
      const data = await deleteAuths({ ids: std.toString() });
      if (data.code == 200) {
      this.$confirm('此操作将永久删除该权限, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await deleteAuths({ ids: std.toString() });
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          message: '删除成功!',
          type: 'success',
          type: 'info',
          message: '已取消删除'
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '删除失败!',
          type: 'warning',
        });
      }
      });
      // const data = await deleteAuths({ ids: std.toString() });
      // if (data.code == 200) {
      //   this.$message({
      //     message: '删除成功!',
      //     type: 'success',
      //   });
      //   this.getRoleTabelData();
      // } else {
      //   this.$message({
      //     message: '删除失败!',
      //     type: 'warning',
      //   });
      // }
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
src/views/userManage/resourceManage.vue
@@ -874,19 +874,44 @@
      for (var i in this.multipleSelection) {
        std.push(this.multipleSelection[i].id);
      }
      const data = await deleteRess({ ids: std.toString() });
      if (data.code == 200) {
      this.$confirm('此操作将永久删除所选内容, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await deleteRess({ ids: std.toString() });
        if (data.code == 200) {
          this.$message({
            message: "删除成功!",
            type: "success",
          });
          this.getRoleTabelData();
        } else {
          this.$message({
            message: "删除失败!",
            type: "warning",
          });
        }
      }).catch(() => {
        this.$message({
          message: '删除成功!',
          type: 'success',
          type: 'info',
          message: '已取消删除'
        });
        this.getRoleTabelData();
      } else {
        this.$message({
          message: '删除失败!',
          type: 'warning',
        });
      }
      });
      // const data = await deleteRess({ ids: std.toString() });
      // if (data.code == 200) {
      //   this.$message({
      //     message: '删除成功!',
      //     type: 'success',
      //   });
      //   this.getRoleTabelData();
      // } else {
      //   this.$message({
      //     message: '删除失败!',
      //     type: 'warning',
      //   });
      // }
    },
    handleSelectionChange(val) {
      this.multipleSelection = val;
src/views/userManage/templateManage.vue
@@ -539,15 +539,40 @@
      for (var i in this.multipleSelection) {
        std.push(this.multipleSelection[i].id)
      }
      const data = await report_deletes({ ids: std.toString() })
      if (data.code != 200) {
        return this.$message.error("删除失败");
      }
      this.$message({
        message: '删除成功',
        type: 'success'
      this.$confirm('此操作将永久删除该模块, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      }).then(async () => {
        const data = await report_deletes({ ids: std.toString() })
        if (data.code == 200) {
          this.InsertFormdialog = false;
          this.$message({
            message: '删除成功!',
            type: 'success',
          });
          this.setRefreshTable();
        } else {
          this.$message({
            message: '删除失败!',
            type: 'warning',
          });
        }
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '已取消删除'
        });
      });
      this.setRefreshTable();
      // const data = await report_deletes({ ids: std.toString() })
      // if (data.code != 200) {
      //   return this.$message.error("删除失败");
      // }
      // this.$message({
      //   message: '删除成功',
      //   type: 'success'
      // });
      // this.setRefreshTable();
    },