From 216d03fa53a38ffc6afe45756d2ae73b21bf00b5 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Tue, 23 Aug 2022 11:43:49 +0800
Subject: [PATCH] lct
---
src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue b/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
index 36292ce..70255ce 100644
--- a/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
+++ b/src/views/intellectInspect/inspectRecordManage/inspectRecord/index.vue
@@ -60,7 +60,7 @@
<el-table-column prop="execUserName" label="执行人" show-overflow-tooltip></el-table-column>
<el-table-column property="taskStatus" label="任务状态">
<template #default="scope">
- <el-tag :type="scope.row.taskStatus === 1 ? 'info' : scope.row.taskStatus === 2 ? 'primary' : scope.row.taskStatus === 3 ? 'success' : 'danger'">
+ <el-tag :type="scope.row.taskStatus === 1 ? 'info' : scope.row.taskStatus === 2 ? '' : scope.row.taskStatus === 3 ? 'success' : 'danger'">
<span>
{{ parseNumber(scope.row.taskStatus, '任务状态') }}
</span>
@@ -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: [],
@@ -170,18 +172,18 @@
}
},
workTypeList: [
- { id: 1, name: '日常任务' },
- { id: 2, name: '周期任务' }
+ { id: 1, name: '周期任务' },
+ { id: 2, name: '单次任务' }
],
resultStatusList: [
{ id: 0, name: '正常' },
- { id: 1, name: '异常' }
+ { id: 1, name: '存在异常' }
],
taskStatusList: [
{ id: 1, name: '待巡检' },
{ id: 2, name: '巡检中' },
{ id: 3, name: '已巡检' },
- { id: 4, name: '超时未巡检' }
+ { id: 4, name: '超时未完成巡检' }
],
quotaList: [],
departmentList: [],
@@ -310,7 +312,12 @@
// 页面加载时
onMounted(() => {
- getInspectRecord();
+ if (route.query.id) {
+ state.tableData.params.taskStatus = Number(route.query.id);
+ state.tableData.inspectRecordData = JSON.parse(route.query.dataList);
+ state.tableData.total = Number(route.query.total);
+ }
+ // getInspectRecord();
getQuotaList();
getDepartmentData();
getClassGroupData();
--
Gitblit v1.9.2