Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李君
/
carrefour
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit eaf7f71e
authored
Apr 23, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
e0213921
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
src/views/queueManagement/alarmEvent/addRule.vue
src/views/queueManagement/alarmEvent/addRule.vue
View file @
eaf7f71
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
:close-on-click-modal=
"false"
v-if=
"addDialogVisible"
@
close=
"addDialogClose()"
>
:close-on-click-modal=
"false"
v-if=
"addDialogVisible"
@
close=
"addDialogClose()"
>
<el-form
:model=
"addForm"
label-width=
"100px"
status-icon
:rules=
"rules"
ref=
"addForm"
>
<el-form
:model=
"addForm"
label-width=
"100px"
status-icon
:rules=
"rules"
ref=
"addForm"
>
<div
class=
"inlineBlock"
v-for=
"item in counterTypeData"
:key=
"item.id"
>
<div
class=
"inlineBlock"
v-for=
"item in counterTypeData"
:key=
"item.id"
>
<template
v-if=
"
item.key != '2'
"
>
<template
v-if=
"
channelConfig.includes(item.key)
"
>
<p
class=
"itemTitle"
style=
"font-weight: 900"
>
{{
item
.
text
}}
</p>
<p
class=
"itemTitle"
style=
"font-weight: 900"
>
{{
item
.
text
}}
</p>
{{
$t
(
'message.queuelengthmorethan'
)
}}
{{
$t
(
'message.queuelengthmorethan'
)
}}
<el-input-number
v-model=
"item.queueLengthThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.perNum'
)
}}
,
<el-input-number
v-model=
"item.queueLengthThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.perNum'
)
}}
,
...
@@ -70,10 +70,12 @@ export default {
...
@@ -70,10 +70,12 @@ export default {
message
:
this
.
$t
(
'pholder.input'
),
message
:
this
.
$t
(
'pholder.input'
),
trigger
:
'blur'
trigger
:
'blur'
}],
}],
}
},
channelConfig
:[]
}
}
},
},
mounted
()
{
mounted
()
{
this
.
channelConfig
=
window
.
_vionConfig
.
channelConfig
this
.
getCounterType
()
this
.
getCounterType
()
},
},
methods
:
{
methods
:
{
...
@@ -94,6 +96,7 @@ export default {
...
@@ -94,6 +96,7 @@ export default {
email
:
arr
[
i
]
email
:
arr
[
i
]
})
})
}
}
console
.
log
(
this
.
counterTypeData
)
this
.
addForm
.
alarmInterval
=
data
[
0
].
channelRules
[
0
].
alarmInterval
this
.
addForm
.
alarmInterval
=
data
[
0
].
channelRules
[
0
].
alarmInterval
data
[
0
].
channelRules
.
forEach
(
itemR
=>
{
data
[
0
].
channelRules
.
forEach
(
itemR
=>
{
this
.
counterTypeData
.
forEach
(
item
=>
{
this
.
counterTypeData
.
forEach
(
item
=>
{
...
@@ -145,7 +148,7 @@ export default {
...
@@ -145,7 +148,7 @@ export default {
if
(
valid
)
{
if
(
valid
)
{
let
channelRules
=
[]
let
channelRules
=
[]
for
(
let
item
of
this
.
counterTypeData
)
{
for
(
let
item
of
this
.
counterTypeData
)
{
if
(
item
.
key
!=
4
){
if
(
this
.
channelConfig
.
includes
(
item
.
key
)
){
if
(
item
.
queueLengthThreshold
!==
''
&&
item
.
queueLengthThreshold
!==
''
&&
item
.
queueLengthThreshold
!==
''
&&
item
.
trolleyThreshold
!==
''
){
if
(
item
.
queueLengthThreshold
!==
''
&&
item
.
queueLengthThreshold
!==
''
&&
item
.
queueLengthThreshold
!==
''
&&
item
.
trolleyThreshold
!==
''
){
channelRules
.
push
({
channelRules
.
push
({
queueLengthThreshold
:
item
.
queueLengthThreshold
,
queueLengthThreshold
:
item
.
queueLengthThreshold
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment