cuijian
8 小时以前 135b5b2e497514dc4456e33b0db0fe5e7fa4e62f
src/views/tms/modules/baseTools/BaseToolsListRight.vue
@@ -406,22 +406,23 @@
        this.$bus.$emit('queryTreeData') //刷新左侧树
      },
      onSelectChange(selectedRowKeys) {
      onSelectChange(selectedRowKeys,selectionRows) {
        this.selectedRowKeys = selectedRowKeys;
        this.selectionRows = selectionRows;
        //通过id查询管理参数和参数数据
        getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => {
        getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => {
          if (res.success) {
            if(this.paraTypeFlag === "1"){
            if(this.selectionRows[0].paraTypeFlag === "1"){
              this.$refs.paraCommonToolList.getPara(res.result);
            }else if(this.paraTypeFlag === "2"){
            }else if(this.selectionRows[0].paraTypeFlag === "2"){
              this.$refs.paraHoleToolsList.getPara(res.result);
            }else if(this.paraTypeFlag === "3"){
            }else if(this.selectionRows[0].paraTypeFlag === "3"){
              this.$refs.paraThreadingToolList.getPara(res.result);
            }else if(this.paraTypeFlag === "4"){
            }else if(this.selectionRows[0].paraTypeFlag === "4"){
              this.$refs.paraMillToolList.getPara(res.result);
            }else if(this.paraTypeFlag === "5"){
            }else if(this.selectionRows[0].paraTypeFlag === "5"){
              this.$refs.paraTurningToolsList.getPara(res.result);
            }else if(this.paraTypeFlag === "6"){
            }else if(this.selectionRows[0].paraTypeFlag === "6"){
              this.$refs.paraBladeList.getPara(res.result);
            }
          } else {
@@ -519,7 +520,7 @@
      },
      loadData() {
        let params = this.getQueryParams();
        if (this.nodeSelected && this.nodeSelected.key !== '-1') {
        if (this.nodeSelected) {
          // 加载选中节点的子类
          params.classifyId = this.nodeSelected.key;
          this.loading = true;
@@ -537,10 +538,11 @@
        }else if(this.paraTypeFlag === '6'){
            httpUrl = this.url.paraBladeList
        }else{
          this.dataSource = [];
          this.clearPara()
          this.loading = false;
          return
          //this.dataSource = [];
          // this.clearPara()
          // this.loading = false;
          // return
          httpUrl = this.url.paraCommonToolList
        }
        getAction(httpUrl, params)
          .then((res) => {
@@ -549,7 +551,8 @@
              this.ipagination.total = res.result.total
              //默认选中第一条数据
              this.selectedRowKeys[0] = res.result.records[0].id
              this.onSelectChange(this.selectedRowKeys)
              this.selectionRows[0] = res.result.records[0]
              this.onSelectChange(this.selectedRowKeys,this.selectionRows)
            } else {
              //this.$message.warning("请选择叶子节点进行查询");
              this.ipagination.total = 0