From 4f5549cd814eeaecd0ff04de62452d8d5fb4cbc5 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期四, 21 九月 2023 15:13:27 +0800 Subject: [PATCH] 9.21 --- src/components/view/rawInsBox.vue | 61 +++++++++++++++--------------- 1 files changed, 31 insertions(+), 30 deletions(-) diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue index b0648e2..219d3cc 100644 --- a/src/components/view/rawInsBox.vue +++ b/src/components/view/rawInsBox.vue @@ -1,38 +1,39 @@ - <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 + console.log(this.id) + }, + goBack() { + this.$parent.removeAllTab() + this.showDetail = false + } + } + } +</script> \ No newline at end of file -- Gitblit v1.9.3