Commit 460078bd by 胡悦

最终版(测试)

1 parent deef1124
......@@ -134,6 +134,7 @@ export default {
addOrEditDepart(params) {
updateDepartment.req(params).then(res => {
this.subLoading = false
this.$root.C2P({ 'depart': 'update' })
this.Tip(true)
}).catch(err => {
this.subLoading = false
......@@ -150,6 +151,7 @@ export default {
this.isDepart
? delDepartment.req(obj).then(res => {
this.delLoading = false
this.$root.C2P({ 'depart': 'update' })
this.delTip(true)
}).catch(err => {
this.delLoading = false
......
......@@ -135,7 +135,10 @@ export default {
},
mounted() {
this.getList()
this.getdepartData()
// this.getdepartData()
this.$root.eventBus.$on('event', data => {
data.depart === 'update' ? this.getList() : ''
})
},
watch: {
roleName(val) {
......@@ -235,13 +238,13 @@ export default {
})
},
// 获取部门树
getdepartData() {
findDepartTree.req().then(res => {
this.departList = fn(res, '#')
}).catch(err => {
notice.errorTips(err)
})
},
// getdepartData() {
// findDepartTree.req().then(res => {
// this.departList = fn(res, '#')
// }).catch(err => {
// notice.errorTips(err)
// })
// },
// 接口请求-end---------------------------------------
createDialogVisible() {
this.createVisible = !this.createVisible
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!