|
|
@@ -1,56 +1,44 @@
|
|
|
<template>
|
|
|
<div class="data-quality-page">
|
|
|
<!-- 查询表单 -->
|
|
|
- <BasicForm
|
|
|
- @register="registerSearchForm"
|
|
|
- :model="searchModel"
|
|
|
- @finish="handleSearch"
|
|
|
- class="form-part"
|
|
|
- />
|
|
|
+ <BasicForm @register="registerSearchForm" :model="searchModel" @finish="handleSearch" class="form-part" />
|
|
|
|
|
|
<!-- Tab标签页 -->
|
|
|
<Tabs v-model:activeKey="activeKey" type="card" class="mb-4">
|
|
|
<TabPane key="unresolved" tab="未解决">
|
|
|
<div class="add-button">
|
|
|
- <a-button type="primary" preIcon="mdi:page-next-outline" @click="handleOpenModal({}, 'add')" > 新增问题 </a-button>
|
|
|
+ <a-button type="primary" preIcon="mdi:page-next-outline" @click="handleOpenModal({}, 'add')"> 新增问题 </a-button>
|
|
|
</div>
|
|
|
<BasicTable @register="registerUnresolvedTable">
|
|
|
<template #action="{ record }">
|
|
|
- <div class="action-buttons">
|
|
|
- <button @click="handleOpenModal(record, 'edit')" class="action-btn">
|
|
|
- <img src="@/assets/images/basicInfo/dataQuality/icon-edit.svg" class="action-icon" />
|
|
|
- </button>
|
|
|
- <button @click="handleGoToPage(record,'/basicInfo/accessStatistics')" class="action-btn">
|
|
|
- <img src="@/assets/images/basicInfo/dataQuality/icon-delete.svg" class="action-icon" />
|
|
|
- </button>
|
|
|
- <button @click="handleGoToPage(record,'/basicInfo/accessStatistics')" class="action-btn">
|
|
|
- <img src="@/assets/images/basicInfo/dataQuality/icon-resolved.svg" class="action-icon" />
|
|
|
- </button>
|
|
|
- <button @click="handleGoToPage(record,'/basicInfo/accessStatistics')" class="action-btn">
|
|
|
- <img src="@/assets/images/basicInfo/dataQuality/icon-details.svg" class="action-icon" />
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <button @click="handleOpenModal(record, 'edit')" class="action-btn">
|
|
|
+ <SvgIcon name="edit" />
|
|
|
+ </button>
|
|
|
+ <button @click="handleGoToPage(record, '/basicInfo/accessStatistics')" class="action-btn">
|
|
|
+ <SvgIcon name="delete" />
|
|
|
+ </button>
|
|
|
+ <button @click="handleGoToPage(record, '/basicInfo/accessStatistics')" class="action-btn">
|
|
|
+ <SvgIcon name="resolved" />
|
|
|
+ </button>
|
|
|
+ <button @click="handleGoToPage(record, '/basicInfo/accessStatistics')" class="action-btn">
|
|
|
+ <SvgIcon name="details" />
|
|
|
+ </button>
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
</TabPane>
|
|
|
<TabPane key="resolved" tab="已解决">
|
|
|
<BasicTable @register="registerResolvedTable">
|
|
|
<template #action="{ record }">
|
|
|
- <div class="action-buttons">
|
|
|
- <button @click="handleOpenModal(record, 'view')" class="action-btn">
|
|
|
- <img src="@/assets/images/basicInfo/dataQuality/icon-details.svg" class="action-icon" />
|
|
|
- </button>
|
|
|
- </div>
|
|
|
+ <button @click="handleOpenModal(record, 'view')" class="action-btn">
|
|
|
+ <SvgIcon name="details" />
|
|
|
+ </button>
|
|
|
</template>
|
|
|
</BasicTable>
|
|
|
</TabPane>
|
|
|
</Tabs>
|
|
|
|
|
|
<!-- 处理弹框 -->
|
|
|
- <DataQualityModal
|
|
|
- @register="registerModal"
|
|
|
- @success="handleModalSuccess"
|
|
|
- />
|
|
|
+ <DataQualityModal @register="registerModal" @success="handleModalSuccess" />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -62,12 +50,8 @@
|
|
|
import { useModal } from '/@/components/Modal';
|
|
|
import { Tabs, TabPane } from 'ant-design-vue';
|
|
|
import DataQualityModal from './components/DataQualityModal.vue';
|
|
|
- import {
|
|
|
- columns,
|
|
|
- searchFormSchema,
|
|
|
- unresolvedData,
|
|
|
- resolvedData,
|
|
|
- } from './dataQuality.data';
|
|
|
+ import { SvgIcon } from '/@/components/Icon';
|
|
|
+ import { columns, searchFormSchema, unresolvedData, resolvedData } from './dataQuality.data';
|
|
|
|
|
|
// 路由实例
|
|
|
const router = useRouter();
|
|
|
@@ -80,12 +64,12 @@
|
|
|
const originResolved = JSON.parse(JSON.stringify(resolvedData));
|
|
|
|
|
|
// 为每条记录添加查看详情事件
|
|
|
- originUnresolved.forEach(item => {
|
|
|
+ originUnresolved.forEach((item) => {
|
|
|
item.onViewDetail = (record: any) => {
|
|
|
handleOpenModal(record, 'view');
|
|
|
};
|
|
|
});
|
|
|
- originResolved.forEach(item => {
|
|
|
+ originResolved.forEach((item) => {
|
|
|
item.onViewDetail = (record: any) => {
|
|
|
handleOpenModal(record, 'view');
|
|
|
};
|
|
|
@@ -164,7 +148,6 @@
|
|
|
// 刷新表格
|
|
|
reloadUnresolved();
|
|
|
reloadResolved();
|
|
|
-
|
|
|
}
|
|
|
|
|
|
// 打开弹框(处理/查看)函数
|
|
|
@@ -242,4 +225,4 @@
|
|
|
margin-right: 0;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|