| | |
| | | <div class="his-body"> |
| | | <div class="his-body-left"> |
| | | <div class="his-body-tree"> |
| | | <el-input |
| | | v-model="filterText" |
| | | class="mb-2" |
| | | placeholder="Filter" |
| | | /> |
| | | <el-tree |
| | | :data="treeData" |
| | | show-checkbox |
| | | node-key="id" |
| | | ref="tree" |
| | | ref="treeRef" |
| | | highlight-current |
| | | :props="defaultProps" |
| | | :filter-node-method="filterNode" |
| | | @check="onCheckTree"/> |
| | | </div> |
| | | </div> |
| | |
| | | OUT_DEVIATION: [{required: true, message: '不可信率偏差不能为空', trigger: 'blur'}], |
| | | }) |
| | | |
| | | // 树形过滤 |
| | | const filterText = ref('') |
| | | const treeRef = ref() |
| | | watch(filterText, (val) => { |
| | | treeRef.value!.filter(val) |
| | | }) |
| | | const filterNode = (value: string, data) => { |
| | | if (!value) return true |
| | | return data.label.includes(value) |
| | | } |
| | | |
| | | /** 查询列表 */ |
| | | const getList = async (isClear = true) => { |
| | | loading1.value = true |