From 60e60cc647fe696a68f211d25d563d677f8b27c2 Mon Sep 17 00:00:00 2001 From: batman <978517621@qq.com> Date: 星期三, 08 三月 2023 10:54:48 +0800 Subject: [PATCH] 新修改添加页面 --- src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue b/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue index 9f39eca..e7cd1a3 100644 --- a/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue +++ b/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue @@ -38,7 +38,7 @@ <el-tabs class="active" v-model="activeName"> <el-tab-pane label="巡检链" name="inspectChain"> <el-table :data="inspectTaskForm.points" fit style="width: 100%"> - <el-table-column type="index" label="序号"/> + <el-table-column type="index" label="序号" /> <el-table-column prop="point" label="巡检点" show-overflow-tooltip align="center"></el-table-column> <el-table-column prop="region" label="所属设备" show-overflow-tooltip align="center"></el-table-column> <el-table-column prop="rfid" label="RFID" show-overflow-tooltip align="center"></el-table-column> @@ -54,7 +54,7 @@ <el-table-column prop="reportResult" label="结果" show-overflow-tooltip align="center"> <template #default="scope"> <div :style="{ color: scope.row.reportResult == 1 ? '#ff0000' : '#409eff' }"> - {{ scope.row.reportResult == 0 ? '正常' : scope.row.reportResult == 1 ? '存在异常' : '无' }} + {{ scope.row.reportResult == 0 ? '正常' : scope.row.reportResult == 1 ? '存在异常' : scope.row.reportResult == 2 ? '备' : '无' }} </div> </template> </el-table-column> @@ -66,7 +66,7 @@ </el-table> </el-tab-pane> <el-tab-pane label="统计数据" name="allData"> - alldata + <sum-data :sumData="taskAndQuotas"></sum-data> </el-tab-pane> </el-tabs> </div> @@ -80,7 +80,7 @@ </template> <script lang="ts"> -import { reactive, toRefs, ref } from 'vue'; +import { reactive, toRefs, ref, defineAsyncComponent } from 'vue'; import { RFIDApi } from '/@/api/intellectInspectSystem/RFID'; import { ElMessage } from 'element-plus/es'; import { inspectTaskApi } from '/@/api/intellectInspectSystem/inspectTask'; @@ -155,6 +155,9 @@ } export default { name: 'inspectTaskDialog', + components: { + SumData: defineAsyncComponent(() => import('/@/views/intellectInspect/inspectIndex/components/sum.vue')) + }, setup(props: any, context: any) { const inspectTaskFormRef = ref(); const data = reactive<dataState>({ @@ -207,7 +210,8 @@ ], firstReferenceValueList: [ { id: 0, name: '正常' }, - { id: 1, name: '异常' } + { id: 1, name: '异常' }, + { id: 2, name: '备' } ], secondReferenceSignList: [ { id: 1, name: '>' }, -- Gitblit v1.9.2