From 86687e3e362499b05587ec4d83a6b1133ce0d2b5 Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 23 Aug 2022 11:26:18 +0800
Subject: [PATCH] Default Changelist
---
src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue b/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
index f75b427..fb2865d 100644
--- a/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
+++ b/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
@@ -100,6 +100,7 @@
import { teamManageApi } from '/@/api/systemManage/personShiftManage/teamManage';
import { inspectPointApi } from '/@/api/intellectInspectSystem/inspectPointManage';
import { inspectTaskApi } from '/@/api/intellectInspectSystem/inspectTask';
+import {useRoute} from "vue-router";
let global: any = {
homeChartOne: null,
homeChartTwo: null,
@@ -149,6 +150,7 @@
components: { inspectRecordDialog },
setup() {
const inspectRecordDialogRef = ref();
+ const route = useRoute();
const state = reactive<stateType>({
tableData: {
inspectRecordData: [],
@@ -181,7 +183,7 @@
{ id: 1, name: '待巡检' },
{ id: 2, name: '巡检中' },
{ id: 3, name: '已巡检' },
- { id: 4, name: '超时未巡检' }
+ { id: 4, name: '超时未完成巡检' }
],
quotaList: [],
departmentList: [],
@@ -310,7 +312,13 @@
// 页面加载时
onMounted(() => {
- getInspectRecord();
+ if(route.query.id){
+ console.log(route.query.dataList,'list')
+ state.tableData.params.taskStatus = Number(route.query.id)
+ state.tableData.inspectRecordData = route.query.dataList
+ state.tableData.total = Number(route.query.total)
+ }
+ // getInspectRecord();
getQuotaList();
getDepartmentData();
getClassGroupData();
--
Gitblit v1.9.2