Commit 253d2036 authored by LiXuyang's avatar LiXuyang

落标检查报告-改

parent de720ade
...@@ -15,13 +15,15 @@ ...@@ -15,13 +15,15 @@
</div> </div>
</div> </div>
<span>执行批次</span> <span>执行批次</span>
<Select <div>
@change="getTimeDifference()" <Select
:options="options" @change="getTimeDifference()"
style="width: 320px" :options="options"
v-model:value="selectBatch" style="width: 320px"
/> v-model:value="selectBatch"
<a-button>导出报告</a-button> />
</div>
<a-button @click="handleExport">导出报告</a-button>
</div> </div>
</template> </template>
<template #footer> <template #footer>
...@@ -29,13 +31,13 @@ ...@@ -29,13 +31,13 @@
<Descriptions.Item label="任务名称"> <Descriptions.Item label="任务名称">
{{ modelName }} {{ modelName }}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label="开始时间"> <Descriptions.Item label="开始时间">
{{ timeList ? timeList[0] : '' }} {{ timeList ? timeList[0] : '' }}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label="结束时间"> <Descriptions.Item label="结束时间">
{{ timeList ? timeList[1] : '' }} {{ timeList ? timeList[1] : '' }}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label="耗时"> {{ runTime }}s 0ms </Descriptions.Item> <Descriptions.Item label="耗时"> {{ runTime }}s 0ms </Descriptions.Item>
</Descriptions> </Descriptions>
<div style="display: flex"> <div style="display: flex">
<div style="flex: 1"> <div style="flex: 1">
...@@ -77,21 +79,8 @@ ...@@ -77,21 +79,8 @@
</div> </div>
</template> </template>
<template #toolbar> </template> <template #toolbar> </template>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'action'">
<TableAction
v-if="record.result === '未通过'"
:actions="[
{
// 编辑
icon: 'clarity:contract-line',
},
]"
/>
</template>
</template>
<template #standard="{ text, record }"> <template #standard="{ text, record }">
<a>{{ text }}</a> <a @click="handleStandard">{{ text }}</a>
</template> </template>
<template #result="{ text, record }"> <template #result="{ text, record }">
<CheckCircleOutlined v-if="text === '通过'" style="color: #25a665" /> <CheckCircleOutlined v-if="text === '通过'" style="color: #25a665" />
...@@ -127,8 +116,10 @@ ...@@ -127,8 +116,10 @@
} 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'; import { router } from '@/router';
import { useMessage } from '@/hooks/web/useMessage';
type EChartsOption = echarts.EChartsOption; type EChartsOption = echarts.EChartsOption;
const { createMessage } = useMessage();
const route = useRoute(); const route = useRoute();
const modelName = route.query.name; const modelName = route.query.name;
const path = route.query.path; const path = route.query.path;
...@@ -181,12 +172,15 @@ ...@@ -181,12 +172,15 @@
useSearchForm: false, useSearchForm: false,
showTableSetting: false, showTableSetting: false,
bordered: true, bordered: true,
actionColumn: {
width: 60,
title: '操作',
dataIndex: 'action',
},
}); });
function handleStandard() {
router.push({
path: '/dataStandards/basicStandards/detailStandard',
query: {
businessId: 201,
},
});
}
function getEcharts1() { function getEcharts1() {
const chartDom = document.getElementById('echarts1')!; const chartDom = document.getElementById('echarts1')!;
const myChart = echarts.init(chartDom); const myChart = echarts.init(chartDom);
...@@ -304,6 +298,9 @@ ...@@ -304,6 +298,9 @@
function handleBack() { function handleBack() {
router.go(-1); router.go(-1);
} }
function handleExport() {
createMessage.success('导出成功!');
}
onMounted(() => { onMounted(() => {
getTimeDifference(); getTimeDifference();
getEcharts1(); getEcharts1();
......
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