修改问题56
1.测试通过 2.没有增加数据类型列 3.下拉框只显示中文描述,不要显示带字母SMZGZB
This commit is contained in:
parent
5af899a9c1
commit
d9d35c4e5b
|
@ -2,9 +2,9 @@
|
|||
<a-row :gutter="30">
|
||||
<a-col :md="24" :sm="1" >
|
||||
<div class="table-page-search-wrapper"style="background: #e6e9f1;padding:10px;">
|
||||
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables" style="width: 40%;">
|
||||
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="datatypequeryParam.schemaMass" @change="getTables()" style="width: 40%;">
|
||||
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
|
||||
{{ d.enName }} {{ d.cnName }}
|
||||
{{ d.cnName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
</div>
|
||||
|
@ -45,6 +45,7 @@
|
|||
contentList:[],
|
||||
datatypequeryParam: {
|
||||
schemaMass:"",
|
||||
schemaDesc:"",
|
||||
sourceType:3
|
||||
},
|
||||
queryParam: {
|
||||
|
@ -76,14 +77,12 @@
|
|||
dataIndex: 'tableMessName'
|
||||
},
|
||||
{
|
||||
title: '开始时间',
|
||||
align:"center",
|
||||
dataIndex: 'startTime'
|
||||
},
|
||||
{
|
||||
title: '最后更新时间',
|
||||
align:"center",
|
||||
dataIndex: 'endTime'
|
||||
title: '数据类型',
|
||||
align: "center",
|
||||
dataIndex: 'tableMessName',
|
||||
customRender: () => {
|
||||
return this.datatypequeryParam.schemaDesc;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '标签类型',
|
||||
|
@ -118,6 +117,7 @@
|
|||
this.dataTypedataSources = res.result.result.DATA_CONN_SPECIAL
|
||||
if(res.result.result.DATA_CONN_SPECIAL.length > 0){
|
||||
this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_SPECIAL[0].enName
|
||||
this.datatypequeryParam.schemaDesc = res.result.result.DATA_CONN_SPECIAL[0].cnName
|
||||
}
|
||||
this.getTables();
|
||||
} else {
|
||||
|
@ -128,6 +128,11 @@
|
|||
getTables(){
|
||||
getAction("/dataManager/getDataManagerInfo",this.datatypequeryParam).then((res) => {
|
||||
if (res.result) {
|
||||
// 根据 enName 查找对应的 cnName
|
||||
const selectedOption = this.dataTypedataSources.find(
|
||||
(d) => d.enName === this.datatypequeryParam.schemaMass
|
||||
)
|
||||
this.datatypequeryParam.schemaDesc = selectedOption?selectedOption.cnName:""
|
||||
this.dataSource = res.result;
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
|
|
Loading…
Reference in New Issue
Block a user