修改系统配置的删除提示

This commit is contained in:
龙运模
2024-07-09 20:31:33 +08:00
parent e47723b613
commit 27b72b85dc
9 changed files with 100 additions and 67 deletions
+23 -29
View File
@@ -140,27 +140,18 @@ export default {
},
//删除
async table_del(row){
const reqData = {id: row.id};
const res = await this.$API.system.company.delete.post(reqData);
if(res.code == 200){
this.$refs.table.refresh()
this.$message.success("删除成功")
}else{
await this.$alert(res.message, "提示", {type: 'error'})
}
},
//批量删除
async batch_del(){
this.$confirm(`确定删除选中的 ${this.selection.length} 项吗?如果删除项中含有子集将会被一并删除`, '提示', {
this.$confirm(`确定删除 ${row.name} 吗?`, '提示', {
type: 'warning'
}).then(() => {
const loading = this.$loading();
this.$refs.table.refresh()
loading.close();
this.$message.success("操作成功")
}).catch(() => {
})
}).then(async () => {
const reqData = {id: row.id};
const res = await this.$API.system.company.delete.post(reqData);
if(res.code == 200){
this.$refs.table.refresh()
this.$message.success("删除成功")
}else{
await this.$alert(res.message, "提示", {type: 'error'})
}
}).catch(()=>{})
},
// 功能授权
table_empower(row){
@@ -174,14 +165,13 @@ export default {
},
// 公司用户列表
table_user_ist(row){
this.$message.warning(row.name+' 暂无接口')
// this.$router.push({
// path: '/setting/user/company-user-list',
// query: {
// id: row.id,
// name:row.name
// }
// })
this.$router.push({
path: '/setting/user/company-user-list',
query: {
id: row.id,
name:row.name
}
})
},
//表格选择后回调事件
selectionChange(selection){
@@ -208,7 +198,11 @@ export default {
},
reset(){
this.$refs.table.reload();
}
},
handleSaveSuccess(){
this.$refs.table.refresh();
},
}
}
</script>