|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<Dialog v-model="modelVisible" title="事件详情" width="890px" top="11%"> |
|
|
|
<div class="EventDetail" :style="{ |
|
|
|
height: activeName == '-1' || activeName == '0' ? '380px' : '598px', |
|
|
|
height: activeName == '-1' || activeName == '0' ? '380px' : '698px', |
|
|
|
}"> |
|
|
|
<Form :formList="formList" :dFormData="formData" label-width="100px" /> |
|
|
|
|
|
|
@ -63,6 +63,13 @@ import Button from "@screen/components/Buttons/Button.vue"; |
|
|
|
import request from "@/utils/request"; |
|
|
|
import { Message } from "element-ui"; |
|
|
|
var moment = require("moment"); |
|
|
|
import { |
|
|
|
getProcessNode, |
|
|
|
getProcessList, |
|
|
|
postProcess, |
|
|
|
postCompleteEvent, |
|
|
|
postNoSkipClear, |
|
|
|
} from "@/api/commandDispatch"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "EventDetail", |
|
|
@ -134,12 +141,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
let directionFlg = true; |
|
|
|
|
|
|
|
request({ |
|
|
|
url: `/system/process/list`, |
|
|
|
method: "get", |
|
|
|
params: { eventId: this.formData.id }, |
|
|
|
}).then((rows) => { |
|
|
|
getProcessList(this.formData.id).then((rows) => { |
|
|
|
console.log('rows', rows) |
|
|
|
// if (result.code != 200) return Message.error(result?.msg); |
|
|
|
// const rows = result.rows; |
|
|
@ -147,7 +149,7 @@ export default { |
|
|
|
this.timeLine2List = []; |
|
|
|
|
|
|
|
this.formData?.processConfigList.forEach((it) => { |
|
|
|
const process = rows.find((row) => it.nodeNode == row.processId); |
|
|
|
const process = rows.find((row) => it.nodeNode == row.processId && row.processType === 1); |
|
|
|
|
|
|
|
if (process) { |
|
|
|
this.timeLine1List.push({ |
|
|
@ -155,15 +157,6 @@ export default { |
|
|
|
label: it.processNode, |
|
|
|
isActive: true, |
|
|
|
}); |
|
|
|
this.timeLine2List.push({ |
|
|
|
time: moment(process.operationTime || new Date()).format( |
|
|
|
"yyyy-MM-DD HH:mm:ss" |
|
|
|
), |
|
|
|
name: process.operator, |
|
|
|
desc: process.context, |
|
|
|
posts: "", |
|
|
|
direction: directionFlg ? "left" : "right", |
|
|
|
}); |
|
|
|
directionFlg = !directionFlg; |
|
|
|
} else { |
|
|
|
this.timeLine1List.push({ |
|
|
@ -173,6 +166,20 @@ export default { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
rows.forEach(item =>{ |
|
|
|
this.timeLine2List.push({ |
|
|
|
time: moment(item.operationTime || new Date()).format( |
|
|
|
"yyyy-MM-DD HH:mm:ss" |
|
|
|
), |
|
|
|
name: item.operatorName, |
|
|
|
desc: item.context, |
|
|
|
source: item.source, |
|
|
|
posts: "", |
|
|
|
direction: item.source == 1 ? "right" : "left", |
|
|
|
}); |
|
|
|
}) |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
getProcessNode() { |
|
|
|