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
312b1ce4
Commit
312b1ce4
authored
Aug 04, 2020
by
suntao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进件项 保存 新增问题
parent
753e134d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
index.vue
src/modules/channels/index.vue
+14
-9
No files found.
src/modules/channels/index.vue
View file @
312b1ce4
...
...
@@ -472,12 +472,15 @@
}
}
if
(
rep
.
data
&&
rep
.
data
.
importCheckInfo
&&
rep
.
data
.
importCheckInfo
.
checkedItemsResult
.
length
>
0
)
{
_this
.
channel
.
importCheckInfo
.
checkedItemsResult
=
rep
.
data
.
importCheckInfo
.
checkedItemsResult
;
// 说明有数据
let
def
=
rep
.
data
.
importCheckInfo
.
checkedItemsResult
[
0
];
_this
.
checkedItemsResultVO
.
point
=
def
.
point
_this
.
checkedItemsResultVO
.
value
=
def
.
checkedItems
if
(
rep
.
data
&&
rep
.
data
.
importCheckInfo
)
{
_this
.
channel
.
importCheckInfo
.
channelId
=
rep
.
data
.
importCheckInfo
.
channelId
if
(
rep
.
data
.
importCheckInfo
.
checkedItemsResult
.
length
>
0
)
{
_this
.
channel
.
importCheckInfo
.
checkedItemsResult
=
rep
.
data
.
importCheckInfo
.
checkedItemsResult
;
// 说明有数据
let
def
=
rep
.
data
.
importCheckInfo
.
checkedItemsResult
[
0
];
_this
.
checkedItemsResultVO
.
point
=
def
.
point
_this
.
checkedItemsResultVO
.
value
=
def
.
checkedItems
}
}
}
})
...
...
@@ -517,20 +520,22 @@
}
}
// 保存进件项配置
console
.
log
(
this
.
channel
.
importCheckInfo
)
// 如果
if
(
this
.
checkedItemsResultVO
)
{
if
(
this
.
channel
.
importCheckInfo
.
checkedItemsResult
.
length
>
0
)
{
// 说明用户至少有一项
// 遇到个问题,如果checkedItemsResult 有point=1, 现在新增point=2 ,就在要for 之后添加一个checkedItemsResult[1]
let
is
NotEquals
=
tru
e
;
let
is
Equals
=
fals
e
;
for
(
let
index
in
this
.
channel
.
importCheckInfo
.
checkedItemsResult
)
{
let
item
=
this
.
channel
.
importCheckInfo
.
checkedItemsResult
[
index
]
console
.
log
(
item
)
if
(
item
.
point
===
this
.
checkedItemsResultVO
.
point
)
{
is
NotEquals
=
fals
e
is
Equals
=
tru
e
item
.
checkedItems
=
this
.
checkedItemsResultVO
.
value
}
}
if
(
isNot
Equals
)
{
if
(
!
is
Equals
)
{
let
point2
=
{
point
:
this
.
checkedItemsResultVO
.
point
,
checkedItems
:
this
.
checkedItemsResultVO
.
value
...
...
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