XiaoRuby
2023-08-10 ffd461f541b355d2d5124a0735d9c6fd557d21a5
src/components/view/standard.vue
@@ -12,7 +12,7 @@
    margin-bottom: 10px;
    padding: 0 20px;
  }
  .standard .title *{
    font-size: 16px;
  }
@@ -89,7 +89,7 @@
  .standard .title .el-button * {
    font-size: 14px;
  }
  .standard .title .el-button--default{
    color: #004EA2;
  }
@@ -153,10 +153,9 @@
      <el-dialog
        title="BOM新增"
        :visible.sync="bomAddModelVisible"
        width="30%"
        :before-close="handleClose">
        width="30%">
        <el-form>
        </el-form>
        <span slot="footer" class="dialog-footer">
          <el-button @click="bomAddModelVisible = false">取 消</el-button>
@@ -207,7 +206,6 @@
        this.$refs.tree.filter(val);
      },
      tableType(val){
        console.log(val)
        this.selectProductTableData()
      }
    },
@@ -216,7 +214,6 @@
    },
    methods: {
      handleNodeClick(data) {
        // console.log(data);
        this.checkTreeNode = data
        // this.selectMaterialTree()
        this.selectProductTableData()
@@ -251,16 +248,15 @@
          this.$nextTick().then(() => {
          const firstNode = document.querySelector('.el-tree-node .el-tree-node__children .el-tree-node .el-tree-node__children .el-tree-node .el-tree-node__children .el-tree-node')
          firstNode.click()
          // console.log(firstNode)
          })
        })
      },
      async selectProductTableData() {
        switch (this.tableType) {
          case 0:
        const {data:technologyList} = await this.$axios.get(this.$api.url.selectTechnologyByMaterial,{params:{specificationId:this.checkTreeNode.id,technologyName:this.searchName}})
        this.tableData = technologyList
        this.tableData = technologyList
            break;
          case 1:
        const {data:productList} = await this.$axios.get(this.$api.url.selectProductByMaterial,{params:{specifications:this.checkTreeNode.id,project:this.searchName}})
@@ -275,7 +271,6 @@
        this.tableData = productList
            break;
        }
        console.log(this.tableData)
      }
    }
  }