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
1bb9df7b
authored
Nov 21, 2023
by
owen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商品中心:修复商品表格选择对话框,在多选时表头内的多选框不显示选中效果的问题
parent
e0a731dd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
130 additions
and
76 deletions
+130
-76
src/views/mall/product/spu/components/SpuShowcase.vue
+3
-3
src/views/mall/product/spu/components/SpuTableSelect.vue
+127
-73
No files found.
src/views/mall/product/spu/components/SpuShowcase.vue
View file @
1bb9df7b
...
...
@@ -20,7 +20,7 @@
</el-tooltip>
</div>
<!-- 商品选择对话框(表格形式) -->
<SpuTableSelect
ref=
"spuTableSelectRef"
multiple
@
change=
"handleSpuSelected"
/>
<SpuTableSelect
ref=
"spuTableSelectRef"
:multiple=
"limit != 1"
@
change=
"handleSpuSelected"
/>
</
template
>
<
script
lang=
"ts"
setup
>
import
*
as
ProductSpuApi
from
'@/api/mall/product/spu'
...
...
@@ -88,8 +88,8 @@ const openSpuTableSelect = () => {
* 选择商品后触发
* @param spus 选中的商品列表
*/
const
handleSpuSelected
=
(
spus
:
ProductSpuApi
.
Spu
[])
=>
{
productSpus
.
value
=
spus
const
handleSpuSelected
=
(
spus
:
ProductSpuApi
.
Spu
|
ProductSpuApi
.
Spu
[])
=>
{
productSpus
.
value
=
isArray
(
spus
)
?
spus
:
[
spus
]
emitSpuChange
()
}
...
...
src/views/mall/product/spu/components/SpuTableSelect.vue
View file @
1bb9df7b
This diff is collapsed.
Click to expand it.
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