|
@@ -3,8 +3,9 @@
|
|
|
<h3>堆区</h3>
|
|
<h3>堆区</h3>
|
|
|
<template v-if="objects !== null">
|
|
<template v-if="objects !== null">
|
|
|
<v-btn v-for="item of objects" :key="item.id" block text :color="item.fresh ? 'red' : 'black'"
|
|
<v-btn v-for="item of objects" :key="item.id" block text :color="item.fresh ? 'red' : 'black'"
|
|
|
- @click="handleClickDetail">
|
|
|
|
|
|
|
+ @click="handleClickDetail(item)">
|
|
|
<div class="button-text">{{item.id}}</div>
|
|
<div class="button-text">{{item.id}}</div>
|
|
|
|
|
+ <v-icon v-if="item.id === itemNowId" color="blue" right>mdi-check</v-icon>
|
|
|
</v-btn>
|
|
</v-btn>
|
|
|
</template>
|
|
</template>
|
|
|
</div>
|
|
</div>
|
|
@@ -21,6 +22,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
handleClickDetail ({ detail }) {
|
|
handleClickDetail ({ detail }) {
|
|
|
|
|
+ this.itemNowId = detail.id
|
|
|
this.$emit('click-detail', {
|
|
this.$emit('click-detail', {
|
|
|
detail,
|
|
detail,
|
|
|
component: 'j-heap-detail'
|
|
component: 'j-heap-detail'
|