Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
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
1
Merge Requests
1
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
wbx-PCAndMobi
mobi
Commits
70c625e1
Commit
70c625e1
authored
May 12, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bq
parent
5eff4bbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
12 deletions
+29
-12
labelRightSide.vue
src/views/label/labelRightSide.vue
+29
-12
No files found.
src/views/label/labelRightSide.vue
View file @
70c625e1
...
@@ -418,7 +418,7 @@ export default {
...
@@ -418,7 +418,7 @@ export default {
this
.
jsonData
=
{
selParams
:
[]}
this
.
jsonData
=
{
selParams
:
[]}
},
},
handleConfirmVisible
()
{
handleConfirmVisible
()
{
console
.
log
(
this
.
jsonData
)
;
console
.
log
(
this
.
jsonData
)
// if(!!this.labelId) {
// if(!!this.labelId) {
// this.$ajax.put({
// this.$ajax.put({
// url: this.$api.PUT_LABEL_INFO.replace('{id}', this.labelId),
// url: this.$api.PUT_LABEL_INFO.replace('{id}', this.labelId),
...
@@ -475,22 +475,39 @@ export default {
...
@@ -475,22 +475,39 @@ export default {
this
.
jsonData
=
Object
.
assign
(
this
.
jsonData
,
labelFormData
)
this
.
jsonData
=
Object
.
assign
(
this
.
jsonData
,
labelFormData
)
this
.
infoSettingForm
.
validateFields
((
err1
,
values
)
=>
{
this
.
infoSettingForm
.
validateFields
((
err1
,
values
)
=>
{
if
(
!
err1
)
{
if
(
!
err1
)
{
let
loopCounts
=
this
.
loopContent
.
data
.
length
let
loopGroup
=
this
.
loopContent
// 有多少组
console
.
log
(
values
)
let
innerResult
=
[]
let
formData
=
this
.
infoSettingForm
.
getFieldsValue
()
let
formData
=
this
.
infoSettingForm
.
getFieldsValue
()
for
(
let
i
=
0
;
i
<
loopCounts
;
i
++
)
{
for
(
let
i
=
0
;
i
<
Object
.
keys
(
loopGroup
).
length
;
i
++
)
{
console
.
log
(
loopCounts
);
console
.
log
(
loopGroup
)
this
.
jsonData
.
selParams
.
labelSelConditionList
.
push
({
for
(
let
j
=
0
;
j
<
Object
.
keys
(
formData
).
length
;
j
++
)
{
key
:
formData
[
'key'
+
i
],
console
.
log
(
'key-'
+
Object
.
keys
(
loopGroup
)[
i
]
+
'-'
+
j
)
innerResult
.
push
({
key
:
formData
[
'key-'
+
Object
.
keys
(
loopGroup
)[
i
]
+
'-'
+
j
],
val
:
!
formData
[
'inputTwo'
+
i
]
?
formData
[
'inputOne'
+
i
]
:
formData
[
'inputOne'
+
i
]
+
','
+
formData
[
'inputTwo'
+
i
],
val
:
!
formData
[
'inputTwo'
+
i
]
?
formData
[
'inputOne'
+
i
]
:
formData
[
'inputOne'
+
i
]
+
','
+
formData
[
'inputTwo'
+
i
],
codition
:
formData
[
'codition'
+
i
],
codition
:
formData
[
'codition-'
+
Object
.
keys
(
loopGroup
)[
i
]
+
'-'
+
j
],
relation
:
formData
[
'relation'
+
i
],
relation
:
formData
[
'relation-'
+
Object
.
keys
(
loopGroup
)[
i
]
+
'-'
+
j
],
selMet
:
formData
[
'selMet'
+
i
]
selMet
:
formData
[
'selMet-'
+
Object
.
keys
(
loopGroup
)[
i
]
+
'-'
+
j
]
})
})
}
}
// 先循环得到有多少个form
console
.
log
(
innerResult
)
// console.log(JSON.stringify(Object.values(loopGroup)[i]));
// console.log(loopCounts)
// this.jsonData.selParams.labelSelConditionList.push({
// key: formData['key'+i],
// val: !formData['inputTwo' + i] ? formData['inputOne' + i] : formData['inputOne' + i] + ',' + formData['inputTwo' + i],
// codition: formData['codition'+i],
// relation: formData['relation' + i],
// selMet: formData['selMet' + i]
// })
}
// 先循环得到有多少个form
// this.$ajax.post({
// this.$ajax.post({
// url: this.$api.GET_LABEL_BIND_FILTER_RESULT,
// url: this.$api.GET_LABEL_BIND_FILTER_RESULT,
...
...
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