From b9d86ddf9e6bb36736214cd632d69ae83debc754 Mon Sep 17 00:00:00 2001 From: zouyu <2723363702@qq.com> Date: 星期三, 27 九月 2023 18:17:13 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mom-before --- 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