Commit a5078bf0 by tangjiale

1

parent 65daf664
......@@ -105,6 +105,18 @@ export default {
courseId: data.courseId,orderId:data.orderId
})
},
agreeCannel(data,type){
let that = this
this.$showConfirm(`你确认 ${type==1?'同意':'不同意'}退款吗?`).then(() => {
that.$service.course.updateOrderStatus({orderId:data.orderId,orderStatus:type}).then(res =>{
this.$notifySuccess();
this.upDateList()
})
});
},
upDateList(){
this.$refs['table'].reload()
},
exportOrder(){
let param = {
...this.$refs["table"].searchForm,
......
......@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com
* @Date: 2022-02-11 09:23:35
* @LastEditors: tangjiale
* @LastEditTime: 2022-06-17 11:45:28
* @LastEditTime: 2022-06-17 14:47:43
*/
export default class CourseService extends Service {
......@@ -148,5 +148,13 @@ export default class CourseService extends Service {
})
}
//编辑订单状态
updateOrderStatus(param){
return this.put({
url: '/course/updateOrderStatus',
data: param
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment