From f5fb852d5deb8db7e69bdba099d41723910d9035 Mon Sep 17 00:00:00 2001 From: lb Date: Fri, 4 Aug 2023 11:08:21 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E8=B4=A8=E9=87=8F=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/quality/components/dialogForm.vue | 11 + src/views/quality/mixin/basicPageMixin.js | 12 + .../qualityInspectionRecord/index.vue | 459 ++++++++++-------- 3 files changed, 284 insertions(+), 198 deletions(-) diff --git a/src/views/quality/components/dialogForm.vue b/src/views/quality/components/dialogForm.vue index 000e1cf9..e5dbc6e5 100644 --- a/src/views/quality/components/dialogForm.vue +++ b/src/views/quality/components/dialogForm.vue @@ -39,6 +39,12 @@ :label="opt.label" :value="opt.value" /> + @@ -124,6 +130,10 @@ export default { const promiseList = []; this.rows.forEach((cols) => { cols.forEach(async (opt) => { + if (opt.value) { + // 默认值 + this.form[opt.prop] = opt.value; + } if (opt.options) { this.optionListOf[opt.prop] = opt.options; } else if (opt.url) { @@ -174,6 +184,7 @@ export default {