Commit 0dc0b84f by wangzhihui

修复下拉框编辑再删除的问题

1 parent f48df4d7
......@@ -885,6 +885,7 @@ export default {
}
this.formObj[item.name] = ""
this.setEditOptionIndex(name, -1)
this.$emit("handleEditSelectTypeConfirm", data)
} else {
this.setShowOptionInput(name, false)
......
......@@ -471,9 +471,16 @@ export default {
this.getOptionsList(this, "isEntryFormData", false, name)
this.isEntryForm[typeName] =
this.baseData[optionsName].find((item) => {
return item.itemValue == this.isEntryForm[name]
}).itemName || ""
this.filterAttribute(
optionsName,
"itemValue",
"itemName",
this.isEntryForm[name]
) || this.isEntryForm[name]
// this.isEntryForm[typeName] =
// this.baseData[optionsName].find((item) => {
// return item.itemValue == this.isEntryForm[name]
// }).itemName || ""
},
async handleEditSelectTypeConfirm(data) {
let {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!