Browse Source

feat:[模板管理][update]

ouqian
luojie 1 month ago
parent
commit
91d9cb8c60
1 changed files with 18 additions and 1 deletions
  1. +18
    -1
      src/components/Template/HandleFormItem.vue

+ 18
- 1
src/components/Template/HandleFormItem.vue View File

@ -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) isSame = isEqual(this.oldValue, this.inputValue)
isOldValueEmpty = isValueEmpty(this.oldValue); isOldValueEmpty = isValueEmpty(this.oldValue);
} }
@ -1227,6 +1230,10 @@ export default {
recordValue = `${current.des + (current.newValue || '')}`; recordValue = `${current.des + (current.newValue || '')}`;
isModify = !!current.oldValue; 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 = { const record = {
...baseInfo, ...baseInfo,
@ -1561,6 +1568,16 @@ export default {
.el-checkbox__inner { .el-checkbox__inner {
border-color: #f9c588 !important; border-color: #f9c588 !important;
} }
&.is-checked {
.el-checkbox__label {
color: #606266;
}
.el-checkbox__inner {
background-color: #f9c588;
border-color: #f9c588;
}
}
} }

Loading…
Cancel
Save