| | |
| | | } |
| | | }else{ |
| | | state.title = '重新上报'; |
| | | state.form = { |
| | | uuid: data.uuid, |
| | | programmeName: '', |
| | | startTime: '', |
| | | endTime: '', |
| | | programmeType: null, |
| | | responsibleDept: '', |
| | | responsiblePerson: '', |
| | | craftName: '', |
| | | seq: '', |
| | | preparation: '', |
| | | programme: '' |
| | | } |
| | | Object.keys(state.form).forEach(key => { |
| | | if (Object.prototype.hasOwnProperty.call(data,key)) { |
| | | state.form[key] = JSON.parse(JSON.stringify(data))[key]; |
| | | } |
| | | }) |
| | | // state.form = { |
| | | // uuid: data.uuid, |
| | | // programmeName: '', |
| | | // startTime: '', |
| | | // endTime: '', |
| | | // programmeType: null, |
| | | // responsibleDept: '', |
| | | // responsiblePerson: '', |
| | | // craftName: '', |
| | | // seq: '', |
| | | // preparation: '', |
| | | // programme: '' |
| | | // } |
| | | } |
| | | }; |
| | | |