From 4c6e3aee72b5d597885d1cfa820ac3c9c57c8b3b Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期二, 04 六月 2024 16:12:14 +0800 Subject: [PATCH] 部分功能小调整 --- src/components/do/b1-inspect-order-plan/Inspection.vue | 48 +++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 47 insertions(+), 1 deletions(-) diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue index b3ed844..642ba7f 100644 --- a/src/components/do/b1-inspect-order-plan/Inspection.vue +++ b/src/components/do/b1-inspect-order-plan/Inspection.vue @@ -120,6 +120,19 @@ .collection:active { opacity: .7; } + .table_caret{ + font-size: 16px; + margin: 0 5px; + color: rgba(0, 0, 0, 0.1); + } + .table_caret:hover{ + color: #409eff; + cursor: pointer; + } + + .table_caret:active{ + opacity: .8; + } </style> <style> .inspection .el-form-item__label { @@ -284,6 +297,16 @@ <el-option v-for="(e, i) in enumList" :key="i" :label="e.label" :value="e.value"></el-option> </el-select> --> <span :style="`font-family:${n.v.ff} !important;`">{{n.v.v}}</span> + </template> + <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='鏍峰搧缂栧彿'"> + <div style="display: flex;flex-wrap: nowrap;align-items: center;"> + <i class="el-icon-caret-left table_caret" @click="caretSample(-1)"></i> + <div :style="`font-family:${n.v.ff} !important;`">{{currentSample.sampleCode}}</div> + <i class="el-icon-caret-right table_caret" @click="caretSample(1)"></i> + </div> + </template> + <template v-else-if="n.v.ps!=undefined && n.v.ps.value==='鏍峰搧鍨嬪彿'"> + <div :style="`font-family:${n.v.ff} !important;`" v-if="currentSample.model!==undefined&¤tSample.model!==null">{{currentSample.model}}</div> </template> <span v-else :style="`font-family:${n.v.ff} !important;`">{{n.v.v}}</span> </div> @@ -605,7 +628,7 @@ this.currentFiberOptic = null; this.bushing = [] this.currentBushing = null; - this.currentSample.insProduct = this.HaveJson(row.insProduct) + this.currentSample = this.HaveJson(row) this.currentSample.insProduct.forEach(a => { this.param[a.id] = { insValue: [], @@ -1449,6 +1472,29 @@ nav.addEventListener("mouseleave", function(event) { flag = false; }); + }, + caretSample(num){ + let index = this.currentKey + num + if(index < 1){ + this.$message.error('褰撳墠鏄涓�涓牱鍝�') + return + } else if(index > this.sampleProduct.length){ + this.$message.error('褰撳墠鏄渶鍚庝竴涓牱鍝�') + return + } + this.currentKey = index + this.currentSample = this.HaveJson(this.sampleProduct[index - 1]) + this.currentSample.insProduct.forEach(a => { + this.param[a.id] = { + insValue: [], + comValue: [], + resValue: null, + equipValue: [], + equipName: [], + insResult: null + } + }) + this.getTableLists() } } } -- Gitblit v1.9.3