From 749e0a6d04ad140cea2b72182dcfa601b96630e2 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期日, 24 九月 2023 15:06:45 +0800
Subject: [PATCH] modified: src/assets/api/controller.js modified: src/components/view/Technicalindex.vue modified: src/components/view/rawInsDetail.vue modified: src/main.js
---
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