|
|
|
|
@ -236,6 +236,7 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
submit(){
|
|
|
|
|
this.$confirm("确认保存数据?","提示").then(_ => {
|
|
|
|
|
let areaIds = this.$refs['elTree'].getCheckedNodes().map(item => item.id)
|
|
|
|
|
let oriAreaIds = this.originalArea.map(item => item.area_id)
|
|
|
|
|
let areaPromiseAll = [];
|
|
|
|
|
@ -276,12 +277,14 @@ export default {
|
|
|
|
|
Promise.all([...areaPromiseAll,...typePromiseAll,save(submitUser)]).then(res => {
|
|
|
|
|
this.getAdminTypes()
|
|
|
|
|
this.getAdminAreas()
|
|
|
|
|
this.getUsers()
|
|
|
|
|
|
|
|
|
|
this.$message({
|
|
|
|
|
type:'success',
|
|
|
|
|
message:'保存成功'
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
created(){
|
|
|
|
|
|