Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
multiSystem
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
Yulun Yao
multiSystem
Commits
4473f353
Commit
4473f353
authored
May 17, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复第一组可删除的bug
parent
b5716fc5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
27 deletions
+49
-27
labelRightSide.vue
src/views/label/labelRightSide.vue
+49
-27
No files found.
src/views/label/labelRightSide.vue
View file @
4473f353
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
<div>
<div>
<a-row>
<a-row>
<!--
<a-col
:span=
'1'
v-if=
"triggerType == 'create'"
>
-->
<!--
<a-col
:span=
'1'
v-if=
"triggerType == 'create'"
>
-->
<a-col
:span=
'16'
>
<a-row>
<a-col
:span=
'1'
>
<a-col
:span=
'1'
>
<div
class=
"detailOperations"
>
<div
class=
"detailOperations"
>
<a-button
@
click=
"backPage"
>
返回
</a-button>
<a-button
@
click=
"backPage"
>
返回
</a-button>
...
@@ -17,7 +19,9 @@
...
@@ -17,7 +19,9 @@
<a-col
:span=
'1'
:offset=
'1'
>
<a-col
:span=
'1'
:offset=
'1'
>
<a-button
type=
'primary'
@
click=
"save()"
>
保存
</a-button>
<a-button
type=
'primary'
@
click=
"save()"
>
保存
</a-button>
</a-col>
</a-col>
<a-col
:span=
'19'
></a-col>
<a-col
:span=
'18'
></a-col>
</a-row>
</a-col>
</a-row>
</a-row>
</div>
</div>
<a-divider
type=
'horizontal'
/>
<a-divider
type=
'horizontal'
/>
...
@@ -72,18 +76,31 @@
...
@@ -72,18 +76,31 @@
<a-form
:form=
'infoSettingForm'
layout=
'inline'
>
<a-form
:form=
'infoSettingForm'
layout=
'inline'
>
<div
v-for=
"(item66, index66) in loopContent.data"
:key=
"index66"
style=
"margin-top: 20px; padding: 20px; border: 1px solid lightgrey"
>
<div
v-for=
"(item66, index66) in loopContent.data"
:key=
"index66"
style=
"margin-top: 20px; padding: 20px; border: 1px solid lightgrey"
>
<!--
{{
index66
}}
-->
<a-row
type=
'flex'
style=
"font-weight: bold; font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid lightgrey"
align=
'middle'
>
<a-row
type=
'flex'
style=
"font-weight: bold; font-size: 16px; margin-bottom: 20px; border-bottom: 1px solid lightgrey"
align=
'middle'
>
<a-col
:span=
'21'
>
<a-col
:span=
'21'
>
<span
style=
"font-weight: bold"
>
条件分组
{{
index66
+
1
}}
</span>
<span
style=
"font-weight: bold"
>
条件分组
{{
index66
+
1
}}
</span>
</a-col>
</a-col>
<a-col
:span=
'3'
>
<a-col
:span=
'3'
v-if=
"index66 !== 0"
>
<a-button
style=
"color: darkred"
type=
"link"
@
click=
"delGroup(index66)"
><a-icon
type=
"delete"
/>
删除分组
</a-button>
<a-button
style=
"color: darkred"
type=
"link"
@
click=
"delGroup(index66)"
><a-icon
type=
"delete"
/>
删除分组
</a-button>
</a-col>
</a-col>
</a-row>
</a-row>
<div
style=
"width: 90%; padding: 20px; margin-bottom: 20px"
>
<div
style=
"width: 90%; padding: 20px; margin-bottom: 20px"
>
<div
v-for=
"(item, index) in item66.labelSelConditionList"
:key=
'index'
style=
"margin-bottom: 20px"
>
<div
v-for=
"(item, index) in item66.labelSelConditionList"
:key=
'index'
style=
"margin-bottom: 20px"
>
<a-form-item>
<a-row>
<a-form-item
v-if=
"index == 0 && index66 !== 0"
style=
"margin-bottom: 20px"
>
<a-select
style=
"width: 80px"
placeholder=
'与上组关系'
v-decorator=
"['relationWithGroup-' + index66 + '-0',
{initialValue: item66.relation, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'and'
>
与
</a-select-option>
<a-select-option
value=
'or'
>
或
</a-select-option>
<a-select-option
value=
'ne'
>
非
</a-select-option>
</a-select>
</a-form-item>
<!--
<a-form-item
v-if=
"index == 0"
>
<a-input
style=
"width: 80px"
placeholder=
'分组名'
v-decorator=
"['groupName-' + index66,
{initialValue: getInitialValueTwo(item.val), validateTrigger:'blur',rules: []}]">
</a-input>
</a-form-item>
-->
</a-row>
<a-form-item
v-if=
"index !== 0"
>
<a-select
style=
"width: 80px"
placeholder=
'请选择条件'
v-decorator=
"['relation-' + index66 +'-' + index,
{initialValue: item.relation, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select
style=
"width: 80px"
placeholder=
'请选择条件'
v-decorator=
"['relation-' + index66 +'-' + index,
{initialValue: item.relation, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'and'
>
与
</a-select-option>
<a-select-option
value=
'and'
>
与
</a-select-option>
<a-select-option
value=
'or'
>
或
</a-select-option>
<a-select-option
value=
'or'
>
或
</a-select-option>
...
@@ -91,6 +108,9 @@
...
@@ -91,6 +108,9 @@
</a-select>
</a-select>
</a-form-item>
</a-form-item>
<a-form-item
v-else
style=
"width: 80px"
>
</a-form-item>
<a-form-item>
<a-form-item>
<a-select
style=
"width: 80px"
placeholder=
'请选择标记对象'
v-decorator=
"['tableName-' + index66 +'-' + index,
{initialValue: item.tableName, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select
style=
"width: 80px"
placeholder=
'请选择标记对象'
v-decorator=
"['tableName-' + index66 +'-' + index,
{initialValue: item.tableName, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
v-for=
"(item, index) in objSelectOptions"
:key=
'index'
:value=
'item.value'
>
{{
item
.
name
}}
</a-select-option>
<a-select-option
v-for=
"(item, index) in objSelectOptions"
:key=
'index'
:value=
'item.value'
>
{{
item
.
name
}}
</a-select-option>
...
@@ -121,7 +141,6 @@
...
@@ -121,7 +141,6 @@
{{
infoSettingForm
.
getFieldValue
(
'tableName-'
+
index66
+
'-'
+
index
)
}}
{{
infoSettingForm
.
getFieldValue
(
'tableName-'
+
index66
+
'-'
+
index
)
}}
{{
infoSettingForm
.
getFieldValue
(
'key-'
+
index66
+
'-'
+
index
)
}}
-->
{{
infoSettingForm
.
getFieldValue
(
'key-'
+
index66
+
'-'
+
index
)
}}
-->
<a-form-item
v-if=
"checkIfSelectOptionAppears(availableKeyList, infoSettingForm.getFieldValue('tableName-' + index66 +'-' + index), infoSettingForm.getFieldValue('key-' + index66 +'-' + index))"
>
<a-form-item
v-if=
"checkIfSelectOptionAppears(availableKeyList, infoSettingForm.getFieldValue('tableName-' + index66 +'-' + index), infoSettingForm.getFieldValue('key-' + index66 +'-' + index))"
>
<!--
{{
checkIfSelectOptionAppears
(
availableKeyList
,
infoSettingForm
.
getFieldValue
(
'tableName-'
+
index66
+
'-'
+
index
),
infoSettingForm
.
getFieldValue
(
'key-'
+
index66
+
'-'
+
index
))
}}
-->
<!--
{{
checkIfSelectOptionAppears
(
availableKeyList
,
infoSettingForm
.
getFieldValue
(
'tableName-'
+
index66
+
'-'
+
index
),
infoSettingForm
.
getFieldValue
(
'key-'
+
index66
+
'-'
+
index
))
}}
-->
<!--
{{
availableKeyList
.
find
(
item
=>
item
.
tblKey
==
'stKind'
)
}}
-->
<!--
{{
availableKeyList
.
find
(
item
=>
item
.
tblKey
==
'stKind'
)
}}
-->
...
@@ -410,11 +429,11 @@ export default {
...
@@ -410,11 +429,11 @@ export default {
},
},
methods
:
{
methods
:
{
clearForm
(
formToClear
)
{
clearForm
(
formToClear
)
{
console
.
log
(
formToClear
)
;
console
.
log
(
formToClear
)
this
.
infoSettingForm
.
resetFields
(
formToClear
)
this
.
infoSettingForm
.
resetFields
(
formToClear
)
},
},
getSelectedProperty
(
val
)
{
getSelectedProperty
(
val
)
{
console
.
log
(
val
)
;
console
.
log
(
val
)
},
},
handleResultCancel
()
{
handleResultCancel
()
{
this
.
resultModalVisible
=
!
this
.
resultModalVisible
this
.
resultModalVisible
=
!
this
.
resultModalVisible
...
@@ -539,14 +558,14 @@ export default {
...
@@ -539,14 +558,14 @@ export default {
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
formData
[
'relation-'
+
i
+
'-'
+
index
]
,
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
})
})
})
})
innerResult
.
push
({
innerResult
.
push
({
'serial'
:
1
,
'serial'
:
1
,
'relation'
:
formData
[
'relation-'
+
i
+
'-0'
]
,
'relation'
:
!!
formData
[
'relationWithGroup-'
+
i
+
'-0'
]?
formData
[
'relationWithGroup-'
+
i
+
'-0'
]:
'and'
,
'labelSelConditionList'
:
rowList
'labelSelConditionList'
:
rowList
})
})
})
})
...
@@ -791,14 +810,17 @@ export default {
...
@@ -791,14 +810,17 @@ export default {
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
formData
[
'relation-'
+
i
+
'-'
+
index
]
,
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
})
})
})
})
// console.log(!!formData['relationWithGroup-' + i + '-0']? formData['relationWithGroup-' + i + '-0']: 'and');
// relationWithGroup-0-0
innerResult
.
push
({
innerResult
.
push
({
'serial'
:
1
,
'serial'
:
1
,
'relation'
:
formData
[
'relation-'
+
i
+
'-0'
]
,
'relation'
:
!!
formData
[
'relationWithGroup-'
+
i
+
'-0'
]?
formData
[
'relationWithGroup-'
+
i
+
'-0'
]:
'and'
,
'labelSelConditionList'
:
rowList
'labelSelConditionList'
:
rowList
})
})
})
})
...
@@ -865,14 +887,14 @@ export default {
...
@@ -865,14 +887,14 @@ export default {
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
tableName
:
formData
[
'tableName-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
val
:
!
formData
[
'inputTwo-'
+
i
+
'-'
+
index
]
?
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
:
formData
[
'inputOne-'
+
i
+
'-'
+
index
]
+
','
+
formData
[
'inputTwo-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
codition
:
formData
[
'codition-'
+
i
+
'-'
+
index
],
relation
:
formData
[
'relation-'
+
i
+
'-'
+
index
]
,
relation
:
!!
formData
[
'relation-'
+
i
+
'-'
+
index
]?
formData
[
'relation-'
+
i
+
'-'
+
index
]:
'and'
,
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
selMet
:
formData
[
'selMet-'
+
i
+
'-'
+
index
]
})
})
})
})
innerResult
.
push
({
innerResult
.
push
({
'serial'
:
1
,
'serial'
:
1
,
'relation'
:
formData
[
'relation-'
+
i
+
'-0'
]
,
'relation'
:
!!
formData
[
'relationWithGroup-'
+
i
+
'-0'
]?
formData
[
'relationWithGroup-'
+
i
+
'-0'
]:
'and'
,
'labelSelConditionList'
:
rowList
'labelSelConditionList'
:
rowList
})
})
})
})
...
...
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