Browse Source

任务报表获取路径参数 2022年11月24日 sxm

master
[li_she] 3 years ago
parent
commit
860f0b1c90
  1. 30
      src/views/modules/taskmanage/taskReport.vue
  2. 2
      src/views/modules/taskmanage/tasklist-add-or-update.vue

30
src/views/modules/taskmanage/taskReport.vue

@ -45,11 +45,11 @@
</template> </template>
<script> <script>
import {getTaskDetailList} from '@/api/taskmanage/tasklist.js'
import {getTaskDetailList} from '@/api/taskmanage/tasklist.js'
let domTimer = '' //
let dataTimer = '' //
export default {
let domTimer = '' //
let dataTimer = '' //
export default {
data() { data() {
return { return {
height: 200, height: 200,
@ -68,6 +68,7 @@
finishStartDate: '', finishStartDate: '',
finishEndDate: '', finishEndDate: '',
status: '', status: '',
ipAddress: this.$route.query.ip
}, },
// //
columnList: [ columnList: [
@ -228,7 +229,7 @@
}) })
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.status == '未受理' && this.dayjs(this.dayjs()).diff( row.createdDate,'minutes')/60>=12) {
if (row.status == '未受理' && this.dayjs(this.dayjs()).diff(row.createdDate, 'minutes') / 60 >= 12) {
return 'finish' return 'finish'
} }
if (row.status == '未受理') { if (row.status == '未受理') {
@ -284,18 +285,19 @@
clearInterval(dataTimer) clearInterval(dataTimer)
clearInterval(domTimer) clearInterval(domTimer)
} }
}
}
</script> </script>
<style> <style>
.mod-config .not-processing {
.mod-config .not-processing {
background-color: #ffff00; background-color: #ffff00;
}
}
.mod-config .processing {
// background-color: #5f0e3f;
}
.mod-config .processing {
/ / background-color: #5f0e3f;
}
.mod-config .finish {
background-color:orangered;
}
.mod-config .finish {
background-color: orangered;
color: #f2f6fc;
}
</style> </style>

2
src/views/modules/taskmanage/tasklist-add-or-update.vue

@ -271,7 +271,7 @@
'status': this.dataForm.status, 'status': this.dataForm.status,
'finalStatus': this.dataForm.finalStatus, 'finalStatus': this.dataForm.finalStatus,
'taskStartDate': this.dataForm.taskStartDate, 'taskStartDate': this.dataForm.taskStartDate,
'createdDate': this.dayjs().format("YYYY-MM-DD HH:mm:ss"),
// 'createdDate': this.dayjs().format("YYYY-MM-DD HH:mm:ss"),
'createdBy': this.$store.state.user.name, 'createdBy': this.$store.state.user.name,
'site': this.$store.state.user.site, 'site': this.$store.state.user.site,
'taskHeader': this.dataForm.taskHeader, 'taskHeader': this.dataForm.taskHeader,

Loading…
Cancel
Save