Vue.component("plan-price-traffic-config-box", { props: ["v-plan-price-traffic-config"], data: function () { let config = this.vPlanPriceTrafficConfig if (config == null) { config = { base: 0, ranges: [], supportRegions: false } } if (config.ranges == null) { config.ranges = [] } return { config: config, 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 } } }, methods: { edit: function () { this.isEditing = !this.isEditing } }, template: `
| 基础流量费用 |
元/GB
没有定义流量阶梯价格时,使用此价格。 |
| 流量阶梯价格 |
|
| 支持按区域流量计费 |
选中后,表示可以根据节点所在区域设置不同的流量价格;并且开启此项后才可以使用流量包。 |