From a666f1bf85ef75347274098c92c94da752c8bb78 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期一, 11 九月 2023 10:12:32 +0800 Subject: [PATCH] new file: src/components/view/standard-table/bom.vue modified: src/components/view/standard.vue --- src/components/view/standard.vue | 28 ++++++++++++---------------- 1 files changed, 12 insertions(+), 16 deletions(-) diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue index d799745..0b372ee 100644 --- a/src/components/view/standard.vue +++ b/src/components/view/standard.vue @@ -57,15 +57,10 @@ </div> <div v-if="this.typeselect == 1">鎶�鏈寚鏍�</div> <div v-if="this.typeselect == 2"> - <material :tableType="tableType" :tableData="tableData"></material> + <bom :tableType="tableType" :tableData="tableData"></bom> </div> <div v-if="this.typeselect == 3">鐢熶骇宸ヨ壓</div> - <!-- <div class="table"> - <technology v-if="tableData.length !== 0" :tableType="tableType" :tableData="tableData"></technology> - </div> --> - <!-- <div class="table"> - <technology v-if="tableData.length !== 0" :tableType="tableType" :tableData="tableData"></technology> - </div> --> + </div> </div> @@ -73,7 +68,7 @@ <div class="bom-add-model"> <el-dialog title="BOM鏂板" :visible.sync="bomAddModelVisible" width="30%"> <el-form> - + </el-form> <span slot="footer" class="dialog-footer"> <el-button @click="bomAddModelVisible = false">鍙� 娑�</el-button> @@ -87,8 +82,9 @@ <script> import technology from "./standard-table/technology.vue" import material from "./standard-table/material.vue" +import bom from "./standard-table/bom.vue" export default { - components: { technology,material }, + components: { technology,material,bom }, data() { return { @@ -153,14 +149,14 @@ }, TYPE(val) {//绫诲瀷.鏁版嵁 - console.log(val); + // console.log(val); this.typeselect = val - // console.log(this.typeselect); + console.log(this.typeselect); this.selectVersion() }, handleNodeClick(val) {//鏍戠殑鍊� - console.log(val); + // console.log(val); this.returntree = val }, async selectVersion() {//鐗堟湰 @@ -179,7 +175,6 @@ }) this.character=v this.VER="v"+v - console.log(this.character); this.selectAll() }, //鍙充晶鏁版嵁 @@ -192,6 +187,7 @@ } }).then(res => { let arr = res.data; + console.log(arr); for(var i=0;i<arr.length;i++){ arr[i].id = "0" + i; } @@ -199,9 +195,9 @@ }) }, verevent(val) { - console.log(val); + // console.log(val); let cc = val.replace('v', '') - console.log(cc); + // console.log(cc); this.character = cc this.selectAll() // const { v, ...newObj } = val; @@ -211,7 +207,7 @@ //浜旂骇鏍� selectMaterialTree() { this.$axios.get(this.$api.url.selectTreeByMaterial).then( res => { - _that.list = res.data + this.list=res.data this.list.forEach((el, idx, arr) => { if (idx == 0) { arr[idx].name = '鎴愬搧' -- Gitblit v1.9.3