| | |
| | | const list = res.data.map((item) => { |
| | | return { |
| | | ...item, |
| | | from: item.fromLocation.name, |
| | | to: item.toLocation.name |
| | | from: item.location.jointName, |
| | | to: item.location.jointName |
| | | } |
| | | }) |
| | | this.tableList.tableInfomation = list || [] |
| | |
| | | this.editConfig.visible = true |
| | | this.editConfig.title = val |
| | | this.editConfig.operationTypeId = this.params.id |
| | | this.editConfig.code = this.params.code |
| | | row.details.map((item)=>{ |
| | | item.fromLocationId=item.fromLocation.jointName |
| | | item.toLocationId=item.toLocation.jointName |
| | | }) |
| | | row.location={ |
| | | value:row.location.id||row.location.value, |
| | | label:row.location.jointName||row.location.label |
| | | } |
| | | row.toLocation={ |
| | | value:row.toLocation.id||row.toLocation.value, |
| | | label:row.toLocation.jointName||row.toLocation.label |
| | | } |
| | | row.locationID=row.location.jointName |
| | | row.locationId=row.location.value |
| | | |
| | | // row.tolocationId=row.tolocation.value |
| | | this.editConfig.infomation = { ...row } |
| | | }, |
| | | // 新建 |
| | |
| | | this.addName = this.params.name |
| | | this.editConfig.operationTypeId = this.params.id |
| | | this.editConfig.code = this.params.code |
| | | this.editConfig.infomation = {} |
| | | this.editConfig.infomation = { |
| | | // location:{jointName:""} |
| | | } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 状态 |