Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
15971b6f
authored
Aug 26, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品评论:
1.移除scores,由后端自动计算 2.SPU、SKU选择组件,放到SPU组件目录下
parent
ec412f7a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
8 deletions
+2
-8
src/views/mall/product/comment/CommentForm.vue
+2
-6
src/views/mall/product/spu/components/SkuTableSelect.vue
+0
-1
src/views/mall/product/spu/components/SpuTableSelect.vue
+0
-1
No files found.
src/views/mall/product/comment/CommentForm.vue
View file @
15971b6f
...
@@ -36,10 +36,6 @@
...
@@ -36,10 +36,6 @@
<el-form-item
label=
"评论内容"
prop=
"content"
>
<el-form-item
label=
"评论内容"
prop=
"content"
>
<el-input
type=
"textarea"
v-model=
"formData.content"
/>
<el-input
type=
"textarea"
v-model=
"formData.content"
/>
</el-form-item>
</el-form-item>
<!-- TODO @疯狂:formData.scores 是通过后端计算的哈,不要前端传递 -->
<el-form-item
label=
"评分星级"
prop=
"scores"
>
<el-rate
v-model=
"formData.scores"
/>
</el-form-item>
<el-form-item
label=
"描述星级"
prop=
"descriptionScores"
>
<el-form-item
label=
"描述星级"
prop=
"descriptionScores"
>
<el-rate
v-model=
"formData.descriptionScores"
/>
<el-rate
v-model=
"formData.descriptionScores"
/>
</el-form-item>
</el-form-item>
...
@@ -60,9 +56,9 @@
...
@@ -60,9 +56,9 @@
</template>
</template>
<
script
setup
lang=
"ts"
>
<
script
setup
lang=
"ts"
>
import
*
as
CommentApi
from
'@/api/mall/product/comment'
import
*
as
CommentApi
from
'@/api/mall/product/comment'
import
SpuTableSelect
from
'@/views/mall/product/
comment
/components/SpuTableSelect.vue'
import
SpuTableSelect
from
'@/views/mall/product/
spu
/components/SpuTableSelect.vue'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
SkuTableSelect
from
'@/views/mall/product/
comment
/components/SkuTableSelect.vue'
import
SkuTableSelect
from
'@/views/mall/product/
spu
/components/SkuTableSelect.vue'
const
{
t
}
=
useI18n
()
// 国际化
const
{
t
}
=
useI18n
()
// 国际化
const
message
=
useMessage
()
// 消息弹窗
const
message
=
useMessage
()
// 消息弹窗
...
...
src/views/mall/product/
comment
/components/SkuTableSelect.vue
→
src/views/mall/product/
spu
/components/SkuTableSelect.vue
View file @
15971b6f
...
@@ -37,7 +37,6 @@ import { ElTable } from 'element-plus'
...
@@ -37,7 +37,6 @@ import { ElTable } from 'element-plus'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
{
propTypes
}
from
'@/utils/propTypes'
import
{
propTypes
}
from
'@/utils/propTypes'
// TODO @疯狂:是不是挪到 spu 的 components 下哈
defineOptions
({
name
:
'SkuTableSelect'
})
defineOptions
({
name
:
'SkuTableSelect'
})
const
props
=
defineProps
({
const
props
=
defineProps
({
...
...
src/views/mall/product/
comment
/components/SpuTableSelect.vue
→
src/views/mall/product/
spu
/components/SpuTableSelect.vue
View file @
15971b6f
...
@@ -86,7 +86,6 @@ import { defaultProps, handleTree } from '@/utils/tree'
...
@@ -86,7 +86,6 @@ import { defaultProps, handleTree } from '@/utils/tree'
import
*
as
ProductCategoryApi
from
'@/api/mall/product/category'
import
*
as
ProductCategoryApi
from
'@/api/mall/product/category'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
// TODO @疯狂:是不是挪到 spu 的 components 下哈
defineOptions
({
name
:
'SpuTableSelect'
})
defineOptions
({
name
:
'SpuTableSelect'
})
const
message
=
useMessage
()
// 消息弹窗
const
message
=
useMessage
()
// 消息弹窗
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment