|
@@ -303,7 +303,7 @@ function handleConfirmLimitChange(){
|
|
|
data.ChartInfo.LeftMax=axisLimitDataTem.leftMax
|
|
|
}
|
|
|
// 商品价格曲线
|
|
|
- if(data.ChartInfo.ChartType ===8){
|
|
|
+ if([2,5].includes(data.ChartInfo.Source)){
|
|
|
data.ChartInfo.LeftMin=axisLimitDataTem.leftMin
|
|
|
data.ChartInfo.LeftMax=axisLimitDataTem.leftMax
|
|
|
}
|
|
@@ -314,6 +314,13 @@ function handleConfirmLimitChange(){
|
|
|
data.DataResp.YMinValue=axisLimitDataTem.leftMin
|
|
|
data.DataResp.YMaxValue=axisLimitDataTem.leftMax
|
|
|
}
|
|
|
+
|
|
|
+ // 跨品种分析
|
|
|
+ if(data.ChartInfo.Source===10){
|
|
|
+
|
|
|
+ data.ChartInfo.LeftMin = axisLimitDataTem.leftMin
|
|
|
+ data.ChartInfo.LeftMax = axisLimitDataTem.leftMax
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -340,6 +347,13 @@ function handleConfirmLimitChange(){
|
|
|
data.DataResp.XMinValue=axisLimitDataTem.xMin
|
|
|
data.DataResp.XMaxValue=axisLimitDataTem.xMax
|
|
|
}
|
|
|
+
|
|
|
+ // 跨品种分析
|
|
|
+ if(data.ChartInfo.Source===10){
|
|
|
+
|
|
|
+ data.ChartInfo.XMin = axisLimitDataTem.xMin
|
|
|
+ data.ChartInfo.XMax = axisLimitDataTem.xMax
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
CHARTINS=chartRender({
|
|
@@ -550,6 +564,7 @@ function handleChartSave(){
|
|
|
1: saveChartHandle,
|
|
|
2: saveCommodityChart,//商品价格曲线
|
|
|
5: saveCommodityChart,//利润曲线
|
|
|
+ 10: saveCrossVarietyChart
|
|
|
}
|
|
|
sourceMap[chartInfo.value.Source]&&sourceMap[chartInfo.value.Source]();
|
|
|
}
|
|
@@ -640,6 +655,19 @@ function saveCommodityChart(){
|
|
|
setChartImage()
|
|
|
})
|
|
|
}
|
|
|
+function saveCrossVarietyChart() {
|
|
|
+ apiCrossVarietyChart.myETASaveChart({
|
|
|
+ ChartInfoId:chartInfo.value.ChartInfoId,
|
|
|
+ LeftMin:String(axisLimitState.leftMin),
|
|
|
+ LeftMax:String(axisLimitState.leftMax),
|
|
|
+ XMin: String(axisLimitState.xMin),
|
|
|
+ XMax: String(axisLimitState.xMax),
|
|
|
+ }).then(res=>{
|
|
|
+ if(res.Ret!==200) return
|
|
|
+ showToast("保存成功")
|
|
|
+ setChartImage()
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
//更新缩略图
|
|
|
async function setChartImage(){
|
|
@@ -741,7 +769,7 @@ const isShowAddToMyETADialog=ref(false)
|
|
|
>{{chartState.startTime?chartState.startTime+'~'+(chartState.endTime?chartState.endTime:'至今'):'请选择时间段'}}</span>
|
|
|
</div>
|
|
|
<div class="right-action-box">
|
|
|
- <div class="item" @click="handleShowAxisLimitOpt" v-if="[1,2,5].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_editLimit)">
|
|
|
+ <div class="item" @click="handleShowAxisLimitOpt" v-if="[1,2,5,10].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_editLimit)">
|
|
|
<img src="@/assets/imgs/myETA/icon_limit2.png" alt="">
|
|
|
<span>上下限设置</span>
|
|
|
</div>
|
|
@@ -829,7 +857,7 @@ const isShowAddToMyETADialog=ref(false)
|
|
|
<img class="icon" style="transform: rotate(180deg);" src="@/assets/imgs/icon_arrow.png" alt="">
|
|
|
<div>下一张</div>
|
|
|
</div>
|
|
|
- <div class="item" @click="handleShowAxisLimitOpt" v-if="[1,2,5].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_editLimit)">
|
|
|
+ <div class="item" @click="handleShowAxisLimitOpt" v-if="[1,2,5,10].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_editLimit)">
|
|
|
<img class="icon" src="@/assets/imgs/myETA/icon_limit.png" alt="">
|
|
|
<div>上下限</div>
|
|
|
</div>
|
|
@@ -991,7 +1019,7 @@ const isShowAddToMyETADialog=ref(false)
|
|
|
<div class="item" @click.stop="handleChartShare" v-if="!chartInfo.Disabled&&checkAuthBtn(myETABtn.myChart_share)">
|
|
|
分享
|
|
|
</div>
|
|
|
- <div class="item" @click.stop="handleChartSave" v-if="[1,2,5].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_save)">
|
|
|
+ <div class="item" @click.stop="handleChartSave" v-if="[1,2,5,10].includes(chartInfo.Source)&&checkAuthBtn(myETABtn.myChart_save)">
|
|
|
保存
|
|
|
</div>
|
|
|
<div class="item" @click.stop="handleRemoveChart" v-if="$route.query.iscommon!='true'&&checkAuthBtn(myETABtn.myChart_move)">
|