From 9ce23427bf6374758d14255eb604aa90a3efd503 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Tue, 21 Apr 2026 16:15:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=80=E4=BA=9Bbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/contract/addTemplateView.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/components/contract/addTemplateView.vue b/src/components/contract/addTemplateView.vue index 053a9c6f9..482d81d33 100644 --- a/src/components/contract/addTemplateView.vue +++ b/src/components/contract/addTemplateView.vue @@ -67,6 +67,21 @@ export default { const reg = `#${rname}#` this.contractTypeAttrs.push(reg) }) + + // 处理基本属性 + if (data.baseRepalce) { + data.baseRepalce.forEach(e => { + const rname = e.name + const rkey = e.key + const contractarr = Object.keys(data.contract[0] || {}) + for (const a in contractarr) { + if (rkey === contractarr[a]) { + const reg = `#${rname}#` + this.contractTypeAttrs.push(reg) + } + } + }) + } } catch (error) { console.error('加载合同属性失败:', error) }