修改列表显示

This commit is contained in:
RenCheng 2025-03-08 17:12:10 +08:00
parent 6b47334315
commit 6ac0efe235
4 changed files with 80 additions and 177 deletions

View File

@ -3,8 +3,8 @@
<a-col :md="12" :sm="1" > <a-col :md="12" :sm="1" >
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="queryParam.datatype" @change="getTables" style="width: 40%;"> <a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.id"> <a-select-option v-for="d in dataTypedataSources" :key="d.enName">
{{ d.cnName }} {{ d.cnName }}
</a-select-option> </a-select-option>
</a-select> </a-select>
@ -66,55 +66,16 @@
contentList:[], contentList:[],
percent:0, percent:0,
websock:{}, websock:{},
datatypequeryParam: {
schemaName:"",
sourceType:1
},
queryParam: { queryParam: {
datatype:"",
pageNum :1, pageNum :1,
pageSize:9999999, pageSize:9999999,
}, },
dataTypedataSources: [], dataTypedataSources: [],
dataSource:[ dataSource:[
{
tableName:"LA_DATA_TABLE_0001",
data1:"舰艇综合导航信息II",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"侦察预警、指挥控制",
},
{
tableName:"LA_DATA_TABLE_0002",
data1:"动力报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"指挥控制",
},
{
tableName:"LA_DATA_TABLE_0003",
data1:"电测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"支援保障",
},
{
tableName:"LA_DATA_TABLE_0004",
data1:"损管测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"支援保障",
},
{
tableName:"LA_DATA_TABLE_0005",
data1:"舰炮测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"装备运行状态",
},
{
tableName:"LA_DATA_TABLE_0006",
data1:"反潜测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"装备运行状态",
},
], ],
columns: [ columns: [
{ {
@ -210,22 +171,21 @@
dataTypePageList(this.queryParam).then((res) => { dataTypePageList(this.queryParam).then((res) => {
if (res.success) { if (res.success) {
this.dataTypedataSources = res.result.rows||res.result; this.dataTypedataSources = res.result.rows||res.result;
this.queryParam.datatype = res.result.rows[0].cnName this.queryParam.schemaName = res.result.rows[0].enName
this.getTables();
} else { } else {
this.$message.warning(res.message); this.$message.warning(res.message);
} }
}); });
}, },
getTables(){ getTables(){
// datasyncgetTableInfo().then((res) => { getAction("/dataManager/getDataManagerInfo",datatypequeryParam).then((res) => {
// if (res.result) { if (res.result) {
// this.confirmLoading = false; this.dataSource = res.result;
// this.dataSource = res.result; } else {
// this.models = 2; this.$message.warning(res.message);
// } else { }
// this.$message.warning(res.message); });
// }
// });
}, },
} }
} }

View File

@ -3,7 +3,7 @@
<a-col :md="12" :sm="1" > <a-col :md="12" :sm="1" >
<!-- 查询区域 --> <!-- 查询区域 -->
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="queryParam.datatype" @change="getTables" style="width: 40%;"> <a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.id"> <a-select-option v-for="d in dataTypedataSources" :key="d.id">
{{ d.cnName }} {{ d.cnName }}
</a-select-option> </a-select-option>
@ -72,55 +72,16 @@
contentList:[], contentList:[],
percent:0, percent:0,
websock:{}, websock:{},
datatypequeryParam: {
schemaName:"",
sourceType:2
},
queryParam: { queryParam: {
datatype:"",
pageNum :1, pageNum :1,
pageSize:9999999, pageSize:9999999,
}, },
dataTypedataSources: [], dataTypedataSources: [],
dataSource:[ dataSource:[
{
tableName:"LA_DATA_TABLE_0001",
data1:"舰艇综合导航信息II",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"侦察预警、指挥控制",
},
{
tableName:"LA_DATA_TABLE_0002",
data1:"动力报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"指挥控制",
},
{
tableName:"LA_DATA_TABLE_0003",
data1:"电测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"支援保障",
},
{
tableName:"LA_DATA_TABLE_0004",
data1:"损管测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"支援保障",
},
{
tableName:"LA_DATA_TABLE_0005",
data1:"舰炮测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"装备运行状态",
},
{
tableName:"LA_DATA_TABLE_0006",
data1:"反潜测试报文",
data2:"2024-03-06 10:30:26",
data3:"2024-03-06 15:30:26",
data4:"装备运行状态",
},
], ],
columns: [ columns: [
{ {
@ -218,22 +179,21 @@
dataTypePageList(this.queryParam).then((res) => { dataTypePageList(this.queryParam).then((res) => {
if (res.success) { if (res.success) {
this.dataTypedataSources = res.result.rows||res.result; this.dataTypedataSources = res.result.rows||res.result;
this.queryParam.datatype = res.result.rows[0].cnName this.queryParam.schemaName = res.result.rows[0].enName
this.getTables();
} else { } else {
this.$message.warning(res.message); this.$message.warning(res.message);
} }
}); });
}, },
getTables(){ getTables(){
// datasyncgetTableInfo().then((res) => { getAction("/dataManager/getDataManagerInfo",datatypequeryParam).then((res) => {
// if (res.result) { if (res.result) {
// this.confirmLoading = false; this.dataSource = res.result;
// this.dataSource = res.result; } else {
// this.models = 2; this.$message.warning(res.message);
// } else { }
// this.$message.warning(res.message); });
// }
// });
}, },
} }
} }

