jwyu 1 жил өмнө
parent
commit
b5b459663a

+ 28 - 0
src/lang/commonLang.js

@@ -39,6 +39,34 @@ export default {
       en: "No data available.",
       en: "No data available.",
       zh: "暂无数据",
       zh: "暂无数据",
     },
     },
+    edb_id:{
+      en:'Indicator ID',
+      zh:'指标Id'
+    },
+    edb_name:{
+      en:'Indicator Name',
+      zh:'指标名称'
+    },
+    frequency:{
+      en:'Frequency',
+      zh:'频度'
+    },
+    unit:{
+      en:'Unit',
+      zh:'单位'
+    },
+    start_time:{
+      en:'Start Time',
+      zh:'起始时间'
+    },
+    update_time:{
+      en:'Update Time',
+      zh:'更新时间'
+    },
+    source:{
+      en:'Source',
+      zh:'来源'
+    }
   },
   },
   Confirm: {
   Confirm: {
     prompt: {
     prompt: {

+ 16 - 2
src/lang/modules/SandboxManage/SandFlow.js

@@ -37,7 +37,14 @@ export const SandFlowEn = {
     right:"Right",
     right:"Right",
     center_theme:'Central theme',
     center_theme:'Central theme',
     branch_topic:'Branch topic',
     branch_topic:'Branch topic',
-    sub_topic:'Subtopic'
+    sub_topic:'Subtopic',
+    clear_link_success:'clear links sucessfully',
+    add_link:'Add links',
+    edit_link:'Edit links',
+    clear_link:'clear links',
+    copy_tag:'Copy',
+    delete_tag:'Delete',
+    add_link_search_placeholder:'Indicator ID/ indicator name'
   };
   };
   
   
   /* 中文 */
   /* 中文 */
@@ -75,7 +82,14 @@ export const SandFlowEn = {
     right:"居右",
     right:"居右",
     center_theme:'中心主题',
     center_theme:'中心主题',
     branch_topic:'分支主题',
     branch_topic:'分支主题',
-    sub_topic:'子主题'
+    sub_topic:'子主题',
+    clear_link_success:'清除链接成功',
+    add_link:'添加链接',
+    edit_link:'编辑链接',
+    clear_link:'清除链接',
+    copy_tag:'复制',
+    delete_tag:'删除',
+    add_link_search_placeholder:'指标ID/指标名称'
   };
   };
   
   
   /**
   /**

+ 2 - 2
src/views/sandbox_manage/sandFlowNew/components/addLInkDia.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-    <el-dialog :modal-append-to-body='false' title="添加链接" :visible.sync="show" 
+    <el-dialog :modal-append-to-body='false' :title="$t('SandboxManage.SandFlow.add_link')" :visible.sync="show" 
     :close-on-click-modal="false" width="872px" top="5vh">
     :close-on-click-modal="false" width="872px" top="5vh">
       <div class="add-link-box">
       <div class="add-link-box">
         <div class="link-box-option">
         <div class="link-box-option">
@@ -13,7 +13,7 @@
             :filterable="!search_dataBaseId"
             :filterable="!search_dataBaseId"
             remote
             remote
             clearable
             clearable
-            placeholder="指标ID/指标名称"
+            :placeholder="$t('SandboxManage.SandFlow.add_link_search_placeholder')"
             style="width: 240px"
             style="width: 240px"
             :remote-method="dataBaseSearch"
             :remote-method="dataBaseSearch"
             @click.native="dataBaseInputFocus"
             @click.native="dataBaseInputFocus"

+ 12 - 5
src/views/sandbox_manage/sandFlowNew/index.vue

@@ -394,7 +394,7 @@
           <dropdown-menu size="medium">
           <dropdown-menu size="medium">
             <el-dropdown-item v-for="menu in contextMenuOption.filter(it => it.show)" :key="menu.key" @click.native="handleContext(menu.key)">
             <el-dropdown-item v-for="menu in contextMenuOption.filter(it => it.show)" :key="menu.key" @click.native="handleContext(menu.key)">
               <i :class="menu.icon" v-if="menu.icon" /> 
               <i :class="menu.icon" v-if="menu.icon" /> 
-              {{menu.label}}
+              {{getContentMenuOptText(menu.label)}}
             </el-dropdown-item>
             </el-dropdown-item>
           </dropdown-menu>
           </dropdown-menu>
         </div>
         </div>
@@ -564,6 +564,13 @@ import addLInkDia from './components/addLInkDia.vue';
       clearInterval(this.loopTimer)
       clearInterval(this.loopTimer)
     },
     },
     methods: {
     methods: {
+      getContentMenuOptText(e){
+        if(e==='复制') return this.$t('SandboxManage.SandFlow.copy_tag')
+        if(e==='删除') return this.$t('SandboxManage.SandFlow.delete_tag')
+        if(e==='添加链接') return this.$t('SandboxManage.SandFlow.add_link')
+        if(e==='清除链接') return this.$t('SandboxManage.SandFlow.clear_link')
+        return e
+      },
       getSandboxClassify(){
       getSandboxClassify(){
         sandInterface.getSandboxClassifyOnly().then(res=>{
         sandInterface.getSandboxClassifyOnly().then(res=>{
           if (res.Ret === 200) {
           if (res.Ret === 200) {
@@ -657,7 +664,7 @@ import addLInkDia from './components/addLInkDia.vue';
                 this.popoverVisible=true
                 this.popoverVisible=true
                 if(!(this.linkList.length>0)){
                 if(!(this.linkList.length>0)){
                   if(item.key=='addLink'){
                   if(item.key=='addLink'){
-                    item.label='添加链接'
+                    item.label=this.$t('SandboxManage.SandFlow.add_link')
                   }else if(item.key=='deleteLink'){
                   }else if(item.key=='deleteLink'){
                     item.show=false
                     item.show=false
                   }
                   }
@@ -665,7 +672,7 @@ import addLInkDia from './components/addLInkDia.vue';
               }
               }
               this.contextMenuOption.map(item =>{
               this.contextMenuOption.map(item =>{
                 if(item.key=='addLink'){
                 if(item.key=='addLink'){
-                  item.label='编辑链接'
+                  item.label=this.$t('SandboxManage.SandFlow.edit_link')
                 }else if(item.key=='deleteLink'){
                 }else if(item.key=='deleteLink'){
                   item.show=true
                   item.show=true
                 }
                 }
@@ -674,7 +681,7 @@ import addLInkDia from './components/addLInkDia.vue';
           }else{
           }else{
             this.contextMenuOption.map(item =>{
             this.contextMenuOption.map(item =>{
               if(item.key=='addLink'){
               if(item.key=='addLink'){
-                item.label='添加链接'
+                item.label=this.$t('SandboxManage.SandFlow.add_link')
               }else if(item.key=='deleteLink'){
               }else if(item.key=='deleteLink'){
                 item.show=false
                 item.show=false
               }
               }
@@ -806,7 +813,7 @@ import addLInkDia from './components/addLInkDia.vue';
         const select_cell = this.graph.getSelectedCells()[0]
         const select_cell = this.graph.getSelectedCells()[0]
         if(select_cell){
         if(select_cell){
           select_cell.data.linkData=[]
           select_cell.data.linkData=[]
-          this.$message.success('清除链接成功')
+          this.$message.success(this.$t('SandboxManage.SandFlow.clear_link_success'))
         }
         }
       },
       },
       saveLink(list){
       saveLink(list){