[update] 法规符合性排查流程发起节点责任部门查询改多选
This commit is contained in:
+18
-7
@@ -154,6 +154,8 @@
|
||||
style="width: 100%"
|
||||
:tree-data="categoryTreeList"
|
||||
show-search
|
||||
tree-checkable
|
||||
treeCheckStrictly
|
||||
:filterTreeNode="filterTreeOption"
|
||||
:placeholder="$t('pleaseSelect') + $t('responsibleDepartment')"
|
||||
/>
|
||||
@@ -674,6 +676,7 @@ export default {
|
||||
this.$refs.ruleForm.validate(valid => {
|
||||
console.log('-----valid', valid)
|
||||
if (valid) {
|
||||
this.$emit('loading', true)
|
||||
// 获取下方那个表格信息
|
||||
const param = Object.assign({}, this.standardDataSource[0], this.formInline)
|
||||
regulatoryComplianceCheckGenerate(param).then(res => {
|
||||
@@ -689,6 +692,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.$emit('loading', false)
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -729,15 +734,20 @@ export default {
|
||||
// 查询
|
||||
searchQuery () {
|
||||
if (this.queryParam.authDept) {
|
||||
// 获取选中的部门的所有子集
|
||||
// 先获取选中的部门在部门里的对象
|
||||
const obj = this.getDepartObj(this.queryParam.authDept, this.categoryTreeList)
|
||||
console.log('------------obj', obj)
|
||||
const objArr = []
|
||||
for (const item of this.queryParam.authDept) {
|
||||
// 获取选中的部门的所有子集
|
||||
// 先获取选中的部门在部门里的对象
|
||||
const obj = this.getDepartObj(item.value, this.categoryTreeList)
|
||||
console.log('------------obj', obj)
|
||||
objArr.push(obj)
|
||||
}
|
||||
// 获取选中部门的所有子集id
|
||||
const deptArr = this.getDepartChildren([obj]).map(item => item.key)
|
||||
const deptArr = this.getDepartChildren(objArr).map(item => item.key)
|
||||
console.log('------------deptArr', deptArr)
|
||||
this.dataSource = this.dataList.filter(item => {
|
||||
return deptArr.includes(item.authDept)
|
||||
this.dataSource = this.dataList.filter(data => {
|
||||
const authDept = data.authDept ? data.authDept.split(',') : []
|
||||
return deptArr.some(item => authDept.includes(item))
|
||||
})
|
||||
} else {
|
||||
this.dataSource = JSON.parse(JSON.stringify(this.dataList))
|
||||
@@ -747,6 +757,7 @@ export default {
|
||||
},
|
||||
// 重置
|
||||
searchReset () {
|
||||
this.queryParam = {}
|
||||
this.dataSource = JSON.parse(JSON.stringify(this.dataList))
|
||||
this.selectedRowKeys = []
|
||||
this.selectionRows = []
|
||||
|
||||
Reference in New Issue
Block a user