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 1a6f2b07
authored
Feb 01, 2023
by
李君
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
7aef0de6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
src/views/queueManagement/alarmEvent/addRule.vue
src/views/queueManagement/waitingTimeStatistics/index.vue
src/views/queueManagement/alarmEvent/addRule.vue
View file @
1a6f2b0
...
@@ -6,20 +6,24 @@
...
@@ -6,20 +6,24 @@
<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 != '4'"
>
<template
v-if=
"item.key != '4'"
>
<p
class=
"itemTitle"
style=
"font-weight: 900"
>
{{
item
.
text
}}
</p>
<p
class=
"itemTitle"
style=
"font-weight: 900"
>
{{
item
.
text
}}
</p>
<el-form-item
:label=
"$t('table.alarmPensonNum')"
prop=
"queueLengthThreshold"
>
{{
$t
(
'message.queuelengthmorethan'
)
}}
<el-input-number
v-model=
"item.queueLengthThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.perNum'
)
}}
,
{{
$t
(
'message.waitingtimemorethan'
)
}}
<el-input-number
v-model=
"item.waitTimeThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.minute'
)
}}
,
{{
$t
(
'message.trolleycounts'
)
}}
<el-input-number
v-model=
"item.trolleyThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'iPage.number'
)
}}
.
<!--
<el-form-item
:label=
"$t('table.alarmPensonNum')"
prop=
"queueLengthThreshold"
>
<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'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
:label=
"$t('table.waitingTime')"
prop=
"waitTimeThreshold"
>
<el-form-item
:label=
"$t('table.waitingTime')"
prop=
"waitTimeThreshold"
>
<el-input-number
v-model=
"item.waitTimeThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.minute'
)
}}
<el-input-number
v-model=
"item.waitTimeThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.minute'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"Trolle No.
"
prop=
"trolleyThreshold"
>
<el-form-item
:label=
"$t('table.trolleyNum')
"
prop=
"trolleyThreshold"
>
<el-input-number
v-model=
"item.trolleyThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
<el-input-number
v-model=
"item.trolleyThreshold"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
</el-form-item>
</el-form-item>
-->
<el-form-item
:label=
"$t('table.alarmCycle')"
prop=
"alarmInterval"
>
<el-input-number
v-model=
"item.alarmInterval"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{
$t
(
'format.minute'
)
}}
</el-form-item>
</
template
>
</
template
>
</div>
</div>
<el-form-item
:label=
"$t('table.alarmCycle')"
prop=
"alarmInterval"
>
<el-input-number
v-model=
"addForm.alarmInterval"
:min=
"0"
:controls =
'false'
:precision =
'0'
></el-input-number>
{{$t('format.minute')}}
</el-form-item>
<p
class=
"info"
>
{{$t('message.alarmInfo')}}
</p>
<p
class=
"info"
>
{{$t('message.alarmInfo')}}
</p>
<p
class=
"itemTitle"
>
{{$t('table.alarmReceiver')}}
</p>
<p
class=
"itemTitle"
>
{{$t('table.alarmReceiver')}}
</p>
<div
v-for=
"(item,index) in alarmReceiverList"
:key=
'index'
style=
"margin-top: 10px;"
>
<div
v-for=
"(item,index) in alarmReceiverList"
:key=
'index'
style=
"margin-top: 10px;"
>
...
@@ -61,11 +65,11 @@ export default {
...
@@ -61,11 +65,11 @@ export default {
// message: this.$t('pholder.input'),
// message: this.$t('pholder.input'),
// trigger: 'blur'
// trigger: 'blur'
// }],
// }],
//
alarmInterval:[{
alarmInterval
:[{
//
required: true,
required
:
true
,
//
message: this.$t('pholder.input'),
message
:
this
.
$t
(
'pholder.input'
),
//
trigger: 'blur'
trigger
:
'blur'
//
}],
}],
}
}
}
}
},
},
...
@@ -90,10 +94,10 @@ export default {
...
@@ -90,10 +94,10 @@ export default {
email
:
arr
[
i
]
email
:
arr
[
i
]
})
})
}
}
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
=>
{
if
(
itemR
.
counterType
==
item
.
key
){
if
(
itemR
.
counterType
==
item
.
key
){
item
.
alarmInterval
=
itemR
.
alarmInterval
;
item
.
queueLengthThreshold
=
itemR
.
queueLengthThreshold
;
item
.
queueLengthThreshold
=
itemR
.
queueLengthThreshold
;
item
.
trolleyThreshold
=
itemR
.
trolleyThreshold
;
item
.
trolleyThreshold
=
itemR
.
trolleyThreshold
;
item
.
waitTimeThreshold
=
itemR
.
waitTimeThreshold
;
item
.
waitTimeThreshold
=
itemR
.
waitTimeThreshold
;
...
@@ -146,7 +150,7 @@ export default {
...
@@ -146,7 +150,7 @@ export default {
channelRules
.
push
({
channelRules
.
push
({
queueLengthThreshold
:
item
.
queueLengthThreshold
,
queueLengthThreshold
:
item
.
queueLengthThreshold
,
waitTimeThreshold
:
item
.
waitTimeThreshold
,
waitTimeThreshold
:
item
.
waitTimeThreshold
,
alarmInterval
:
ite
m
.
alarmInterval
,
alarmInterval
:
this
.
addFor
m
.
alarmInterval
,
trolleyThreshold
:
item
.
trolleyThreshold
,
trolleyThreshold
:
item
.
trolleyThreshold
,
counterType
:
item
.
key
,
counterType
:
item
.
key
,
id
:
item
.
counterTypeId
||
null
id
:
item
.
counterTypeId
||
null
...
@@ -160,8 +164,6 @@ export default {
...
@@ -160,8 +164,6 @@ export default {
}
}
}
}
}
}
// this.addForm.queueLengthSwitch = 1
// this.addForm.waitTimeSwitch = 1
this
.
addForm
.
channelRules
=
channelRules
this
.
addForm
.
channelRules
=
channelRules
if
(
this
.
isAdd
){
if
(
this
.
isAdd
){
this
.
$api
.
queueManagementApi
.
addAlarmRules
(
this
.
addForm
)
this
.
$api
.
queueManagementApi
.
addAlarmRules
(
this
.
addForm
)
...
...
src/views/queueManagement/waitingTimeStatistics/index.vue
View file @
1a6f2b0
...
@@ -306,7 +306,8 @@
...
@@ -306,7 +306,8 @@
areaId
:
this
.
searchForm
.
cashierAreaId
,
areaId
:
this
.
searchForm
.
cashierAreaId
,
countDate
:
moment
(
this
.
searchForm
.
countDate
).
format
(
'YYYY-MM-DD'
),
countDate
:
moment
(
this
.
searchForm
.
countDate
).
format
(
'YYYY-MM-DD'
),
chartType
:
this
.
isTabChart
?
"table"
:
"bar"
,
chartType
:
this
.
isTabChart
?
"table"
:
"bar"
,
counterId
:
this
.
searchForm
.
cashierChannelId
counterId
:
this
.
searchForm
.
cashierChannelId
,
counterType
:
this
.
searchForm
.
counterType
}
}
this
.
$api
.
queueManagementApi
.
getDistributeList
(
parmas
).
then
(
res
=>
{
this
.
$api
.
queueManagementApi
.
getDistributeList
(
parmas
).
then
(
res
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
...
@@ -362,7 +363,7 @@
...
@@ -362,7 +363,7 @@
queuingUrl
queuingUrl
}
=
window
.
_vionConfig
;
}
=
window
.
_vionConfig
;
let
params
=
let
params
=
`areaId=
${
this
.
searchForm
.
cashierAreaId
}
&counterId=
${
this
.
searchForm
.
cashierChannelId
}
&countDate=
${
moment
(
this
.
searchForm
.
countDate
).
format
(
'YYYY-MM-DD'
)}
&chartType=
${
this
.
searchForm
.
chartType
}
&mallId=
${
this
.
searchForm
.
mallId
}
`
`
counterType=
${
this
.
searchForm
.
counterType
}
&
areaId=
${
this
.
searchForm
.
cashierAreaId
}
&counterId=
${
this
.
searchForm
.
cashierChannelId
}
&countDate=
${
moment
(
this
.
searchForm
.
countDate
).
format
(
'YYYY-MM-DD'
)}
&chartType=
${
this
.
searchForm
.
chartType
}
&mallId=
${
this
.
searchForm
.
mallId
}
`
const
downloadUrl
=
`
${
queuingUrl
}
/queuing/waitTime/distribute/export?
${
params
}
&localLanguage=
${
localStorage
.
getItem
(
"lang"
)}
&authorization=
${
this
.
$cookie
.
get
(
"atoken"
)}
&title=
${
encodeURI
(
title
)}
`
;
const
downloadUrl
=
`
${
queuingUrl
}
/queuing/waitTime/distribute/export?
${
params
}
&localLanguage=
${
localStorage
.
getItem
(
"lang"
)}
&authorization=
${
this
.
$cookie
.
get
(
"atoken"
)}
&title=
${
encodeURI
(
title
)}
`
;
window
.
open
(
downloadUrl
)
window
.
open
(
downloadUrl
)
}
}
...
...
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