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] 优化一些bug --- src/components/contract/addTemplateView.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+), 0 deletions(-) diff --git a/src/components/contract/addTemplateView.vue b/src/components/contract/addTemplateView.vue index 053a9c6..482d81d 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) } -- libgit2 0.21.4