From 49f3321fa839e0ff5fb4d2de75756096a6db7b92 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期日, 24 九月 2023 10:50:08 +0800 Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/mom-before --- src/components/view/rawInsBox.vue | 59 +++++++++++++++++++++++++++++------------------------------ 1 files changed, 29 insertions(+), 30 deletions(-) diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue index b0648e2..aec0ed9 100644 --- a/src/components/view/rawInsBox.vue +++ b/src/components/view/rawInsBox.vue @@ -1,38 +1,37 @@ - <style scoped> </style> <template> - <div class="rawInsBox"> - <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> - <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></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, - id:0 - } - }, - mounted(){ - }, - methods:{ - goDetail(id) { - this.showDetail = true - this.id = id - console.log(this.id) - }, - goBack() { - this.$parent.removeAllTab() - 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