| | |
| | | }, |
| | | async insertVersion() { |
| | | const resp = await addVersion({ |
| | | specificationsId: this.selectData.id |
| | | specificationsId: this.selectData.id, |
| | | version: this.versionValue |
| | | }); |
| | | if (resp.code === 200) { |
| | | this.initSelect(); |
| | |
| | | this.addTreeFormVisible = false; |
| | | this.getStandardTree(); |
| | | this.getTableByClick(this.selectData, this.versionValue); |
| | | this.addTreeForm=null |
| | | this.addTreeForm.addTypeArr=[] |
| | | }, |
| | | changeCascader(data) { |
| | | this.addTreeForm.addTypeArr = data; |
| | |
| | | }); |
| | | }, |
| | | selectDataList() { |
| | | let i=0 |
| | | this.tableData.forEach((a) => { |
| | | a.id="0"+i |
| | | a.code = "[1]"; |
| | | i++; |
| | | if (a.children != undefined) { |
| | | a.children.forEach((b) => { |
| | | b.code = "[2]"; |
| | | }); |
| | | } |
| | | }); |
| | | console.log(this.tableData); |
| | | }, |
| | | // 表格树全部选中配置 |
| | | // 全选/取消选操作 |