Browse Source

Merge branch 'chart'

jwyu 3 years ago
parent
commit
efc9c094d9
1 changed files with 11 additions and 2 deletions
  1. 11 2
      src/views/hzyb/chart/Detail.vue

+ 11 - 2
src/views/hzyb/chart/Detail.vue

@@ -8,6 +8,7 @@ import Highcharts from 'highcharts/highstock';
 import {apiChartInfo,apiChartList,apiChartSave,apiChartBeforeAndNext,apiChartRefresh} from '@/api/hzyb/chart.js'
 const router=useRouter()
 const route=useRoute()
+document.title='图表详情'
 
 localStorage.setItem('hzyb-token',route.query.token)
 
@@ -162,7 +163,7 @@ const getChartInfo=async (type)=>{
     loading.value=false
     if(res.code===200){
         resData.value=res.data
-        document.title=res.data.ChartInfo.ChartName
+        // document.title=res.data.ChartInfo.ChartName
         
         // 设置highchart配置 ChartType: 1曲线图 2季节图:季节图中公历和农历数据结构不同
         if(res.data.ChartInfo.ChartType===1){
@@ -876,6 +877,7 @@ const pageTouchmove=(e)=>{
 
 <template>
     <div class="chart-detail">
+        <div class="chart-title">{{resData.ChartInfo.ChartName}}</div>
         <div class="top-box">
             <div class="flex calendar-box" style="float:left" @click="handleShowDate">
                 <img src="../../../assets/hzyb/chart/calendar.png" alt="">
@@ -997,8 +999,15 @@ const pageTouchmove=(e)=>{
     .flex{
         display: flex;
     }
+    .chart-title{
+        padding: 40px 34px 20px 34px;
+        font-size: 32px;
+        font-weight: bold;
+        color: #1F243A;
+        letter-spacing: 2px;
+    }
     .top-box{
-        padding: 40px 34px;
+        padding: 20px 34px 40px 34px;
         height: 40px;
         .calendar-box{
             align-items: center;