问题修改
This commit is contained in:
parent
714f22247b
commit
8858f4f8a5
|
@ -5,7 +5,7 @@
|
|||
<!-- 查询区域 -->
|
||||
<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-option v-for="d in dataTypedataSources" :key="d.cnName">
|
||||
<a-select-option v-for="d in dataTypeList" :key="d.cnName">
|
||||
{{ d.cnName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
@ -100,6 +100,8 @@ export default {
|
|||
websock: {},
|
||||
datatypequeryParam: {
|
||||
schemaMass: "",
|
||||
mdl: "",
|
||||
hn: "",
|
||||
sourceType: 1
|
||||
},
|
||||
dataTypeList:[],
|
||||
|
@ -189,11 +191,16 @@ export default {
|
|||
this.dataTypeList =this.existingDataTypes[value][this.shipNumber[0]]
|
||||
this.cleaningData.shipNumber = this.shipNumber[0]
|
||||
this.cleaningData.dataType = this.dataTypeList[0].enName
|
||||
|
||||
this.datatypequeryParam.mdl = value
|
||||
this.datatypequeryParam.hn = this.shipNumber[0]
|
||||
},
|
||||
changeshipNumber(value) {
|
||||
this.dataTypeList =this.existingDataTypes[this.cleaningData.shipModel][value]
|
||||
this.cleaningData.shipNumber = value
|
||||
this.cleaningData.dataType = this.dataTypeList[0].enName
|
||||
|
||||
this.datatypequeryParam.hn = value
|
||||
},
|
||||
calculateScrollY() {
|
||||
// 获取父容器高度(需减去表格内其他元素的高度,如分页栏)
|
||||
|
@ -252,6 +259,9 @@ export default {
|
|||
this.cleaningData.shipModel = this.shipModel[0]
|
||||
this.cleaningData.shipNumber = this.shipNumber[0]
|
||||
this.cleaningData.dataType = this.dataTypeList[0].enName
|
||||
|
||||
this.datatypequeryParam.mdl = this.shipModel[0]
|
||||
this.datatypequeryParam.hn = this.shipNumber[0]
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
|
|
|
@ -202,9 +202,10 @@
|
|||
getselect(){
|
||||
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
||||
if (res.success) {
|
||||
this.dataTypedataSources = res.result.result.DATA_CONN_STANDARD
|
||||
if(res.result.result.DATA_CONN_STANDARD.length > 0){
|
||||
this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_STANDARD[0].cnName
|
||||
console.log(res)
|
||||
this.dataTypedataSources = res.result.result.standard
|
||||
if(res.result.result.standard.length > 0){
|
||||
this.datatypequeryParam.schemaMass = res.result.result.standard[0].cnName
|
||||
}
|
||||
this.getTables();
|
||||
} else {
|
||||
|
|
|
@ -79,7 +79,7 @@
|
|||
{
|
||||
title: '数据类型',
|
||||
align: "center",
|
||||
dataIndex: 'tableMessName',
|
||||
dataIndex: 'schemaDesc',
|
||||
customRender: () => {
|
||||
return this.datatypequeryParam.schemaDesc;
|
||||
}
|
||||
|
@ -109,10 +109,10 @@
|
|||
getselect(){
|
||||
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
||||
if (res.success) {
|
||||
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.dataTypedataSources = res.result.result.special
|
||||
if(res.result.result.special.length > 0){
|
||||
this.datatypequeryParam.schemaMass = res.result.result.special[0].enName
|
||||
this.datatypequeryParam.schemaDesc = res.result.result.special[0].cnName
|
||||
}
|
||||
this.getTables();
|
||||
} else {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<a-form-item label="数据类型">
|
||||
<a-select placeholder="选择数据类型" option-filter-prop="children" v-model="queryParam.schemaMass"
|
||||
@change="handleTypeChange">
|
||||
<a-select-option v-for="d in dataTypedataSources" :key="d.cnName">
|
||||
<a-select-option v-for="d in dataTypedataSources" :key="d.enName">
|
||||
{{ d.cnName }}
|
||||
</a-select-option>
|
||||
</a-select>
|
||||
|
@ -110,8 +110,9 @@ export default {
|
|||
activeTaskId: null,
|
||||
// 查询条件
|
||||
queryParam: {
|
||||
sourceType: 2,
|
||||
sourceType: 3,
|
||||
schemaMass: null,
|
||||
schemaDesc: null,
|
||||
massKey: null
|
||||
},
|
||||
pagination: {
|
||||
|
@ -124,6 +125,7 @@ export default {
|
|||
onShowSizeChange: (current, pageSize) => (this.pageSize = pageSize)
|
||||
},
|
||||
tableParams: {
|
||||
sourceType: 3,
|
||||
schemaMass: null,
|
||||
tableName: null,
|
||||
startTime: null,
|
||||
|
@ -194,7 +196,8 @@ export default {
|
|||
if (res.success) {
|
||||
this.dataTypedataSources = res.result.result.special
|
||||
if (res.result.result.special.length > 0) {
|
||||
this.queryParam.schemaMass = res.result.result.special[0].cnName
|
||||
this.queryParam.schemaMass = res.result.result.special[0].enName
|
||||
this.queryParam.schemaDesc = res.result.result.special[0].cnName
|
||||
}
|
||||
this.getMetaDataTypeTree();
|
||||
} else {
|
||||
|
@ -234,7 +237,7 @@ export default {
|
|||
this.treeDate.push({
|
||||
key: 'type_' + index,
|
||||
type: 'parentType',
|
||||
title: element,
|
||||
title: this.queryParam.schemaDesc,
|
||||
children: childrenList
|
||||
})
|
||||
});
|
||||
|
@ -242,12 +245,17 @@ export default {
|
|||
})
|
||||
},
|
||||
handleTypeChange(value) {
|
||||
const selectedOption = this.dataTypedataSources.find(
|
||||
(d) => d.enName === this.queryParam.schemaMass
|
||||
)
|
||||
this.queryParam.schemaDesc = selectedOption?selectedOption.cnName:""
|
||||
|
||||
this.queryParam.schemaMass = value
|
||||
this.getMetaDataTypeTree()
|
||||
},
|
||||
onSelect(selectedKeys, info) {
|
||||
if (info.node.dataRef.type && info.node.dataRef.type == 'childern') {
|
||||
this.tableParams.schemaMass = info.node.$parent.dataRef.title
|
||||
this.tableParams.schemaMass = this.queryParam.schemaMass
|
||||
this.tableParams.tableName = info.node.dataRef.key
|
||||
this.getTableDataList()
|
||||
}
|
||||
|
@ -275,7 +283,6 @@ export default {
|
|||
this.$refs.editdataseachForm.initForm(this.tableParams.schemaMass, this.tableParams.tableName, filteredColumn, record);
|
||||
},
|
||||
getTableDataList() {
|
||||
console.log(this.tableParams)
|
||||
if (this.tableParams.schemaMass == null || this.tableParams.tableName == null) {
|
||||
this.$message.warning('必须选择查询的表')
|
||||
return
|
||||
|
|
|
@ -218,20 +218,23 @@ export default {
|
|||
);
|
||||
},
|
||||
changeshipModel(value) {
|
||||
this.queryParam.shipModel = value
|
||||
var number = Object.keys(this.existingDataTypes[value])
|
||||
this.shipNumber = []
|
||||
number.forEach((element, index) => {
|
||||
this.shipNumber.push(element);
|
||||
});
|
||||
this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]]
|
||||
this.queryParam.mdl = this.shipNumber[0]
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.queryParam.shipModel = value
|
||||
var number = Object.keys(this.existingDataTypes[value])
|
||||
this.shipNumber = []
|
||||
number.forEach((element, index) => {
|
||||
this.shipNumber.push(element);
|
||||
});
|
||||
this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]]
|
||||
this.queryParam.mdl = value
|
||||
this.queryParam.hn = this.shipNumber[0]
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.getMetaDataTypeTree()
|
||||
},
|
||||
changeshipNumber(value) {
|
||||
this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value]
|
||||
this.queryParam.mdl = value
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value]
|
||||
this.queryParam.hn = value
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.getMetaDataTypeTree()
|
||||
},
|
||||
getselect() {
|
||||
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
||||
|
@ -246,6 +249,8 @@ export default {
|
|||
this.shipNumber.push(element);
|
||||
});
|
||||
this.dataTypeList = this.existingDataTypes[this.shipModel[0]][this.shipNumber[0]]
|
||||
console.log(this.existingDataTypes)
|
||||
console.log(this.dataTypeList)
|
||||
this.queryParam.mdl = this.shipModel[0]
|
||||
this.queryParam.hn = this.shipNumber[0]
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
|
|
|
@ -225,13 +225,16 @@ export default {
|
|||
this.shipNumber.push(element);
|
||||
});
|
||||
this.dataTypeList = this.existingDataTypes[value][this.shipNumber[0]]
|
||||
this.queryParam.mdl = this.shipNumber[0]
|
||||
this.queryParam.mdl = value
|
||||
this.queryParam.hn = this.shipNumber[0]
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.getMetaDataTypeTree()
|
||||
},
|
||||
changeshipNumber(value) {
|
||||
this.dataTypeList = this.existingDataTypes[this.queryParam.shipModel][value]
|
||||
this.queryParam.mdl = value
|
||||
this.queryParam.hn = value
|
||||
this.queryParam.schemaMass = this.dataTypeList[0].cnName
|
||||
this.getMetaDataTypeTree()
|
||||
},
|
||||
getselect() {
|
||||
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user