fix -- 修复表单构建保存表单数据错误,导致显示上次的数据。

This commit is contained in:
konbai
2022-03-12 00:32:40 +08:00
parent 77850488e4
commit 7e5a02ad41

View File

@@ -183,7 +183,7 @@ export default {
selectComponents,
layoutComponents,
labelWidth: 100,
drawingList: drawingDefault,
drawingList: [],
drawingData: {},
activeId: drawingDefault[0].formId,
drawerVisible: false,
@@ -500,14 +500,13 @@ export default {
this.formConf = data
},
/** 表单基本信息 */
handleForm(){
handleForm() {
this.formData = {
fields: deepClone(this.drawingList),
...this.formConf
}
this.form.content = JSON.stringify(this.formData);
this.formOpen = true;
this.formTitle = "添加表单";
this.form.content = JSON.stringify(this.formData);
this.formOpen = true;
this.formTitle = "添加表单";
},
// 表单重置
reset() {