|
@@ -47,6 +47,7 @@
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">查询</el-button>
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
<el-button type="warning" plain icon="Download" :disabled="multiple" @click="exportTableData">导出</el-button>
|
|
|
+ <el-button type="primary" icon="Help" @click="handleShowAnalysis">统计分析</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
@@ -66,7 +67,7 @@
|
|
|
<el-table-column label="截止填报时间" align="center" prop="end_time" />
|
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
|
<template #default="scope">
|
|
|
- {{ scope.row.status === 1 ? '禁用' : scope.row.status === 0 ? "在用" : "废止" }}
|
|
|
+ {{ scope.row.status === 1 ? '禁用' : scope.row.status === 0 ? '在用' : '废止' }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
@@ -87,8 +88,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<FillingAdd v-if="fillingAddState.show" :event-id="fillingAddState.eventId" @close="handleCancel" />
|
|
|
- <fillingIssued v-if="issuedState.show" :id="issuedState.id" @close="handleEditClose" @confirm="handleSure" @refresh="fetchFillList"></fillingIssued>
|
|
|
+ <fillingIssued v-if="issuedState.show" :id="issuedState.id" @close="handleEditClose" @confirm="handleSure" @refresh="fetchFillList" />
|
|
|
<TableDetails v-if="tableDetailsState.show" :event-id="tableDetailsState.eventId" @close="handleCancel" />
|
|
|
+ <StatisticalAnalysis v-model="showAnalysis" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -104,6 +106,7 @@ import { deepClone } from '@/utils';
|
|
|
import { addDateRange2, parseTime } from '@/utils/ruoyi';
|
|
|
import { fillList } from '@/api/dataFilling/datafilling';
|
|
|
import { download2 } from '@/utils/request';
|
|
|
+import StatisticalAnalysis from '@/views/dataFilling/StatisticalAnalysis.vue';
|
|
|
|
|
|
const loading = ref(true);
|
|
|
const showSearch = ref(true);
|
|
@@ -244,10 +247,6 @@ const handleSelectionChange = (selection) => {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
-const handleTimeChange = () => {
|
|
|
- // selectedTimeLabel.value = value ? `${value[0]} 至 ${value[1]}` : '请选择时间';
|
|
|
-};
|
|
|
-
|
|
|
const baseUrl = import.meta.env.VITE_APP_BASE_API;
|
|
|
const exportTableData = () => {
|
|
|
fillingTable(ids.value[0]);
|
|
@@ -263,8 +262,6 @@ const handlePagination = ({ page, limit }) => {
|
|
|
const handleIssue = (row) => {
|
|
|
// issuedState.show = true;
|
|
|
// issuedState.id = row.report_id;
|
|
|
-
|
|
|
-
|
|
|
// 检查是否有report_id
|
|
|
// if (!row.report_id) {
|
|
|
// console.error('报告ID不存在,无法下发');
|
|
@@ -273,11 +270,10 @@ const handleIssue = (row) => {
|
|
|
// // 构造下发请求的URL
|
|
|
// const releaseUrl = `${row.report_id}`;
|
|
|
// 发起下发请求
|
|
|
- fillingRelease(row.report_id)
|
|
|
- .then(() => {
|
|
|
- proxy.$modal.msgSuccess('发布成功');
|
|
|
- fetchFillList();
|
|
|
- })
|
|
|
+ fillingRelease(row.report_id).then(() => {
|
|
|
+ proxy.$modal.msgSuccess('发布成功');
|
|
|
+ fetchFillList();
|
|
|
+ });
|
|
|
};
|
|
|
const handleEditClose = () => {
|
|
|
issuedState.show = false;
|
|
@@ -286,5 +282,10 @@ const handleSure = () => {
|
|
|
issuedState.show = false;
|
|
|
queryParams.value.page = 1;
|
|
|
fetchFillList();
|
|
|
-}
|
|
|
+};
|
|
|
+let showAnalysis = ref(false);
|
|
|
+// 显示统计分析
|
|
|
+const handleShowAnalysis = () => {
|
|
|
+ showAnalysis.value = true;
|
|
|
+};
|
|
|
</script>
|