su
su1124
2024-06-24 0c2c35139886532e938ea304254a339bd22cbd41
src/views/system/tijian/index.vue
@@ -550,7 +550,9 @@
                >
                  项目列表
                </div>
                <el-input placeholder="输入关键字进行过滤" v-model="filterText">
                <!-- @input="gaibian" -->
                <el-input placeholder="输入关键字进行过滤"
                 v-model="filterText">
                </el-input>
                <div class="tab3">
                  <el-tree
@@ -1311,6 +1313,7 @@
  },
  data() {
    return {
      pname:"",
      filterText: "",
      proIdList: [],
      tableDatas: [],
@@ -1556,11 +1559,12 @@
    },
    filterNode(value, data) {
      if (!value) return true;
      if(value == data.proName){
        return data.proName.indexOf(value) !== -1;
      }else{
        return data.proEngName.indexOf(value) !== -1;
      }
      return data.proName.indexOf(value) !== -1;
      // if(value == data.proName){
      //   return data.proName.indexOf(value) !== -1;
      // }else{
      //   return data.proEngName.indexOf(value) !== -1;
      // }
    },
    beforeDestroy() {
      clearInterval(this.timer);
@@ -2451,8 +2455,18 @@
        this.getDataList();
      }
    },
    // gaibian(val){
    //   console.log(val);
    //   let pname = val;
    //   console.log(pname);
    //   getProParentIdDxList(pname).then(response=>{
    //     this.Treedata = response.data.list;
    //   })
    // },
    getDataList() {
      console.log(111);
      this.loading = true;
      // this.pname = "null";
      getProParentIdDxList().then((response) => {
        this.Treedata = response.data.list;
        if (this.tableData[0]) {