Commit a5078bf0 by tangjiale

1

parent 65daf664
...@@ -105,6 +105,18 @@ export default { ...@@ -105,6 +105,18 @@ export default {
courseId: data.courseId,orderId:data.orderId 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(){ exportOrder(){
let param = { let param = {
...this.$refs["table"].searchForm, ...this.$refs["table"].searchForm,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @eMail: 932055106@qq.com * @eMail: 932055106@qq.com
* @Date: 2022-02-11 09:23:35 * @Date: 2022-02-11 09:23:35
* @LastEditors: tangjiale * @LastEditors: tangjiale
* @LastEditTime: 2022-06-17 11:45:28 * @LastEditTime: 2022-06-17 14:47:43
*/ */
export default class CourseService extends Service { export default class CourseService extends Service {
...@@ -147,6 +147,14 @@ export default class CourseService extends Service { ...@@ -147,6 +147,14 @@ export default class CourseService extends Service {
data: param data: param
}) })
} }
//编辑订单状态
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