|
@@ -342,7 +342,7 @@ const getChartInfo=async (type)=>{
|
|
|
loading.value=true
|
|
|
|
|
|
//通用类根据code获取详情
|
|
|
- if(![1,11].includes(chartSource)) return getCommonChartDetail();
|
|
|
+ if(![1,11,12].includes(chartSource)) return getCommonChartDetail();
|
|
|
|
|
|
let res=null
|
|
|
// 如果是从我的图库中来的
|
|
@@ -412,6 +412,8 @@ const getChartInfo=async (type)=>{
|
|
|
// 截面组合图
|
|
|
res.data.ChartInfo.ChartType === 14 && initSectionalCombinationChart(res.data);
|
|
|
|
|
|
+ // 区间分析
|
|
|
+ res.data.ChartInfo.Source===12 &&initIntervalAnalysisChartData(res.data)
|
|
|
|
|
|
|
|
|
// 向小程序发送分享数据
|
|
@@ -1568,6 +1570,11 @@ const setRadarChart = () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+//区间分析
|
|
|
+const initIntervalAnalysisChartData=(data)=>{
|
|
|
+ setSplineOpt(data.EdbInfoList)
|
|
|
+}
|
|
|
+
|
|
|
|
|
|
// 路由改变 解决从搜索页返回数据不刷新问题
|
|
|
onBeforeRouteUpdate((nval)=>{
|
|
@@ -1698,7 +1705,7 @@ const setSplineOpt=(data)=>{
|
|
|
},
|
|
|
tickWidth: sameSideIndex !== index ? 0 : 1,
|
|
|
title: {
|
|
|
- text: sameSideIndex !== index ? '' : `${item.Unit||''}`,
|
|
|
+ text: sameSideIndex !== index ? '' : `${resData.value.ChartInfo.Source==12?item.ConvertUnit : item.Unit||''}`,
|
|
|
align: 'high',
|
|
|
rotation: 0,
|
|
|
y: -15,
|