Browse Source

设备机构数搜索框

develop
ljlong_2630 1 year ago
parent
commit
b0ca54760a
  1. 12
      src/views/model/device/index.vue

12
src/views/model/device/index.vue

@ -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>
Loading…
Cancel
Save