From 8b9344aa1fb3d7893ea408383a8ba62abe5ebeca Mon Sep 17 00:00:00 2001
From: lct123456 <lucht>
Date: 星期一, 25 四月 2022 21:45:18 +0800
Subject: [PATCH] 地图

---
 src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue |   29 +++++++++++++----------------
 1 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue
index b68cee8..34e3041 100644
--- a/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue
+++ b/src/views/doublePreventAction/hiddenDanger/inspectionRecord/index.vue
@@ -102,7 +102,7 @@
                             </el-table-column>
                             <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width">
                                 <template slot-scope="scope">
-                                    <el-button type="text" @click="showMeasureDetail(scope.row)">详情</el-button>
+                                    <el-button type="text" @click="showInspectionRecordDetailForm(scope.row)">详情</el-button>
                                 </template>
                             </el-table-column>
                         </el-table>
@@ -132,7 +132,7 @@
                 </el-table-column>
                 <el-table-column label="操作" align="center" width="280" class-name="small-padding fixed-width">
                     <template slot-scope="scope">
-                        <el-button type="text" @click="showInspectionRecordForm(scope.row,'编辑')">查看</el-button>
+                        <el-button type="text" @click="showInspectionRecordDetailForm(scope.row,'编辑')">查看</el-button>
                     </template>
                 </el-table-column>
             </el-table>
@@ -177,16 +177,19 @@
                 <el-button @click="unitFormVisible = false">取消</el-button>
             </div>
         </el-dialog>
+        <detail ref="detail"></detail>
     </div>
 </template>
 
 <script>
+    import detail from './components/detail.vue'
     import { mapGetters } from 'vuex'
     import { computePageCount } from '@/utils'
     import { getInspectionRecord } from '@/api/inspectionTask'
     import {getAllDepartment, getDepartmentList} from "../../../../api/departmentManage";
     import {safetyInspectionItemName} from "../../../../api/safetySelfInspection";
     export default {
+  components: { detail },
         name: 'index',
         filters: {
             parseType(type){
@@ -257,6 +260,9 @@
                 },
             }
         },
+        components: {
+            detail
+        },
         created() {
             this.getInspectionRecordData()
             this.getDepartment()
@@ -299,20 +305,11 @@
                     })
                 }
             },
-            showAnalyseUnitForm(value,type){
-                this.inspectionRecordVisible = true
-                this.$nextTick(() =>{
-                    this.$refs["analyseUnitForm"].clearValidate()
-                })
-                if(type === '新增'){
-                    this.title = '新增'
-                    this.inspectionRecordData = {
-            
-                    }
-                }else{
-                    this.title = '修改'
-                    this.inspectionRecordData = value
-                }
+            showInspectionRecordForm(value){
+                this.$refs.detail.showInspectionRecordForm(value)
+            },
+            showInspectionRecordDetailForm(value) {
+                this.$refs.detail.showInspectionRecordDetailForm(value)
             },
             refreshHandle(){
                 this.getInspectionRecordData()

--
Gitblit v1.9.2