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>
<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() {
return {
height: 200,
@ -68,6 +68,7 @@
finishStartDate: '',
finishEndDate: '',
status: '',
ipAddress: this.$route.query.ip
},
//
columnList: [
@ -228,7 +229,7 @@
})
},
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'
}
if (row.status == '未受理') {
@ -284,18 +285,19 @@
clearInterval(dataTimer)
clearInterval(domTimer)
}
}
}
</script>
<style>
.mod-config .not-processing {
.mod-config .not-processing {
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>

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

@ -271,7 +271,7 @@
'status': this.dataForm.status,
'finalStatus': this.dataForm.finalStatus,
'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,
'site': this.$store.state.user.site,
'taskHeader': this.dataForm.taskHeader,

Loading…
Cancel
Save