| | |
| | | |
| | | //删除项目 |
| | | 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) { |