| | |
| | | HandlerSave(){ |
| | | this.editingRow = null; |
| | | //保存 |
| | | batchUpdateCode(this.tableData).then(res => { |
| | | console.log(res) |
| | | let datas=this.tableData.map(item=> { |
| | | let newitem = Object.assign(item, { |
| | | codeClassifyOid: item.codeclsfid, |
| | | templateOid: this.templateId, |
| | | editInProcess: true, |
| | | data: item |
| | | }); |
| | | return newitem; |
| | | }) |
| | | batchUpdateCode(datas).then(res => { |
| | | if(res.data.data.success){ |
| | | this.$message.success("保存成功"); |
| | | this.$message.success("修改成功"); |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | //表格头渲染 |
| | |
| | | |
| | | } |
| | | if(editAttr.length>0) { |
| | | debugger; |
| | | editAttr=editAttr[0] |
| | | columnItem.edit= 'text';//this.columnType[editAttr.edit] |
| | | if (typeof editAttr.editConfig == "string") { |