增加套餐相关代码

This commit is contained in:
GoEdgeLab
2021-10-29 14:02:01 +08:00
parent 60653667aa
commit bdb8e98af6
12 changed files with 324 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
// 显示带宽限制说明
Vue.component("bandwidth-limit-view", {
props: ["v-bandwidth-limit"],
data: function () {
return {
config: this.vBandwidthLimit
}
},
template: `<div>
<div v-if="config.isOn">
<span v-if="config.dailySize != null && config.dailySize.count > 0">日带宽限制:{{config.dailySize.count}}{{config.dailySize.unit.toUpperCase()}}<br/></span>
<span v-if="config.monthlySize != null && config.monthlySize.count > 0">月带宽限制:{{config.monthlySize.count}}{{config.monthlySize.unit.toUpperCase()}}<br/></span>
</div>
<span v-else class="disabled">没有限制。</span>
</div>`
})