Commit 9cb37853 by 张杰

修复删除用户检测

1 parent 90e8b8b1
...@@ -404,7 +404,7 @@ export default { ...@@ -404,7 +404,7 @@ export default {
// 组织架构节点 // 组织架构节点
handleNodeClick(data) { handleNodeClick(data) {
this.searchForm.departmentId = data.id; this.searchForm.departmentId = data.id;
this.$refs.userTable.handleCurrentChange(1) this.$refs.userTable.handleCurrentChange(1);
// this.$refs.userTable.refreshTable(); // this.$refs.userTable.refreshTable();
}, },
// 树节点内容区的渲染 // 树节点内容区的渲染
...@@ -509,7 +509,7 @@ export default { ...@@ -509,7 +509,7 @@ export default {
async deleteEvent(id) { async deleteEvent(id) {
const that = this; const that = this;
let res = await JUDGE_USER_BINDVEHICLE({ userId: id }); let res = await JUDGE_USER_BINDVEHICLE({ userId: id, types: [1] });
// true:可以删除,false:不能删除用户 // true:可以删除,false:不能删除用户
if (!res.data) { if (!res.data) {
showModal({ showModal({
...@@ -738,12 +738,6 @@ export default { ...@@ -738,12 +738,6 @@ export default {
this.$refs.assignInfo.saveInfo(); this.$refs.assignInfo.saveInfo();
}, },
// 判断用户是否绑定车辆
async judgeUser(id) {
let res = await JUDGE_USER_BINDVEHICLE({ userId: id });
if (res.code == 200) {
}
},
}, },
}; };
</script> </script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!