From eec77847922467a0ed5631794dbfe9ea2e367032 Mon Sep 17 00:00:00 2001 From: 王震 <10952869+daywangzhen@user.noreply.gitee.com> Date: 星期五, 08 九月 2023 11:11:48 +0800 Subject: [PATCH] 设备维护,标准Bom --- src/components/view/standard.vue | 39 +++++++++++++++++++++++++++++---------- 1 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/components/view/standard.vue b/src/components/view/standard.vue index 731daef..94c7173 100644 --- a/src/components/view/standard.vue +++ b/src/components/view/standard.vue @@ -52,7 +52,20 @@ 璇�</span></el-button> </div> - <div> + <!-- <div v-if="this.typeselect == 0"> + 宸ヨ壓璺嚎 + </div> + <div v-if="this.typeselect == 1"> + 鎶�鏈寚鏍� + </div> + <div v-if="this.typeselect == 2"> + 鐗╂枡娓呭崟 + </div> + <div v-if="this.typeselect == 3"> + 鐢熶骇宸ヨ壓 + </div> --> + + <!-- <div> <el-table :data="tableData" style="width: 100%;margin-bottom: 20px;" row-key="name" border @selection-change="handleSelectionChange" default-expand-all :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> @@ -61,7 +74,7 @@ <el-table-column type="index" width="50" label="搴忓彿"> </el-table-column> <el-table-column prop="name" label="宸ュ簭" sortable width="300px"> - <!-- <template slot-scope="scope"> + <template slot-scope="scope"> <el-tag> <div class="firstDiv" :style="`color: ${scope.row.children? '#16a7ff' : '#58c173'}`"> {{ scope.row.children ? "01" : "02" }} @@ -69,7 +82,7 @@ </el-tag> <span style="color: black">{{ scope.row.name }}</span> - </template> --> + </template> </el-table-column> <el-table-column prop="" sortable label="宸ヨ壓鍚嶇О"> </el-table-column> @@ -82,7 +95,8 @@ <el-table-column prop="unit" label="鏍囧噯鍊�"> </el-table-column> </el-table> - </div> + </div> --> + <div class="table"> <technology v-if="tableData.length !== 0" :tableType="tableType" :tableData="tableData"></technology> </div> @@ -93,7 +107,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> @@ -119,12 +133,14 @@ tableData: [], bomAddModelVisible: false,// 鎺у埗bom鏂板妯℃�佹鏄惁鏄剧ず list: [], - typeselect: {}, - returntree: {}, + typeselect: 0, + returntree: { + id:28, + }, version: {}, VER: {}, verdata: {}, - character: '', + character: 0, } }, // watch: { @@ -137,6 +153,8 @@ // }, mounted() { this.selectMaterialTree() + this.selectVersion() + this.selectAll() }, methods: { handleSelectionChange() { @@ -145,14 +163,15 @@ TYPE(val) {//绫诲瀷.鏁版嵁 console.log(val); this.typeselect = val - console.log(this.typeselect); + + // console.log(this.typeselect); this.selectVersion() }, handleNodeClick(val) {//鏍戠殑鍊� console.log(val); this.returntree = val }, - selectVersion() { + selectVersion() {//鐗堟湰 this.$axios.get(this.$api.url.selectVersion, { params: { specificationsId: this.returntree.id, -- Gitblit v1.9.3