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

perf: 优化报表

parent 589b2850
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" /> <y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" />
<a-input <a-input
allowClear allowClear
placeholder="请输入评价人姓名或窗口编号搜索" placeholder="请输入评价人姓名或部门名称搜索"
v-model="searchForm.info" v-model="searchForm.info"
/> />
<a-button block class="search-btn" icon="search" @click="handleSearch"> <a-button block class="search-btn" icon="search" @click="handleSearch">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</a-space> </a-space>
</div> </div>
</template> </template>
<script> <script>
import YSelect from "@/components/YSelect.vue"; import YSelect from "@/components/YSelect.vue";
import YRangePicker from "@/components/YRangePicker.vue"; import YRangePicker from "@/components/YRangePicker.vue";
...@@ -200,6 +200,5 @@ export default { ...@@ -200,6 +200,5 @@ export default {
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
</style>
\ No newline at end of file
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
<y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" /> <y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" />
<a-input <a-input
allowClear allowClear
placeholder="请输入评价人姓名或窗口编号搜索" placeholder="请输入评价人姓名或排号编号搜索"
v-model="searchForm.info" v-model="searchForm.info"
/> />
<a-button block class="search-btn" icon="search" @click="handleSearch"> <a-button block class="search-btn" icon="search" @click="handleSearch">
...@@ -95,7 +95,7 @@ ...@@ -95,7 +95,7 @@
</a-space> </a-space>
</div> </div>
</template> </template>
<script> <script>
import YSelect from "@/components/YSelect.vue"; import YSelect from "@/components/YSelect.vue";
import YRangePicker from "@/components/YRangePicker.vue"; import YRangePicker from "@/components/YRangePicker.vue";
...@@ -200,6 +200,5 @@ export default { ...@@ -200,6 +200,5 @@ export default {
}, },
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped></style>
</style>
\ No newline at end of file
<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]">评价次数{{ 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">
...@@ -31,6 +31,16 @@ export default { ...@@ -31,6 +31,16 @@ export default {
data() { data() {
return { return {
total: 0, total: 0,
pathList: {
"/home/dataManagement/evaluationRecordReport/windowsEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/departmentEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/matterEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/windowLeft": "暂离记录",
"/home/dataManagement/evaluationRecordReport/staffLeft": "暂离记录",
},
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
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,
...@@ -60,6 +74,4 @@ export default { ...@@ -60,6 +74,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">
...@@ -31,6 +31,11 @@ export default { ...@@ -31,6 +31,11 @@ export default {
data() { data() {
return { return {
total: 0, total: 0,
pathList: {
"/home/dataManagement/pickUp/pickUpRecord": "取件记录",
"/home/dataManagement/pickUp/depositRecord": "存件记录",
"/home/dataManagement/pickUp/otherRecord": "其他记录",
},
time: [ time: [
this.$moment().format("YYYY-MM-DD"), this.$moment().format("YYYY-MM-DD"),
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