修改部门管理
This commit is contained in:
@@ -68,7 +68,7 @@
|
||||
<!---- author:os_chengtgen -- date:20190827 -- for:切换父子勾选模式 =======------>
|
||||
</a-col>
|
||||
<a-col :md="14" :sm="24" style="padding: 24px;">
|
||||
<a-tabs defaultActiveKey="1">
|
||||
<a-tabs defaultActiveKey="1" @change="tabChange">
|
||||
<a-tab-pane :tab="$t('essentialInformation')" key="1">
|
||||
<a-card :bordered="false" v-if="selectedKeys.length>0">
|
||||
<a-form :form="form">
|
||||
@@ -279,7 +279,8 @@
|
||||
exportXlsUrl: 'sys/sysDepart/exportXls',
|
||||
importExcelUrl: 'sys/sysDepart/importExcel'
|
||||
},
|
||||
orgCategoryDisabled: false
|
||||
orgCategoryDisabled: false,
|
||||
recordTab:{},
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -331,7 +332,6 @@
|
||||
this.rightClickSelectedOrgCode = node.node.dataRef.orgCode
|
||||
},
|
||||
onExpand(expandedKeys) {
|
||||
console.log('onExpand', expandedKeys)
|
||||
this.iExpandedKeys = expandedKeys
|
||||
},
|
||||
backFlowList() {
|
||||
@@ -413,19 +413,26 @@
|
||||
}
|
||||
},
|
||||
onSelect(selectedKeys, e) {
|
||||
console.log('selected', selectedKeys, e)
|
||||
this.hiding = false
|
||||
let record = e.node.dataRef
|
||||
console.log('onSelect-record', record)
|
||||
this.currSelected = Object.assign({}, record)
|
||||
this.model = this.currSelected
|
||||
this.selectedKeys = [record.key]
|
||||
this.model.parentId = record.parentId
|
||||
this.setValuesToForm(record)
|
||||
this.$refs.departAuth.show(record.id)
|
||||
this.recordTab = record
|
||||
// this.$refs.departAuth.show(record.id)
|
||||
// 传用户信息参数
|
||||
this.$refs.DeptUserInfo.open(record)
|
||||
|
||||
if (this.$refs.DeptUserInfo){
|
||||
this.$refs.DeptUserInfo.open(record)
|
||||
}
|
||||
},
|
||||
tabChange(event){
|
||||
if(event == 3){
|
||||
this.$nextTick(()=>{
|
||||
this.$refs.DeptUserInfo.open(this.recordTab)
|
||||
})
|
||||
}
|
||||
},
|
||||
// 触发onSelect事件时,为部门树右侧的form表单赋值
|
||||
setValuesToForm(record) {
|
||||
|
||||
@@ -151,7 +151,8 @@
|
||||
edit: "/sys/user/editSysDepartWithUser",
|
||||
delete: "/sys/user/deleteUserInDepart",
|
||||
deleteBatch: "/sys/user/deleteUserInDepartBatch",
|
||||
}
|
||||
},
|
||||
loading:false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -167,6 +168,7 @@
|
||||
this.$message.error(this.$t('setURLListAttribute'))
|
||||
return
|
||||
}
|
||||
this.loading = true
|
||||
//加载数据 若传入参数1则加载第一页的内容
|
||||
if (arg === 1) {
|
||||
this.ipagination.current = 1;
|
||||
@@ -175,6 +177,7 @@
|
||||
let params = this.getQueryParams();//查询条件
|
||||
params.depId = this.currentDeptId;
|
||||
getAction(this.url.list, params).then((res) => {
|
||||
this.loading = false
|
||||
if (res.success && res.result) {
|
||||
this.dataSource = res.result.records;
|
||||
this.ipagination.total = res.result.total;
|
||||
@@ -248,7 +251,6 @@
|
||||
});
|
||||
},
|
||||
open(record) {
|
||||
//console.log(record);
|
||||
this.currentDeptId = record.id;
|
||||
this.currentDept = record;
|
||||
this.loadData(1);
|
||||
|
||||
Reference in New Issue
Block a user