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
1fcd6d6f
Commit
1fcd6d6f
authored
May 12, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
b8e6280a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
23 deletions
+15
-23
labelRightSide.vue
src/views/label/labelRightSide.vue
+15
-23
No files found.
src/views/label/labelRightSide.vue
View file @
1fcd6d6f
...
...
@@ -61,8 +61,9 @@
</a-form-item>
</a-form>
<!--
<div
style=
"background-color: #F0F2F5; height: 10px; "
></div>
-->
{{
loopContent
}}
<!--
{{
loopContent
}}
-->
<a-form
:form=
'infoSettingForm'
layout=
'inline'
>
<!--
{{
loopContent
.
data
}}
-->
<div
v-for=
"(item66, index66) in loopContent"
:key=
"index66"
style=
"margin-top: 20px; padding: 20px; border: 1px solid lightgrey"
>
<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'
>
...
...
@@ -72,6 +73,7 @@
<a-button
style=
"color: darkred"
type=
"link"
@
click=
"delGroup(index66)"
><a-icon
type=
"delete"
/>
{{
index66
}}
删除分组
</a-button>
</a-col>
</a-row>
{{
item66
}}
<div
v-if=
"JSON.stringify(loopContent[index66]) !== '[]'"
style=
"width: 90%; padding: 20px; margin-bottom: 20px"
>
<!--
<span
v-if=
"index66 !== 'data'"
>
与
</span>
-->
<!--
{{
item66
}}
-->
...
...
@@ -83,7 +85,8 @@
<a-select-option
value=
'ne'
>
非
</a-select-option>
</a-select>
</a-form-item>
-->
<!--
{{
item
}}
-->
{{
item
}}
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'请选择条件'
v-decorator=
"['relation-' + index66 +'-' + index,
{initialValue: item.relation, validateTrigger:'blur',rules: []}]">
<a-select-option
value=
'and'
>
与
</a-select-option>
...
...
@@ -93,13 +96,13 @@
</a-form-item>
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'请选择业务属性'
v-decorator=
"['key-' + index66 +'-' + index,
{initialValue: item.key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select
style=
"width: 120px"
placeholder=
'请选择业务属性'
v-decorator=
"['key-' + index66 +'-' + index,
{initialValue: item.
labelSelConditionList[0].
key, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
v-for=
"(item1, index1) in availableKeyList"
:key=
'index1'
:value=
'item1.tblKey'
>
{{
item1
.
tblKeyName
}}
</a-select-option>
</a-select>
</a-form-item>
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'区间'
v-decorator=
"['codition-' + index66 +'-' + index,
{initialValue: item.codition, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select
style=
"width: 120px"
placeholder=
'区间'
v-decorator=
"['codition-' + index66 +'-' + index,
{initialValue: item.
labelSelConditionList[0].
codition, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'eq'
>
等于
</a-select-option>
<a-select-option
value=
'gt'
>
大于
</a-select-option>
<a-select-option
value=
'gte'
>
大于等于
</a-select-option>
...
...
@@ -108,16 +111,16 @@
<a-select-option
value=
'btw'
>
区间
</a-select-option>
</a-select>
</a-form-item>
<!--
{{
item
}}
-->
<a-form-item>
<a-input
style=
"width: 120px"
placeholder=
'请输入'
v-decorator=
"['inputOne-' + index66 +'-' + index,
{initialValue: getInitialValueOne(item.val), validateTrigger:'blur',rules: [],}]">
</a-input>
<a-input
style=
"width: 120px"
placeholder=
'请输入'
v-decorator=
"['inputOne-' + index66 +'-' + index,
{initialValue: getInitialValueOne(item.
labelSelConditionList[0].
val), validateTrigger:'blur',rules: [],}]">
</a-input>
</a-form-item>
<a-form-item
v-if=
"infoSettingForm.getFieldValue('codition-'+index66 +'-' + index) == 'btw'"
>
<a-input
style=
"width: 120px"
placeholder=
'请输入'
v-decorator=
"['inputTwo-' + index66 +'-' + index,
{initialValue: getInitialValueTwo(item.val), validateTrigger:'blur',rules: []}]">
</a-input>
<a-input
style=
"width: 120px"
placeholder=
'请输入'
v-decorator=
"['inputTwo-' + index66 +'-' + index,
{initialValue: getInitialValueTwo(item.
labelSelConditionList[0].
val), validateTrigger:'blur',rules: []}]">
</a-input>
</a-form-item>
<a-form-item>
<a-select
style=
"width: 120px"
placeholder=
'查询方式'
v-decorator=
"['selMet-' + index66 +'-' + index,
{initialValue: item.selMet, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select
style=
"width: 120px"
placeholder=
'查询方式'
v-decorator=
"['selMet-' + index66 +'-' + index,
{initialValue: item.
labelSelConditionList[0].
selMet, validateTrigger:'blur',rules: [{required: true, message: '请至少选择一项!'}]}]">
<a-select-option
value=
'equels'
>
精确
</a-select-option>
<a-select-option
value=
'like'
>
模糊
</a-select-option>
</a-select>
...
...
@@ -127,8 +130,6 @@
<a-icon
v-if=
"index+1 == loopContent.data.length"
theme=
'filled'
style=
"color:red; margin-left: 5px"
type=
"minus-circle"
@
click=
"deleteRow(index66, index)"
/>
</a-form-item>
-->
<a-form-item>
{{
index66
}}
{{
index
+
1
}}
<a-icon
v-if=
"index+1 == loopContent.data.length"
theme=
'filled'
style=
"color:lightgreen;"
type=
"plus-circle"
@
click=
"addRow(index66)"
/>
<a-icon
v-if=
"index+1 == loopContent.data.length"
theme=
'filled'
style=
"color:red; margin-left: 5px"
type=
"minus-circle"
@
click=
"deleteRow(index66, index)"
/>
</a-form-item>
...
...
@@ -260,13 +261,7 @@ export default {
const
groupTotal
=
Object
.
keys
(
this
.
loopContent
).
length
Vue
.
set
(
this
.
loopContent
,
'data'
+
(
groupTotal
+
1
),
[
{
key
:
''
,
codition
:
'eq'
,
val
:
''
,
selMet
:
''
,
relation
:
'and'
}
{
"serial"
:
"1"
,
"relation"
:
"and"
,
"labelSelConditionList"
:
[
{
"key"
:
""
,
"val"
:
""
,
"codition"
:
"eq"
,
"selMet"
:
""
,
"relation"
:
""
}
]
}
])
console
.
log
(
JSON
.
stringify
(
this
.
loopContent
))
...
...
@@ -344,6 +339,7 @@ export default {
})
},
getInitialValueOne
(
val
)
{
// return ''
if
(
val
.
indexOf
(
','
)
>
-
1
)
{
return
val
.
split
(
','
)[
0
]
}
else
{
...
...
@@ -351,6 +347,7 @@ export default {
}
},
getInitialValueTwo
(
val
)
{
// return ''
if
(
val
.
indexOf
(
','
)
>
-
1
)
{
return
val
.
split
(
','
)[
1
]
}
else
{
...
...
@@ -409,12 +406,7 @@ export default {
this
.
deleteVisible
=
!
this
.
deleteVisible
},
resetFormFields
()
{
this
.
loopContent
=
{
data
:
[{
key
:
''
,
codition
:
'eq'
,
val
:
''
,
selMet
:
''
}]}
this
.
loopContent
=
{
"data"
:
[
{
"serial"
:
"1"
,
"relation"
:
"and"
,
"labelSelConditionList"
:
[
{
"key"
:
""
,
"val"
:
""
,
"codition"
:
"eq"
,
"selMet"
:
""
,
"relation"
:
""
}
]
}
]
}
this
.
resultList
=
[]
this
.
labelForm
.
resetFields
()
this
.
jsonData
=
{
selParams
:
[]}
...
...
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