Parcourir la source

修改空间服务支撑访问统计时间变化时查询

tengmingxue il y a 1 an
Parent
commit
79f547ace6

+ 5 - 1
src/views/dashboard/workbench/component/InterfaceEveryday.vue

@@ -37,7 +37,10 @@
         </span>
       </span>
     </div>
-    <div class="echart-container" id="defect-column" ref="domRef"></div>
+    <div v-show="!loading" class="echart-container" id="defect-column" ref="domRef"></div>
+    <div v-show="loading" class="echart-container" style="text-align: center;padding-top: 100px;">
+      <a-spin tip="数据查询中..."/>
+    </div>
   </div>
 </template>
     
@@ -82,6 +85,7 @@ export default defineComponent({
     const { proxy } = getCurrentInstance();
     const echarts = proxy.$echarts;
     const mychart = shallowRef(null);
+    watch(()=>data.year,()=>{dataChange()})
     const disabledDate = (current) => {
       // Can not select days before today and today
       return current && current > moment().endOf('day');