Commit 253d2036 authored by LiXuyang's avatar LiXuyang

落标检查报告-改

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