|
|
@ -26,6 +26,7 @@ |
|
|
|
|
|
|
|
<TimeLine1 :data="timeLine1List" :filterDistance="filterDistance" /> |
|
|
|
<TimeLine2 :data="timeLine2List" style="flex: 1;" /> |
|
|
|
<ElEmpty v-if="!timeLine2List.length" description="暂无数据" /> |
|
|
|
<div class="bottom"> |
|
|
|
<ElSelect placeholder="请选择关键点" /> |
|
|
|
<RadioGroup :options="[{ key: 'input', label: '输入' }, { key: 'upload', label: '上传' }]" value="input" |
|
|
@ -49,11 +50,14 @@ import RadioGroup from '@screen/components/FormConfig/components/RadioGroup/inde |
|
|
|
import TimeLine1 from "@screen/components/TimeLine/TimeLine1/index"; |
|
|
|
import TimeLine2 from "@screen/components/TimeLine/TimeLine2/index"; |
|
|
|
|
|
|
|
import { timeLine1List, timeLine2List } from "./data"; |
|
|
|
import { provideMixin } from "./../../mixin" |
|
|
|
import { timeLine2List } from "./data"; |
|
|
|
import request from "@/utils/request"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'DisposalProcess', |
|
|
|
inject: ["adpScale"], |
|
|
|
mixins: [provideMixin], |
|
|
|
components: { |
|
|
|
Card, |
|
|
|
ButtonGradient, |
|
|
@ -65,7 +69,7 @@ export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
test: null, |
|
|
|
timeLine1List, |
|
|
|
timeLine1List: [], |
|
|
|
// timeLine2List: Array.from({ length: 6 }).map(() => ({ |
|
|
|
// title: "接警记录", |
|
|
|
// time: "2023-12-21 16:35:44", |
|
|
@ -73,7 +77,7 @@ export default { |
|
|
|
// desc: "描述性文字文字文字文字文字文字文字文字描述性文字文字文字文字文字文字文字文字", |
|
|
|
// posts: '淄博发展公司管理员' |
|
|
|
// })), |
|
|
|
timeLine2List, |
|
|
|
timeLine2List: [], |
|
|
|
isFullHeight: false |
|
|
|
} |
|
|
|
}, |
|
|
@ -85,7 +89,48 @@ export default { |
|
|
|
this.isFullHeight = !this.isFullHeight; |
|
|
|
|
|
|
|
this.$emit('fullHeight', 'CrowdnessIndicatorRankings') |
|
|
|
}, |
|
|
|
async detailChange(data) { |
|
|
|
const timelineData = await this.getDetail(data); |
|
|
|
|
|
|
|
let processIdMap = {} |
|
|
|
|
|
|
|
this.timeLine2List = timelineData.map(item => { |
|
|
|
|
|
|
|
processIdMap[item.processId] = new Date(item.operationTime).toLocaleTimeString(); |
|
|
|
|
|
|
|
return { |
|
|
|
// title: "接警记录", |
|
|
|
time: item.operationTime ? new Date(item.operationTime).toLocaleString() : null, |
|
|
|
name: item.operator, |
|
|
|
desc: item.context, |
|
|
|
// posts: '淄博发展公司管理员' |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
this.timeLine1List = data.processConfigList.map((item) => { |
|
|
|
return { |
|
|
|
time: processIdMap[item.nodeNode], |
|
|
|
label: item.processNode, |
|
|
|
isActive: !!processIdMap[item.nodeNode], |
|
|
|
}; |
|
|
|
}); |
|
|
|
}, |
|
|
|
getDetail(data) { |
|
|
|
return request({ |
|
|
|
url: `/system/process/list`, |
|
|
|
method: "GET", |
|
|
|
params: { |
|
|
|
eventId: data.id |
|
|
|
} |
|
|
|
}) |
|
|
|
.then((result) => { |
|
|
|
if (result.code != 200) return []; |
|
|
|
|
|
|
|
return result.rows || [] |
|
|
|
}) |
|
|
|
.catch((err) => []); |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|