diff --git a/.env.development b/.env.development index 5aef017..0a6098f 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,4 @@ NODE_ENV=development -VUE_APP_API_BASE_URL=http://pbl.natapp1.cc/jeecg-boot +VUE_APP_API_BASE_URL=http://rcproject.natapp1.cc/jeecg-boot VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview \ No newline at end of file diff --git a/src/views/data/dataCleansing.vue b/src/views/data/dataCleansing.vue index 8c0d079..461d5df 100644 --- a/src/views/data/dataCleansing.vue +++ b/src/views/data/dataCleansing.vue @@ -200,10 +200,12 @@ export default { }); }, getselect() { - dataTypePageList(this.queryParam).then((res) => { + getAction("/dataType/getExistingDataTypes", {}).then((res) => { if (res.success) { - this.dataTypedataSources = res.result.rows || res.result; - this.datatypequeryParam.schemaMass = res.result.rows[0].cnName + this.dataTypedataSources = res.result.result.DATA_CONN_ORIGINAL + if(res.result.result.DATA_CONN_ORIGINAL.length > 0){ + this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_ORIGINAL[0].cnName + } this.getTables(); } else { this.$message.warning(res.message); diff --git a/src/views/data/dataIndexing.vue b/src/views/data/dataIndexing.vue index 832f407..0d43335 100644 --- a/src/views/data/dataIndexing.vue +++ b/src/views/data/dataIndexing.vue @@ -12,28 +12,9 @@ - - - 平台 - - - 编队 - - - 航空兵 - - - 陆战队 - - - 作战 - - - 反潜 - - - 舰炮 + + + {{ d.cnName }} @@ -141,7 +122,8 @@ export default { width: 260, scopedSlots: { customRender: 'action' }, } - ] + ], + dataTypedataSources:[] } }, watch: { @@ -157,9 +139,22 @@ export default { }, created() { - this.getMetaDataTypeTree() + this.getselect(); }, methods: { + 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.queryParam.schemaMass = res.result.result.DATA_CONN_STANDARD[0].cnName + } + this.getMetaDataTypeTree(); + } else { + this.$message.warning(res.message); + } + }); + }, handleAdd(){ if(this.tableParams.schemaMass == null || this.tableParams.tableName == null){ this.$message.warning("请先选择表信息"); diff --git a/src/views/data/dataManage.vue b/src/views/data/dataManage.vue index be5e11f..f11bd14 100644 --- a/src/views/data/dataManage.vue +++ b/src/views/data/dataManage.vue @@ -210,14 +210,16 @@ }); }, getselect(){ - dataTypePageList(this.queryParam).then((res) => { - if (res.success) { - this.dataTypedataSources = res.result.rows||res.result; - this.datatypequeryParam.schemaMass = res.result.rows[0].cnName - this.getTables(); - } else { - this.$message.warning(res.message); + 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 } + this.getTables(); + } else { + this.$message.warning(res.message); + } }); }, getTables(){ diff --git a/src/views/data/dataSearch.vue b/src/views/data/dataSearch.vue index 2d1e406..e530a9a 100644 --- a/src/views/data/dataSearch.vue +++ b/src/views/data/dataSearch.vue @@ -12,28 +12,9 @@ - - - 平台 - - - 编队 - - - 航空兵 - - - 陆战队 - - - 作战 - - - 反潜 - - - 舰炮 + + + {{ d.cnName }} @@ -117,7 +98,8 @@ export default { }, treeDate: [], dataSource: [], - columns: [] + columns: [], + dataTypedataSources:[] } }, watch: { @@ -133,9 +115,22 @@ export default { }, created() { - this.getMetaDataTypeTree() + this.getselect() }, methods: { + 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.queryParam.schemaMass = res.result.result.DATA_CONN_STANDARD[0].cnName + } + this.getMetaDataTypeTree(); + } else { + this.$message.warning(res.message); + } + }); + }, getMetaDataTypeTree() { metaDataTypeTree(this.queryParam).then(res => { if (res.code == 200) { diff --git a/src/views/data/metadata.vue b/src/views/data/metadata.vue index 0aa4171..56c24b3 100644 --- a/src/views/data/metadata.vue +++ b/src/views/data/metadata.vue @@ -12,28 +12,9 @@ - - - 平台 - - - 编队 - - - 航空兵 - - - 陆战队 - - - 作战 - - - 反潜 - - - 舰炮 + + + {{ d.cnName }} @@ -79,6 +60,7 @@