|
@@ -12,7 +12,7 @@
|
|
<span>{{$t('Edb.Detail.source')}}</span>
|
|
<span>{{$t('Edb.Detail.source')}}</span>
|
|
<el-select v-model="fromType" placeholder="请选择来源" style="width:240px;margin-left:10px" @change="changeTrade"
|
|
<el-select v-model="fromType" placeholder="请选择来源" style="width:240px;margin-left:10px" @change="changeTrade"
|
|
:disabled="haveResult">
|
|
:disabled="haveResult">
|
|
- <el-option v-for="item in fromArr" :key="item" :label="item" :value="item">
|
|
|
|
|
|
+ <el-option v-for="item in fromArr" :key="item.value" :label="item.label" :value="item.value">
|
|
</el-option>
|
|
</el-option>
|
|
</el-select>
|
|
</el-select>
|
|
<el-select v-model="fromDatabase" placeholder="请选择数据库" style="width:240px;margin-left:10px"
|
|
<el-select v-model="fromDatabase" placeholder="请选择数据库" style="width:240px;margin-left:10px"
|
|
@@ -475,7 +475,10 @@ export default {
|
|
if(res.Ret!==200) return
|
|
if(res.Ret!==200) return
|
|
if(res.Data){
|
|
if(res.Data){
|
|
this.fromArr = res.Data.map(i=>{
|
|
this.fromArr = res.Data.map(i=>{
|
|
- return this.$i18nt.locale==='zh'?i.SourceName:i.SourceNameEn||i.SourceName
|
|
|
|
|
|
+ return {
|
|
|
|
+ label:this.$i18nt.locale==='zh'?i.SourceName:i.SourceNameEn||i.SourceName,
|
|
|
|
+ value:i.SourceName
|
|
|
|
+ }
|
|
})
|
|
})
|
|
this.fromCode = new Map(res.Data.map(i=>{
|
|
this.fromCode = new Map(res.Data.map(i=>{
|
|
return [i.SourceName,i.EdbSourceId]
|
|
return [i.SourceName,i.EdbSourceId]
|