Browse Source

Merge branch 'master' into 'master'

修复运营监测问题

See merge request lighter/vue-intergration-platform!94
huangshuhua 1 year ago
parent
commit
db5be8eeb8
1 changed files with 19 additions and 2 deletions
  1. 19 2
      src/views/operate-monitoring/OperateMonitoringDate.vue

+ 19 - 2
src/views/operate-monitoring/OperateMonitoringDate.vue

@@ -47,15 +47,32 @@ import {clone} from '@/utils/clone'
 import XcTable from "@/components/xiao-chan/xc-table/XcTable"
 import {selectReportPortal, selectReportGroup} from '@/api/reports/high-report'
 import ReportFirstPage from '@/components/operate-monitoring/ReportFirstPage.vue'
+import router from "@/router";
 
+const type = router.currentRoute.value.params.type
 const start = formatDate(clockinShortcuts[1].value[1])
 const end = formatDate(clockinShortcuts[1].value[1])
 const queryTerm = ref({
+  startTime: '',
+  endTime: '',
   reportType: 'cy',
   menuId: 123,
-  levelType: 2,
-  type: 2
+  levelType: '2',
+  type: '2'
 })
+
+if(type === 'zy'){
+  queryTerm.value.reportType = 'cy'
+  queryTerm.value.menuId = 123
+  queryTerm.value.levelType = '2'
+  queryTerm.value.type = '2'
+} else if(type === 'mz'){
+  queryTerm.value.reportType = 'mz'
+  queryTerm.value.menuId = 124
+  queryTerm.value.levelType = '2'
+  queryTerm.value.type = '2'
+}
+
 const kssj = ref('')
 const jssj = ref('')
 onMounted(() => {