diff --git a/ui/src/pages/order/index.vue b/ui/src/pages/order/index.vue
index e351b6d..16a688d 100644
--- a/ui/src/pages/order/index.vue
+++ b/ui/src/pages/order/index.vue
@@ -6,7 +6,7 @@
:data="state.getList"
style="width: 100%"
>
-
+
@@ -41,7 +41,7 @@
label-position="top"
>
-
{
})
const update = (data:any,status:number) => {
- // if(status === 4){
- // dialogVisible.value = true
- // state.orderForm = {...data,evaluate:''}
- // state.orderForm.status = 4
- // return
- // }
+ if(status === 3){
+ dialogVisible.value = true
+ state.orderForm = {...data,content:''}
+ state.orderForm.orderStatus = 3
+ return
+ }
data.orderStatus = status
frontRequest.put("/api/order",data).then(res =>{
toast.success("修改成功~")
@@ -151,11 +151,14 @@ const review = (formEl: FormInstance | undefined) => {
if (!formEl) return
formEl.validate((valid) => {
if (valid) {
- updateOrderItemApi(state.orderForm).then(res =>{
- toast.success("修改成功~")
- dialogVisible.value = false
- getList()
- })
+
+ frontRequest.put("/api/order",state.orderForm).then(res =>{
+ toast.success("评价成功~")
+ dialogVisible.value = false
+ getList()
+ })
+
+
}
})
}