IDCDatasync-vue/src/views/data/thematicLibrary.vue

145 lines
3.7 KiB
Vue
Raw Normal View History

2025-03-07 15:44:35 +08:00
<template>
<a-row :gutter="30">
<a-col :md="24" :sm="1" >
<!-- table区域-begin -->
<div style="height:900px;overflow-y:auto;">
<a-table
ref="table"
size="middle"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource">
2025-03-07 15:44:35 +08:00
</a-table>
2025-03-07 15:44:35 +08:00
</div>
</a-col>
</a-row>
</template>
<script>
2025-03-07 15:44:35 +08:00
export default {
name: "thematicLibrary",
components: {
},
data () {
return {
description: '专题库',
contentList:[],
queryParam: {
pageNum :1,
pageSize:20
2025-03-07 15:44:35 +08:00
},
dataSource:[
{
tableName:"LA_DATA_TABLE_0001",
data1:"舰艇综合导航信息II",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"3646135477",
},
{
tableName:"LA_DATA_TABLE_0002",
data1:"动力报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"92547612",
},
{
tableName:"LA_DATA_TABLE_0003",
data1:"电测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"1658432215",
},
{
tableName:"LA_DATA_TABLE_0004",
data1:"损管测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"8535411",
},
{
tableName:"LA_DATA_TABLE_0005",
data1:"舰炮测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"1235744",
},
{
tableName:"LA_DATA_TABLE_0006",
data1:"反潜测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"159748153",
},
2025-03-07 15:44:35 +08:00
],
columns: [
{
title: '#',
dataIndex: '',
key:'id',
width:60,
align:"id",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title: '表名',
align:"center",
dataIndex: 'tableName',
},
{
title: '报文名',
align:"center",
dataIndex: 'data1'
2025-03-07 15:44:35 +08:00
},
{
title: '开始时间',
align:"center",
dataIndex: 'data2'
2025-03-07 15:44:35 +08:00
},
{
title: '最后更新时间',
align:"center",
dataIndex: 'data3'
2025-03-07 15:44:35 +08:00
},
{
title: '数据量',
2025-03-07 15:44:35 +08:00
align:"center",
dataIndex: 'data4'
2025-03-07 15:44:35 +08:00
},
],
}
},
mounted() {
this.getTables()
2025-03-07 15:44:35 +08:00
},
computed: {
},
destroyed: function () {
},
created () {
},
methods: {
getTables(){
// datasyncgetTableInfo().then((res) => {
// if (res.result) {
// this.confirmLoading = false;
// this.dataSource = res.result;
// this.models = 2;
// } else {
// this.$message.warning(res.message);
// }
// });
2025-03-07 15:44:35 +08:00
},
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>