From 63a7c8829810fac75459c78501dfe4b9c93c624a Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: 星期三, 24 八月 2022 19:01:03 +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