|
|
@ -136,9 +136,10 @@ export default { |
|
|
|
url: `/system/process/list`, |
|
|
|
method: "get", |
|
|
|
params: { eventId: this.formData.id }, |
|
|
|
}).then((result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
const rows = result.rows; |
|
|
|
}).then((rows) => { |
|
|
|
console.log('rows',rows) |
|
|
|
// if (result.code != 200) return Message.error(result?.msg); |
|
|
|
// const rows = result.rows; |
|
|
|
this.timeLine1List = []; |
|
|
|
this.timeLine2List = []; |
|
|
|
|
|
|
@ -171,6 +172,28 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
getProcessNode() { |
|
|
|
return request({ |
|
|
|
url: |
|
|
|
`/dc/system/event/getProcessNode/${this.formData.id}`, |
|
|
|
method: "GET", |
|
|
|
}) |
|
|
|
.then((result) => { |
|
|
|
if (result.code != 200) return []; |
|
|
|
// this.timeLine1List = result.data.map((item) => { |
|
|
|
// return { |
|
|
|
// time: item.operationTime, |
|
|
|
// label: item.processNode, |
|
|
|
// isActive: item.status == 1 ? true : false, |
|
|
|
// }; |
|
|
|
// }); |
|
|
|
// this.options = result.data.filter((item) => { |
|
|
|
// item.status == 0; |
|
|
|
// return item; |
|
|
|
// }); |
|
|
|
}) |
|
|
|
.catch((err) => []); |
|
|
|
}, |
|
|
|
onCloseAddNew() { |
|
|
|
this.isShowDialog = false; |
|
|
|
}, |
|
|
|