From 5cafe90e9e91127889a948ecb44dec61d6185bd4 Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 18 八月 2023 09:18:51 +0800
Subject: [PATCH] 8.18

---
 src/components/view/raw-ins.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/components/view/raw-ins.vue b/src/components/view/raw-ins.vue
index 72c3841..b2dfefe 100644
--- a/src/components/view/raw-ins.vue
+++ b/src/components/view/raw-ins.vue
@@ -1,5 +1,7 @@
 <style scoped>
-  .raw_ins {}
+  .raw_ins {
+    height: 100%;
+  }
 
   .raw_ins .title .el-button {
     height: 32px;
@@ -80,7 +82,7 @@
       <el-row>
         <el-col :span="12" style="line-height: 32px;">鍘熸潗鏂欐楠�</el-col>
         <el-col :span="12" style="text-align: right;">
-          <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;">鏂板</el-button>
+          <el-button type="primary" icon="el-icon-plus" style="background: #004EA2;" @click="goDetail(null)">鏂板</el-button>
           <el-button icon="el-icon-download">鍒犻櫎</el-button>
         </el-col>
       </el-row>
@@ -110,7 +112,7 @@
     </div>
     <div class="thing">
       <el-table :data="tableData" border style="width: 100%;overflow-y: auto;min-height: calc(100% - 50px)"
-        max-height="calc(100% - 50px)" @selection-change="handleSelectionChange" border default-expand-all
+        max-height="calc(100% - 50px)" @selection-change="handleSelectionChange"  default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}" row-key="id">
         <el-table-column type="selection" width="50">
         </el-table-column>
@@ -146,7 +148,7 @@
         </el-table-column>
         <el-table-column label="鎿嶄綔" width="100">
           <template slot-scope="scope">
-            <span class="table_do" @click="changeShowDetail">鏌ョ湅</span>
+            <span class="table_do" @click="changeShowDetail(scope.row)">鏌ョ湅</span>
             <span class="table_do">鎵撳嵃</span>
           </template>
         </el-table-column>
@@ -169,13 +171,13 @@
           formTime: null,
           createTime: null,
           insState: 2,
-          judgeState: 2
+          judgeState: 10
         },
         tableData: [],
         selects: [],
         currentPage: 1,
         countSize: 0,
-        pageSize: 10
+        pageSize: 2
       }
     },
     props:['goDetail'],
@@ -220,8 +222,12 @@
           },
           this.selectRawInspectsList()
       },
-      changeShowDetail(){
-        this.goDetail()
+       changeShowDetail({id}){
+        this.goDetail(id)
+        // console.log(id)
+        // const res = await this.$axios.post(this.$api.url.selectRawInspectsListById,{params:{id}})
+        // console.log(res)
+
       }
     }
   }

--
Gitblit v1.9.3