From 7b2fffec6f45d2b5d4c827efbeee4a2e21c0adc0 Mon Sep 17 00:00:00 2001
From: value <z1292839451@163.com>
Date: 星期四, 21 九月 2023 16:52:20 +0800
Subject: [PATCH] 9.21

---
 src/components/view/rawInsBox.vue |   55 +++++++++++++++++++++++++++++--------------------------
 1 files changed, 29 insertions(+), 26 deletions(-)

diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue
index 352e496..aec0ed9 100644
--- a/src/components/view/rawInsBox.vue
+++ b/src/components/view/rawInsBox.vue
@@ -1,34 +1,37 @@
-
 <style scoped>
 
 </style>
 
 <template>
-  <div class="rawInsBox">
-    <RawIns v-show="!showDetail" :goDetail="goDetail"></RawIns>
-    <RawInsDetail v-show="showDetail" :goBack="goBack" :detail="detail"></RawInsDetail>
-  </div>
+	<div class="rawInsBox">
+		<RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns>
+		<RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail>
+	</div>
 </template>
 
 <script>
-import RawIns from './raw-ins.vue'
-import RawInsDetail from './rawInsDetail.vue'
-export default {
-    components:{RawIns,RawInsDetail},
-    data() {
-        return {
-            showDetail: false,
-            detail:{}
-        }
-    },
-    methods:{
-        goDetail(detail) {
-            this.showDetail = true
-            this.detail = detail
-        },
-        goBack() {
-            this.showDetail = false
-        }
-    }
-}
-</script>
+	import RawIns from './raw-ins.vue'
+	import RawInsDetail from './rawInsDetail.vue'
+	export default {
+		components: {
+			RawIns,
+			RawInsDetail
+		},
+		data() {
+			return {
+				showDetail: false,
+				id: 0
+			}
+		},
+		mounted() {},
+		methods: {
+			goDetail(id) {
+				this.showDetail = true
+				this.id = id
+			},
+			goBack() {
+				this.showDetail = false
+			}
+		}
+	}
+</script>
\ No newline at end of file

--
Gitblit v1.9.3