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 // })