|
@@ -169,7 +169,6 @@ export default defineComponent({
|
|
|
5: initCommodityData
|
|
|
}
|
|
|
sourceTypeMap[Data.ChartInfo.Source] && sourceTypeMap[Data.ChartInfo.Source](Data);
|
|
|
-
|
|
|
dealSourceHandle();
|
|
|
haveData.value = true;
|
|
|
type === 'refresh' && ElMessage.success('刷新成功');
|
|
@@ -1195,10 +1194,12 @@ export default defineComponent({
|
|
|
state.commodityChartData = ChartInfo.Source===5?DataResp.YDataList:YDataList;
|
|
|
state.commodityXData = ChartInfo.Source===5?DataResp.XDataList:XDataList;
|
|
|
|
|
|
- state.chartInfo = {
|
|
|
- ...state.chartInfo,
|
|
|
- ProfitName: DataResp.ProfitName,
|
|
|
- ProfitNameEn: DataResp.ProfitNameEn
|
|
|
+ if(ChartInfo.Source===5) {
|
|
|
+ state.chartInfo = {
|
|
|
+ ...state.chartInfo,
|
|
|
+ ProfitName: DataResp.ProfitName,
|
|
|
+ ProfitNameEn: DataResp.ProfitNameEn
|
|
|
+ }
|
|
|
}
|
|
|
state.chartLimit = {
|
|
|
min: Number(ChartInfo.LeftMin),
|