LSSE-front/src/views/simulationScene/database/yxjlsjk.vue

69 lines
1.8 KiB
Vue
Raw Normal View History

2025-08-12 18:15:16 +08:00
<template>
<page-header-wrapper>
2025-08-27 16:16:59 +08:00
<Grid>
<a-card class="my-card">
<AntQueryTable
height="100%"
ref="xd-table"
:queryConfig="yxjlTable.queryConfig"
:tableConfig="yxjlTable.tableConfig"
:pageConfig="yxjlTable.pageConfig"
:showTool="yxjlTable.showTool"
2025-08-12 18:15:16 +08:00
>
2025-08-27 16:16:59 +08:00
</AntQueryTable>
</a-card>
</Grid>
2025-08-12 18:15:16 +08:00
</page-header-wrapper>
</template>
<script>
export default {
2025-08-27 16:16:59 +08:00
name: 'Yxjlsjk',
2025-08-12 18:15:16 +08:00
data() {
return {
2025-08-27 16:16:59 +08:00
yxjlTable: {
queryConfig: {
items: [{ label: '想定名称', prop: 'name' }],
2025-08-12 18:15:16 +08:00
},
2025-08-27 16:16:59 +08:00
tableConfig: {
query: (params) =>
this.$http({
url: '/scenarioHistory/list',
method: 'get',
params: params,
}),
columns: [
{ dataIndex: 'serial' },
{ title: '#', align: 'center', dataIndex: 'id', width: 80 },
{ title: '想定名称', align: 'left', dataIndex: 'name', ellipsis: true, width: 'auto' },
{ title: '作者', dataIndex: 'author', align: 'left', width: 'auto' },
{
title: '运行状态',
dataIndex: 'finalStatus',
customRender: (t) => ({ 1: '中止', 2: '推演结束' }[t]),
align: 'center',
},
{
title: '开始时间',
dataIndex: 'scenarioStartRunTime',
customRender: (t) => t?.replace('T', ' '),
align: 'center',
},
{
title: '结束时间',
dataIndex: 'scenarioEndRunTime',
customRender: (t) => t?.replace('T', ' '),
align: 'center',
},
],
2025-08-12 18:15:16 +08:00
},
2025-08-27 16:16:59 +08:00
pageConfig: true,
showTool: false,
2025-08-12 18:15:16 +08:00
},
}
},
}
</script>
<style lang="less" scoped></style>