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 {