优化新增公司后逻辑

This commit is contained in:
BianLzhaoMin 2024-07-23 16:37:54 +08:00
parent fc6b4366cc
commit 8aba6fc6e3
1 changed files with 6 additions and 2 deletions

View File

@ -405,7 +405,7 @@ export default {
listDept(this.queryParams).then((response) => {
this.deptList = this.handleTree(response.data, 'deptId')
this.loading = false
console.log(this.deptList, '树节点数据---')
// console.log(this.deptList, '---')
})
},
/** 转换部门数据结构 */
@ -564,7 +564,11 @@ export default {
}
let list = [...this.companyList]
const res = await addCompanyApi(list)
console.log(res, '新增结果--')
if (res.code == 200) {
this.$message.success('新增成功!')
this.getList()
this.addCompanyVisible = false
}
},
/** 关闭新增公司弹框 */
closeAddCompanyDialog() {