|
@@ -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: {
|