|
@@ -357,6 +357,7 @@ export default {
|
|
|
classify: ChartInfo.ChartClassifyId,
|
|
|
ProfitNameEn: DataResp.ProfitNameEn,
|
|
|
ProfitName: DataResp.ProfitName,
|
|
|
+ basisEdb:BarChartInfo.BaseEdbInfoId
|
|
|
} : {
|
|
|
...ChartInfo,
|
|
|
classify: ChartInfo.ChartClassifyId,
|
|
@@ -742,6 +743,13 @@ export default {
|
|
|
async handleSaveProfit(public_param) {
|
|
|
if(!this.profitInfo.list.length) return this.$message.warning(this.$t('ToolBox.CommodityPriceChart.tips_msg04')||'请先设置盘面利润配置');
|
|
|
const { list,formula } = this.profitInfo;
|
|
|
+ const xDataListArr=this.xAxisList.map(_item=>{
|
|
|
+ return {
|
|
|
+ Name:_item.Name,
|
|
|
+ NameEn:_item.NameEn,
|
|
|
+ IsHide:_item.IsHide
|
|
|
+ }
|
|
|
+ })
|
|
|
let params = {
|
|
|
...public_param,
|
|
|
LeftMin: String(this.chartLimit.min),
|
|
@@ -749,7 +757,7 @@ export default {
|
|
|
Extra: {
|
|
|
FutureGoodEdbInfoIdList: list,
|
|
|
CalculateFormula: formula,
|
|
|
- BaseEdbInfoId: this.tableData[0].EdbInfoId,
|
|
|
+ BaseEdbInfoId: this.chartInfo.basisEdb,
|
|
|
DateList: this.$refs.BarOptRef.dateList.map(_ => ({
|
|
|
Type: _.Type,
|
|
|
Date: _.Date,
|
|
@@ -757,6 +765,8 @@ export default {
|
|
|
Name: '',
|
|
|
Color: _.Color
|
|
|
})),
|
|
|
+ EdbInfoIdList:this.tableData.map(i=>i.EdbInfoId),
|
|
|
+ XDataList:xDataListArr||[]
|
|
|
}
|
|
|
}
|
|
|
|