Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
ka-manager-ui
Project
Project
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
QG
ka-manager-ui
Commits
0cd2d05a
Commit
0cd2d05a
authored
Jul 31, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一推 二推 真的好麻烦
parent
dd43c9f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
index.vue
src/modules/channels/index.vue
+16
-8
No files found.
src/modules/channels/index.vue
View file @
0cd2d05a
...
@@ -483,24 +483,32 @@
...
@@ -483,24 +483,32 @@
if
(
this
.
checkedItemsResultVO
)
{
if
(
this
.
checkedItemsResultVO
)
{
if
(
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
length
>
0
)
{
if
(
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
length
>
0
)
{
// 说明用户至少有一项
// 说明用户至少有一项
// 遇到个问题,如果checkedItemsResult 有point=1, 现在新增point=2 ,就在要for 之后添加一个checkedItemsResult[1]
let
isNotEquals
=
true
;
for
(
let
index
in
this
.
channel
.
importCheckInfo
.
checkedItemsResult
)
{
for
(
let
index
in
this
.
channel
.
importCheckInfo
.
checkedItemsResult
)
{
let
item
=
this
.
channel
.
importCheckInfo
.
checkedItemsResult
[
index
]
let
item
=
this
.
channel
.
importCheckInfo
.
checkedItemsResult
[
index
]
if
(
item
.
point
===
this
.
checkedItemsResultVO
.
point
)
{
if
(
item
.
point
===
this
.
checkedItemsResultVO
.
point
)
{
isNotEquals
=
false
item
.
checkedItems
=
this
.
checkedItemsResultVO
.
value
item
.
checkedItems
=
this
.
checkedItemsResultVO
.
value
}
}
}
}
if
(
isNotEquals
)
{
let
point2
=
{
point
:
this
.
checkedItemsResultVO
.
point
,
checkedItems
:
this
.
checkedItemsResultVO
.
value
}
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
push
(
point2
)
}
}
else
{
}
else
{
// 说明用户一项都没有 或者是新增
// 说明用户一项都没有 或者是新增
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
point
=
this
.
checkedItemsResultVO
.
point
this
.
channel
.
importCheckInfo
.
checkedItemsResult
=
[];
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
checkedItems
=
this
.
checkedItemsResultVO
.
value
let
point
=
{
console
.
log
(
this
.
channel
.
importCheckInfo
.
checkedItemsResult
)
point
:
this
.
checkedItemsResultVO
.
point
,
// console.log(this.channel.importCheckInfo.checkedItems)
checkedItems
:
this
.
checkedItemsResultVO
.
value
}
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
push
(
point
)
}
}
}
}
// console.log(this.channel.importCheckInfo.checkedItemsResult)
// console.log(this.channel.importCheckInfo.checkedItemsResult.point)
// console.log(this.channel.importCheckInfo.checkedItemsResult.checkedItems)
console
.
log
(
this
.
channel
.
importCheckInfo
)
saveApplyCheckConf
(
this
.
channel
.
importCheckInfo
).
then
(
rep
=>
{
saveApplyCheckConf
(
this
.
channel
.
importCheckInfo
).
then
(
rep
=>
{
this
.
$notify
({
this
.
$notify
({
title
:
'
成功
'
,
title
:
'
成功
'
,
...
...
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