fix -- 修复表单构建保存表单数据错误,导致显示上次的数据。
This commit is contained in:
@@ -183,7 +183,7 @@ export default {
|
|||||||
selectComponents,
|
selectComponents,
|
||||||
layoutComponents,
|
layoutComponents,
|
||||||
labelWidth: 100,
|
labelWidth: 100,
|
||||||
drawingList: drawingDefault,
|
drawingList: [],
|
||||||
drawingData: {},
|
drawingData: {},
|
||||||
activeId: drawingDefault[0].formId,
|
activeId: drawingDefault[0].formId,
|
||||||
drawerVisible: false,
|
drawerVisible: false,
|
||||||
@@ -500,14 +500,13 @@ export default {
|
|||||||
this.formConf = data
|
this.formConf = data
|
||||||
},
|
},
|
||||||
/** 表单基本信息 */
|
/** 表单基本信息 */
|
||||||
handleForm(){
|
handleForm() {
|
||||||
this.formData = {
|
this.formData = {
|
||||||
fields: deepClone(this.drawingList),
|
fields: deepClone(this.drawingList),
|
||||||
...this.formConf
|
|
||||||
}
|
}
|
||||||
this.form.content = JSON.stringify(this.formData);
|
this.form.content = JSON.stringify(this.formData);
|
||||||
this.formOpen = true;
|
this.formOpen = true;
|
||||||
this.formTitle = "添加表单";
|
this.formTitle = "添加表单";
|
||||||
},
|
},
|
||||||
// 表单重置
|
// 表单重置
|
||||||
reset() {
|
reset() {
|
||||||
|
|||||||
Reference in New Issue
Block a user