|
|
|
@ -451,6 +451,9 @@ export default {
|
|
|
|
|
// 更改值
|
|
|
|
|
this.formVisible = false;
|
|
|
|
|
this.subFormVisible = false;
|
|
|
|
|
let Item = JSON.parse(localStorage.getItem('obj'))
|
|
|
|
|
this.subData=Item;
|
|
|
|
|
this.getSubList();
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
// 显示表单
|
|
|
|
@ -484,6 +487,7 @@ export default {
|
|
|
|
|
this.subFromName = formName;
|
|
|
|
|
if (formName === "edit") {
|
|
|
|
|
this.subData = data;
|
|
|
|
|
localStorage.setItem('obj', JSON.stringify(this.subData))
|
|
|
|
|
} else if (formName === "add") {
|
|
|
|
|
this.subData = {};
|
|
|
|
|
this.subData.parentId = data.code;
|
|
|
|
|