<table class="table table-striped table-md table-hover" id="table">
    <thead>
        <tr>
            <th>
                设备id
            </th>
            <th>
                入料箱
            </th>
            <th>
                名称
            </th>
            <th>
                父级设备
            </th>
            <th>
                硬件id
            </th>
            <th>
                备注
            </th>
            <th>
                录入时间
            </th>
        </tr>
        <template v-if="stations.length > 0">
            <tr v-for="(station,i) in stations" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
                <td>
                    @{{ station.id }}
                </td>
                <td>
                    <button class="btn btn-primary" @click="showFeedBox(station)">入料箱</button>
                </td>
                <td>
                    @{{ station.name }}
                </td>
                <td>
                    @{{ station.parent ? station.parent.name  : ''}}
                </td>
                <td>
                    @{{ station.parent ? station.parent.id  : ''}}
                </td>
                <td>
                    @{{ station.sequence ? station.sequence : ''}}
                </td>
                <td>
                    @{{ station.created_at }}
                </td>
            </tr>
        </template>
    </thead>
</table>
