Commit 155150ea authored by 罗林杰's avatar 罗林杰

Merge remote-tracking branch 'origin/master'

parents ce09f311 7dc3b64e
...@@ -141,9 +141,9 @@ ...@@ -141,9 +141,9 @@
const { createMessage, createConfirm } = useMessage(); const { createMessage, createConfirm } = useMessage();
const searchInfo = reactive<Recordable>({}); const searchInfo = reactive<Recordable>({});
const searchKey = ref(); const searchKey = ref();
const tabName = ref(); const tabName = ref(treeData[0].name);
const tree = ref(); const tree = ref();
const path = ref(); const path = ref(treeData[0].name);
function handleSelect() { function handleSelect() {
const keys = unref(tree).getSelectedKeys(); const keys = unref(tree).getSelectedKeys();
const node = unref(tree).getSelectedNode(keys[0]); const node = unref(tree).getSelectedNode(keys[0]);
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
function handleDetail(record) { function handleDetail(record) {
push({ push({
path: '/dataStandards/labelDropInspection/labelDetail', path: '/dataStandards/labelDropInspection/labelDetail',
query: record, query: { ...record, ...{ path: path.value + '/' + record.name } },
}); });
} }
/** 列表删除 */ /** 列表删除 */
......
...@@ -123,6 +123,7 @@ export const metadataColumns: BasicColumn[] = [ ...@@ -123,6 +123,7 @@ export const metadataColumns: BasicColumn[] = [
title: '标准', title: '标准',
dataIndex: 'standard', dataIndex: 'standard',
width: 100, width: 100,
slots: { customRender: 'standard' },
}, },
{ {
title: '落标状态', title: '落标状态',
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
</div> </div>
</div> </div>
<a-button type="primary" @click="handleOperation">跳转运维</a-button> <a-button type="primary" @click="handleOperation">跳转运维</a-button>
<a-button type="primary">查看报告</a-button> <a-button type="primary" @click="handleViewReport">查看报告</a-button>
<a-button type="primary" :disabled="disabled" @click="handleSave">保存</a-button> <a-button type="primary" :disabled="disabled" @click="handleSave">保存</a-button>
<a-button type="primary" @click="handleOnline">{{ isOnline ? '下线' : '上线' }}</a-button> <a-button type="primary" @click="handleOnline">{{ isOnline ? '下线' : '上线' }}</a-button>
<a-button type="primary" @click="handleRun">运行</a-button> <a-button type="primary" @click="handleRun">运行</a-button>
...@@ -119,6 +119,9 @@ ...@@ -119,6 +119,9 @@
<div>{{ text }}</div> <div>{{ text }}</div>
<div style="color: #9195a4">{{ record.nameTxt }}</div> <div style="color: #9195a4">{{ record.nameTxt }}</div>
</template> </template>
<template #standard="{ text, record }">
<a>{{ text }}</a>
</template>
<template #check="{ text, record }"> <template #check="{ text, record }">
<Switch :disabled="disabled" v-model:checked="record['check']" /> <Switch :disabled="disabled" v-model:checked="record['check']" />
</template> </template>
...@@ -168,7 +171,7 @@ ...@@ -168,7 +171,7 @@
const RadioGroup = Radio.Group; const RadioGroup = Radio.Group;
const route = useRoute(); const route = useRoute();
const modelName = route.query.name; const modelName = route.query.name;
const path = '落标检查 / admin-个人工作区 / ' + modelName; const path = route.query.path;
const searchInfo = reactive<Recordable>({}); const searchInfo = reactive<Recordable>({});
const infoData = route.query; const infoData = route.query;
const isOnline = ref(false); const isOnline = ref(false);
...@@ -278,6 +281,15 @@ ...@@ -278,6 +281,15 @@
function handleRun() { function handleRun() {
createMessage.success('运行成功!'); createMessage.success('运行成功!');
} }
function handleViewReport() {
router.push({
path: '/dataStandards/labelDropInspection/labelReport',
query: {
name: modelName,
path: path,
},
});
}
onMounted(() => { onMounted(() => {
setFieldsValue({ ...detailFormData, ...infoData }); setFieldsValue({ ...detailFormData, ...infoData });
}); });
......
<template> <template>
<PageWrapper :title="modelName" contentBackground headerSticky> <PageWrapper contentBackground headerSticky>
<template #extra> <template #headerContent>
<span>执行批次</span> <div class="flex" style="gap: 10px">
<Select <div class="flex-1 flex" style="gap: 10px">
@change="getTimeDifference()" <LeftOutlined style="font-size: 25px; cursor: pointer" @click="handleBack" />
:options="options" <SearchOutlined style="font-size: 30px; color: #14b43e" />
style="width: 320px" <div>
v-model:value="selectBatch" <div style="font-weight: bolder; font-size: 16px">
/> {{ modelName }}
<a-button>导出报告</a-button> </div>
<div style="color: #b5b9c5">
{{ path }}
</div>
</div>
</div>
<span>执行批次</span>
<Select
@change="getTimeDifference()"
:options="options"
style="width: 320px"
v-model:value="selectBatch"
/>
<a-button>导出报告</a-button>
</div>
</template> </template>
<template #footer> <template #footer>
<Descriptions :column="3"> <Descriptions :column="3">
...@@ -36,15 +50,33 @@ ...@@ -36,15 +50,33 @@
<div> <div>
<span>规则清单</span> <span>规则清单</span>
<BasicTable @register="registerTable" :searchInfo="searchInfo"> <BasicTable @register="registerTable" :searchInfo="searchInfo">
<template #toolbar> <template #headerTop>
<span>规则总量:103</span> <div class="flex">
<CheckCircleOutlined style="color: #25a665" /> <div class="flex-1">
<span>通过:79</span> <Input style="width: 200px" v-model:value="searchKey" placeholder="输入关键字搜索">
<CloseCircleOutlined style="color: #dd4b4c" /> <template #prefix>
<span>未通过:14</span> <SearchOutlined />
<QuestionCircleOutlined style="color: #ee8b16" /> </template>
<span>执行失败:10</span> </Input>
</div>
<div class="flex" style="gap: 10px">
<div>规则总量:103</div>
<div>
<CheckCircleOutlined style="color: #25a665" />
</div>
<div>通过:79</div>
<div>
<CloseCircleOutlined style="color: #dd4b4c" />
</div>
<div>未通过:14</div>
<div>
<QuestionCircleOutlined style="color: #ee8b16" />
</div>
<div>执行失败:10</div>
</div>
</div>
</template> </template>
<template #toolbar> </template>
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'"> <template v-if="column.key === 'action'">
<TableAction <TableAction
...@@ -74,12 +106,14 @@ ...@@ -74,12 +106,14 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { Descriptions, Select } from 'ant-design-vue'; import { Descriptions, Select, Input } from 'ant-design-vue';
import { import {
CheckCircleOutlined, CheckCircleOutlined,
CloseCircleOutlined, CloseCircleOutlined,
QuestionCircleOutlined, QuestionCircleOutlined,
InfoCircleOutlined, InfoCircleOutlined,
LeftOutlined,
SearchOutlined,
} from '@ant-design/icons-vue'; } from '@ant-design/icons-vue';
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { PageWrapper } from '@/components/Page'; import { PageWrapper } from '@/components/Page';
...@@ -92,10 +126,12 @@ ...@@ -92,10 +126,12 @@
reportFormSchema, reportFormSchema,
} from '@/views/dataStandards/labelDropInspection/labelReport/report.data'; } from '@/views/dataStandards/labelDropInspection/labelReport/report.data';
import { reportData } from '@/views/dataStandards/labelDropInspection/labelReport/reportData'; import { reportData } from '@/views/dataStandards/labelDropInspection/labelReport/reportData';
import { router } from '@/router';
type EChartsOption = echarts.EChartsOption; type EChartsOption = echarts.EChartsOption;
const route = useRoute(); const route = useRoute();
const modelName = route.query.name; const modelName = route.query.name;
const path = route.query.path;
const selectBatch = ref('2023/06/07 19:45:59~2023/06/07 19:46:10'); const selectBatch = ref('2023/06/07 19:45:59~2023/06/07 19:46:10');
const timeList = computed(() => selectBatch.value.split('~')); const timeList = computed(() => selectBatch.value.split('~'));
const options = reactive([ const options = reactive([
...@@ -109,6 +145,7 @@ ...@@ -109,6 +145,7 @@
}, },
]); ]);
const runTime = ref('0'); const runTime = ref('0');
const searchKey = ref();
function getTimeDifference() { function getTimeDifference() {
if (!timeList.value) return '0'; if (!timeList.value) return '0';
// 使用 moment 解析带有自定义格式的日期字符串 // 使用 moment 解析带有自定义格式的日期字符串
...@@ -120,10 +157,7 @@ ...@@ -120,10 +157,7 @@
console.log('被调用'); console.log('被调用');
runTime.value = endMoment.diff(startMoment, 'seconds'); runTime.value = endMoment.diff(startMoment, 'seconds');
} }
const [ const [registerTable] = useTable({
registerTable,
{ reload, updateTableDataRecord, getSearchInfo, getForm, getRowSelection },
] = useTable({
title: '', title: '',
// 数据 // 数据
api: async (params) => { api: async (params) => {
...@@ -144,13 +178,7 @@ ...@@ -144,13 +178,7 @@
columns: reportColumn, columns: reportColumn,
showIndexColumn: false, showIndexColumn: false,
striped: false, striped: false,
// 搜索 useSearchForm: false,
formConfig: {
labelWidth: 120,
schemas: reportFormSchema,
autoSubmitOnEnter: true,
},
useSearchForm: true,
showTableSetting: false, showTableSetting: false,
bordered: true, bordered: true,
actionColumn: { actionColumn: {
...@@ -242,10 +270,7 @@ ...@@ -242,10 +270,7 @@
type: 'category', type: 'category',
data: ['及时性', '准确性', '一致性', '规范性', '唯一性', '完整性', '元数据检查'], data: ['及时性', '准确性', '一致性', '规范性', '唯一性', '完整性', '元数据检查'],
}, },
color: [ color: ['#D66868', '#5A88C5'],
'#D66868',
'#5A88C5',
],
series: [ series: [
{ {
name: '问题规则', name: '问题规则',
...@@ -276,6 +301,9 @@ ...@@ -276,6 +301,9 @@
option && myChart.setOption(option); option && myChart.setOption(option);
} }
function handleBack() {
router.go(-1);
}
onMounted(() => { onMounted(() => {
getTimeDifference(); getTimeDifference();
getEcharts1(); getEcharts1();
......
...@@ -154,12 +154,13 @@ ...@@ -154,12 +154,13 @@
descriptionData.value = cardList.filter((item) => item.title === data.title); descriptionData.value = cardList.filter((item) => item.title === data.title);
console.log('descriptionData.value', descriptionData.value); console.log('descriptionData.value', descriptionData.value);
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
setDescProps({ data: descriptionData.value[0] });
}); });
const [ const [
registerApplyForPushNotificationsModal, registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal }, { openModal: openApplyForPushNotificationsModal },
] = useModal(); ] = useModal();
const [register1] = useDescription({ const [register1, { setDescProps }] = useDescription({
bordered: false, bordered: false,
data: descriptionData.value[0], data: descriptionData.value[0],
schema: schema, schema: schema,
......
...@@ -152,14 +152,16 @@ ...@@ -152,14 +152,16 @@
setModalProps({ confirmLoading: true }); setModalProps({ confirmLoading: true });
title.value = data.title; title.value = data.title;
descriptionData.value = cardList.filter((item) => item.title === data.title); descriptionData.value = cardList.filter((item) => item.title === data.title);
console.log('descriptionData.value', descriptionData.value); console.log('data', data)
console.log('descriptionData.value', descriptionData.value[0]);
setModalProps({ confirmLoading: false }); setModalProps({ confirmLoading: false });
setDescProps({ data: descriptionData.value[0] });
}); });
const [ const [
registerApplyForPushNotificationsModal, registerApplyForPushNotificationsModal,
{ openModal: openApplyForPushNotificationsModal }, { openModal: openApplyForPushNotificationsModal },
] = useModal(); ] = useModal();
const [register1] = useDescription({ const [register1, { setDescProps }] = useDescription({
bordered: false, bordered: false,
data: descriptionData.value[0], data: descriptionData.value[0],
schema: schema, schema: schema,
......
...@@ -265,6 +265,10 @@ ...@@ -265,6 +265,10 @@
// console.log(node); // console.log(node);
workSpaceName.value = node.workSpaceName; workSpaceName.value = node.workSpaceName;
if ([101, 102].includes(node.parentId)) { if ([101, 102].includes(node.parentId)) {
openEditModal(
true,
cardList.find((item) => item.title === node.workSpaceName),
);
//跳转详情页 //跳转详情页
} else { } else {
onSearch(); onSearch();
......
...@@ -169,51 +169,6 @@ export const TreeData: any[] = [ ...@@ -169,51 +169,6 @@ export const TreeData: any[] = [
createTime: '2024-10-24 10:04:04', createTime: '2024-10-24 10:04:04',
createBy: 'admin', createBy: 'admin',
}, },
{
delFlag: '0',
flag: '1',
businessId: 206,
parentWorkSpaceName: '党建建设',
workSpaceName: '红色文化展览',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 207,
parentWorkSpaceName: '党建建设',
workSpaceName: '志愿服务活动',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{
delFlag: '0',
flag: '1',
businessId: 208,
parentWorkSpaceName: '党建建设',
workSpaceName: '党员风采展示',
parentId: 101,
'code:': '003',
ancestors: '0,100',
orderNum: 1,
children: [],
selectType: null,
createTime: '2024-10-24 10:04:04',
createBy: 'admin',
},
{ {
delFlag: '0', delFlag: '0',
flag: '1', flag: '1',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment