优化新增公司后逻辑
This commit is contained in:
parent
fc6b4366cc
commit
8aba6fc6e3
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue