61
61
<el-table v-loading =" loading" :data =" list" :stripe =" true" :show-overflow-tooltip =" false" >
62
62
<el-table-column label =" 评论编号" align =" center" prop =" id" min-width =" 60" />
63
63
<el-table-column label =" 用户名称" align =" center" prop =" userNickname" width =" 80" />
64
- <el-table-column label =" 商品信息" align =" center" min-width =" 210 " >
64
+ <el-table-column label =" 商品信息" align =" center" min-width =" 300 " >
65
65
<template #default =" scope " >
66
66
<div class =" flex row items-center gap-x-4px" >
67
67
<el-image
68
68
v-if =" scope.row.skuPicUrl"
69
69
:src =" scope.row.skuPicUrl"
70
70
:preview-src-list =" [scope.row.skuPicUrl]"
71
- class =" w-30px h-30px shrink-0"
71
+ class =" w-40px h-40px shrink-0"
72
72
preview-teleported
73
73
/>
74
74
<div >{{ scope.row.spuName }}</div >
75
+ <el-tag
76
+ v-for =" property in scope.row.skuProperties"
77
+ :key =" property.propertyId"
78
+ class =" mr-10px"
79
+ >
80
+ {{ property.propertyName }}: {{ property.valueName }}
81
+ </el-tag >
75
82
</div >
76
83
</template >
77
84
</el-table-column >
88
95
:src =" picUrl"
89
96
:preview-src-list =" scope.row.picUrls"
90
97
:initial-index =" index"
91
- class =" w-30px h-30px "
98
+ class =" w-40px h-40px "
92
99
preview-teleported
93
100
/>
94
101
</div >
151
158
import { dateFormatter } from ' @/utils/formatTime'
152
159
import * as CommentApi from ' @/api/mall/product/comment'
153
160
import CommentForm from ' ./CommentForm.vue'
154
- import ReplyForm from ' @/views/mall/product/comment /ReplyForm.vue'
161
+ import ReplyForm from ' . /ReplyForm.vue'
155
162
156
163
defineOptions ({ name: ' ProductComment' })
157
164
@@ -164,25 +171,10 @@ const list = ref([]) // 列表的数据
164
171
const queryParams = reactive ({
165
172
pageNo: 1 ,
166
173
pageSize: 10 ,
167
- userId: null ,
174
+ replyStatus: null ,
175
+ spuName: null ,
168
176
userNickname: null ,
169
- userAvatar: null ,
170
- anonymous: null ,
171
177
orderId: null ,
172
- orderItemId: null ,
173
- spuId: null ,
174
- spuName: null ,
175
- skuId: null ,
176
- visible: null ,
177
- scores: null ,
178
- descriptionScores: null ,
179
- benefitScores: null ,
180
- content: null ,
181
- picUrls: null ,
182
- replyStatus: null ,
183
- replyUserId: null ,
184
- replyContent: null ,
185
- replyTime: [],
186
178
createTime: []
187
179
})
188
180
const queryFormRef = ref () // 搜索的表单
0 commit comments