From 1c057eb425c053ec014b6df47322e6180eef00c0 Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期四, 10 十月 2024 11:15:16 +0800 Subject: [PATCH] fix:评价列表 --- pages/order/evaluation/index.vue | 15 ++++++++++----- components/order/evaluation-table.vue | 23 ++++++++++++----------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/components/order/evaluation-table.vue b/components/order/evaluation-table.vue index c670ac6..f0e2f4e 100644 --- a/components/order/evaluation-table.vue +++ b/components/order/evaluation-table.vue @@ -1,14 +1,14 @@ <template> <div class="after-sale-table"> <div class="table-header"> - <div class="table-th" style="margin-left: 20px">商品名称</div> - <div class="table-th ">订单编号</div> - <div class="table-th">评价星级</div> + <div class="table-th">商品名称</div> + <div class="table-th !flex-none w-220">订单编号</div> + <div class="table-th !flex-none w-120">评价星级</div> <div class="table-th">供应商信息</div> <div class="table-th">评价内容</div> - <div class="table-th" style="margin-left: 20px">买家</div> - <div class="table-th">评价时间</div> - <div class="table-th" style="margin-left: 20px">操作</div> + <div class="table-th !flex-none w-220">买家</div> + <div class="table-th !flex-none w-220">评价时间</div> + <div class="table-th !flex-none w-180">操作</div> </div> <div v-for="item in list" :key="item.id" class="table-item"> <div class="table-body"> @@ -28,10 +28,10 @@ </div> </div> </div> - <div class="table-td"> + <div class="table-td !flex-none w-220 flex items-center"> <div class="leading-20">{{ item.orderNo }}</div> </div> - <div class="table-td"> + <div class="table-td !flex-none w-120 flex items-center"> <div class="leading-20">{{item.commentGrade }}星</div> </div> <div class="table-td"> @@ -42,10 +42,10 @@ <div class="leading-20">{{ item.comment }}</div> </div> - <div class="table-td"> + <div class="table-td !flex-none w-220 flex items-center"> <div class="leading-20"> <div class="leading-20"> - <span>UID: {{ item.customerName }}</span> + <span>UID: {{ item.customerId }}</span> </div> <div class="leading-20"> <span>昵称: {{ item.customerName }}</span> @@ -54,7 +54,7 @@ </div> </div> - <div class="table-td"> + <div class="table-td !flex-none w-220 flex items-center"> <div class="leading-20">{{ item.createTime }}</div> </div> @@ -110,6 +110,7 @@ flex: 1; height: 45px; line-height: 45px; + padding: 0 10px; font-weight: bold; } } diff --git a/pages/order/evaluation/index.vue b/pages/order/evaluation/index.vue index e03d133..1eb163b 100644 --- a/pages/order/evaluation/index.vue +++ b/pages/order/evaluation/index.vue @@ -145,8 +145,14 @@ { label: '评价图片:', id: 'commentImages', - type: 'image', + type: 'bus-upload', readonly: true, + el: { + listType: 'picture-card', + limit: 1, + limitSize: 2, + valueType: 'string', + }, }, ] }, @@ -209,9 +215,8 @@ {params: {id: item.id}} ) if (code === 0) { - console.log(data); - console.log(data[0].orderId); - this.$refs.crud.$refs.extraDialog[0].show(data[0]) + const row = data[0]; + this.$refs.crud.$refs.extraDialog[0].show(row) } }, @@ -220,7 +225,7 @@ await this.$elBusUtil.confirm( `确定要删除这个商品吗?` ) - const {code, data} = await this.$elBusHttp.request( + const {code} = await this.$elBusHttp.request( 'flower/api/v2/flower-comment/' + item.id + '', { method: 'delete', -- Gitblit v1.9.3