|
@@ -2,18 +2,17 @@
|
|
|
<div>
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="24" style="padding:0 16px">
|
|
|
- <el-input size="small" v-model="param.content.where.condition" class="normal-margin" :placeholder="$t('搜索人员')" clearable @keyup.enter.native="searchChange"></el-input>
|
|
|
+ <el-input size="small" v-model="param.content.where.condition" class="normal-margin" :placeholder="$t('搜索人员')" clearable @keyup.enter.native="searchChange" ></el-input>
|
|
|
</el-col>
|
|
|
<el-col :span="12">
|
|
|
<div class="tree-panel">
|
|
|
- <div :class="['allData',{'active':active}]" @click="allClick">{{$t(`全部`)}}</div>
|
|
|
<el-tree
|
|
|
ref="tree"
|
|
|
:data="deplist"
|
|
|
node-key="departmentid"
|
|
|
default-expand-all
|
|
|
highlight-current
|
|
|
- :check-strictly="true"
|
|
|
+ :check-strictly="false"
|
|
|
:check-on-click-node="false"
|
|
|
:expand-on-click-node="false"
|
|
|
:show-checkbox="true"
|
|
@@ -98,34 +97,25 @@ export default {
|
|
|
"nocahe":true,
|
|
|
"pageNumber": 1,
|
|
|
"pageSize": 10000,
|
|
|
- "departmentids":[],
|
|
|
+ "departmentids":"",
|
|
|
"containssub":1,
|
|
|
"where": {
|
|
|
"condition": "",
|
|
|
- "status": "ACTIVE"
|
|
|
+ "status": ""
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- watch: {
|
|
|
- },
|
|
|
methods:{
|
|
|
searchChange () {
|
|
|
this.active = true
|
|
|
this.$refs.tree.setCurrentKey(null)
|
|
|
this.param.content.isAll = 1
|
|
|
- this.menberList([])
|
|
|
- },
|
|
|
- allClick () {
|
|
|
- this.active = true
|
|
|
- this.$refs.tree.setCurrentKey(null)
|
|
|
- this.param.content.isAll = 1
|
|
|
- this.menberList([])
|
|
|
+ this.menberList(this.param.content.departmentids[0])
|
|
|
},
|
|
|
// 查询部门
|
|
|
async department () {
|
|
|
- console.log(this.$route.query.id,this.obiectId)
|
|
|
const res = await this.$api.requested({
|
|
|
"classname": "webmanage.department.department",
|
|
|
"method": "querydepartment_auth",
|
|
@@ -138,7 +128,7 @@ export default {
|
|
|
this.responseData = res.data
|
|
|
this.deplist = this.createMenu(res.data)
|
|
|
this.$emit('onClick',{data:this.deplist[0],parent:[]})
|
|
|
-
|
|
|
+ this.menberList(this.deplist[0].value)
|
|
|
// 如果存在默认组织数据就执行
|
|
|
},
|
|
|
|
|
@@ -184,8 +174,6 @@ export default {
|
|
|
this.param.content.departmentids = [val]
|
|
|
const res = await this.$api.requested(this.param)
|
|
|
this.menberData = res.data
|
|
|
- console.log(this.menberData);
|
|
|
-
|
|
|
this.loading = false
|
|
|
if(this.allDataLength == '') this.allDataLength = this.menberData.length
|
|
|
// this.allDataLength = this.menberData.length
|
|
@@ -211,7 +199,6 @@ export default {
|
|
|
this.param.content.isAll = 0
|
|
|
this.clickdepid = row.departmentid
|
|
|
this.menberList(row.departmentid)
|
|
|
- this.active = false
|
|
|
|
|
|
},
|
|
|
// 勾选部门
|
|
@@ -234,7 +221,7 @@ export default {
|
|
|
this.departmentids = arr
|
|
|
}
|
|
|
this.departmentids = [...new Set(this.departmentids)]
|
|
|
- this.$refs.tree.setCheckedKeys(this.departmentids)
|
|
|
+ // this.$refs.tree.setCheckedKeys(this.departmentids)
|
|
|
this.$emit('onParams',this.departmentids,this.checkedMenbers,this.isonlymanager_dept)
|
|
|
},
|
|
|
// 勾选人员
|
|
@@ -271,7 +258,6 @@ export default {
|
|
|
mounted () {
|
|
|
setTimeout(() => {
|
|
|
this.department()
|
|
|
- this.allClick()
|
|
|
}, 1000);
|
|
|
},
|
|
|
watch:{
|