支持默认价格设置

This commit is contained in:
GoEdgeLab
2022-01-23 20:16:02 +08:00
parent 842b62ef65
commit ab674624f9
2 changed files with 5 additions and 11 deletions

View File

@@ -1,10 +1,10 @@
// 套餐价格配置 // 套餐价格配置
Vue.component("plan-price-config-box", { Vue.component("plan-price-config-box", {
props: ["v-price-type", "v-monthly-price", "v-seasonally-price", "v-yearly-price", "v-traffic-price", "v-bandwidth-price"], props: ["v-price-type", "v-monthly-price", "v-seasonally-price", "v-yearly-price", "v-traffic-price", "v-bandwidth-price", "v-disable-period"],
data: function () { data: function () {
let priceType = this.vPriceType let priceType = this.vPriceType
if (priceType == null) { if (priceType == null) {
priceType = "period" priceType = "bandwidth"
} }
// 按时间周期计费 // 按时间周期计费
@@ -140,9 +140,9 @@ Vue.component("plan-price-config-box", {
<input type="hidden" name="bandwidthPriceJSON" :value="JSON.stringify(bandwidthPrice)"/> <input type="hidden" name="bandwidthPriceJSON" :value="JSON.stringify(bandwidthPrice)"/>
<div> <div>
<radio :v-value="'period'" :value="priceType" v-model="priceType">&nbsp;按时间周期</radio> &nbsp; &nbsp; <radio :v-value="'bandwidth'" :value="priceType" v-model="priceType">&nbsp;按带宽</radio> &nbsp;
<radio :v-value="'traffic'" :value="priceType" v-model="priceType">&nbsp;按流量</radio> &nbsp; &nbsp; <radio :v-value="'traffic'" :value="priceType" v-model="priceType">&nbsp;按流量</radio> &nbsp;
<radio :v-value="'bandwidth'" :value="priceType" v-model="priceType">&nbsp;按带宽</radio> <radio :v-value="'period'" :value="priceType" v-model="priceType" v-show="typeof(vDisablePeriod) != 'boolean' || !vDisablePeriod">&nbsp;按时间周期</radio>
</div> </div>
<!-- 按时间周期 --> <!-- 按时间周期 -->

View File

@@ -1,6 +0,0 @@
<first-menu>
<menu-item href="." code="daily">按天统计</menu-item>
<menu-item href=".monthly" code="monthly">按月统计</menu-item>
</first-menu>
<div class="margin"></div>