View File

@ -1,16 +1,27 @@
<template> <template>
<a-row :gutter="30"> <a-row :gutter="30">
<a-col :md="24" :sm="1" > <a-col :md="24" :sm="1" >
<div class="table-page-search-wrapper">
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
<a-select-option v-for="d in dataTypedataSources" :key="d.id">
{{ d.cnName }}
</a-select-option>
</a-select>
</div>
<!-- table区域-begin --> <!-- table区域-begin -->
<div style="height:900px;overflow-y:auto;"> <div style="height:900px;overflow-y:auto;">
<a-table <a-table
ref="table" ref="table"
size="middle" size="middle"
bordered bordered
:pagination="false"
:scroll="{ y: 800 }"
rowKey="id" rowKey="id"
:columns="columns" :columns="columns"
:dataSource="dataSource"> :dataSource="dataSource">
<!-- :locale="myLocale"-->
<!-- 字符串超长截取省略号显示-->
</a-table> </a-table>
</div> </div>
</a-col> </a-col>
@ -28,53 +39,16 @@
return { return {
description: '专题库', description: '专题库',
contentList:[], contentList:[],
datatypequeryParam: {
schemaName:"",
sourceType:3
},
queryParam: { queryParam: {
pageNum :1, pageNum :1,
pageSize:20 pageSize:9999999,
}, },
dataTypedataSources: [],
dataSource:[ 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",
},
], ],
columns: [ columns: [
{ {
@ -116,7 +90,7 @@
} }
}, },
mounted() { mounted() {
this.getTables() this.getselect()
}, },
computed: { computed: {
}, },
@ -126,16 +100,25 @@
}, },
methods: { methods: {
getselect(){
dataTypePageList(this.queryParam).then((res) => {
if (res.success) {
this.dataTypedataSources = res.result.rows||res.result;
this.queryParam.schemaName = res.result.rows[0].enName
this.getTables();
} else {
this.$message.warning(res.message);
}
});
},
getTables(){ getTables(){
// datasyncgetTableInfo().then((res) => { getAction("/dataManager/getDataManagerInfo",datatypequeryParam).then((res) => {
// if (res.result) { if (res.result) {
// this.confirmLoading = false; this.dataSource = res.result;
// this.dataSource = res.result; } else {
// this.models = 2; this.$message.warning(res.message);
// } else { }
// this.$message.warning(res.message); });
// }
// });
}, },
} }
} }

View File

@ -97,11 +97,11 @@
let multi_depart = loginResult.multi_depart let multi_depart = loginResult.multi_depart
//0: 1: 2: //0: 1: 2:
if(multi_depart==0){ if(multi_depart==0){
this.$notification.warn({ // this.$notification.warn({
message: '提示', // message: '',
description: `您尚未归属部门,请确认账号信息`, // description: `,`,
duration:3 // duration:3
}); // });
this.isMultiDepart = false this.isMultiDepart = false
}else if(multi_depart==2){ }else if(multi_depart==2){
this.visible=true this.visible=true