|
@@ -142,7 +142,7 @@
|
|
</div>
|
|
</div>
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
<el-button @click="openPrice = false">返回</el-button>
|
|
<el-button @click="openPrice = false">返回</el-button>
|
|
- <el-button @click="submitFormPrice('formPrice','calendarPrice')">提交</el-button>
|
|
|
|
|
|
+ <el-button :loading="isLoading" @click="submitFormPrice('formPrice','calendarPrice')">提交</el-button>
|
|
</span>
|
|
</span>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -193,6 +193,7 @@ export default {
|
|
},
|
|
},
|
|
seatTypeId: null,
|
|
seatTypeId: null,
|
|
calendarId: null,
|
|
calendarId: null,
|
|
|
|
+ isLoading: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -573,6 +574,7 @@ export default {
|
|
/** 设置价格 */
|
|
/** 设置价格 */
|
|
async calendarPrice(type){
|
|
async calendarPrice(type){
|
|
try {
|
|
try {
|
|
|
|
+ this.isLoading = true
|
|
if( this.timeValueObj.prev && this.timeValueObj.next ) {
|
|
if( this.timeValueObj.prev && this.timeValueObj.next ) {
|
|
let minTime = moment(this.timeValueObj.prev).valueOf()
|
|
let minTime = moment(this.timeValueObj.prev).valueOf()
|
|
let maxTime = moment(this.timeValueObj.next).valueOf()
|
|
let maxTime = moment(this.timeValueObj.next).valueOf()
|
|
@@ -629,12 +631,15 @@ export default {
|
|
})
|
|
})
|
|
if(res.code == 200) {
|
|
if(res.code == 200) {
|
|
this.openPrice = false
|
|
this.openPrice = false
|
|
|
|
+ this.isLoading = false
|
|
this.getCalendarPrice()
|
|
this.getCalendarPrice()
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
this.$message.error("请选择时间区间!!!");
|
|
this.$message.error("请选择时间区间!!!");
|
|
|
|
+ this.isLoading = false
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
|
+ this.isLoading = false
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|