code review:商品评论

This commit is contained in:
YunaiV
2023-08-26 11:19:29 +08:00
parent 343b6bbf18
commit 84c5eb9942
5 changed files with 8 additions and 1 deletions

View File

@@ -60,6 +60,7 @@
<ContentWrap>
<el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="false">
<el-table-column label="评论编号" align="center" prop="id" min-width="60" />
<!-- TODO @疯狂后端貌似没读取 -->
<el-table-column label="用户名称" align="center" prop="userNickname" width="80" />
<el-table-column label="商品信息" align="center" min-width="210">
<template #default="scope">
@@ -210,7 +211,7 @@ const getList = async () => {
loading.value = true
try {
const data = await CommentApi.getCommentPage(queryParams)
// visible 如果为 null会导致刷新的时候触发e-switchchange事件
// visible 如果为 null会导致刷新的时候触发 e-switchchange 事件
data.list.forEach((item) => {
if (!item.visible) {
item.visible = false
@@ -241,6 +242,7 @@ const openForm = (type: string, id?: number) => {
formRef.value.open(type, id)
}
// TODO @疯狂:要不回复,也搞一个组件出去?
/** 回复 **/
const replyFormRef = ref()
const replyDialog = reactive({