yangfeng
2023-07-14 22d4441a8c669185c13d2b6856c51ad550c50ae2
src/views/other/commonDialog/HighViewScopeDialog.vue
@@ -21,6 +21,7 @@
          ref="tree"
          highlight-current
          :props="defaultProps"
          :filter-node-method="filterNode"
        >
        </el-tree>
      </div>
@@ -48,6 +49,11 @@
  },
  components: {},
  computed: {},
  watch: {
    searchInput(val) {
      this.$refs.tree.filter(val)
    }
  },
  data() {
    return {
      dialogWidth: "35%",
@@ -129,6 +135,10 @@
  methods: {
    handleClose() {
      this.editConfig.visible = false
    },
    filterNode(value, data) {
      if (!value) return true
      return data.label.indexOf(value) !== -1
    }
  }
}