@@ -1076,6 +1076,14 @@ export default {
},
//删除机构或部门
deleteMechanism(data) {
+ if (data.name == "总部") {
+ this.$message({
+ message: "总部不可删除",
+ type: "warning",
+ duration: 1000,
+ });
+ return
+ }
this.$prompt('请输入密码', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',