|
@@ -4,9 +4,10 @@
|
|
|
<Progress :init="true" />
|
|
|
<div v-for="(item, index) in PricingPlanList" :key="index" class="comb">
|
|
|
<div><span>Pricing Plan: </span>{{ item.assetTypeShow }}</div>
|
|
|
- <div v-if="item.assetType === 1"><span>Up to: </span>{{ item.totalFiles }} Documents / {{ item.assetTypeShow }}</div>
|
|
|
+ <div v-if="item.assetTypeShow === 'Monthly'"><span>Up to: </span>{{ item.totalFiles }} Documents / Month</div>
|
|
|
+ <div v-if="item.assetTypeShow === 'Annually'"><span>Up to: </span>{{ item.totalFiles }} Documents / Year</div>
|
|
|
<div v-else><span>Up to: </span>{{ item.totalFiles }}</div>
|
|
|
- <div v-if="item.assetType !== 2"><span>Validity Period: </span>{{ item.startDate }} - {{item.endDate}}</div>
|
|
|
+ <div v-if="item.assetType !== 2"><span>Validity Period: </span>{{ item.startDate }} ~ {{item.endDate}}</div>
|
|
|
</div>
|
|
|
<div class="block">
|
|
|
<div class="top">
|
|
@@ -175,21 +176,21 @@ export default class Plan extends Vue {
|
|
|
for (let i = 0; i < this.PricingPlanList.length; i++) {
|
|
|
if (this.PricingPlanList[i].assetType === 1) {
|
|
|
if (this.PricingPlanList[i].cycle === 1) {
|
|
|
- this.PricingPlanList[i].assetTypeShow = 'Month'
|
|
|
+ this.PricingPlanList[i].assetTypeShow = 'Monthly'
|
|
|
} else if (this.PricingPlanList[i].cycle === 2) {
|
|
|
- this.PricingPlanList[i].assetTypeShow = 'Year'
|
|
|
+ this.PricingPlanList[i].assetTypeShow = 'Annually'
|
|
|
}
|
|
|
} else if (this.PricingPlanList[i].assetType === 2) {
|
|
|
this.PricingPlanList[i].assetTypeShow = 'Package'
|
|
|
} else if (this.PricingPlanList[i].assetType === 3) {
|
|
|
this.PricingPlanList[i].assetTypeShow = 'Free'
|
|
|
}
|
|
|
+ this.PricingPlanList[i].endDate = this.PricingPlanList[i].endDate.replace(/-/g, '/')
|
|
|
+ this.PricingPlanList[i].startDate = this.PricingPlanList[i].startDate.replace(/-/g, '/')
|
|
|
}
|
|
|
- console.log(this.PricingPlanList)
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
console.log(err)
|
|
|
- this.$message.error('Failed to export.')
|
|
|
})
|
|
|
}
|
|
|
}
|