修复小区背景颜色,巡检点顺序一致,投诉处理按钮

This commit is contained in:
Zy
2026-07-16 11:06:26 +08:00
parent 4efb535730
commit 725bdfa3fe
56 changed files with 1034 additions and 468 deletions

View File

@@ -29,9 +29,14 @@
<el-card class="flex-1" shadow="never">
<template #header>
<el-row :gutter="10">
<el-col :span="1.5">
<el-col :span="5">
<span style="font-size: 1.2rem">周报列表</span>
</el-col>
<el-col :span="14"> </el-col>
<el-col :span="5" style="text-align: right">
<el-button type="warning" @click="exportCurrentPage">导出当前页</el-button>
<el-button type="warning" @click="exportAll">导出所有</el-button>
</el-col>
</el-row>
</template>
@@ -50,7 +55,7 @@
</template>
<script setup name="Item" lang="ts">
import { listItem, type Request } from '@/api/system/Inspection/index';
import { listItem } from '@/api/system/Inspection';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -61,12 +66,13 @@ const total = ref(0);
const queryFormRef = ref<ElFormInstance>();
const data = reactive<{
queryParams: Request;
}>({
const data = reactive({
queryParams: {
pageNum: 1,
pageSize: 10,
statDate: '',
queryDateBegin: '',
queryDateEnd: '',
dataType: '2' // 1 日报 2 周报 3 月报
}
});
@@ -76,6 +82,8 @@ const { queryParams } = toRefs(data);
/** 查询巡检项目列表 */
const getList = async () => {
queryParams.value.statDate = starDate.value.join('-');
queryParams.value.queryDateBegin = starDate.value[0];
queryParams.value.queryDateEnd = starDate.value[1];
loading.value = true;
listItem(queryParams.value)
.then((res) => {
@@ -99,7 +107,25 @@ const resetQuery = () => {
starDate.value = [];
handleQuery();
};
/** 导出当前页数据 */
const exportCurrentPage = () => {
proxy?.download(
'/inspection/data/export/page',
{
...queryParams.value
},
`巡检周报_${new Date().toLocaleString()}.xlsx`
);
};
const exportAll = () => {
proxy?.download(
'/inspection/data/export',
{
...queryParams.value
},
`巡检周报_${new Date().toLocaleString()}.xlsx`
);
};
onMounted(() => {
getList();
});