浏览代码

翻译补充

cxmo 11 月之前
父节点
当前提交
604eff381d

+ 4 - 0
src/lang/modules/SupplyAnalysis/StockPlant.js

@@ -44,6 +44,8 @@ export const StockPlantEn = {
     placeholder06:'Please input device/production line',
     placeholder07:'Please enter the annual production capacity',
     select_hint:'Please Select Equipment/Production Line',
+    calculate_hint:'Please add Equipment/Production Line first',
+    calculate_success:'Calculate successfully',
 };
   
 /* 中文 */
@@ -88,6 +90,8 @@ export const StockPlantZh = {
     placeholder06:'请输入装置/产线',
     placeholder07:'请输入年产能',
     select_hint:'请选择要添加的装置',
+    calculate_hint:'请先添加装置',
+    calculate_success:'计算成功',
 };
   
 /**

+ 1 - 1
src/views/chartRelevance_manage/components/saveEdbToBaseDia.vue

@@ -197,7 +197,7 @@ export default {
       }
 			
 			if(res.Ret !== 200) return
-			this.$message.success('保存成功');
+			this.$message.success(/* '保存成功' */this.$t('MsgPrompt.saved_msg'));
 			this.cancelHandle();
 			this.$emit('saveBack',{source:this.source})
       

+ 1 - 1
src/views/chartRelevance_manage/crossVarietyAnalysis/components/tagRelationDialog.vue

@@ -134,7 +134,7 @@ export default {
       let res = await crossVarietyInterface.setTagRelationVariety(params)
 
       if(res.Ret!==200) return
-      this.$message.success('配置保存成功')
+      this.$message.success(/* '配置保存成功' */this.$t('MsgPrompt.saved_msg'))
       this.$emit('refresh')
       this.cancelHandle()
     },300),

+ 2 - 2
src/views/supply_manage/analyseVariety.vue

@@ -170,13 +170,13 @@ export default {
 
     /* 计算 */
     async calulateHandle() {
-      if (!this.plantData.length) return this.$message.warning("请先添加装置");
+      if (!this.plantData.length) return this.$message.warning(/* "请先添加装置" */this.$t('SupplyAnalysis.StockPlant.calculate_hint'));
       const res = await supplyApi.analyseVariety({
         VarietyId: Number(this.varietyId),
       });
 
       if (res.Ret !== 200) return;
-      this.$message.success("计算成功");
+      this.$message.success(/* "计算成功" */this.$t('SupplyAnalysis.StockPlant.calculate_hint'));
 
       this.getTargetList();