-
{{activity.createdTime}} {{'【吹哨】'}}
-
{{activity.createdTime}} {{ '【回应】' }}
-
{{activity.createdTime}} {{activity.progressName}}
-
处理部门: {{activity.handlerDept}}
-
+ v-for="(item, index) in timeLineList"
+ :key="item.id"
+ :color="item.type === 'init' ? 'red' : item.type === 'project' ? '#009688' : '#ffa546'">
+
+
+
+ {{item.type === 'project' ? '项目': item.type === 'issue' ? '议题' : ''}}
+
+
[{{item | formatState}}] {{item.createdTime}}
+
处理部门:{{item.handlerDept}}
+
+
吹哨部门:
+
+
+ {{ csDept.deptName }}
+
+
+
+
处理意见: {{item.advice}}
+
+
![处理图片]()
+
+
@@ -134,13 +153,38 @@ export default {
pageIndex: 1,
limitVal: 10,
total: 0,
- commentsDTOs: []
+ commentsDTOs: [],
+ timeLineList: []
}
},
mounted () {
this.dataForm.id = this.$route.query.id
this.init()
},
+ filters: {
+ formatState (item) {
+ console.log(item)
+ if (item.type === 'project') {
+ if (item.state === '0' && item.itemDeptDTOS.length > 0) {
+ return '吹哨'
+ } else if (item.state === '0' && item.itemDeptDTOS.length === 0) {
+ return '回应'
+ } else if (item.state === '5') {
+ return '关闭'
+ } else if (item.state === '10') {
+ return '结案'
+ }
+ } else if (item.type === 'issue' || item.type === 'init') {
+ if (item.state === '0') {
+ return '审核通过'
+ } else if (item.state === '1') {
+ return '回应'
+ } else if (item.state === '2') {
+ return '关闭'
+ }
+ }
+ }
+ },
methods: {
back () {
this.$parent.init()
@@ -190,6 +234,35 @@ export default {
...this.dataForm,
...res.data
}
+ this.dataForm.handleProgressResultDTOS.forEach((item, index, arr) => {
+ if (index === arr.length - 1) {
+ item.type = 'issue'
+ } else {
+ item.type = 'project'
+ }
+ })
+ this.dataForm.issueProgressResultDTOS.forEach((item, index, arr) => {
+ if (index === arr.length - 1) {
+ item.type = 'init'
+ } else {
+ item.type = 'issue'
+ }
+ })
+ const issueList = this.dataForm.issueProgressResultDTOS.reverse()
+ this.timeLineList = [...this.dataForm.handleProgressResultDTOS, ...issueList]
+ console.log('timelinelist', this.timeLineList)
+ this.$nextTick(() => {
+ this.timeLineList.forEach((item, index) => {
+ const oDiv = document.getElementById(`content${index}`)
+ const oBorder = oDiv.parentNode.parentNode.parentNode.firstChild
+ console.log(111)
+ if (item.type === 'issue') {
+ oBorder.style.borderLeft = '1px solid #ffa546'
+ } else if (item.type === 'project') {
+ oBorder.style.borderLeft = '1px solid #009688'
+ }
+ })
+ })
this.initBmap(this.dataForm.issueLatitude, this.dataForm.issueLongitude)
}).catch(() => {})
},
diff --git a/vue.config.js b/vue.config.js
index 8fd0e44a..4160c529 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -10,8 +10,8 @@ module.exports = {
open: true,
port: 8001,
overlay: {
- errors: true,
- warnings: true
+ errors: false,
+ warnings: false
}
},
chainWebpack: config => {