|
@@ -3,7 +3,7 @@ import chartBox from './component/chartBox.vue'
|
|
import { Popup, Toast,Picker } from 'vant';
|
|
import { Popup, Toast,Picker } from 'vant';
|
|
import {ref,onMounted, reactive, watch} from 'vue'
|
|
import {ref,onMounted, reactive, watch} from 'vue'
|
|
import {useRoute, useRouter,onBeforeRouteUpdate} from 'vue-router'
|
|
import {useRoute, useRouter,onBeforeRouteUpdate} from 'vue-router'
|
|
-import moment, { min } from 'moment'
|
|
|
|
|
|
+import moment from 'moment'
|
|
import Highcharts from 'highcharts/highstock';
|
|
import Highcharts from 'highcharts/highstock';
|
|
import {apiChartInfo,apiChartList,apiChartSave,apiChartBeforeAndNext,apiChartRefresh} from '@/api/hzyb/chart.js'
|
|
import {apiChartInfo,apiChartList,apiChartSave,apiChartBeforeAndNext,apiChartRefresh} from '@/api/hzyb/chart.js'
|
|
const router=useRouter()
|
|
const router=useRouter()
|
|
@@ -148,7 +148,7 @@ let resData=ref(null)//接口详情数据
|
|
let loading=ref(false)
|
|
let loading=ref(false)
|
|
// 如果type:init 则是初始化获取数据
|
|
// 如果type:init 则是初始化获取数据
|
|
const getChartInfo=async (type)=>{
|
|
const getChartInfo=async (type)=>{
|
|
- // resData.value=null
|
|
|
|
|
|
+ resData.value=null
|
|
loading.value=true
|
|
loading.value=true
|
|
const res=await apiChartInfo({
|
|
const res=await apiChartInfo({
|
|
ChartInfoId:ChartInfoId,
|
|
ChartInfoId:ChartInfoId,
|
|
@@ -876,7 +876,7 @@ const pageTouchmove=(e)=>{
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div class="chart-detail">
|
|
|
|
|
|
+ <div class="chart-detail" v-if="resData">
|
|
<div class="chart-title">{{resData.ChartInfo.ChartName}}</div>
|
|
<div class="chart-title">{{resData.ChartInfo.ChartName}}</div>
|
|
<div class="top-box">
|
|
<div class="top-box">
|
|
<div class="flex calendar-box" style="float:left" @click="handleShowDate">
|
|
<div class="flex calendar-box" style="float:left" @click="handleShowDate">
|