From a742c7bee8d01d712f76884ef0729be6fb1ae0db Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期二, 23 八月 2022 15:49:27 +0800 Subject: [PATCH] Default Changelist --- src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue b/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue index 9f39eca..9dc829e 100644 --- a/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue +++ b/src/views/intellectInspect/inspectRecordManage/inspectRecord/components/inspectRecordDialog.vue @@ -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>({ @@ -258,6 +261,7 @@ data.ifShowInspectTaskDialog = true; data.inspectPointConfirm = false; data.title = '查看巡检记录'; + getSum(item.id) inspectRecordApi() .getInspectRecordById({ id: value.id, uuid: value.uuid }) .then((res) => { -- Gitblit v1.9.2