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

perf: 优化报表

parent 589b2850
......@@ -86,7 +86,7 @@
<y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" />
<a-input
allowClear
placeholder="请输入评价人姓名或窗口编号搜索"
placeholder="请输入评价人姓名或部门名称搜索"
v-model="searchForm.info"
/>
<a-button block class="search-btn" icon="search" @click="handleSearch">
......@@ -95,7 +95,7 @@
</a-space>
</div>
</template>
<script>
import YSelect from "@/components/YSelect.vue";
import YRangePicker from "@/components/YRangePicker.vue";
......@@ -200,6 +200,5 @@ export default {
},
};
</script>
<style lang="less" scoped>
</style>
\ No newline at end of file
<style lang="less" scoped></style>
......@@ -86,7 +86,7 @@
<y-range-picker valueFormat="YYYY-MM-DD" v-model="searchForm.time" />
<a-input
allowClear
placeholder="请输入评价人姓名或窗口编号搜索"
placeholder="请输入评价人姓名或排号编号搜索"
v-model="searchForm.info"
/>
<a-button block class="search-btn" icon="search" @click="handleSearch">
......@@ -95,7 +95,7 @@
</a-space>
</div>
</template>
<script>
import YSelect from "@/components/YSelect.vue";
import YRangePicker from "@/components/YRangePicker.vue";
......@@ -200,6 +200,5 @@ export default {
},
};
</script>
<style lang="less" scoped>
</style>
\ No newline at end of file
<style lang="less" scoped></style>
<template>
<div class="h-full w-full flex flex-col">
<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>
</div>
<div class="reportforms-out-box">
......@@ -31,6 +31,16 @@ export default {
data() {
return {
total: 0,
pathList: {
"/home/dataManagement/evaluationRecordReport/windowsEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/departmentEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/matterEvaluation":
"评价次数",
"/home/dataManagement/evaluationRecordReport/windowLeft": "暂离记录",
"/home/dataManagement/evaluationRecordReport/staffLeft": "暂离记录",
},
time: [
this.$moment().format("YYYY-MM-DD"),
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,
......@@ -60,6 +74,4 @@ export default {
};
</script>
<style lang="less" scoped>
</style>
<style lang="less" scoped></style>
<template>
<div class="h-full w-full flex flex-col">
<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>
</div>
<div class="reportforms-out-box">
......@@ -31,6 +31,11 @@ export default {
data() {
return {
total: 0,
pathList: {
"/home/dataManagement/pickUp/pickUpRecord": "取件记录",
"/home/dataManagement/pickUp/depositRecord": "存件记录",
"/home/dataManagement/pickUp/otherRecord": "其他记录",
},
time: [
this.$moment().format("YYYY-MM-DD"),
this.$moment().format("YYYY-MM-DD"),
......@@ -38,16 +43,9 @@ export default {
};
},
computed: {
title() {
if (this.$route.path === "/home/dataManagement/pickUp/pickUpRecord") {
return "取件记录";
} else if (
this.$route.path === "/home/dataManagement/pickUp/depositRecord"
) {
return "存件记录";
} else {
return "其他记录";
}
totalTitle() {
let path = this.$route.path;
return this.pathList[path];
},
tabsList() {
return getItemData(this.$router.options.routes, "name", "pickUp");
......
<template>
<div class="h-full w-full flex flex-col">
<div class="total-info">
<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 class="mr-[30px]">{{ totalTitle }}{{ total ?? 0 }}</span>
<span>统计时间段:{{ time[0] }} - {{ time[1] }}</span>
</div>
<div class="reportforms-out-box">
......@@ -51,6 +39,11 @@ export default {
mixins: [common],
data() {
return {
pathList: {
"/home/dataManagement/queueCall/queueRecord": "取号次数",
"/home/dataManagement/queueCall/numAcquisition": "取号次数",
"/home/dataManagement/queueCall/callRecord": "呼叫次数",
},
total: 0,
time: [
this.$moment().format("YYYY-MM-DD"),
......@@ -59,6 +52,10 @@ export default {
};
},
computed: {
totalTitle() {
let path = this.$route.path;
return this.pathList[path];
},
tabsList() {
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