| | |
| | | deviceStr: null, |
| | | product:null, |
| | | childrenData: [], |
| | | typedata:null, |
| | | num:null, |
| | | } |
| | | }, |
| | | created(){ |
| | | this.tableData = this.formData |
| | | console.log("============",this.tableData) |
| | | this.initData() |
| | | // this.initProjectList(this.projectList) |
| | | }, |
| | | methods:{ |
| | | initData(){ |
| | | this.deviceStr = this.tableData.projectName |
| | | this.product = this.tableData.material |
| | | this.typedata = this.tableData.quantity |
| | | this.num = this.tableData.specs |
| | | }, |
| | | }, |
| | | watch:{ |
| | | formData(newVal){ |
| | | if(newVal){ |
| | | this.projectList = [] |
| | | console.log(newVal) |
| | | this.tableData = newVal |
| | | this.initData() |
| | | // this.initProjectList(this.projectList) |
| | | } |
| | | } |
| | | }, |