From d8c62966031b70f11853f54ab9ca0ec64ec5af4a Mon Sep 17 00:00:00 2001 From: miaojiale <1123971748@qq.com> Date: Tue, 14 Feb 2023 11:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=E2=91=A0=E8=81=94=E8=B0=83=E9=A9=B3=E5=9B=9E?= =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E6=8E=A5=E5=8F=A3=20=E2=91=A1=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AD=9B=E6=9F=A5=E6=9F=A5=E8=AF=A2=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E7=9A=84=E5=8A=9F=E8=83=BD=E5=9B=BE=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TabComponents/index.vue | 143 +++++++++++++---------- src/views/Home/index.vue | 86 +------------- src/views/audit-detail/index.vue | 3 +- src/views/audit-qualitycontrol/index.vue | 2 +- src/views/screening/index.vue | 18 ++- 5 files changed, 98 insertions(+), 154 deletions(-) diff --git a/src/components/TabComponents/index.vue b/src/components/TabComponents/index.vue index 6b296a8..8d57849 100644 --- a/src/components/TabComponents/index.vue +++ b/src/components/TabComponents/index.vue @@ -100,7 +100,9 @@ " > - + {{ - op.formatter - ? op.formatter(scope.row).label - : op.label - ? op.label - : scope.row[col2.value] + op.formatter + ? op.formatter(scope.row).label + : op.label + ? op.label + : scope.row[col2.value] }} @@ -167,9 +169,7 @@ " /> - {{ - scope.row[col2.value] - }} + {{ scope.row[col2.value] }} @@ -203,9 +203,7 @@ " /> - {{ - scope.row[col2.value] - }} + {{ scope.row[col2.value] }} @@ -292,11 +290,8 @@ trigger="click" > - {{ op.title || "更多操作" - }} - + {{ op.title || "更多操作" }} + {{ - child.formatter - ? child.formatter(scope.row).label - : child.label + child.formatter + ? child.formatter(scope.row).label + : child.label }} @@ -347,32 +342,40 @@ :inactive-value="op.inactiveValue" > - - {{ - op.formatter - ? op.formatter(scope.row).label - : op.label - ? op.label - : scope.row[column.value] - }} - + + + + {{ + op.formatter + ? op.formatter(scope.row).label + : op.label + ? op.label + : scope.row[column.value] + }} + + @@ -382,7 +385,9 @@ ? column.operations.formatter(scope.row) : column.operations" > - + - {{ - scope.row[column.value] - }} + {{ scope.row[column.value] }} @@ -491,9 +494,7 @@ " /> - {{ - scope.row[column.value] - }} + {{ scope.row[column.value] }} @@ -512,9 +513,7 @@ :size="column.size" > - {{ - scope.row[column.value] - }} + {{ scope.row[column.value] }} @@ -565,7 +564,9 @@ - + @@ -629,7 +630,8 @@ style="float: left" type="primary" @click="column.func(scope.$index)" - >上传 + >上传 {{ scope.row.imgUrl }} + >{{ scope.row.imgUrl }} 删除 + >删除 @@ -664,16 +668,27 @@ - {{ scope.row[column.value1] }} - {{ scope.row[column.value2] }} + + {{ scope.row[column.value1] }} + + + {{ scope.row[column.value2] }} + - + - + { if (valid) { - this.putScreeningCheck("4", () => { + let status = this.curBtn == 2 ? "4" : this.curBtn == 3 ? "2" : "" + this.putScreeningCheck(status, () => { this.$message.success("提交审核成功") this.nextExample() }) diff --git a/src/views/audit-qualitycontrol/index.vue b/src/views/audit-qualitycontrol/index.vue index 57e8f33..1441fbd 100644 --- a/src/views/audit-qualitycontrol/index.vue +++ b/src/views/audit-qualitycontrol/index.vue @@ -160,7 +160,7 @@ export default { text = "合格" } else if (row.checkStatus == 4) { text = "不合格" - } else if (row.checkStatus == 5) { + } else if (row.checkStatus == 2) { text = "驳回修改" } else if (row.checkStatus) { text = "--" diff --git a/src/views/screening/index.vue b/src/views/screening/index.vue index 58440ba..80e19f1 100644 --- a/src/views/screening/index.vue +++ b/src/views/screening/index.vue @@ -216,9 +216,19 @@ export default { { func: this.handleView, formatter(row) { - return { - label: "查看", - type: "text", + if (row.checkStatus != 2) { + return { + label: "查看", + type: "text", + } + } else { + return { + label: "", + type: "none", + style: { + display: "none", + }, + } } }, }, @@ -233,7 +243,7 @@ export default { } else { return { label: "", - type: "text", + type: "none", style: { display: "none", }, -- 2.22.0