From bbf72424d846374eac0ba16b82ffedf40ba98b31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHANGTENG=5C=E5=BC=A0=E8=85=BE?= <894697943@qq.com> Date: Fri, 13 Mar 2026 09:51:02 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?DJ001,DL006=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/HandleFormItem.vue | 6 +- .../business/comps/template/comps/dj/DJ001.vue | 70 +++++++++++++++------- .../business/comps/template/comps/dl/DL006.vue | 23 ++++--- 3 files changed, 66 insertions(+), 33 deletions(-) diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index 2a2879b..e44f737 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -1164,8 +1164,8 @@ export default { isSame = isEqual(current.oldValue, current.newValue); isOldValueEmpty = isValueEmpty(current.oldValue); } else if (this.type === "checkboxTree") { - const current = this.getCheckboxTreeInfo(); - const { oldValue, newValue } = current; + const current = this.getCheckboxTreeInfo() || {}; + const { oldValue = {}, newValue = {} } = current; if (currentHandleType === "checkboxTreeCheckbox") { isSame = isEqual(oldValue.checked, newValue.checked); isOldValueEmpty = oldValue.checked === undefined; @@ -1248,7 +1248,7 @@ export default { const current = this.getCheckboxTreeInfo(); if (this.currentHandleType === "checkboxTreeCheckbox") { const { oldValue, newValue } = current; - recordOldVlaue = `${oldValue.label || ''}:${oldValue.checked ? '勾选' : '未勾选'}`; + recordOldVlaue = `${oldValue?.label || ''}:${oldValue?.checked ? '勾选' : '未勾选'}`; recordValue = `${newValue.label || ''}:${newValue.checked ? '勾选' : '未勾选'}`; isModify = newValue.checked !== undefined; } else { diff --git a/src/views/business/comps/template/comps/dj/DJ001.vue b/src/views/business/comps/template/comps/dj/DJ001.vue index 93c6f09..14e7fde 100644 --- a/src/views/business/comps/template/comps/dj/DJ001.vue +++ b/src/views/business/comps/template/comps/dj/DJ001.vue @@ -13,7 +13,7 @@