Commit b5c8a587 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化评价记录报表

parent 1a867041
<template> <template>
<div class="h-full w-full flex flex-col"> <div class="h-full w-full flex flex-col">
<div class="total-info"> <div class="total-info">
<span class="mr-[30px]" v-if="isShow">评价次数{{ total || 0 }}</span> <span class="mr-[30px]">{{ totalTitle }}{{ total || 0 }}</span>
<span>统计时间段:{{ time[0] }} - {{ time[1] }}</span> <span>统计时间段:{{ time[0] }} - {{ time[1] }}</span>
</div> </div>
<div class="reportforms-out-box"> <div class="reportforms-out-box">
...@@ -30,6 +30,16 @@ export default { ...@@ -30,6 +30,16 @@ export default {
mixins: [common], mixins: [common],
data() { data() {
return { return {
pathList: {
"/home/dataManagement/evaluationRecordReport/windowsEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/departmentEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/matterEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/windowLeft": "暂离记录",
"/home/dataManagement/evaluationRecordReport/staffLeft": "暂离记录",
},
total: 0, total: 0,
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
...@@ -38,6 +48,10 @@ export default { ...@@ -38,6 +48,10 @@ export default {
}; };
}, },
computed: { computed: {
totalTitle() {
let path = this.$route.path;
return this.pathList[path];
},
tabsList() { tabsList() {
return getItemData( return getItemData(
this.$router.options.routes, this.$router.options.routes,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment