修改列表显示
This commit is contained in:
parent
6b47334315
commit
6ac0efe235
|
@ -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);
|
});
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
});
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,17 +1,28 @@
|
||||||
<template>
|
<template>
|
||||||
<a-row :gutter="30">
|
<a-row :gutter="30">
|
||||||
<a-col :md="24" :sm="1" >
|
<a-col :md="24" :sm="1" >
|
||||||
<!-- table区域-begin -->
|
<div class="table-page-search-wrapper">
|
||||||
<div style="height:900px;overflow-y:auto;">
|
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaName" @change="getTables" style="width: 40%;">
|
||||||
<a-table
|
<a-select-option v-for="d in dataTypedataSources" :key="d.id">
|
||||||
ref="table"
|
{{ d.cnName }}
|
||||||
size="middle"
|
</a-select-option>
|
||||||
bordered
|
</a-select>
|
||||||
rowKey="id"
|
</div>
|
||||||
:columns="columns"
|
<!-- table区域-begin -->
|
||||||
:dataSource="dataSource">
|
<div style="height:900px;overflow-y:auto;">
|
||||||
|
<a-table
|
||||||
|
ref="table"
|
||||||
|
size="middle"
|
||||||
|
bordered
|
||||||
|
:pagination="false"
|
||||||
|
:scroll="{ y: 800 }"
|
||||||
|
rowKey="id"
|
||||||
|
:columns="columns"
|
||||||
|
:dataSource="dataSource">
|
||||||
|
<!-- :locale="myLocale"-->
|
||||||
|
|
||||||
</a-table>
|
<!-- 字符串超长截取省略号显示-->
|
||||||
|
</a-table>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -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);
|
});
|
||||||
// }
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user