Commit 466e5a69 authored by “yiyousong”'s avatar “yiyousong”

perf: 优化

parent fe416c54
<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]" v-if="isShow">评价次数{{ 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">
...@@ -45,15 +45,18 @@ export default { ...@@ -45,15 +45,18 @@ export default {
"evaluationRecordReport" "evaluationRecordReport"
); );
}, },
isShow(){ isShow() {
let val = this.$route.path let val = this.$route.path;
if ((val=='/home/dataManagement/evaluationRecordReport/windowLeft')||(val=='/home/dataManagement/evaluationRecordReport/staffLeft')) { if (
return false val == "/home/dataManagement/evaluationRecordReport/windowLeft" ||
}else{ val == "/home/dataManagement/evaluationRecordReport/staffLeft"
return true ) {
} return false;
} else {
return true;
} }
}, },
},
mounted() {}, mounted() {},
methods: { methods: {
changeRouter(path) { changeRouter(path) {
...@@ -68,6 +71,4 @@ export default { ...@@ -68,6 +71,4 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
</style>
<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]">{{ title }}{{ 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,11 @@ export default { ...@@ -30,6 +30,11 @@ export default {
mixins: [common], mixins: [common],
data() { data() {
return { return {
pathList: {
"/home/dataManagement/pickUp/pickUpRecord": "取件记录",
"/home/dataManagement/pickUp/depositRecord": "存件记录",
"/home/dataManagement/pickUp/otherRecord": "其他记录",
},
total: 0, total: 0,
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
...@@ -38,16 +43,9 @@ export default { ...@@ -38,16 +43,9 @@ export default {
}; };
}, },
computed: { computed: {
title() { totalTitle() {
if (this.$route.path === "/home/dataManagement/pickUp/pickUpRecord") { let path = this.$route.path;
return "取件记录"; return this.pathList[path];
} else if (
this.$route.path === "/home/dataManagement/pickUp/depositRecord"
) {
return "存件记录";
} else {
return "其他记录";
}
}, },
tabsList() { tabsList() {
return getItemData(this.$router.options.routes, "name", "pickUp"); return getItemData(this.$router.options.routes, "name", "pickUp");
......
<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 <span class="mr-[30px]">{{ totalTitle }}{{ total ?? 0 }}</span>
v-if="
$route.path == '/home/dataManagement/queueCall/queueRecord' ||
$route.path == '/home/dataManagement/queueCall/numAcquisition'
"
class="mr-[30px]"
>取号次数:{{ total ?? 0 }}</span
>
<span
v-if="$route.path == '/home/dataManagement/queueCall/callRecord'"
class="mr-[30px]"
>呼叫次数:{{ 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">
...@@ -51,6 +39,11 @@ export default { ...@@ -51,6 +39,11 @@ export default {
mixins: [common], mixins: [common],
data() { data() {
return { return {
pathList: {
"/home/dataManagement/queueCall/queueRecord": "取号次数",
"/home/dataManagement/queueCall/numAcquisition": "取号次数",
"/home/dataManagement/queueCall/callRecord": "呼叫次数",
},
total: 0, total: 0,
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
...@@ -59,6 +52,10 @@ export default { ...@@ -59,6 +52,10 @@ export default {
}; };
}, },
computed: { computed: {
totalTitle() {
let path = this.$route.path;
return this.pathList[path];
},
tabsList() { tabsList() {
return getItemData(this.$router.options.routes, "name", "queueCall"); return getItemData(this.$router.options.routes, "name", "queueCall");
}, },
......
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