Browse Source

季节图初始化日历类型fix

jwyu 10 months ago
parent
commit
1d92a8860a
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/views/etaChart/components/ChartWrap.vue

+ 3 - 2
src/views/etaChart/components/ChartWrap.vue

@@ -24,6 +24,7 @@ watch(
       chartInfo.value=null
       return
     }
+    calendarType.value=''
     getChartDetail()
   }
 )
@@ -62,7 +63,7 @@ const columns = [
 const tableData = ref([])
 const intro = ref('')
 const chartInfo = ref(null)
-const calendarType = ref('公历')
+const calendarType = ref('')
 async function getChartDetail() {
 
   const res = await apiETAChart.chartDetail({
@@ -73,7 +74,7 @@ async function getChartDetail() {
     tableData.value = res.Data.EdbInfoList || []
     intro.value = res.Data.ChartInfo.Description
     chartInfo.value = res.Data.ChartInfo
-
+    calendarType.value=res.Data.Calendar
     //初始化上下限
     isUseSelfLimit.value = true
     setLimitData(res.Data)