| | |
| | | this.visible = true; |
| | | this.editable = false; |
| | | this.upgradeFlag = false; |
| | | this.detail.dataSource = []; |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.editable = true; |
| | | this.upgradeFlag = false; |
| | | this.detail.dataSource = []; |
| | | if(record && record.referenceFile) { |
| | | let obj = JSON.parse(record.referenceFile); |
| | | this.model.fileList = [obj]; |
| | |
| | | this.visible = true; |
| | | this.editable = true; |
| | | this.upgradeFlag = true; |
| | | this.detail.dataSource = []; |
| | | if(record && record.referenceFile) { |
| | | let obj = JSON.parse(record.referenceFile); |
| | | this.model.fileList = [obj]; |