From 91d9cb8c602562f41e94ca7cc107686528fab859 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Wed, 4 Mar 2026 21:51:25 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][upd?= =?UTF-8?q?ate]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Template/HandleFormItem.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/components/Template/HandleFormItem.vue b/src/components/Template/HandleFormItem.vue index e4471c4..7d648b5 100644 --- a/src/components/Template/HandleFormItem.vue +++ b/src/components/Template/HandleFormItem.vue @@ -1149,7 +1149,10 @@ export default { } - } else { + } else if(this.type === "checkbox"){ + isSame = isEqual(this.oldValue, this.inputValue) + isOldValueEmpty = this.oldValue === ''; + }else { isSame = isEqual(this.oldValue, this.inputValue) isOldValueEmpty = isValueEmpty(this.oldValue); } @@ -1227,6 +1230,10 @@ export default { recordValue = `${current.des + (current.newValue || '')}`; isModify = !!current.oldValue; } + }else if(this.type === "checkbox"){ + recordOldVlaue = `${this.item.checkboxLabel || ""}:${this.oldValue?'勾选':'未勾选'}`; + recordValue = `${this.item.checkboxLabel||""}:${this.inputValue?'勾选':'未勾选'}`; + isModify = this.oldValue !== ''; } const record = { ...baseInfo, @@ -1561,6 +1568,16 @@ export default { .el-checkbox__inner { border-color: #f9c588 !important; } + &.is-checked { + .el-checkbox__label { + color: #606266; + } + + .el-checkbox__inner { + background-color: #f9c588; + border-color: #f9c588; + } + } }