|
@@ -1,5 +1,5 @@
|
|
|
<script setup>
|
|
|
-import {ref,onMounted, reactive, nextTick} from 'vue'
|
|
|
+import {ref,onMounted, reactive, nextTick, computed} from 'vue'
|
|
|
import moment from 'moment'
|
|
|
import {yearSelectOpt} from '@/hooks/chart/config'
|
|
|
import apiDataEDB from '@/api/dataEDB'
|
|
@@ -61,6 +61,11 @@ const limitData=reactive({
|
|
|
rightMax: 0,
|
|
|
})
|
|
|
|
|
|
+//同比,环比,环差,超季节性、 残差只展示基础图
|
|
|
+const isOnlyShowBaseChart=computed(()=>{
|
|
|
+ return [6,12,13,35,37].includes(chartInfo.value.Source)
|
|
|
+})
|
|
|
+
|
|
|
// 渲染图
|
|
|
function renderChart(){
|
|
|
const chartRenderOpt={...chartDefaultOpts,...options.value}
|
|
@@ -594,7 +599,7 @@ async function handleSaveChartLimit(){
|
|
|
<span :style="{color:!selectEndDate?'#999':'#333'}">{{selectEndDate||'结束日期'}}</span>
|
|
|
</div>
|
|
|
<!-- 图类型切换 -->
|
|
|
- <div class="chart-type-box" @click="showChartType=true">
|
|
|
+ <div class="chart-type-box" @click="showChartType=true" v-if="!isOnlyShowBaseChart">
|
|
|
<svg class="icon" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none">
|
|
|
<path d="M2.50049 11.9999L26.0165 11.9999L18.3281 4.50217L19.7244 3.07031L29.0668 12.181C29.7475 12.8447 29.2776 13.9999 28.3268 13.9999L2.50049 13.9999V11.9999Z" fill="#0052D9"/>
|
|
|
<path d="M29.5 19.9999L6.04053 19.9999L13.6611 27.2007L12.2874 28.6544L2.94908 19.8303C2.2522 19.1718 2.71812 17.9999 3.6771 17.9999L29.5 17.9999V19.9999Z" fill="#0052D9"/>
|