|
@@ -70,10 +70,11 @@
|
|
|
:columns="setMealColumns"
|
|
|
:dataSource="setMealData"
|
|
|
:pagination="false"
|
|
|
+ :loading="loading"
|
|
|
bordered>
|
|
|
<!-- 到期时间 -->
|
|
|
<span slot="expiryDate" slot-scope="text, record">
|
|
|
- <span v-if="record.cycleFlag==0">{{record.expiryDate}}</span>
|
|
|
+ <span v-if="record.cycleFlag==0">{{ record.expiryDate }}</span>
|
|
|
<span v-else>--</span>
|
|
|
</span>
|
|
|
<!-- 操作 -->
|
|
@@ -154,12 +155,14 @@ export default {
|
|
|
recordData: [], // 使用记录
|
|
|
detailsData: null, // 套餐数据
|
|
|
setDelay: false, // 延期设置
|
|
|
- serverData: null // 套餐包含服务 数据
|
|
|
+ serverData: null, // 套餐包含服务 数据
|
|
|
+ loading: false
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
// 套餐详情
|
|
|
getSetmealInfo () {
|
|
|
+ this.loading = true
|
|
|
// 套餐详情
|
|
|
customerBundleDetail({ id: this.setmealId }).then(res => {
|
|
|
if (res.status == 200) {
|
|
@@ -177,6 +180,7 @@ export default {
|
|
|
this.detailsData = null
|
|
|
this.setMealData = []
|
|
|
}
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
// 使用记录
|
|
|
customerBundleUseHistory({ id: this.setmealId }).then(res => {
|
|
@@ -231,6 +235,9 @@ export default {
|
|
|
isShow (val) {
|
|
|
if (!val) {
|
|
|
this.$emit('close')
|
|
|
+ this.setMealData = []
|
|
|
+ this.recordData = []
|
|
|
+ this.detailsData = null
|
|
|
}
|
|
|
},
|
|
|
setmealId (newValue, oldValue) {
|