|
|
@ -427,6 +427,7 @@ const tableHeight = ref("0px"); |
|
|
|
const sortItemMap = ref({}); |
|
|
|
const queryParamFilter = ref({}); |
|
|
|
const sortProps = ref([]); |
|
|
|
const deptName = ref(null); |
|
|
|
const enabledFlag = ref([ |
|
|
|
{ label: '可用', value: true, elTagType: 'default', elTagClass: null }, |
|
|
|
{ label: '不可用', value: false, elTagType: 'default', elTagClass: null } |
|
|
@ -933,6 +934,17 @@ function handleNodeClick(data) { |
|
|
|
handleQuery(); |
|
|
|
}; |
|
|
|
|
|
|
|
/** 通过条件过滤节点 */ |
|
|
|
const filterNode = (value, data) => { |
|
|
|
if (!value) return true; |
|
|
|
return data.label.indexOf(value) !== -1; |
|
|
|
}; |
|
|
|
/** 根据名称筛选部门树 */ |
|
|
|
watch(deptName, val => { |
|
|
|
proxy.$refs["deptTreeRef"].filter(val); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
getDeptTree(); |
|
|
|
getList(); |
|
|
|
</script> |