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

perf: 优化评价记录报表

parent 1a867041
<template>
<div class="h-full w-full flex flex-col">
<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>
</div>
<div class="reportforms-out-box">
......@@ -30,6 +30,16 @@ export default {
mixins: [common],
data() {
return {
pathList: {
"/home/dataManagement/evaluationRecordReport/windowsEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/departmentEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/matterEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/windowLeft": "暂离记录",
"/home/dataManagement/evaluationRecordReport/staffLeft": "暂离记录",
},
total: 0,
time: [
this.$moment().format("YYYY-MM-DD"),
......@@ -38,6 +48,10 @@ export default {
};
},
computed: {
totalTitle() {
let path = this.$route.path;
return this.pathList[path];
},
tabsList() {
return getItemData(
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