From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001 From: doum <doum> Date: 星期四, 11 九月 2025 18:43:14 +0800 Subject: [PATCH] 最新版本541200007 --- admin/src/views/statistics/platformRecord.vue | 60 +++++++++++++++++++++++++++++++++++++++++++++++------------- 1 files changed, 47 insertions(+), 13 deletions(-) diff --git a/admin/src/views/statistics/platformRecord.vue b/admin/src/views/statistics/platformRecord.vue index 639894a..3901acd 100644 --- a/admin/src/views/statistics/platformRecord.vue +++ b/admin/src/views/statistics/platformRecord.vue @@ -1,7 +1,23 @@ <template> <div class="main_app"> - <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear" /> - <el-table :height="tableHeightNew" v-loading="loading" :data="list" stripe> + <QueryForm v-model="filters" :query-form-config="queryFormConfig" @handleQuery="getList(1)" @clear="clear"> + <template #selDate> + <div> + <el-date-picker v-model="filters.beginWorkDateStart" type="date" value-format="yyyy-MM-dd" class="w200" + @change="getList(1)" /> + <el-date-picker v-model="filters.beginWorkDateEnd" type="date" value-format="yyyy-MM-dd" class="w200" + @change="getList(1)" /> + </div> + </template> + <template #fastdate> + <el-radio-group v-model="filters.fastdate" size="small" @input="changeRadio"> + <el-radio-button label="0">褰撳ぉ</el-radio-button> + <el-radio-button label="6">杩�7澶�</el-radio-button> + <el-radio-button label="29">杩�30澶�</el-radio-button> + </el-radio-group> + </template> + </QueryForm> + <el-table :height="tableHeightNew" v-loading="loading" :data="list" stripe> <el-table-column prop="platformName" label="鏈堝彴鍚嶇О" min-width="100" show-overflow-tooltip /> <el-table-column prop="platformGroupName" label="鏈堝彴缁�" min-width="100" show-overflow-tooltip /> <el-table-column prop="carCodeFront" label="杞﹀墠鐗岀収鍙�" min-width="100" show-overflow-tooltip /> @@ -14,6 +30,7 @@ <span>{{ scope.row.billCode || scope.row.contractNum }}</span> </template> </el-table-column> + <el-table-column prop="totalNum" label="鎬讳綔涓氶噺(涓囨敮)" min-width="100" show-overflow-tooltip /> </el-table> <div class="mt20"> <Pagination @size-change="handleSizeChange" @current-change="getList" :pagination="pagination" /> @@ -24,13 +41,13 @@ <script> import Pagination from '@/components/common/Pagination' import QueryForm from '@/components/common/QueryForm' -import BasePage from '@/components/base/BasePage' import dayjs from 'dayjs' import duration from 'dayjs/plugin/duration' import { platformLogPage, getPlatformGroupList } from '@/api' +import BaseComputHeight from '@/components/base/BaseComputHeight' dayjs.extend(duration) export default { - extends: BasePage, + extends: BaseComputHeight, components: { Pagination, QueryForm @@ -43,7 +60,11 @@ page: 1, total: 0 }, - filters: {}, + filters: { + fastdate: 0, + beginWorkDateStart: '', + beginWorkDateEnd: '' + }, list: [], total: 0, queryFormConfig: { @@ -66,20 +87,33 @@ label: '杞︾墝鍙�' }, { + type: 'slot', filed: 'selDate', - type: 'daterange', label: '鏃ユ湡' - } + }, + { + type: 'slot', + filed: 'fastdate', + label: '' + }, ], online: true } } }, created() { - this.getList() + // this.getList() this.getGroupList() + this.changeRadio('0') }, methods: { + changeRadio(day) { + const arr = [dayjs().subtract(day, 'day').format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')] + this.filters.beginWorkDateStart = arr[0] + this.filters.beginWorkDateEnd = arr[1] + this.filters.fastdate = day + this.getList() + }, handleSub() { this.$refs.ruleForm.validate((valid) => { if (valid) { @@ -101,12 +135,13 @@ getList(page) { const { pagination, filters } = this this.loading = true + platformLogPage({ model: { ...filters, queryStatus: '6,7,8', - beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, - beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, + // beginWorkDateStart: filters.selDate && filters.selDate.length > 0 ? filters.selDate[0] : null, + // beginWorkDateEnd: filters.selDate && filters.selDate.length > 0 ? filters.selDate[1] : null, }, sorts: [{ direction: 'DESC', property: 'param1' }], capacity: pagination.pageSize, @@ -139,15 +174,14 @@ }, handleSizeChange(capacity) { this.pagination.pageSize = capacity - this.getList() + this.getList(1) } } } </script> <style scoped> -::v-deep .el-table{ +::v-deep .el-table { margin-bottom: 60px; } - </style> -- Gitblit v1.9.3