فهرست منبع

refactor(Home): 调整首页看板瑞都看板调整为组件不再是帆软的报表

Zimo 4 روز پیش
والد
کامیت
0f8757ee60
1فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 3 1
      src/views/Home/Index.vue

+ 3 - 1
src/views/Home/Index.vue

@@ -2,6 +2,7 @@
 import { IotOpeationFillApi } from '@/api/pms/iotopeationfill'
 import { IotStatApi } from '@/api/pms/stat'
 import { useUserStore } from '@/store/modules/user'
+import Rdkb from '@/views/pms/stat/rdkb.vue'
 import Rhkb from '@/views/pms/stat/rhkb.vue'
 import Rykb from '@/views/pms/stat/rykb.vue'
 import Stat from './stat.vue'
@@ -15,13 +16,13 @@ const iframeLoading = ref(false)
 let iframeRequestId = 0
 
 const reportUrls: Record<string, string> = {
-  rd: 'https://report.deepoil.cc/webroot/decision/v10/entry/access/a12df128-c84f-44be-a55d-bababbf4a132?preview=true&page_number=1',
   jt: 'https://report.deepoil.cc/webroot/decision/v10/entry/access/dbc9cf73-81ce-43f1-9923-45cdfa5d5d3a?preview=true&page_number=1'
 }
 
 const currentCompany = computed(() => company.value?.toLowerCase())
 const currentView = computed(() => {
   if (companyLoading.value) return 'loading'
+  if (currentCompany.value === 'rd') return 'rd'
   if (currentCompany.value === 'rh') return 'rh'
   if (currentCompany.value === 'ry') return 'ry'
   if (currentCompany.value && reportUrls[currentCompany.value]) return 'report'
@@ -80,6 +81,7 @@ watch(
       class="full-screen-iframe"
       allowfullscreen></iframe>
   </div>
+  <Rdkb v-else-if="currentView === 'rd'" />
   <Rhkb v-else-if="currentView === 'rh'" />
   <Rykb v-else-if="currentView === 'ry'" />
   <Stat v-else />