Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
ops_2024_vue
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Administrator
ops_2024_vue
Commits
2c097084
Commit
2c097084
authored
Apr 01, 2024
by
limengyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(lmy):解决不能跳转问题
parent
d6c4dc63
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
209 additions
and
203 deletions
+209
-203
src/views/regionalSpotManage/components/addProduct.vue
src/views/regionalSpotManage/components/addProduct.vue
+10
-10
src/views/regionalSpotManage/components/list.vue
src/views/regionalSpotManage/components/list.vue
+199
-193
No files found.
src/views/regionalSpotManage/components/addProduct.vue
View file @
2c097084
...
@@ -104,8 +104,8 @@ const getLeftData = () => {
...
@@ -104,8 +104,8 @@ const getLeftData = () => {
]
]
if
(
rightData
.
value
.
length
>
0
)
{
if
(
rightData
.
value
.
length
>
0
)
{
for
(
let
i
=
0
;
i
<
rightData
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rightData
.
value
.
length
;
i
++
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
sysid
===
rightData
.
value
[
i
].
sysid
)
!==
-
1
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
rightData
.
value
[
i
].
brand
+
rightData
.
value
[
i
].
goodsNo
+
rightData
.
value
[
i
].
spec
)
!==
-
1
)
{
leftData
.
value
.
find
((
v
)
=>
v
.
sysid
===
rightData
.
value
[
i
].
sysid
).
choice
=
true
leftData
.
value
.
find
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
rightData
.
value
[
i
].
brand
+
rightData
.
value
[
i
].
goodsNo
+
rightData
.
value
[
i
].
spec
).
choice
=
true
}
}
}
}
}
}
...
@@ -131,8 +131,8 @@ const toRight = () => {
...
@@ -131,8 +131,8 @@ const toRight = () => {
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
selectedRows
.
value
))
let
arr
=
JSON
.
parse
(
JSON
.
stringify
(
selectedRows
.
value
))
rightData
.
value
=
[...
arr
,
...
rightData
.
value
]
rightData
.
value
=
[...
arr
,
...
rightData
.
value
]
for
(
let
i
=
0
;
i
<
selectedRows
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
selectedRows
.
value
.
length
;
i
++
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
sysid
===
selectedRows
.
value
[
i
].
sysid
)
!==
-
1
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
selectedRows
.
value
[
i
].
brand
+
selectedRows
.
value
[
i
].
goodsNo
+
selectedRows
.
value
[
i
].
spec
)
!==
-
1
)
{
leftData
.
value
.
find
((
v
)
=>
v
.
sysid
===
selectedRows
.
value
[
i
].
sysid
).
choice
=
true
leftData
.
value
.
find
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
selectedRows
.
value
[
i
].
brand
+
selectedRows
.
value
[
i
].
goodsNo
+
selectedRows
.
value
[
i
].
spec
).
choice
=
true
}
}
}
}
leftData
.
value
=
[...
leftData
.
value
]
leftData
.
value
=
[...
leftData
.
value
]
...
@@ -153,15 +153,15 @@ const rightRowSelection = computed(() => {
...
@@ -153,15 +153,15 @@ const rightRowSelection = computed(() => {
})
})
const
toLeft
=
()
=>
{
const
toLeft
=
()
=>
{
for
(
let
i
=
0
;
i
<
rightSelectedRows
.
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
rightSelectedRows
.
value
.
length
;
i
++
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
sysid
===
rightSelectedRows
.
value
[
i
].
sysid
)
!==
-
1
)
{
if
(
leftData
.
value
.
findIndex
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
rightSelectedRows
.
value
[
i
].
brand
+
rightSelectedRows
.
value
[
i
].
goodsNo
+
rightSelectedRows
.
value
[
i
].
spec
)
!==
-
1
)
{
leftData
.
value
.
find
((
v
)
=>
v
.
sysid
===
rightSelectedRows
.
value
[
i
].
sysid
).
choice
=
false
leftData
.
value
.
find
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
===
rightSelectedRows
.
value
[
i
].
brand
+
rightSelectedRows
.
value
[
i
].
goodsNo
+
rightSelectedRows
.
value
[
i
].
spec
).
choice
=
false
rightData
.
value
.
splice
(
rightData
.
value
.
splice
(
rightData
.
value
.
findIndex
((
v
)
=>
v
.
sysid
==
rightSelectedRows
.
value
[
i
].
sysid
),
rightData
.
value
.
findIndex
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
==
rightSelectedRows
.
value
[
i
].
brand
+
rightSelectedRows
.
value
[
i
].
goodsNo
+
rightSelectedRows
.
value
[
i
].
spec
),
1
1
)
)
}
else
{
}
else
{
rightData
.
value
.
splice
(
rightData
.
value
.
splice
(
rightData
.
value
.
findIndex
((
v
)
=>
v
.
sysid
==
rightSelectedRows
.
value
[
i
].
sysid
),
rightData
.
value
.
findIndex
((
v
)
=>
v
.
brand
+
v
.
goodsNo
+
v
.
spec
==
rightSelectedRows
.
value
[
i
].
brand
+
rightSelectedRows
.
value
[
i
].
goodsNo
+
rightSelectedRows
.
value
[
i
].
spec
),
1
1
)
)
}
}
...
@@ -319,7 +319,7 @@ const confirm = async () => {
...
@@ -319,7 +319,7 @@ const confirm = async () => {
:columns=
"leftColumns"
:columns=
"leftColumns"
:pagination=
"pagination"
:pagination=
"pagination"
:row-selection=
"rowSelection"
:row-selection=
"rowSelection"
:rowKey=
"(record) => record.
sysid
"
:rowKey=
"(record) => record.
brand + record.goodsNo + record.spec
"
:scroll=
"{ x: false, y: 280 }"
:scroll=
"{ x: false, y: 280 }"
:rowClassName=
"rowClassName"
:rowClassName=
"rowClassName"
:loading=
"loading"
:loading=
"loading"
...
@@ -366,7 +366,7 @@ const confirm = async () => {
...
@@ -366,7 +366,7 @@ const confirm = async () => {
:data-source=
"rightData"
:data-source=
"rightData"
:columns=
"leftColumns"
:columns=
"leftColumns"
:pagination=
"false"
:pagination=
"false"
:rowKey=
"(record) => record.
sysid
"
:rowKey=
"(record) => record.
brand + record.goodsNo + record.spec
"
:scroll=
"{ x: false, y: 280 }"
:scroll=
"{ x: false, y: 280 }"
:rowClassName=
"rowClassName"
:rowClassName=
"rowClassName"
:row-selection=
"rightRowSelection"
:row-selection=
"rightRowSelection"
...
...
src/views/regionalSpotManage/components/list.vue
View file @
2c097084
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