| | |
| | | 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() { |
| | |
| | | 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('确定是否新增', '提示', { |
| | |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | } |
| | | }, |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | //删除项目 |
| | | 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) { |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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(); |
| | | }, |
| | | |
| | | |