| | |
| | | initData(){ |
| | | let ii = [] |
| | | let pp = [] |
| | | console.log("<-------------------->"); |
| | | this.deviceStr = this.tableData.projectName |
| | | this.product = this.tableData.material |
| | | this.number = this.tableData.quantity |
| | |
| | | this.material = this.tableData.material |
| | | this.materialCode = this.tableData.materialCode |
| | | this.quantity = this.tableData.quantity |
| | | console.log(this.tableData,"-----------11111"); |
| | | this.tableData.children.forEach(el =>{ |
| | | this.prjdata.push(el) |
| | | el.children.forEach(kl =>{ |
| | |
| | | this.iname = Array.from(new Set(pp)).join(",") |
| | | }, |
| | | initprjdata(list){ |
| | | console.log(list,"uuuuuuuuuuuuuuuuu"); |
| | | const data = { |
| | | eId: '', |
| | | ename: '', |
| | |
| | | formData(newVal){ |
| | | if(newVal){ |
| | | this.prjdata = [] |
| | | console.log("formData变化--",newVal) |
| | | this.tableData = newVal |
| | | this.initData() |
| | | this.initprjdata(this.prjdata) |