From 41a0141d82a639d1a81df285eb783de600fdc255 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Thu, 27 Nov 2025 17:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E4=B8=8A=E4=BC=A0=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/prearchiveLibrary/module/batchFile.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/views/prearchiveLibrary/module/batchFile.vue b/src/views/prearchiveLibrary/module/batchFile.vue index 3546df4..72c1a2a 100644 --- a/src/views/prearchiveLibrary/module/batchFile.vue +++ b/src/views/prearchiveLibrary/module/batchFile.vue @@ -201,12 +201,19 @@ export default { 'fondsId': this.selectedDocument.fondsId } FetchMateByDocumentIdShow(params).then(res => { + // 处理下拉框选项数据 this.rulesOptions = res.map(item => { - const json = {} - json.label = item.ruleName - json.value = item.id - return json + return { + label: item.ruleName, + value: item.id + } }) + if (this.rulesOptions.length === 1) { + this.form.ruleName = this.rulesOptions[0].value + this.selectRules(this.rulesOptions[0].value) + } else { + this.form.ruleName = null + } }) }, getInitDetail(id) {