|
@@ -730,11 +730,26 @@ export default {
|
|
|
updateEdbListData(arr){
|
|
|
if(this.computedType===0){
|
|
|
this.edbAxis=arr[0].IsAxis
|
|
|
+ // 更新指标名称
|
|
|
+ this.searchOptions.forEach(i => {
|
|
|
+ if(i.EdbInfoId === this.edbInfoId){
|
|
|
+ if(this.$i18nt.locale === 'zh'){
|
|
|
+ i.EdbName=arr[0].EdbAliasName
|
|
|
+ }else{
|
|
|
+ i.EdbNameEn=arr[0].EdbAliasName
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
}else{
|
|
|
this.edbList.forEach(item => {
|
|
|
arr.forEach(_i=>{
|
|
|
if(_i.EdbInfoId===item.EdbInfoId){
|
|
|
item.IsAxis=_i.IsAxis
|
|
|
+ if(this.$i18nt.locale === 'zh'){
|
|
|
+ item.EdbAliasName=_i.EdbAliasName
|
|
|
+ }else{
|
|
|
+ item.EdbAliasNameEn=_i.EdbAliasName
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
});
|