From d290da2b805c269cbea5b065c01da4c4e79eb7a0 Mon Sep 17 00:00:00 2001 From: helloDy <1615073571@qq.com> Date: Tue, 30 Jan 2024 16:25:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Quality.vue | 23 ++++++++++++++++++++--- src/views/Scrap.vue | 7 ++++++- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/views/Quality.vue b/src/views/Quality.vue index 69d1c9f..29d96b7 100644 --- a/src/views/Quality.vue +++ b/src/views/Quality.vue @@ -1,7 +1,7 @@ @@ -138,7 +138,12 @@ export default { value: it.id } }) - console.log('nihjc', temp) + if (this.sectionArray.length > 0) { + this.listQuery.sectionId = this.sectionArray[0].value + this.getQuality() + } else { + this.listQuery.sectionId = '' + } // workshopSectionListByLine({ id: this.listQuery.productionLineId }).then(res => { // this.sectionArray = res.data.data.map(item => { // return { @@ -172,10 +177,22 @@ export default { .rightDiv { border-radius: 7px; height: 72px; - line-height: 72px; + line-height: 36px; width: 140px; + text-align: left; + padding-left: 10px; + overflow: hidden; + -webkit-line-clamp: 2; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-box-pack: center; + /* text-align: justify; */ + text-overflow: ellipsis; /* background-color: #276BFF; */ } +/* .rightDiv::after { + content: "..."; +} */ .contain { border-radius: 7px 36px 36px 7px; height: 72px; diff --git a/src/views/Scrap.vue b/src/views/Scrap.vue index 6573f97..97d266b 100644 --- a/src/views/Scrap.vue +++ b/src/views/Scrap.vue @@ -1,7 +1,7 @@ @@ -262,6 +262,11 @@ export default { return item.id === value }) this.sectionArray = temp[0].children + if (this.sectionArray.length > 0) { + this.ruleForm.sectionId = this.sectionArray[0].id + } else { + this.ruleForm.sectionId = '' + } // workshopSectionListByLine({ id: this.ruleForm.lineId }).then(res => { // this.sectionArray = res.data.data // })