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; + } + } }