|
@@ -2,10 +2,10 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!-- Tab标签页 -->
|
|
<!-- Tab标签页 -->
|
|
|
<Tabs v-model:activeKey="activeKey" class="common-page-tabs" type="line" @change="handleTabChange">
|
|
<Tabs v-model:activeKey="activeKey" class="common-page-tabs" type="line" @change="handleTabChange">
|
|
|
- <TabPane key="unresolved" tab="未解决">
|
|
|
|
|
|
|
+ <TabPane key="unresolved" tab="实时分析">
|
|
|
<BasicTable style="padding: 0" @register="registerUnresolvedTable">
|
|
<BasicTable style="padding: 0" @register="registerUnresolvedTable">
|
|
|
<template #resetBefore>
|
|
<template #resetBefore>
|
|
|
- <a-button type="primary" class="ml-8px" preIcon="mdi:page-next-outline" @click="handleOpenModal({}, 'add')"> 新增问题 </a-button>
|
|
|
|
|
|
|
+ <!-- <a-button type="primary" class="ml-8px" preIcon="mdi:page-next-outline" @click="handleOpenModal({}, 'add')"> 新增问题 </a-button> -->
|
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:download" @click="handleOpenExportModal('unresolved')"> 导出 </a-button>
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:download" @click="handleOpenExportModal('unresolved')"> 导出 </a-button>
|
|
|
</template>
|
|
</template>
|
|
|
<template #queJson="{ record }">
|
|
<template #queJson="{ record }">
|
|
@@ -18,11 +18,10 @@
|
|
|
</button>
|
|
</button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <template #action="{ record }">
|
|
|
|
|
|
|
+ <!-- <template #action="{ record }">
|
|
|
<button @click="handleOpenModal(record, 'edit')" class="action-btn" title="编辑该问题">
|
|
<button @click="handleOpenModal(record, 'edit')" class="action-btn" title="编辑该问题">
|
|
|
<SvgIcon name="edit" />
|
|
<SvgIcon name="edit" />
|
|
|
</button>
|
|
</button>
|
|
|
- <!-- 删除按钮 -->
|
|
|
|
|
<Popconfirm
|
|
<Popconfirm
|
|
|
title="删除确认"
|
|
title="删除确认"
|
|
|
description="是否确认删除?"
|
|
description="是否确认删除?"
|
|
@@ -52,10 +51,10 @@
|
|
|
<button @click="handleGoToPage(record)" class="action-btn" title="监测详情">
|
|
<button @click="handleGoToPage(record)" class="action-btn" title="监测详情">
|
|
|
<SvgIcon name="database" />
|
|
<SvgIcon name="database" />
|
|
|
</button>
|
|
</button>
|
|
|
- </template>
|
|
|
|
|
|
|
+ </template> -->
|
|
|
</BasicTable>
|
|
</BasicTable>
|
|
|
</TabPane>
|
|
</TabPane>
|
|
|
- <TabPane key="resolved" tab="已解决">
|
|
|
|
|
|
|
+ <TabPane key="resolved" tab="历史数据">
|
|
|
<BasicTable style="padding: 0" @register="registerResolvedTable">
|
|
<BasicTable style="padding: 0" @register="registerResolvedTable">
|
|
|
<template #resetBefore>
|
|
<template #resetBefore>
|
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:download" @click="handleOpenExportModal('resolved')"> 导出 </a-button>
|
|
<a-button type="default" class="ml-8px" preIcon="mdi:download" @click="handleOpenExportModal('resolved')"> 导出 </a-button>
|
|
@@ -121,12 +120,12 @@
|
|
|
import { ref, nextTick, computed, onMounted, reactive } from 'vue';
|
|
import { ref, nextTick, computed, onMounted, reactive } from 'vue';
|
|
|
import { BasicTable } from '/@/components/Table';
|
|
import { BasicTable } from '/@/components/Table';
|
|
|
import { useModal } from '/@/components/Modal';
|
|
import { useModal } from '/@/components/Modal';
|
|
|
- import { Tabs, TabPane, Popconfirm, message, Modal, DatePicker } from 'ant-design-vue';
|
|
|
|
|
|
|
+ import { Tabs, TabPane, message, Modal, DatePicker } from 'ant-design-vue';
|
|
|
import type { FormInstance } from 'ant-design-vue/es/form';
|
|
import type { FormInstance } from 'ant-design-vue/es/form';
|
|
|
import DataQualityModal from './components/DataQualityModal.vue';
|
|
import DataQualityModal from './components/DataQualityModal.vue';
|
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
import { SvgIcon } from '/@/components/Icon';
|
|
|
- import { columns, searchFormSchema, exportFormSchema } from './dataQuality.data';
|
|
|
|
|
- import { getDataQuaQueList, addDataQuaQue, deleteDataQuaQue, editDataQuaQue } from '../basicInfo.api';
|
|
|
|
|
|
|
+ import { columns, searchFormSchema, exportFormSchema, historyColumns, historySearchFormSchema } from './dataQuality.data';
|
|
|
|
|
+ import { getDataQuaQueList, addDataQuaQue, deleteDataQuaQue, editDataQuaQue, getMineDataQualityHistory } from '../basicInfo.api';
|
|
|
import { findNode } from '/@/utils/helper/treeHelper';
|
|
import { findNode } from '/@/utils/helper/treeHelper';
|
|
|
import { useMineDepartmentStore } from '/@/store/modules/mine';
|
|
import { useMineDepartmentStore } from '/@/store/modules/mine';
|
|
|
// import { getDictItemsByCode } from '/@/utils/dict';
|
|
// import { getDictItemsByCode } from '/@/utils/dict';
|
|
@@ -198,15 +197,20 @@
|
|
|
indexColumnProps: {
|
|
indexColumnProps: {
|
|
|
title: '序号',
|
|
title: '序号',
|
|
|
},
|
|
},
|
|
|
- actionColumn: {
|
|
|
|
|
- width: 200,
|
|
|
|
|
- title: '操作',
|
|
|
|
|
- dataIndex: 'action',
|
|
|
|
|
- slots: { customRender: 'action' },
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ showActionColumn: false,
|
|
|
|
|
+ // actionColumn: {
|
|
|
|
|
+ // width: 200,
|
|
|
|
|
+ // title: '操作',
|
|
|
|
|
+ // dataIndex: 'action',
|
|
|
|
|
+ // slots: { customRender: 'action' },
|
|
|
|
|
+ // },
|
|
|
immediate: false, // 先不立即加载,等状态数据获取后再加载
|
|
immediate: false, // 先不立即加载,等状态数据获取后再加载
|
|
|
},
|
|
},
|
|
|
- exportConfig: exportConfig.value,
|
|
|
|
|
|
|
+ exportConfig: {
|
|
|
|
|
+ url: '/province/mineData/exportMineDataQuality',
|
|
|
|
|
+ name: '数据质量问题反馈',
|
|
|
|
|
+ params: {},
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const [registerUnresolvedTable, { reload: reloadUnresolved }] = tableContextA;
|
|
const [registerUnresolvedTable, { reload: reloadUnresolved }] = tableContextA;
|
|
@@ -215,13 +219,13 @@
|
|
|
const { tableContext: tableContextB, onExportXls: onExportXlsB } = useListPage({
|
|
const { tableContext: tableContextB, onExportXls: onExportXlsB } = useListPage({
|
|
|
tableProps: {
|
|
tableProps: {
|
|
|
api: async (params: any) => {
|
|
api: async (params: any) => {
|
|
|
- return await getDataQuaQueList({ ...params, isOk: true });
|
|
|
|
|
|
|
+ return await getMineDataQualityHistory({ ...params, isOk: true });
|
|
|
},
|
|
},
|
|
|
- columns: columns,
|
|
|
|
|
|
|
+ columns: historyColumns,
|
|
|
formConfig: {
|
|
formConfig: {
|
|
|
autoSearch: true,
|
|
autoSearch: true,
|
|
|
labelWidth: 120,
|
|
labelWidth: 120,
|
|
|
- schemas: searchFormSchema,
|
|
|
|
|
|
|
+ schemas: historySearchFormSchema,
|
|
|
showAdvancedButton: false,
|
|
showAdvancedButton: false,
|
|
|
schemaGroupNames: ['常规查询'],
|
|
schemaGroupNames: ['常规查询'],
|
|
|
},
|
|
},
|
|
@@ -241,7 +245,11 @@
|
|
|
// },
|
|
// },
|
|
|
immediate: false, // 先不立即加载
|
|
immediate: false, // 先不立即加载
|
|
|
},
|
|
},
|
|
|
- exportConfig: exportConfig.value,
|
|
|
|
|
|
|
+ exportConfig: {
|
|
|
|
|
+ url: '/province/mineData/exportMineDataQualityHistory',
|
|
|
|
|
+ name: '数据质量历史数据',
|
|
|
|
|
+ params: {},
|
|
|
|
|
+ },
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
const [registerResolvedTable, { reload: reloadResolved }] = tableContextB;
|
|
const [registerResolvedTable, { reload: reloadResolved }] = tableContextB;
|