Vue.component("plan-price-bandwidth-config-box", { props: ["v-plan-price-bandwidth-config"], data: function () { let config = this.vPlanPriceBandwidthConfig if (config == null) { config = { percentile: 95, base: 0, ranges: [], supportRegions: false } } if (config.ranges == null) { config.ranges = [] } return { config: config, bandwidthPercentile: config.percentile, priceBase: config.base, isEditing: false } }, watch: { priceBase: function (v) { let f = parseFloat(v) if (isNaN(f) || f < 0) { this.config.base = 0 } else { this.config.base = f } }, bandwidthPercentile: function (v) { let i = parseInt(v) if (isNaN(i) || i < 0) { this.config.percentile = 0 } else { this.config.percentile = i } } }, methods: { edit: function () { this.isEditing = !this.isEditing } }, template: `
| 带宽百分位 * |
th
带宽计费位置,在1-100之间。 |
| 基础带宽费用 |
元/Mbps
没有定义带宽阶梯价格时,使用此价格。 |
| 带宽阶梯价格 |
|
| 支持按区域带宽计费 |
选中后,表示可以根据节点所在区域设置不同的带宽价格。 |
| 带宽算法 |
按在计时时间段内(5分钟)最高带宽峰值计算,比如5分钟内最高的某个时间点带宽为100Mbps,那么就认为此时间段内的峰值带宽为100Mbps。修改此选项会同时影响到用量统计图表。 按在计时时间段内(5分钟)平均带宽计算,即此时间段内的总流量除以时间段的秒数,比如5分钟(300秒)内总流量600MiB,那么带宽即为 |