| | |
| | | }, |
| | | maintenanceCategory: 'POINT_INSPECTION', |
| | | standardId:"", |
| | | standardType:false, |
| | | detail: { |
| | | loading: false, |
| | | dataSource: [], |
| | |
| | | this.detail.dataSource = []; |
| | | this.visible = true |
| | | this.editable = false |
| | | this.standardType=false; |
| | | }, |
| | | edit(record) { |
| | | console.log(record) |
| | | this.model = Object.assign({}, record) |
| | | this.standardId=record.standardId |
| | | this.standardType=true; |
| | | this.visible = true |
| | | this.editable = true |
| | | this.detail.dataSource = [] |
| | |
| | | this.model.standardName = selectObj.standardName |
| | | this.model.maintenancePeriod=selectObj.maintenancePeriod |
| | | this.model.standardCode=selectObj.standardCode |
| | | if (this.standardId===undefined || this.standardId==="") { |
| | | if (!this.standardType) { |
| | | this.standardId=selectObj.id |
| | | this.loadDetail(selectObj.id) |
| | | } |
| | |
| | | getAction(this.url.detail, { standardId: standardId }).then(res => { |
| | | if (res.success) { |
| | | this.detail.dataSource = [...res.result] |
| | | this.standardId=undefined; |
| | | this.standardType=false; |
| | | } |
| | | }) |
| | | } |