|
@@ -292,8 +292,8 @@
|
|
<el-button
|
|
<el-button
|
|
v-if="isEdbBtnShow('setEn')"
|
|
v-if="isEdbBtnShow('setEn')"
|
|
type="text"
|
|
type="text"
|
|
- @click="openEnNameDia"
|
|
|
|
- >{{$t('Edb.detail_en_btn')}}<!-- 设置英文名称 --></el-button>
|
|
|
|
|
|
+ @click="openLangInfoDia"
|
|
|
|
+ >{{$t('Edb.detail_en_btn')}}<!-- 编辑信息 --></el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="EdbData.Button.InsertNewDataButton&&isEdbBtnShow('newValue')"
|
|
v-if="EdbData.Button.InsertNewDataButton&&isEdbBtnShow('newValue')"
|
|
type="text"
|
|
type="text"
|
|
@@ -1315,7 +1315,7 @@ export default {
|
|
//目录名称可以双击修改 指标不能
|
|
//目录名称可以双击修改 指标不能
|
|
if(!data.EdbCode && this.role === 'admin'&&this.isEdbBtnShow('editCatalog')) {
|
|
if(!data.EdbCode && this.role === 'admin'&&this.isEdbBtnShow('editCatalog')) {
|
|
this.$set(data,'isEdit',true)
|
|
this.$set(data,'isEdit',true)
|
|
- this.new_label = data.ClassifyName;
|
|
|
|
|
|
+ this.new_label = this.currentLang==='en' ? data.ClassifyNameEn : data.ClassifyName;
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$refs.editVal.focus();
|
|
this.$refs.editVal.focus();
|
|
});
|
|
});
|
|
@@ -1325,7 +1325,7 @@ export default {
|
|
changeValue(node, data) {
|
|
changeValue(node, data) {
|
|
if(this.new_label) {
|
|
if(this.new_label) {
|
|
this.$set(data,'isEdit',false)
|
|
this.$set(data,'isEdit',false)
|
|
- this.new_label !== data.ClassifyName && dataBaseInterface.nodeEdit({
|
|
|
|
|
|
+ dataBaseInterface.nodeEdit({
|
|
ClassifyId: data.ClassifyId,
|
|
ClassifyId: data.ClassifyId,
|
|
ClassifyName: this.new_label
|
|
ClassifyName: this.new_label
|
|
}).then(res => {
|
|
}).then(res => {
|
|
@@ -1350,7 +1350,7 @@ export default {
|
|
// 递归节点
|
|
// 递归节点
|
|
getNodeParentData(data,arr){
|
|
getNodeParentData(data,arr){
|
|
if(data.level===0) return
|
|
if(data.level===0) return
|
|
- arr.push({classifyName:data.data.ClassifyName,classifyId:data.data.ClassifyId})
|
|
|
|
|
|
+ arr.push({classifyName:this.currentLang==='en'?data.data.ClassifyNameEn:data.data.ClassifyName,classifyId:data.data.ClassifyId})
|
|
this.getNodeParentData(data.parent,arr)
|
|
this.getNodeParentData(data.parent,arr)
|
|
return arr
|
|
return arr
|
|
},
|
|
},
|
|
@@ -1392,11 +1392,11 @@ export default {
|
|
this.dialogForm = {
|
|
this.dialogForm = {
|
|
parentArr:[],
|
|
parentArr:[],
|
|
level: 0,
|
|
level: 0,
|
|
- levelVal: res.Data.EdbName,
|
|
|
|
|
|
+ levelVal: this.currentLang==='en'?res.Data.EdbNameEn:res.Data.EdbName,
|
|
level_menu:menuArrId||[],
|
|
level_menu:menuArrId||[],
|
|
edbinfo_id: res.Data.EdbInfoId,
|
|
edbinfo_id: res.Data.EdbInfoId,
|
|
frequency:res.Data.Frequency,
|
|
frequency:res.Data.Frequency,
|
|
- unit:res.Data.Unit,
|
|
|
|
|
|
+ unit:this.currentLang==='en'?res.Data.UnitEn:res.Data.Unit,
|
|
isEDB:true
|
|
isEDB:true
|
|
}
|
|
}
|
|
this.isOpenDialog = true;
|
|
this.isOpenDialog = true;
|
|
@@ -1452,7 +1452,7 @@ export default {
|
|
this.dialogForm = {
|
|
this.dialogForm = {
|
|
isEDB:false,
|
|
isEDB:false,
|
|
parentArr:arr,
|
|
parentArr:arr,
|
|
- levelVal: data.ClassifyName||'',
|
|
|
|
|
|
+ levelVal: this.currentLang==='en'?data.ClassifyNameEn:data.ClassifyName,
|
|
classify_id: data.ClassifyId,
|
|
classify_id: data.ClassifyId,
|
|
level: node.level-1
|
|
level: node.level-1
|
|
}
|
|
}
|
|
@@ -1864,14 +1864,14 @@ export default {
|
|
end_date: item.EndDate
|
|
end_date: item.EndDate
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- const { EdbInfoId,CalculateFormula,EdbName,Unit,Frequency,EmptyType,MaxEmptyType,Extra } = res.EdbInfoDetail;
|
|
|
|
|
|
+ const { EdbInfoId,CalculateFormula,EdbName,EdbNameEn,Unit,UnitEn,Frequency,EmptyType,MaxEmptyType,Extra } = res.EdbInfoDetail;
|
|
/* 公式和表单 */
|
|
/* 公式和表单 */
|
|
this.calulateForm = {
|
|
this.calulateForm = {
|
|
edb_id: EdbInfoId,
|
|
edb_id: EdbInfoId,
|
|
formula: CalculateFormula,
|
|
formula: CalculateFormula,
|
|
menu: menuArrId||[],
|
|
menu: menuArrId||[],
|
|
- targetName: EdbName,
|
|
|
|
- unit: Unit,
|
|
|
|
|
|
+ targetName: this.currentLang==='en'?EdbNameEn:EdbName,
|
|
|
|
+ unit: this.currentLang==='en'?UnitEn:Unit,
|
|
frequency: Frequency,
|
|
frequency: Frequency,
|
|
emptyType: EmptyType,
|
|
emptyType: EmptyType,
|
|
maxEmptyType: MaxEmptyType,
|
|
maxEmptyType: MaxEmptyType,
|
|
@@ -1892,9 +1892,9 @@ export default {
|
|
|
|
|
|
let public_params = {
|
|
let public_params = {
|
|
edb_id: dataInfo.EdbInfoId,
|
|
edb_id: dataInfo.EdbInfoId,
|
|
- targetName: dataInfo.EdbName,
|
|
|
|
|
|
+ targetName: this.currentLang==='en'?dataInfo.EdbNameEn:dataInfo.EdbName,
|
|
frequency: dataInfo.Frequency,
|
|
frequency: dataInfo.Frequency,
|
|
- unit: dataInfo.Unit,
|
|
|
|
|
|
+ unit: this.currentLang==='en'?dataInfo.UnitEn:dataInfo.Unit,
|
|
menu: menuArrId||[],
|
|
menu: menuArrId||[],
|
|
Extra:dataInfo.Extra,
|
|
Extra:dataInfo.Extra,
|
|
view
|
|
view
|
|
@@ -1924,12 +1924,16 @@ export default {
|
|
}
|
|
}
|
|
|
|
|
|
if([72,73].includes(type)){
|
|
if([72,73].includes(type)){
|
|
- const {EdbName,EdbInfoId,Frequency,Unit,ClassifyId,CalculateFormula} = dataInfo
|
|
|
|
|
|
+ const {EdbName,EdbNameEn,EdbInfoId,Frequency,Unit,UnitEn,ClassifyId,CalculateFormula} = dataInfo
|
|
this.operationForm = {
|
|
this.operationForm = {
|
|
edb_id: EdbInfoId,
|
|
edb_id: EdbInfoId,
|
|
oldedb_id: old_edb[0].FromEdbInfoId,
|
|
oldedb_id: old_edb[0].FromEdbInfoId,
|
|
oldEdb_name: old_edb[0].FromEdbName,
|
|
oldEdb_name: old_edb[0].FromEdbName,
|
|
- EdbName,Frequency,Unit,ClassifyId,Formula:CalculateFormula,
|
|
|
|
|
|
+ EdbName: this.currentLang==='en'?EdbNameEn:EdbName,
|
|
|
|
+ Frequency,
|
|
|
|
+ Unit:this.currentLang==='en'?UnitEn:Unit,
|
|
|
|
+ ClassifyId,
|
|
|
|
+ Formula:CalculateFormula,
|
|
view
|
|
view
|
|
}
|
|
}
|
|
}
|
|
}
|