2020-12-10 22:06:54 +08:00
|
|
|
{$layout}
|
|
|
|
|
{$template "menu"}
|
|
|
|
|
|
|
|
|
|
<p class="comment" v-if="regions.length == 0">暂时还没有区域。</p>
|
|
|
|
|
|
2020-12-11 17:28:06 +08:00
|
|
|
<table class="ui table selectable small definition celled">
|
2020-12-10 22:06:54 +08:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2021-08-25 11:17:24 +08:00
|
|
|
<th style="width: 7em; border-left: 1px solid rgba(34,36,38,.15); border-top: 1px solid rgba(34,36,38,.15)">区域\范围</th>
|
2020-12-11 17:28:06 +08:00
|
|
|
<th v-for="item in items" class="center">
|
2020-12-10 22:06:54 +08:00
|
|
|
{{item.name}}
|
|
|
|
|
<br/>
|
|
|
|
|
<span>{{item.bitsFromString}}-{{item.bitsToString}}</span>
|
2020-12-11 17:28:06 +08:00
|
|
|
<br/>
|
|
|
|
|
<a href="" title="修改" @click.prevent="updateItem(item.id)"><i class="icon pencil small"></i></a>
|
|
|
|
|
<a href="" title="删除" @click.prevent="deleteItem(item.id)"><i class="icon remove small"></i></a>
|
2020-12-10 22:06:54 +08:00
|
|
|
</th>
|
2020-12-11 17:28:06 +08:00
|
|
|
<th class="width10 center">
|
|
|
|
|
<a href="" @click.prevent="createItem" style="visibility: visible">[+添加价格项]</a>
|
2020-12-10 22:06:54 +08:00
|
|
|
</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tr v-for="region in regions">
|
2020-12-11 17:28:06 +08:00
|
|
|
<td class="">{{region.name}}</td>
|
|
|
|
|
<td v-for="item in items" class="center">
|
|
|
|
|
<div>
|
|
|
|
|
<span v-if="region.prices[item.id.toString()] != null">¥{{region.prices[item.id.toString()]}}元/GB </span>
|
|
|
|
|
<span v-else> </span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<a href="" title="修改单位价格" @click.prevent="updatePrice(region.id, item.id)">[设置]</a>
|
|
|
|
|
</div>
|
2020-12-10 22:06:54 +08:00
|
|
|
</td>
|
|
|
|
|
<td></td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|