提交样式修改
This commit is contained in:
parent
80e7359359
commit
4de879b236
|
@ -28,7 +28,7 @@
|
||||||
<div class="table-page-search-wrapper" style="padding:10px;">
|
<div class="table-page-search-wrapper" style="padding:10px;">
|
||||||
<a-form layout="inline">
|
<a-form layout="inline">
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="4" :sm="8">
|
<a-col :md="12">
|
||||||
<a-form-item label="型号">
|
<a-form-item label="型号">
|
||||||
<a-select placeholder="选择型号" option-filter-prop="children" show-search :filter-option="filterOption" v-model="cleaningData.shipModel" @change="changeshipModel">
|
<a-select placeholder="选择型号" option-filter-prop="children" show-search :filter-option="filterOption" v-model="cleaningData.shipModel" @change="changeshipModel">
|
||||||
<a-select-option v-for="item in shipModel" :value="item">
|
<a-select-option v-for="item in shipModel" :value="item">
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="4" :sm="8">
|
<a-col :md="12">
|
||||||
<a-form-item label="舷号">
|
<a-form-item label="舷号">
|
||||||
<a-select placeholder="选择舷号" option-filter-prop="children" show-search :filter-option="filterOption" v-model="cleaningData.shipNumber" @change="changeshipNumber">
|
<a-select placeholder="选择舷号" option-filter-prop="children" show-search :filter-option="filterOption" v-model="cleaningData.shipNumber" @change="changeshipNumber">
|
||||||
<a-select-option v-for="item in shipNumber" :value="item">
|
<a-select-option v-for="item in shipNumber" :value="item">
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="24">
|
<a-row :gutter="24">
|
||||||
<a-col :md="6" :sm="8">
|
<a-col :md="12">
|
||||||
<a-form-item label="数据类型">
|
<a-form-item label="数据类型">
|
||||||
<a-select mode="multiple" placeholder="选择数据类型" option-filter-prop="children" v-model="cleaningData.dataType">
|
<a-select mode="multiple" placeholder="选择数据类型" option-filter-prop="children" v-model="cleaningData.dataType">
|
||||||
<a-select-option v-for="item in dataTypeList" :value="item.enName">
|
<a-select-option v-for="item in dataTypeList" :value="item.enName">
|
||||||
|
@ -57,7 +57,7 @@
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :md="5">
|
<a-col :md="12">
|
||||||
<a-button @click="dataAdd" type="primary">数据清洗整编</a-button>
|
<a-button @click="dataAdd" type="primary">数据清洗整编</a-button>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
|
@ -102,6 +102,7 @@ export default {
|
||||||
schemaMass: "",
|
schemaMass: "",
|
||||||
sourceType: 1
|
sourceType: 1
|
||||||
},
|
},
|
||||||
|
dataTypeList:[],
|
||||||
cleaningData:{
|
cleaningData:{
|
||||||
shipModel:'',
|
shipModel:'',
|
||||||
shipNumber:'',
|
shipNumber:'',
|
||||||
|
@ -173,27 +174,6 @@ export default {
|
||||||
openlink(url) {
|
openlink(url) {
|
||||||
window.location.href = 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) {
|
filterOption(input, option) {
|
||||||
return (
|
return (
|
||||||
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
||||||
|
@ -258,16 +238,24 @@ export default {
|
||||||
},
|
},
|
||||||
getselect() {
|
getselect() {
|
||||||
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
getAction("/dataType/getExistingDataTypes", {}).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.dataTypedataSources = res.result.result.DATA_CONN_ORIGINAL
|
this.existingDataTypes = res.result.result.original
|
||||||
if(res.result.result.DATA_CONN_ORIGINAL.length > 0){
|
var ship = Object.keys(this.existingDataTypes)
|
||||||
this.datatypequeryParam.schemaMass = res.result.result.DATA_CONN_ORIGINAL[0].cnName
|
ship.forEach((element, index) => {
|
||||||
}
|
this.shipModel.push(element);
|
||||||
this.getTables();
|
});
|
||||||
} else {
|
var number = Object.keys(this.existingDataTypes[this.shipModel[0]])
|
||||||
this.$message.warning(res.message);
|
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() {
|
getTables() {
|
||||||
getAction("/dataManager/getDataManagerInfo", this.datatypequeryParam).then((res) => {
|
getAction("/dataManager/getDataManagerInfo", this.datatypequeryParam).then((res) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user