Эх сурвалжийг харах

fix(AdvertisingList): 修复切换游戏后,图表不刷新的BUG

fxs 2 сар өмнө
parent
commit
49a91b6970

+ 0 - 2
src/components/echarts/PieBorderRadius.vue

@@ -66,8 +66,6 @@ watch(
   () => props.options,
   (newVal) => {
     if (!pieChart.value) return
-    console.log('执行多变')
-    console.log(newVal)
     if (!newVal) {
       pieChart.value.clear()
       pieChart.value.setOption({

+ 1 - 0
src/hooks/useTableChart.ts

@@ -93,6 +93,7 @@ export function useTableChart(
         sumType2: number
       }> | null
 
+      console.log('updateChart')
       if (!data) {
         chartInfo.value.PieChart = []
         chartInfo.value.BarChart = {

+ 1 - 1
src/views/Home/AdvertisingData/AdvertisingList.vue

@@ -285,7 +285,7 @@ const isRadioPf = ref(false)
 const updateAllReq = (pf: string[], gid: string) => {
   queryFormData.value.gid = gid
   queryFormData.value.pf = pf
-  // updateChartData()
+  updateChartData()
   updateReqConfig(requestConfig, { pf, gid })
   // updateReqConfig(keepDataTableInfo.requestConfig, { pf, gid })
 }