|
@@ -1771,9 +1771,14 @@ const setChartParams = () => {
|
|
|
|
|
|
// 刷新图表
|
|
|
const handleRefreshChart=async ()=>{
|
|
|
- const res = resData.value.ChartInfo.Source === 2
|
|
|
- ? await apiCommonChartRefresh({ChartInfoId:Number(ChartInfoId)})
|
|
|
- : await apiChartRefresh({ChartInfoId:Number(ChartInfoId)})
|
|
|
+ let res=null
|
|
|
+ if(resData.value.ChartInfo.Source === 1){
|
|
|
+ res=await apiChartRefresh({ChartInfoId:Number(ChartInfoId)})
|
|
|
+ }else if(resData.value.ChartInfo.Source === 2){
|
|
|
+ res=await apiCommonChartRefresh({ChartInfoId:Number(ChartInfoId)})
|
|
|
+ }else if(resData.value.ChartInfo.Source === 3){
|
|
|
+ res=await apiRelevanceChartRefresh({ChartInfoId:Number(ChartInfoId)})
|
|
|
+ }
|
|
|
if(res.code===200){
|
|
|
setTimeout(() => {
|
|
|
Toast.success(res.msg)
|