| | |
| | | |
| | | <template> |
| | | <div class="rawInsBox"> |
| | | <RawIns v-show="!showDetail" :goDetail="goDetail"></RawIns> |
| | | <RawInsDetail v-show="showDetail" :goBack="goBack" :detail="detail"></RawInsDetail> |
| | | <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns> |
| | | <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | data() { |
| | | return { |
| | | showDetail: false, |
| | | detail:{} |
| | | id:0 |
| | | } |
| | | }, |
| | | mounted(){ |
| | | }, |
| | | methods:{ |
| | | goDetail(detail) { |
| | | goDetail(id) { |
| | | this.showDetail = true |
| | | this.detail = detail |
| | | this.id = id |
| | | console.log(this.id) |
| | | }, |
| | | goBack() { |
| | | this.$parent.removeAllTab() |
| | | this.showDetail = false |
| | | } |
| | | } |