浏览代码

翻译fix

jwyu 8 月之前
父节点
当前提交
b3f4c3010e

+ 14 - 2
src/lang/modules/ToolBox/CommodityPriceChart.js

@@ -26,7 +26,13 @@ export const CommodityPriceChartEn = {
     formula_label_placeholder:'Please enter the formula',
     formula_exp:'Formula Example',
     fun_support:'Functions Support',
-    plate_profit_name:'Plate Profit'
+    plate_profit_name:'Plate Profit',
+    tips_msg01:'Futures not selected yet',
+    tips_msg02:'Chart name cannot be empty',
+    tips_msg03:'Chart category cannot be empty',
+    tips_msg04:'Please set up the trading profit configuration first.',
+    tips_msg05:'Indicator not selected yet',
+    tips_msg06:'Please add a date.',
 };
   
 /* 中文 */
@@ -53,7 +59,13 @@ export const CommodityPriceChartZh = {
     formula_label_placeholder:'请输入公式',
     formula_exp:'公式示例',
     fun_support:'函数支持',
-    plate_profit_name:'盘面利润'
+    plate_profit_name:'盘面利润',
+    tips_msg01:'暂未选择期货',
+    tips_msg02:'图表名称不能为空',
+    tips_msg03:'图表分类不能为空',
+    tips_msg04:'请先设置盘面利润配置',
+    tips_msg05:'暂未选择指标',
+    tips_msg06:'请添加日期',
 };
   
 /**

+ 6 - 0
src/lang/modules/systemManage/BaseConfig.js

@@ -47,6 +47,7 @@ export const BaseConfigEn = {
 
     resource_placeholder01:'Please enter the image name',
     resource_placeholder02:'Please select the image type',
+    resource_placeholder03:'Please upload Image',
     resource_type01:'Header',
     resource_type02:'Footer',
     resource_btn01:'Upload Image',
@@ -58,6 +59,8 @@ export const BaseConfigEn = {
     upload_suggest:'Supports formats like jpg, jpeg, png, etc. It is recommended to upload headers of 800*200 and footers of 800*80',
     resource_del_msg:'Are you sure to delete the selected image?',
 
+    tip_msg01:'Save successful, please check the corresponding page/project later',
+
 };
   
 /* 中文 */
@@ -105,6 +108,7 @@ export const BaseConfigZh = {
 
     resource_placeholder01:'请输入图片名称',
     resource_placeholder02:'请选择图片类型',
+    resource_placeholder03:'请上传图片',
     resource_type01:'版头',
     resource_type02:'版尾',
     resource_btn01:'上传图片',
@@ -115,6 +119,8 @@ export const BaseConfigZh = {
     resource_label02:'图片类型',
     upload_suggest:'支持jpg、jpeg、png等格式,建议上传版头800*200,版尾800*80',
     resource_del_msg:'是否确认删除选中图片?',
+
+    tip_msg01:'保存成功,请稍后到对应页面/项目查看',
 };
   
 /**

+ 8 - 8
src/views/futures_manage/chartEditor.vue

@@ -230,13 +230,13 @@ export default {
 			},
 			chartRules: {
 				futures_id:[
-					{ required: true, message: '暂未选择期货', trigger: 'blur' },
+					{ required: true, message: this.$t('ToolBox.CommodityPriceChart.tips_msg01')||'暂未选择期货', trigger: 'blur' },
 				],
 				ChartName:[
-					{ required: true, message: '图表名称不能为空', trigger: 'blur' },
+					{ required: true, message: this.$t('ToolBox.CommodityPriceChart.tips_msg02')||'图表名称不能为空', trigger: 'blur' },
 				],
 				classify:[
-					{ required: true, message: '图表分类不能为空', trigger: 'blur' },
+					{ required: true, message: this.$t('ToolBox.CommodityPriceChart.tips_msg03')||'图表分类不能为空', trigger: 'blur' },
 				],
 			},
 
@@ -364,7 +364,7 @@ export default {
 
 		/* 利润曲线预览 */
 		async getProfitPreview(dateList) {
-			if(!this.profitInfo.list.length) return this.$message.warning('请先设置盘面利润配置')
+			if(!this.profitInfo.list.length) return this.$message.warning(this.$t('ToolBox.CommodityPriceChart.tips_msg04')||'请先设置盘面利润配置')
 
 			const { list,formula } = this.profitInfo;
 			let params = {
@@ -464,10 +464,10 @@ export default {
 
 		/* 保存 */
 		async saveHandle() {
-			if(!this.tableData.length) return this.$message.warning('暂未选择指标');
+			if(!this.tableData.length) return this.$message.warning(this.$t('ToolBox.CommodityPriceChart.tips_msg05')||'暂未选择指标');
 			await this.$refs.diaForm.validate();
 
-			if(!this.$refs.BarOptRef.dateList.length)  return this.$message.warning('请添加日期');
+			if(!this.$refs.BarOptRef.dateList.length)  return this.$message.warning(this.$t('ToolBox.CommodityPriceChart.tips_msg06')||'请添加日期');
 
 			let public_param = {
 				ChartClassifyId: this.chartInfo.classify || 0,
@@ -510,7 +510,7 @@ export default {
 
 		/* 利润曲线保存 */
 		async handleSaveProfit(public_param) {
-			if(!this.profitInfo.list.length)  return this.$message.warning('请先设置盘面利润配置');
+			if(!this.profitInfo.list.length)  return this.$message.warning(this.$t('ToolBox.CommodityPriceChart.tips_msg04')||'请先设置盘面利润配置');
 			const { list,formula } = this.profitInfo;
 			let params = {
 				...public_param,
@@ -558,7 +558,7 @@ export default {
         ImageUrl: Data.ResourceUrl,
       });
 
-			this.$message.success(this.chart_code ? '添加成功' : '保存成功');
+			this.$message.success(this.chart_code ? this.$t('MsgPrompt.add_msg2')||'添加成功' : this.$t('MsgPrompt.saved_msg')||'保存成功');
 			this.$router.replace({
 				path: '/commordityChartBase',
 				query: {

+ 3 - 3
src/views/system_manage/components/smartReportImgSet.vue

@@ -144,9 +144,9 @@ export default {
                 imgUrl:''
             },
             formRules:{
-                name:[{ required: true, message: '请输入图片名称', trigger: 'blur' }],
-                type:[{ required: true, message: '请选择图片类型', trigger: 'change' }],
-                imgUrl:[{ required: true, message: '请上传图片', trigger: 'change' }]
+                name:[{ required: true, message: this.$t('SystemManage.BaseConfig.resource_placeholder01')||'请输入图片名称', trigger: 'blur' }],
+                type:[{ required: true, message: this.$t('SystemManage.BaseConfig.resource_placeholder02')||'请选择图片类型', trigger: 'change' }],
+                imgUrl:[{ required: true, message: this.$t('SystemManage.BaseConfig.resource_placeholder03')||'请上传图片', trigger: 'change' }]
             },
 
             showViewer:false,

+ 1 - 1
src/views/system_manage/etaBaseConfig.vue

@@ -677,7 +677,7 @@ export default {
                         }
                     }).then(res=>{
                         if(res.Ret!==200) return 
-                        this.$message.success('保存成功,请稍后到对应页面/项目查看')
+                        this.$message.success(this.$t('SystemManage.BaseConfig.tip_msg01')||'保存成功,请稍后到对应页面/项目查看')
                     })
                 }
             })