|
@@ -2,6 +2,7 @@
|
|
|
import { IotOpeationFillApi } from '@/api/pms/iotopeationfill'
|
|
import { IotOpeationFillApi } from '@/api/pms/iotopeationfill'
|
|
|
import { IotStatApi } from '@/api/pms/stat'
|
|
import { IotStatApi } from '@/api/pms/stat'
|
|
|
import { useUserStore } from '@/store/modules/user'
|
|
import { useUserStore } from '@/store/modules/user'
|
|
|
|
|
+import Rdkb from '@/views/pms/stat/rdkb.vue'
|
|
|
import Rhkb from '@/views/pms/stat/rhkb.vue'
|
|
import Rhkb from '@/views/pms/stat/rhkb.vue'
|
|
|
import Rykb from '@/views/pms/stat/rykb.vue'
|
|
import Rykb from '@/views/pms/stat/rykb.vue'
|
|
|
import Stat from './stat.vue'
|
|
import Stat from './stat.vue'
|
|
@@ -15,13 +16,13 @@ const iframeLoading = ref(false)
|
|
|
let iframeRequestId = 0
|
|
let iframeRequestId = 0
|
|
|
|
|
|
|
|
const reportUrls: Record<string, string> = {
|
|
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'
|
|
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 currentCompany = computed(() => company.value?.toLowerCase())
|
|
|
const currentView = computed(() => {
|
|
const currentView = computed(() => {
|
|
|
if (companyLoading.value) return 'loading'
|
|
if (companyLoading.value) return 'loading'
|
|
|
|
|
+ if (currentCompany.value === 'rd') return 'rd'
|
|
|
if (currentCompany.value === 'rh') return 'rh'
|
|
if (currentCompany.value === 'rh') return 'rh'
|
|
|
if (currentCompany.value === 'ry') return 'ry'
|
|
if (currentCompany.value === 'ry') return 'ry'
|
|
|
if (currentCompany.value && reportUrls[currentCompany.value]) return 'report'
|
|
if (currentCompany.value && reportUrls[currentCompany.value]) return 'report'
|
|
@@ -80,6 +81,7 @@ watch(
|
|
|
class="full-screen-iframe"
|
|
class="full-screen-iframe"
|
|
|
allowfullscreen></iframe>
|
|
allowfullscreen></iframe>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <Rdkb v-else-if="currentView === 'rd'" />
|
|
|
<Rhkb v-else-if="currentView === 'rh'" />
|
|
<Rhkb v-else-if="currentView === 'rh'" />
|
|
|
<Rykb v-else-if="currentView === 'ry'" />
|
|
<Rykb v-else-if="currentView === 'ry'" />
|
|
|
<Stat v-else />
|
|
<Stat v-else />
|