Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何远江
topsun-baoshen-excel
Commits
67813158
Commit
67813158
authored
Jan 13, 2025
by
何远江
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
恢复产品多选
parent
05740cfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
13 deletions
+10
-13
MultipleProductModal.vue
src/components/ProductModal/MultipleProductModal.vue
+10
-13
No files found.
src/components/ProductModal/MultipleProductModal.vue
View file @
67813158
...
...
@@ -33,7 +33,7 @@
size="mini"
height="400"
>
<vxe-column
type=
"
radio
"
width=
"40"
></vxe-column>
<vxe-column
type=
"
checkbox
"
width=
"40"
></vxe-column>
<vxe-column
field=
"productCode"
title=
"产品编码"
width=
"200"
></vxe-column>
<vxe-column
field=
"productName"
title=
"产品名称"
></vxe-column>
<vxe-column
field=
"productCategoryId_dictText"
title=
"产品类型"
width=
"200"
></vxe-column>
...
...
@@ -158,7 +158,7 @@ export default defineComponent({
showEdit
.
value
=
val
val
&&
nextTick
(()
=>
{
//
xTable.value?.setCheckboxRow(props.selectProd, true)
xTable
.
value
?.
setCheckboxRow
(
props
.
selectProd
,
true
)
})
}
)
...
...
@@ -186,24 +186,21 @@ export default defineComponent({
}
const
confirmModal
=
()
=>
{
// const list = xTable.value?.getCheckboxRecords() || []
// const reserveList = xTable.value?.getCheckboxReserveRecords() || []
// const res = [...list, ...reserveList]
const
res
=
xTable
.
value
?.
getRadioRecord
()
const
list
=
xTable
.
value
?.
getCheckboxRecords
()
||
[]
const
reserveList
=
xTable
.
value
?.
getCheckboxReserveRecords
()
||
[]
const
res
=
[...
list
,
...
reserveList
]
// if (!res?.length) {
// return ElMessage.warning('请选择一条数据!')
// }
if
(
res
===
null
)
{
if
(
!
res
?.
length
)
{
return
ElMessage
.
warning
(
'请选择一条数据!'
)
}
emit
(
'confirm'
,
[
res
])
emit
(
'confirm'
,
res
)
emit
(
'update:visible'
,
false
)
}
const
onHide
=
()
=>
{
//
xTable.value?.clearCheckboxReserve()
//
xTable.value?.clearCheckboxRow()
xTable
.
value
?.
clearCheckboxReserve
()
xTable
.
value
?.
clearCheckboxRow
()
emit
(
'update:visible'
,
false
)
}
...
...
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