diff --git a/src/views/data/dataCleansing.vue b/src/views/data/dataCleansing.vue
index 2a34e50..1cefc03 100644
--- a/src/views/data/dataCleansing.vue
+++ b/src/views/data/dataCleansing.vue
@@ -28,7 +28,7 @@
-
+
@@ -37,7 +37,7 @@
-
+
@@ -48,7 +48,7 @@
-
+
@@ -57,7 +57,7 @@
-
+
数据清洗整编
@@ -102,6 +102,7 @@ export default {
schemaMass: "",
sourceType: 1
},
+ dataTypeList:[],
cleaningData:{
shipModel:'',
shipNumber:'',
@@ -173,27 +174,6 @@ export default {
openlink(url) {
window.location.href = url;
},
- getDataType() {
- getAction("/dataType/getExistingDataTypes", {}).then((res) => {
- if (res.success) {
- this.existingDataTypes = res.result.result.original
- var ship = Object.keys(this.existingDataTypes)
- ship.forEach((element, index) => {
- this.shipModel.push(element);
- });
- var number = Object.keys(this.existingDataTypes[this.shipModel[0]])
- number.forEach((element, index) => {
- this.shipNumber.push(element);
- });
- this.dataTypeList =this.existingDataTypes[this.shipModel[0]][this.shipNumber[0]]
- this.cleaningData.shipModel = this.shipModel[0]
- this.cleaningData.shipNumber = this.shipNumber[0]
- this.cleaningData.dataType = this.dataTypeList[0].enName
- } else {
- this.$message.warning(res.message);
- }
- });
- },
filterOption(input, option) {
return (
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
@@ -258,16 +238,24 @@ export default {
},
getselect() {
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
- if (res.success) {
- 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);
- }
- });
+ if (res.success) {
+ this.existingDataTypes = res.result.result.original
+ var ship = Object.keys(this.existingDataTypes)
+ ship.forEach((element, index) => {
+ this.shipModel.push(element);
+ });
+ var number = Object.keys(this.existingDataTypes[this.shipModel[0]])
+ number.forEach((element, index) => {
+ this.shipNumber.push(element);
+ });
+ this.dataTypeList =this.existingDataTypes[this.shipModel[0]][this.shipNumber[0]]
+ this.cleaningData.shipModel = this.shipModel[0]
+ this.cleaningData.shipNumber = this.shipNumber[0]
+ this.cleaningData.dataType = this.dataTypeList[0].enName
+ } else {
+ this.$message.warning(res.message);
+ }
+ });
},
getTables() {
getAction("/dataManager/getDataManagerInfo", this.datatypequeryParam).then((res) => {