|
@@ -17,9 +17,10 @@ import _ from 'lodash';
|
|
|
import { useWindowSize } from '@vueuse/core'
|
|
|
import {setClipboardData} from '@/hooks/common'
|
|
|
import SetChartEnName from '@/components/SetChartEnName.vue'
|
|
|
+import {useCachedViewsStore} from '@/store/modules/cachedViews'
|
|
|
|
|
|
const { width, height } = useWindowSize()
|
|
|
-
|
|
|
+const cachedViewsStore=useCachedViewsStore()
|
|
|
const {options,axisLimitState,chartRender}=useChartRender()
|
|
|
|
|
|
|
|
@@ -384,6 +385,8 @@ function handleRemoveChart(){
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
showToast('移出成功')
|
|
|
+ cachedViewsStore.removeCaches('MyETAIndex')
|
|
|
+ cachedViewsStore.removeCaches('MyETASearchList')
|
|
|
setTimeout(() => {
|
|
|
router.back()
|
|
|
}, 1500)
|
|
@@ -405,6 +408,8 @@ function handleDeleteChart(){
|
|
|
}).then(res=>{
|
|
|
if(res.Ret===200){
|
|
|
showToast('删除成功')
|
|
|
+ cachedViewsStore.removeCaches('MyETAIndex')
|
|
|
+ cachedViewsStore.removeCaches('MyETASearchList')
|
|
|
setTimeout(() => {
|
|
|
router.back()
|
|
|
}, 1500)
|
|
@@ -485,7 +490,7 @@ function handleEditEnNameSuccess(){
|
|
|
<!-- 一般曲线图选择时间区间或者季节图选择日期 -->
|
|
|
<div
|
|
|
class="select-time-box"
|
|
|
- v-if="sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1"
|
|
|
+ v-if="(sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1)||chartInfo.ChartType===2"
|
|
|
@click="chartState.showTimePop=true"
|
|
|
>
|
|
|
<img class="left-icon" src="@/assets/imgs/icon_calendar.png" alt="">
|
|
@@ -507,7 +512,7 @@ function handleEditEnNameSuccess(){
|
|
|
</template>
|
|
|
<span
|
|
|
class="time-box"
|
|
|
- v-if="sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1"
|
|
|
+ v-if="(sameOptionType.includes(chartInfo.ChartType)&& chartInfo.Source===1)||chartInfo.ChartType===2"
|
|
|
@click="chartState.showTimePop=true"
|
|
|
>{{chartState.startTime?chartState.startTime+'~'+(chartState.endTime?chartState.endTime:'至今'):'请选择时间段'}}</span>
|
|
|
</div>
|