Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
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
office
haoban-3
Commits
1a7c967e
Commit
1a7c967e
authored
Jul 08, 2020
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改接口
parent
adf76b76
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
54 additions
and
22 deletions
+54
-22
index.html
dist/index.html
+2
-2
10.1d0857d1e94ff89262fb.js
dist/static/js/10.1d0857d1e94ff89262fb.js
+0
-2
10.ba45ab3ce5ecc5a4c375.js
dist/static/js/10.ba45ab3ce5ecc5a4c375.js
+2
-2
11.3a4ca451e189626349a5.js
dist/static/js/11.3a4ca451e189626349a5.js
+2
-0
7.99e363c878cfbd2fee8f.js
dist/static/js/7.99e363c878cfbd2fee8f.js
+2
-2
9.44383cfb15abd9a26d55.js
dist/static/js/9.44383cfb15abd9a26d55.js
+2
-0
9.6346b5a7f615bb4d915e.js
dist/static/js/9.6346b5a7f615bb4d915e.js
+0
-2
app.0b3578979ae04c31e874.js
dist/static/js/app.0b3578979ae04c31e874.js
+2
-2
manifest.5964cbb18eb7169b088f.js
dist/static/js/manifest.5964cbb18eb7169b088f.js
+2
-2
day-login-chart.vue
src/components/login-data/day-login-chart.vue
+8
-3
time-login-chart.vue
src/components/login-data/time-login-chart.vue
+8
-3
index.js
src/filters/index.js
+24
-2
No files found.
dist/index.html
View file @
1a7c967e
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.858a212c2f8314cff95410d3f4eebf81.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.aeb20f4f1523bd5ff6ba.js
></script><script
type=
text/javascript
src=
./static/js/vendor.a8492ff9b5740480be69.js
></script><script
type=
text/javascript
src=
./static/js/app.ef6dd57ebd2e799ecc33.js
></script></body></html>
\ No newline at end of file
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><link
rel=
"shortcut icon"
href=
./favicon.ico
><title>
好办管理平台
</title><link
rel=
stylesheet
type=
text/css
href=
//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.28.css
><link
href=
./static/css/app.858a212c2f8314cff95410d3f4eebf81.css
rel=
stylesheet
></head><body
style=
"min-width: 1400px;"
class=
damolish
><div
id=
app
></div><script
src=
//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/footer.2.0.04.js
></script><script
src=
//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js
></script><script>
// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();
</script><script
type=
text/javascript
src=
./static/js/manifest.5964cbb18eb7169b088f.js
></script><script
type=
text/javascript
src=
./static/js/vendor.a8492ff9b5740480be69.js
></script><script
type=
text/javascript
src=
./static/js/app.0b3578979ae04c31e874.js
></script></body></html>
\ No newline at end of file
dist/static/js/10.1d0857d1e94ff89262fb.js
deleted
100644 → 0
View file @
adf76b76
webpackJsonp
([
10
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
n
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"9jSx"
)},
"data-v-63a4cf44"
,
null
);
t
.
a
=
c
.
exports
},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
r
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
m
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
r
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
cardErr
:
!
1
,
rules
:{
policyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
n
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
n
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
n
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
n
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
e
){
/^
[
0
-
9
]
*
$
/
.
test
(
e
.
target
.
value
)
||
(
this
.
formData
.
sendTimes
=
1
)},
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
d
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
a
.
formData
.
validDateRange
||
(
a
.
formData
.
validDateRange
=
[]),
!
(
1
!=
a
.
formData
.
policyExpireDateType
||
a
.
formData
.
validDateRange
&&
a
.
formData
.
validDateRange
.
length
))
return
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择固定期限日期"
}),
!
1
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
n
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
n
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
n
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
1
!=
a
.
formData
.
sendMonthType
||
a
.
formData
.
sendMonthTimes
.
length
?
a
.
formData
.
sendTimes
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择策略执行次数"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
policyId
:
t
.
formData
.
policyId
,
policyName
:
t
.
formData
.
policyName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
sendMonthType
:
t
.
formData
.
sendMonthType
,
sendTimes
:
t
.
formData
.
sendTimes
,
sendMonthTimes
:
t
.
formData
.
sendMonthTimes
.
length
?
t
.
formData
.
sendMonthTimes
.
join
(
","
):
""
,
policyExpireDateType
:
t
.
formData
.
policyExpireDateType
,
startTimeString
:
t
.
formData
.
validDateRange
[
0
],
endTimeString
:
t
.
formData
.
validDateRange
[
1
],
onlineFlag
:
t
.
formData
.
onlineFlag
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
policyId
,
"/haoban-app-customer-web/inner/save-policy"
),
a
).
then
(
function
(
a
){
var
n
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
n
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
policyId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
policyId
:
e
.
$route
.
query
.
policyId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-policy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
sendNumberDay
=
String
(
e
.
sendNumberDay
),
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
policyId
:
a
.
result
.
policyId
,
policyName
:
a
.
result
.
policyName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
noPosition
:
!
(
!
a
.
result
.
positionNames
.
includes
(
"-1"
)
&&!
a
.
result
.
positionNames
.
includes
(
-
1
)),
positionNames
:
a
.
result
.
positionNames
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
sendMonthType
:
String
(
a
.
result
.
sendMonthType
),
sendTimes
:
a
.
result
.
sendTimes
,
sendMonthTimes
:
a
.
result
.
sendMonthTimes
.
length
?
a
.
result
.
sendMonthTimes
.
split
(
","
):[],
policyExpireDateType
:
String
(
a
.
result
.
policyExpireDateType
),
startTimeString
:
a
.
result
.
startTimeString
,
endTimeString
:
a
.
result
.
endTimeString
,
onlineFlag
:
a
.
result
.
onlineFlag
,
validDateRange
:[
a
.
result
.
startTimeString
?
a
.
result
.
startTimeString
:
""
,
a
.
result
.
endTimeString
?
a
.
result
.
endTimeString
:
""
]},
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
policyId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"2"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
policyId
&&
e
.
getCardData
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"policyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
e
.
formData
.
policyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
" no-position-tag"
,
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略执行次数
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
},
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
e
.
_v
(
" "
),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"每月该策略针对单一成员执行几次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"每月循环"
)])]),
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
,
"margin-left"
:
"30px"
},
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"第n月发送次数,例如第3,6,9月,每月1次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"多月循环"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"每月"
)]),
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"第"
)]),
a
(
"el-select"
,{
staticClass
:
"w-150"
,
attrs
:{
multiple
:
""
,
"collapse-tags"
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sendMonthTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthTimes"
,
t
)},
expression
:
"formData.sendMonthTimes"
}},
e
.
_l
(
e
.
monthOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-input-number"
,{
staticClass
:
"m-l-10 w-100"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略有效期
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"长期有效"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"固定期限"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
policyExpireDateType
?
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-date-picker"
,{
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
"default-time"
:[
"00:00:00"
,
"23:59:59"
],
type
:
"datetimerange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
formData
.
validDateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validDateRange"
,
t
)},
expression
:
"formData.validDateRange"
}})],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
policyId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
policyId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
m
,
u
,
!
1
,
function
(
e
){
a
(
"Ezmd"
)},
"data-v-e82827c8"
,
null
);
t
.
default
=
f
.
exports
},
"9jSx"
:
function
(
e
,
t
){},
Ezmd
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
n
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
n
){
for
(;;)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
n
.
next
=
5
;
break
}
return
n
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
n
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
n
.
stop
()}},
n
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
n
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
r
=
o
.
data
;
if
(
1
==
r
.
errorCode
)
return
r
.
result
&&
r
.
result
.
length
&&
r
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
r
.
result
),
t
.
children
||
n
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
n
.
$forceUpdate
(),
!
1
):(
n
.
groupData
=
r
.
result
||
[],
void
n
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
n
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
o
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
n
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
n
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
n
){
return
a
(
"el-checkbox"
,{
key
:
n
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/1
1.03c37101384d7f8451c2
.js
→
dist/static/js/1
0.ba45ab3ce5ecc5a4c375
.js
View file @
1a7c967e
webpackJsonp
([
11
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"9jSx"
)},
"data-v-63a4cf44"
,
null
);
t
.
a
=
c
.
exports
},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
r
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
loading
:
e
.
loadingBtn
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"O9nd"
)},
"data-v-3939eafa"
,
null
);
t
.
default
=
m
.
exports
},
"9jSx"
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
O9nd
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
5
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
r
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
r
.
initData
());
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
o
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
f
.
exports
}});
\ No newline at end of file
webpackJsonp
([
10
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
n
=
a
(
"P9l9"
),
i
=
a
(
"Ch4/"
),
s
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
n
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
i
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
r
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
s
,
l
,
!
1
,
function
(
e
){
a
(
"9jSx"
)},
"data-v-63a4cf44"
,
null
);
t
.
a
=
c
.
exports
},
"9db3"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"l46T"
),
i
=
a
(
"+kZ0"
),
s
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
d
=
a
(
"Ch4/"
),
p
=
a
(
"PI0u"
),
u
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
n
.
a
,
selectCardTemplate
:
i
.
a
,
selectWxDepart
:
s
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
timeOptions
:[{
label
:
"15分钟后"
,
value
:
"15"
},{
label
:
"30分钟后"
,
value
:
"30"
},{
label
:
"1小时后"
,
value
:
"60"
},{
label
:
"3小时后"
,
value
:
"180"
}],
formData
:{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
cardErr
:
!
1
,
rules
:{
cardCombineName
:[{
required
:
!
0
,
message
:
"请输入卡券组合名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
r
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
r
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
r
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
r
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
if
(
this
.
$route
.
query
.
repairId
)
return
!
1
;
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
p
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
r
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
r
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
r
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
repairId
:
t
.
formData
.
repairId
,
cardCombineName
:
t
.
formData
.
cardCombineName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
fixdTimes
:
t
.
formData
.
fixdTimes
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
repairId
,
"/haoban-app-customer-web/inner/save-repair"
),
a
).
then
(
function
(
a
){
var
r
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
r
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
repairId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
repairId
:
""
,
cardCombineName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
fixdType
:
"0"
,
fixdTimes
:
"15"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardPut"
)),
d
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
repairId
:
e
.
$route
.
query
.
repairId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-repair"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
repairId
:
a
.
result
.
repairId
,
cardCombineName
:
a
.
result
.
cardCombineName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
positionNames
:
a
.
result
.
positionNames
.
length
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
fixdType
:
"0"
,
fixdTimes
:
String
(
a
.
result
.
fixdTimes
)},
!
1
;
d
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
repairId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"3"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
repairId
&&
e
.
getCardData
()}},
f
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券组合名称"
,
prop
:
"cardCombineName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
disflag
:
!!
e
.
$route
.
query
.
repairId
,
inputValue
:
e
.
formData
.
cardCombineName
,
getByType
:
"word"
,
holder
:
"请输入卡券组合名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"cardCombineName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
class
:[
"card-add-btn text-center "
,
e
.
$route
.
query
.
repairId
?
"cursor-not-allowed"
:
"cursor-pointer"
],
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
r
){
return
[
a
(
"span"
,{
key
:
r
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
r
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
"no-position-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
},
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 发送次数设置
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
fixdType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdType"
,
t
)},
expression
:
"formData.fixdType"
}},[
e
.
_v
(
"定时发送"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-select"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
fixdTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"fixdTimes"
,
t
)},
expression
:
"formData.fixdTimes"
}},
e
.
_l
(
e
.
timeOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})}))],
1
)],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
loading
:
e
.
loadingBtn
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
repairId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
repairId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
disabled
:
!!
e
.
$route
.
query
.
repairId
,
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
m
=
a
(
"VU/8"
)(
u
,
f
,
!
1
,
function
(
e
){
a
(
"O9nd"
)},
"data-v-3939eafa"
,
null
);
t
.
default
=
m
.
exports
},
"9jSx"
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
O9nd
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
r
=
a
(
"mvHQ"
),
o
=
a
.
n
(
r
),
n
=
a
(
"Xxa5"
),
i
=
a
.
n
(
n
),
s
=
a
(
"exGp"
),
l
=
a
.
n
(
s
),
c
=
a
(
"P9l9"
),
d
=
a
(
"Ch4/"
),
p
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
i
.
a
.
mark
(
function
r
(){
var
o
;
return
i
.
a
.
wrap
(
function
(
r
){
for
(;;)
switch
(
r
.
prev
=
r
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
r
.
next
=
5
;
break
}
return
r
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
r
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
r
.
stop
()}},
r
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
r
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
n
=
o
.
data
;
if
(
1
==
n
.
errorCode
)
return
n
.
result
&&
n
.
result
.
length
&&
n
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
n
.
result
),
t
.
children
||
r
.
$set
(
t
,
"children"
,[]),
t
.
children
=
n
.
result
||
[],
r
.
$forceUpdate
(),
!
1
):(
r
.
groupData
=
n
.
result
||
[],
void
r
.
initData
());
d
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
r
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
o
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
r
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
r
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
r
){
return
a
(
"el-checkbox"
,{
key
:
r
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
p
,
u
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
f
.
exports
}});
\ No newline at end of file
dist/static/js/11.3a4ca451e189626349a5.js
0 → 100644
View file @
1a7c967e
webpackJsonp
([
11
],{
TfHd
:
function
(
t
,
e
){},
c2QG
:
function
(
t
,
e
){},
jNLg
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"5i7M"
),
s
=
a
(
"Q0Ca"
),
n
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
loginClerkCnt
:{
nice
:
!
0
,
alias
:
"总登录人数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录人数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
,
label
:{
formatter
:
function
(
t
){
return
s
.
a
.
formatTime
(
t
)}}}),
this
.
chart
.
axis
(
"loginClerkCnt"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*loginClerkCnt"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"loginClerkCnt"
,
name
:
"总登录人数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
o
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
n
,
o
,
!
1
,
function
(
t
){
a
(
"rD31"
)},
"data-v-604683f6"
,
null
);
e
.
a
=
r
.
exports
},
kX6v
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"3Xzz"
),
s
=
a
(
"ApSX"
),
n
=
a
(
"jNLg"
),
o
=
a
(
"rbYK"
),
r
=
a
(
"P9l9"
),
l
=
a
(
"Ch4/"
),
c
=
a
(
"Q0Ca"
),
d
=
a
(
"3E4D"
),
u
=
{
name
:
"activeDetail"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"好办使用详情"
,
path
:
"/enterpriseUseData?brandId="
+
this
.
$route
.
query
.
brandId
},{
name
:
"登录人员明细"
,
path
:
""
}],
selectTendDay
:
""
,
activeName
:
"first"
,
selectStartDay
:
""
,
selectEndDay
:
""
,
pickerOptions
:{
disabledDate
:
function
(
t
){
var
e
=
Date
.
now
()
-
6912
e5
;
return
t
.
getTime
()
>=
Date
.
now
()
-
864
e5
||
t
.
getTime
()
<
e
}},
groupIds
:[],
charData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[],
sortColumn
:
""
,
sortType
:
""
,
addShow
:
!
1
,
loadingBtn
:
!
1
,
selectRadio
:
0
,
tabActive
:
"1"
}},
computed
:{},
methods
:{
changeTableDate
:
function
(){
this
.
getTableList
()},
changeDate
:
function
(){
this
.
getTendData
()},
changeTab
:
function
(
t
){
this
.
tabActive
=
t
,
this
.
selectStartDay
=
1
==
t
?
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
):
this
.
selectTendDay
,
this
.
getTendData
()},
checkGroupIds
:
function
(
t
){
this
.
groupIds
=
t
,
this
.
getTableList
()},
handleClick
:
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
20
,
this
.
total
=
0
,
this
.
selectRadio
=
0
,
this
.
getTableList
()},
sortChangeLogin
:
function
(
t
,
e
,
a
){
this
.
sortColumn
=
t
.
prop
,
this
.
sortType
=
"ascending"
==
t
.
order
?
"asc"
:
"desc"
,
this
.
getTableList
()},
sortChange
:
function
(
t
,
e
,
a
){
this
.
sortColumn
=
t
.
prop
,
this
.
sortType
=
"ascending"
==
t
.
order
?
"asc"
:
"desc"
,
this
.
getTableList
()},
handleCommand
:
function
(
t
){
this
.
selectRadio
=
t
},
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
exportExcel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
d
.
a
.
showmsg
(
"请选择人员"
,
"warning"
),
!
1
;
this
.
loadingBtn
=!
0
,
this
.
postExcelData
()},
postExcelData
:
function
(){
var
t
=
this
,
e
=
{
enterpriseId
:
t
.
$route
.
query
.
brandId
,
startDate
:
t
.
selectEndDay
,
endDate
:
t
.
selectEndDay
,
groupIdList
:
t
.
groupIds
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
),
loginStatus
:
"first"
==
t
.
activeName
?
1
:
"0"
,
selectType
:
t
.
selectRadio
,
taskIds
:
1
==
t
.
selectRadio
?
""
:
t
.
multipleSelection
.
map
(
function
(
t
){
return
t
.
taskId
}).
join
(
","
)};
Object
(
r
.
b
)(
"/haoban-manage3-web/web/export-login-detail-list"
,
e
).
then
(
function
(
e
){
if
(
t
.
loadingBtn
=!
1
,
!
e
.
data
)
return
l
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
e
.
data
],{
type
:
"application/vnd.ms-excel"
}),
i
=
document
.
createElement
(
"a"
);
i
.
download
=
"门店任务导购报表.csv"
,
i
.
style
.
display
=
"none"
,
i
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
i
),
i
.
click
(),
URL
.
revokeObjectURL
(
i
.
href
),
document
.
body
.
removeChild
(
i
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
handleSizeChange
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
getTendData
:
function
(
t
){
var
e
=
this
,
a
=
{
enterpriseId
:
e
.
$route
.
query
.
brandId
,
datesType
:
e
.
tabActive
,
startDate
:
e
.
selectStartDay
,
endDate
:
e
.
selectTendDay
};
Object
(
r
.
a
)(
"/haoban-manage3-web/web/total-login-data"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
bizDates
=
t
.
bizDates
.
split
(
"-"
)[
1
]
+
"-"
+
t
.
bizDates
.
split
(
"-"
)[
2
],
t
.
avgLoginTimes
=
parseInt
(
t
.
avgLoginTimes
),
t
.
avgVisitTime
=
parseInt
(
t
.
avgVisitTime
)}),
e
.
charData
=
a
.
result
.
result
||
[],
!
1
;
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
t
){
var
e
=
this
,
a
=
{
enterpriseId
:
e
.
$route
.
query
.
brandId
,
startDate
:
e
.
selectEndDay
,
endDate
:
e
.
selectEndDay
,
groupIdList
:
e
.
groupIds
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
),
loginStatus
:
"first"
==
e
.
activeName
?
1
:
"0"
,
sortColumn
:
e
.
sortColumn
,
sortType
:
e
.
sortType
,
pageSize
:
e
.
pageSize
,
currentPage
:
e
.
currentPage
};
Object
(
r
.
d
)(
"/haoban-manage3-web/web/login-detail-list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
result
.
list
||
[],
e
.
total
=
a
.
result
.
result
.
total
||
0
,
!
1
;
l
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
activeBrand
:
function
(
t
,
e
){
this
.
activeBrand
=
t
},
activeGroup
:
function
(
t
,
e
){
this
.
activeGroup
=
t
}},
mounted
:
function
(){
var
t
=
this
;
t
.
selectStartDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
),
t
.
selectEndDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
t
.
selectTendDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
t
.
$nextTick
(
function
(){
t
.
getTableList
(),
t
.
getTendData
()}),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
i
.
a
,
gicSelectGroupMult
:
s
.
a
,
dayLoginChart
:
n
.
a
,
timeLoginChart
:
o
.
a
}},
h
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-303133"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
class
:[
"font-14 cursor-pointer"
,
1
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
e
){
t
.
changeTab
(
"1"
)}}},[
t
.
_v
(
"日访问趋势"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
class
:[
"font-14 day-tend cursor-pointer"
,
2
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
e
){
t
.
changeTab
(
"2"
)}}},[
t
.
_v
(
"日时段访问趋势"
)])])]),
t
.
_v
(
" "
),
t
.
_m
(
0
)]),
t
.
_v
(
" "
),
2
==
t
.
tabActive
?
a
(
"div"
,{
staticClass
:
"date-div m-t-20"
},[
a
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
selectTendDay
,
callback
:
function
(
e
){
t
.
selectTendDay
=
e
},
expression
:
"selectTendDay"
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chart-body m-t-20"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"day-login-chart"
,{
staticClass
:
"flex-1"
,
attrs
:{
charData
:
t
.
charData
,
id
:
"day-login-chart"
}}),
t
.
_v
(
" "
),
a
(
"time-login-chart"
,{
staticClass
:
"flex-1"
,
attrs
:{
charData
:
t
.
charData
,
id
:
"time-login-chart"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-tabs"
,{
attrs
:{
type
:
"card"
},
on
:{
"tab-click"
:
t
.
handleClick
},
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"登录人员"
,
name
:
"first"
}}),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"未登录人员"
,
name
:
"second"
}})],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-search"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"div"
,[
a
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeTableDate
},
model
:{
value
:
t
.
selectEndDay
,
callback
:
function
(
e
){
t
.
selectEndDay
=
e
},
expression
:
"selectEndDay"
}}),
a
(
"gic-select-group-mult"
,{
staticClass
:
"m-l-10"
,
attrs
:{
selectData
:
t
.
groupIds
},
on
:{
checkGroupIds
:
t
.
checkGroupIds
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"筛选条件下,"
+
t
.
_s
(
"second"
==
t
.
activeName
?
"未"
:
""
)
+
"登录人员有 "
+
t
.
_s
(
t
.
total
)
+
" 人,名单如下:"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
t
.
loadingBtn
},
on
:{
click
:
t
.
exportExcel
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
"first"
==
t
.
activeName
?
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"sort-change"
:
t
.
sortChangeLogin
,
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"45"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
t
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"iconfont icongengduo"
})]),
t
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择当页"
)])]),
t
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
t
){}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"员工信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"ul-li-cell"
},[
a
(
"div"
,{
staticClass
:
"cell-info"
},[
a
(
"div"
,{
staticClass
:
"cell-info-name font-14 color-303133 flex flex-column"
},[
a
(
"span"
,{
staticClass
:
"gic-name"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkName
||
"--"
))]),
a
(
"span"
,{
staticClass
:
"gic-version"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkCode
||
"--"
))])])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"归属门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
storeName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"lastLoginTime"
,
label
:
"最后登录时间"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
lastLoginTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
lastLoginTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"loginTimes"
,
label
:
"登录次数"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
loginTimes
||
"--"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"avgLoginTimes"
,
label
:
"平均访问时长"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
avgLoginTimes
||
"--"
)
+
"
\
n "
)]}}])})],
1
)],
1
):
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"sort-change"
:
t
.
sortChange
,
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"45"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
t
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"iconfont icongengduo"
})]),
t
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择当页"
)])]),
t
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
t
){}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"员工信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"ul-li-cell"
},[
a
(
"div"
,{
staticClass
:
"cell-info"
},[
a
(
"div"
,{
staticClass
:
"cell-info-name font-14 color-303133 flex flex-column"
},[
a
(
"span"
,{
staticClass
:
"gic-name"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkName
||
"--"
))]),
a
(
"span"
,{
staticClass
:
"gic-version"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkCode
||
"--"
))])])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"归属门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
storeName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"lastLoginTime"
,
label
:
"上次登录时间"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
lastLoginTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
lastLoginTime
)))])]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
0
!=
t
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
t
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()])])])])])],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert-tip el-alert--info flex flex-align-start w-426"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-2f54eb"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。"
)])])])}]};
var
p
=
a
(
"VU/8"
)(
u
,
h
,
!
1
,
function
(
t
){
a
(
"TfHd"
)},
"data-v-6770e4cc"
,
null
);
e
.
default
=
p
.
exports
},
rD31
:
function
(
t
,
e
){},
rbYK
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"5i7M"
),
s
=
a
(
"Q0Ca"
),
n
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
avgLoginTimes
:{
nice
:
!
0
,
alias
:
"平均每人登录次数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录次数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
,
label
:{
formatter
:
function
(
t
){
return
s
.
a
.
formatTime
(
t
)}}}),
this
.
chart
.
axis
(
"avgLoginTimes"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*avgLoginTimes"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"avgLoginTimes"
,
name
:
"平均每人登录次数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
o
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
r
=
a
(
"VU/8"
)(
n
,
o
,
!
1
,
function
(
t
){
a
(
"c2QG"
)},
"data-v-347a9b73"
,
null
);
e
.
a
=
r
.
exports
}});
\ No newline at end of file
dist/static/js/7.
1191fad680a0811550c6
.js
→
dist/static/js/7.
99e363c878cfbd2fee8f
.js
View file @
1a7c967e
webpackJsonp
([
7
],{
CVxX
:
function
(
t
,
a
){
t
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABmBJREFUaAXVWmtsFFUU/u5237t9QqMoghApppVXKRKgCEEjL0GjaQJCgtKKJhD5IQaQRAyJJkaIkQQ0AioRE0IQgwFFQiAgJRAexUepoLzkUaGULrvd92M8Z5bBYdntzLS7kZ5kOjN37j33mzPnfPfcsxW4LZIkiUAIdZKEWkmgAhLcyrP/9SzQLiQ0CoENTjvWC0F3JIL/+CWplxTCJgI9ge/vVyHwe4Uds11CNAu2tD+EPfc7aMWYDN5lxzPCH5ReS0j4XHnQHc4mgXmiPSAdJqcZ2R0AKxjJv48IX1Dy3TeBqCDTOnPA+gLk3VmQhj+ieHuVF6FwemWlJSZ8/UER3E6ZD9J3MtBqNtC3w66lxXmoqrAS8PR26Flsgt2WHdAMJGsWZ2U+v4Q/L8bQeiuBVk+Cm5DvMqGUQFc8ZobLkT3gXbZ4MATs2B/CgeMR/HomijhRVDoxERWU9zdj5hQHxlVZ03Ux1NZpi8diwPa9IXz5fQAebwJ5JmDQAAsGD7SgpMCEwgKyLr1DICShuSWOpvMxnGyKyS82ZpgNK+bnw9YF/J0C3uqRsPQTL06djSLfLVDzrB0TRtg1XaGlLYF1WwM42hjBc+PsWFKbzCo+2xLAjgMhbFlZDKddnzuRnYzJabJc7XKP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
bYtv
:
function
(
t
,
a
){},
i4c9
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
i
=
e
(
"3Xzz"
),
s
=
{
name
:
"total-preview"
,
props
:{
activeBrand
:{
type
:
String
,
default
:
function
(){
return
""
}},
loginData
:{
type
:
Object
,
default
:
function
(){
return
{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
}}}},
data
:
function
(){
return
{
dataObj
:{}}},
methods
:{
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)}},
watch
:{
loginData
:
function
(
t
,
a
){
this
.
dataObj
=
t
}},
mounted
:
function
(){
this
.
dataObj
=
this
.
loginData
}},
n
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"ul"
,{
staticClass
:
"flex flex-space-between"
},[
e
(
"li"
,{
staticClass
:
"data-total-cell today flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"今日截至当前时间的登录人数。导购同时归属多家门店的记多人。更新频率 15 分钟"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"今日登录人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
toDayLoginClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-205 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"截至昨日23:59:59统计出的昨日登录人数。导购同时归属多家门店的记多人。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日登录人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
loginClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-237 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
2
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下人均每日的登录次数。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span "
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日人均登录次数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
avgLoginTimes
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-237 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
3
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下人均每日的访问总时长。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日人均访问总时长"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
avgVisitTime
||
"00:00:00"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
4
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下的好办门店员工总人数,导购同时归属多家门店的记多人"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"员工总人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
totalClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-205 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
5
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下截至昨日近三天内有登录过好办的门店员工人数"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"激活总人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
activeClerkCnt
||
"0"
))])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"to-link-icon"
},[
e
(
"el-tooltip"
,{
attrs
:{
content
:
"人员激活明细"
,
placement
:
"top"
}},[
e
(
"div"
,{
staticClass
:
"detail-icon cursor-pointer flex flex-align-center flex-pack-center"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/activeDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-13 iconfont iconmingxibeifen color-c0c4cc"
})])])],
1
)])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"GSwY"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"R7yx"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"R7yx"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"CVxX"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"N1jj"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"N1jj"
),
alt
:
""
}})])}]};
var
c
=
e
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
e
(
"FItq"
)},
"data-v-3b790f81"
,
null
).
exports
,
r
=
e
(
"jNLg"
),
l
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
null
}},
watch
:{},
methods
:{}},
o
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"bar-chart-body"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"ul"
,
t
.
_l
(
t
.
charData
,
function
(
a
,
i
){
return
e
(
"li"
,{
key
:
i
+
"process"
,
staticClass
:
"cursor-pointer"
},[
e
(
"div"
,{
staticClass
:
"group-name font-12 color-000-45"
},[
t
.
_v
(
t
.
_s
(
a
.
storeGroupName
))]),
t
.
_v
(
" "
),
e
(
"el-tooltip"
,{
attrs
:{
placement
:
"top"
}},[
e
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
(
"div"
,[
e
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
storeGroupName
))]),
e
(
"span"
,{
staticClass
:
"font-12 color-fff p-l-40"
},[
t
.
_v
(
"登录率:"
+
t
.
_s
(
a
.
loginRate
))])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-t-10"
},[
e
(
"span"
,{
staticClass
:
"process-tip-dot bg-e6ecfa"
}),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
"员工人数:"
)]),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
totalClerkCnt
))])]),
t
.
_v
(
" "
),
e
(
"div"
,[
e
(
"span"
,{
staticClass
:
"process-tip-dot bg-597ef7"
}),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
"登录人数:"
)]),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
loginClerkCnt
))])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"people-total"
},[
e
(
"div"
,{
staticClass
:
"flex people-total-bg"
},[
e
(
"div"
,{
staticClass
:
"login-total"
,
style
:{
width
:
a
.
loginRate
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"login-rate"
,
style
:{
left
:
a
.
loginRate
}},[
t
.
_v
(
t
.
_s
(
a
.
loginRate
))])])])])],
1
)}))])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"bar-legend m-b-20"
},[
a
(
"span"
,{
staticClass
:
"square-pot bg-597ef7"
}),
a
(
"span"
,{
staticClass
:
"font-12 color-8c8c8c p-l-5"
},[
this
.
_v
(
"登录员工数"
)]),
a
(
"span"
,{
staticClass
:
"square-pot bg-e6ecfa m-l-40"
}),
a
(
"span"
,{
staticClass
:
"font-12 color-8c8c8c p-l-5"
},[
this
.
_v
(
"员工总数"
)])])}]};
var
d
=
e
(
"VU/8"
)(
l
,
o
,
!
1
,
function
(
t
){
e
(
"W/QF"
)},
"data-v-1118a99d"
,
null
).
exports
,
f
=
e
(
"rbYK"
),
v
=
e
(
"P9l9"
),
h
=
e
(
"Ch4/"
),
u
=
e
(
"Q0Ca"
),
p
=
{
name
:
"activeDetail"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"好办使用详情"
,
path
:
"/enterpriseUseData"
},{
name
:
"激活人员明细"
,
path
:
""
}],
selectTendDay
:
""
,
selectStartDay
:
""
,
selectEndDay
:
""
,
pickerOptions
:{
disabledDate
:
function
(
t
){
var
a
=
Date
.
now
()
-
6912
e5
;
return
t
.
getTime
()
>=
Date
.
now
()
-
864
e5
||
t
.
getTime
()
<
a
}},
brandListData
:[],
activeBrand
:
""
,
loginData
:{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
},
tabActive
:
"1"
,
charData
:[],
processData
:[]}},
computed
:{},
methods
:{
changeDate
:
function
(){
this
.
getTendData
()},
changeTab
:
function
(
t
){
this
.
tabActive
=
t
,
this
.
selectStartDay
=
1
==
t
?
u
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
):
this
.
selectTendDay
,
this
.
getTendData
()},
changeSelect
:
function
(
t
){
var
a
=
this
;
a
.
brandListData
.
forEach
(
function
(
e
){
e
.
enterpriseId
==
t
&&
(
a
.
activeBrand
=
e
.
enterpriseId
)}),
a
.
getLoginData
(),
a
.
getTendData
(),
a
.
getAreaLoginData
()},
getBrandData
:
function
(){
var
t
=
this
;
Object
(
v
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
a
){
var
e
=
a
.
data
;
1
!=
e
.
errorCode
?
h
.
a
.
errorMsg
(
e
):
e
.
result
&&
e
.
result
.
length
&&
(
t
.
brandListData
=
e
.
result
,
t
.
activeBrand
=
t
.
$route
.
query
.
brandId
?
t
.
$route
.
query
.
brandId
:
t
.
brandListData
[
0
].
enterpriseId
,
t
.
getLoginData
(),
t
.
getTendData
(),
t
.
getAreaLoginData
())}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
getLoginData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
startDate
:
a
.
selectEndDay
,
endDate
:
a
.
selectEndDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/total-activation-data"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
a
.
loginData
=
e
.
result
||
{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
},
!
1
;
h
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTendData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
datesType
:
a
.
tabActive
,
startDate
:
a
.
selectStartDay
,
endDate
:
a
.
selectTendDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/total-login-data"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
.
result
&&
e
.
result
.
result
.
forEach
(
function
(
t
){
t
.
bizDates
=
t
.
bizDates
.
split
(
"-"
)[
1
]
+
"-"
+
t
.
bizDates
.
split
(
"-"
)[
2
],
t
.
avgLoginTimes
=
parseInt
(
t
.
avgLoginTimes
),
t
.
avgVisitTime
=
parseInt
(
t
.
avgVisitTime
)}),
a
.
charData
=
e
.
result
.
result
||
[],
!
1
;
h
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getAreaLoginData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
startDate
:
a
.
selectEndDay
,
endDate
:
a
.
selectEndDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/area-login-ranking"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
.
result
&&
e
.
result
.
result
.
forEach
(
function
(
t
){
t
.
loginRate
=
Math
.
floor
(
100
*
(
t
.
loginClerkCnt
/
t
.
totalClerkCnt
).
toFixed
(
3
))
+
"%"
}),
a
.
processData
=
e
.
result
.
result
||
[],
!
1
;
h
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
activeBrand
:
function
(
t
,
a
){
this
.
activeBrand
=
t
}},
mounted
:
function
(){
this
.
selectStartDay
=
u
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
),
this
.
selectEndDay
=
u
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
this
.
selectTendDay
=
u
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
this
.
getBrandData
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
i
.
a
,
totalPreview
:
c
,
dayLoginChart
:
r
.
a
,
areaProgress
:
d
,
timeLoginChart
:
f
.
a
}},
g
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
e
(
"div"
,{
staticClass
:
"right-content"
},[
e
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
e
(
"div"
,{
staticClass
:
"apps-content flex"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
e
(
"div"
,{
staticClass
:
"apps-content-right"
},[
e
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"my-customer-brand"
},[
e
(
"span"
,{
staticClass
:
"font-14 color-606266 "
},[
t
.
_v
(
"切换商户"
)]),
e
(
"el-select"
,{
staticClass
:
"p-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeSelect
},
model
:{
value
:
t
.
activeBrand
,
callback
:
function
(
a
){
t
.
activeBrand
=
a
},
expression
:
"activeBrand"
}},
t
.
_l
(
t
.
brandListData
,
function
(
t
){
return
e
(
"el-option"
,{
key
:
t
.
enterpriseId
,
attrs
:{
label
:
t
.
enterpriseName
,
value
:
t
.
enterpriseId
}})}))],
1
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"data-total-view m-t-20"
},[
e
(
"total-preview"
,{
attrs
:{
activeBrand
:
t
.
activeBrand
,
loginData
:
t
.
loginData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-body m-t-32"
},[
e
(
"div"
,{
staticClass
:
"chart-wrap flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"chart-left flex-1 border-box"
},[
e
(
"div"
,{
staticClass
:
"chart-top flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"flex"
},[
e
(
"div"
,{
class
:[
"font-14 cursor-pointer"
,
1
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
"1"
)}}},[
t
.
_v
(
"日访问趋势"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"font-14 day-tend cursor-pointer"
,
2
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
"2"
)}}},[
t
.
_v
(
"日时段访问趋势"
)])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"cursor-pointer"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/loginDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
t
.
_v
(
"查看登录人员明细"
)]),
e
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right font-14 color-909399"
})])]),
t
.
_v
(
" "
),
2
==
t
.
tabActive
?
e
(
"div"
,{
staticClass
:
"date-div m-t-20"
},[
e
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
selectTendDay
,
callback
:
function
(
a
){
t
.
selectTendDay
=
a
},
expression
:
"selectTendDay"
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-content m-t-20"
},[
e
(
"day-login-chart"
,{
attrs
:{
charData
:
t
.
charData
,
id
:
"day-login-chart"
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-t-20"
},[
e
(
"time-login-chart"
,{
attrs
:{
charData
:
t
.
charData
,
id
:
"time-login-chart"
}})],
1
)],
1
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-right flex-1 m-l-10"
},[
e
(
"div"
,{
staticClass
:
"chart-top flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"昨日区域登录统计"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"cursor-pointer"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/areaLoginDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
t
.
_v
(
"区域登录明细"
)]),
e
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right font-14 color-909399"
})])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-content"
},[
e
(
"area-progress"
,{
attrs
:{
charData
:
t
.
processData
,
id
:
"a-chart"
}})],
1
)])])])])])])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"flex flex-start"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-303133 w-140 line-h-32"
},[
this
.
_v
(
"好办使用详情"
)]),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-alert el-alert-tip el-alert--info flex flex-align-start"
,
attrs
:{
role
:
"alert"
}},[
a
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-2f54eb"
}),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-alert__content"
},[
a
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。"
)])])])])}]};
var
m
=
e
(
"VU/8"
)(
p
,
g
,
!
1
,
function
(
t
){
e
(
"zaX9"
)},
"data-v-6eeae5ca"
,
null
);
a
.
default
=
m
.
exports
},
jNLg
:
function
(
t
,
a
,
e
){
"use strict"
;
var
i
=
e
(
"5i7M"
),
s
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
loginClerkCnt
:{
nice
:
!
0
,
alias
:
"总登录人数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录人数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
}),
this
.
chart
.
axis
(
"loginClerkCnt"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*loginClerkCnt"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"loginClerkCnt"
,
name
:
"总登录人数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
n
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
c
=
e
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
e
(
"bYtv"
)},
"data-v-e02862d4"
,
null
);
a
.
a
=
c
.
exports
},
l7U4
:
function
(
t
,
a
){},
rbYK
:
function
(
t
,
a
,
e
){
"use strict"
;
var
i
=
e
(
"5i7M"
),
s
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
avgLoginTimes
:{
nice
:
!
0
,
alias
:
"平均每人登录次数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录次数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
}),
this
.
chart
.
axis
(
"avgLoginTimes"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*avgLoginTimes"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"avgLoginTimes"
,
name
:
"平均每人登录次数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
n
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
c
=
e
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
e
(
"l7U4"
)},
"data-v-fdd54b1a"
,
null
);
a
.
a
=
c
.
exports
},
zaX9
:
function
(
t
,
a
){}});
\ No newline at end of file
webpackJsonp
([
7
],{
CVxX
:
function
(
t
,
a
){
t
.
exports
=
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAYAAABXuSs3AAAAAXNSR0IArs4c6QAABmBJREFUaAXVWmtsFFUU/u5237t9QqMoghApppVXKRKgCEEjL0GjaQJCgtKKJhD5IQaQRAyJJkaIkQQ0AioRE0IQgwFFQiAgJRAexUepoLzkUaGULrvd92M8Z5bBYdntzLS7kZ5kOjN37j33mzPnfPfcsxW4LZIkiUAIdZKEWkmgAhLcyrP/9SzQLiQ0CoENTjvWC0F3JIL/+CWplxTCJgI9ge/vVyHwe4Uds11CNAu2tD+EPfc7aMWYDN5lxzPCH5ReS0j4XHnQHc4mgXmiPSAdJqcZ2R0AKxjJv48IX1Dy3TeBqCDTOnPA+gLk3VmQhj+ieHuVF6FwemWlJSZ8/UER3E6ZD9J3MtBqNtC3w66lxXmoqrAS8PR26Flsgt2WHdAMJGsWZ2U+v4Q/L8bQeiuBVk+Cm5DvMqGUQFc8ZobLkT3gXbZ4MATs2B/CgeMR/HomijhRVDoxERWU9zdj5hQHxlVZ03Ux1NZpi8diwPa9IXz5fQAebwJ5JmDQAAsGD7SgpMCEwgKyLr1DICShuSWOpvMxnGyKyS82ZpgNK+bnw9YF/J0C3uqRsPQ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dUnJvlA0IAyuFsDrv9X/o+uwP8AfC1d4fAvAlwAAAAASUVORK5CYII="
},
"W/QF"
:
function
(
t
,
a
){},
c2QG
:
function
(
t
,
a
){},
i4c9
:
function
(
t
,
a
,
e
){
"use strict"
;
Object
.
defineProperty
(
a
,
"__esModule"
,{
value
:
!
0
});
var
i
=
e
(
"3Xzz"
),
s
=
{
name
:
"total-preview"
,
props
:{
activeBrand
:{
type
:
String
,
default
:
function
(){
return
""
}},
loginData
:{
type
:
Object
,
default
:
function
(){
return
{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
}}}},
data
:
function
(){
return
{
dataObj
:{}}},
methods
:{
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)}},
watch
:{
loginData
:
function
(
t
,
a
){
this
.
dataObj
=
t
}},
mounted
:
function
(){
this
.
dataObj
=
this
.
loginData
}},
n
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"ul"
,{
staticClass
:
"flex flex-space-between"
},[
e
(
"li"
,{
staticClass
:
"data-total-cell today flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"今日截至当前时间的登录人数。导购同时归属多家门店的记多人。更新频率 15 分钟"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"今日登录人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
toDayLoginClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-205 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"截至昨日23:59:59统计出的昨日登录人数。导购同时归属多家门店的记多人。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日登录人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
loginClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-237 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
2
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下人均每日的登录次数。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span "
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日人均登录次数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
avgLoginTimes
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-237 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
3
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下人均每日的访问总时长。"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"昨日人均访问总时长"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
avgVisitTime
||
"00:00:00"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
4
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下的好办门店员工总人数,导购同时归属多家门店的记多人"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"员工总人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
totalClerkCnt
||
"0"
))])])])]),
t
.
_v
(
" "
),
e
(
"li"
,{
staticClass
:
"data-total-cell w-m-205 flex-1"
},[
e
(
"div"
,{
staticClass
:
"flex p-20"
},[
t
.
_m
(
5
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-l-20"
},[
e
(
"div"
,{
staticClass
:
"cell-title"
},[
e
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"企业下截至昨日近三天内有登录过好办的门店员工人数"
,
placement
:
"top-start"
}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399 cell-title-span"
,
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
}},[
t
.
_v
(
"激活总人数"
)])])],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"font-28 color-303133 cell-value font-din m-t-15"
},[
t
.
_v
(
t
.
_s
(
t
.
loginData
.
activeClerkCnt
||
"0"
))])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"to-link-icon"
},[
e
(
"el-tooltip"
,{
attrs
:{
content
:
"人员激活明细"
,
placement
:
"top"
}},[
e
(
"div"
,{
staticClass
:
"detail-icon cursor-pointer flex flex-align-center flex-pack-center"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/activeDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-13 iconfont iconmingxibeifen color-c0c4cc"
})])])],
1
)])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"GSwY"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"R7yx"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-55"
,
attrs
:{
src
:
e
(
"R7yx"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"CVxX"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"N1jj"
),
alt
:
""
}})])},
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,[
a
(
"img"
,{
staticClass
:
"m-w-46"
,
attrs
:{
src
:
e
(
"N1jj"
),
alt
:
""
}})])}]};
var
c
=
e
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
e
(
"FItq"
)},
"data-v-3b790f81"
,
null
).
exports
,
r
=
e
(
"jNLg"
),
l
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
null
}},
watch
:{},
methods
:{}},
o
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"bar-chart-body"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"ul"
,
t
.
_l
(
t
.
charData
,
function
(
a
,
i
){
return
e
(
"li"
,{
key
:
i
+
"process"
,
staticClass
:
"cursor-pointer"
},[
e
(
"div"
,{
staticClass
:
"group-name font-12 color-000-45"
},[
t
.
_v
(
t
.
_s
(
a
.
storeGroupName
))]),
t
.
_v
(
" "
),
e
(
"el-tooltip"
,{
attrs
:{
placement
:
"top"
}},[
e
(
"div"
,{
attrs
:{
slot
:
"content"
},
slot
:
"content"
},[
e
(
"div"
,[
e
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
storeGroupName
))]),
e
(
"span"
,{
staticClass
:
"font-12 color-fff p-l-40"
},[
t
.
_v
(
"登录率:"
+
t
.
_s
(
a
.
loginRate
))])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-t-10"
},[
e
(
"span"
,{
staticClass
:
"process-tip-dot bg-e6ecfa"
}),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
"员工人数:"
)]),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
totalClerkCnt
))])]),
t
.
_v
(
" "
),
e
(
"div"
,[
e
(
"span"
,{
staticClass
:
"process-tip-dot bg-597ef7"
}),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
"登录人数:"
)]),
t
.
_v
(
" "
),
e
(
"span"
,{
staticClass
:
"font-12 color-fff"
},[
t
.
_v
(
t
.
_s
(
a
.
loginClerkCnt
))])])])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"people-total"
},[
e
(
"div"
,{
staticClass
:
"flex people-total-bg"
},[
e
(
"div"
,{
staticClass
:
"login-total"
,
style
:{
width
:
a
.
loginRate
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"login-rate"
,
style
:{
left
:
a
.
loginRate
}},[
t
.
_v
(
t
.
_s
(
a
.
loginRate
))])])])])],
1
)}))])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"bar-legend m-b-20"
},[
a
(
"span"
,{
staticClass
:
"square-pot bg-597ef7"
}),
a
(
"span"
,{
staticClass
:
"font-12 color-8c8c8c p-l-5"
},[
this
.
_v
(
"登录员工数"
)]),
a
(
"span"
,{
staticClass
:
"square-pot bg-e6ecfa m-l-40"
}),
a
(
"span"
,{
staticClass
:
"font-12 color-8c8c8c p-l-5"
},[
this
.
_v
(
"员工总数"
)])])}]};
var
d
=
e
(
"VU/8"
)(
l
,
o
,
!
1
,
function
(
t
){
e
(
"W/QF"
)},
"data-v-1118a99d"
,
null
).
exports
,
f
=
e
(
"rbYK"
),
v
=
e
(
"P9l9"
),
u
=
e
(
"Ch4/"
),
h
=
e
(
"Q0Ca"
),
p
=
{
name
:
"activeDetail"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"好办使用详情"
,
path
:
"/enterpriseUseData"
},{
name
:
"激活人员明细"
,
path
:
""
}],
selectTendDay
:
""
,
selectStartDay
:
""
,
selectEndDay
:
""
,
pickerOptions
:{
disabledDate
:
function
(
t
){
var
a
=
Date
.
now
()
-
6912
e5
;
return
t
.
getTime
()
>=
Date
.
now
()
-
864
e5
||
t
.
getTime
()
<
a
}},
brandListData
:[],
activeBrand
:
""
,
loginData
:{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
},
tabActive
:
"1"
,
charData
:[],
processData
:[]}},
computed
:{},
methods
:{
changeDate
:
function
(){
this
.
getTendData
()},
changeTab
:
function
(
t
){
this
.
tabActive
=
t
,
this
.
selectStartDay
=
1
==
t
?
h
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
):
this
.
selectTendDay
,
this
.
getTendData
()},
changeSelect
:
function
(
t
){
var
a
=
this
;
a
.
brandListData
.
forEach
(
function
(
e
){
e
.
enterpriseId
==
t
&&
(
a
.
activeBrand
=
e
.
enterpriseId
)}),
a
.
getLoginData
(),
a
.
getTendData
(),
a
.
getAreaLoginData
()},
getBrandData
:
function
(){
var
t
=
this
;
Object
(
v
.
d
)(
"/haoban-manage3-web/wx-enterprise-list"
,{}).
then
(
function
(
a
){
var
e
=
a
.
data
;
1
!=
e
.
errorCode
?
u
.
a
.
errorMsg
(
e
):
e
.
result
&&
e
.
result
.
length
&&
(
t
.
brandListData
=
e
.
result
,
t
.
activeBrand
=
t
.
$route
.
query
.
brandId
?
t
.
$route
.
query
.
brandId
:
t
.
brandListData
[
0
].
enterpriseId
,
t
.
getLoginData
(),
t
.
getTendData
(),
t
.
getAreaLoginData
())}).
catch
(
function
(
a
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
a
.
message
})})},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
getLoginData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
startDate
:
a
.
selectEndDay
,
endDate
:
a
.
selectEndDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/total-activation-data"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
a
.
loginData
=
e
.
result
||
{
totalClerkCnt
:
"0"
,
activeClerkCnt
:
"0"
,
loginClerkCnt
:
"0"
,
avgLoginTimes
:
"0"
,
avgVisitTime
:
"00:00:00"
,
toDayLoginClerkCnt
:
"0"
},
!
1
;
u
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTendData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
datesType
:
a
.
tabActive
,
startDate
:
a
.
selectStartDay
,
endDate
:
a
.
selectTendDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/total-login-data"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
.
result
&&
e
.
result
.
result
.
forEach
(
function
(
t
){
t
.
bizDates
=
t
.
bizDates
.
split
(
"-"
)[
1
]
+
"-"
+
t
.
bizDates
.
split
(
"-"
)[
2
],
t
.
avgLoginTimes
=
parseInt
(
t
.
avgLoginTimes
),
t
.
avgVisitTime
=
parseInt
(
t
.
avgVisitTime
)}),
a
.
charData
=
e
.
result
.
result
||
[],
!
1
;
u
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getAreaLoginData
:
function
(
t
){
var
a
=
this
,
e
=
{
enterpriseId
:
a
.
activeBrand
,
startDate
:
a
.
selectEndDay
,
endDate
:
a
.
selectEndDay
};
Object
(
v
.
a
)(
"/haoban-manage3-web/web/area-login-ranking"
,
e
).
then
(
function
(
t
){
var
e
=
t
.
data
;
if
(
1
==
e
.
errorCode
)
return
e
.
result
.
result
&&
e
.
result
.
result
.
forEach
(
function
(
t
){
t
.
loginRate
=
Math
.
floor
(
100
*
(
t
.
loginClerkCnt
/
t
.
totalClerkCnt
).
toFixed
(
3
))
+
"%"
}),
a
.
processData
=
e
.
result
.
result
||
[],
!
1
;
u
.
a
.
errorMsg
(
e
)}).
catch
(
function
(
t
){
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
activeBrand
:
function
(
t
,
a
){
this
.
activeBrand
=
t
}},
mounted
:
function
(){
this
.
selectStartDay
=
h
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
),
this
.
selectEndDay
=
h
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
this
.
selectTendDay
=
h
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
this
.
getBrandData
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
i
.
a
,
totalPreview
:
c
,
dayLoginChart
:
r
.
a
,
areaProgress
:
d
,
timeLoginChart
:
f
.
a
}},
g
=
{
render
:
function
(){
var
t
=
this
,
a
=
t
.
$createElement
,
e
=
t
.
_self
.
_c
||
a
;
return
e
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
e
(
"div"
,{
staticClass
:
"right-content"
},[
e
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
e
(
"div"
,{
staticClass
:
"apps-content flex"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
e
(
"div"
,{
staticClass
:
"apps-content-right"
},[
e
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
t
.
_m
(
0
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"my-customer-brand"
},[
e
(
"span"
,{
staticClass
:
"font-14 color-606266 "
},[
t
.
_v
(
"切换商户"
)]),
e
(
"el-select"
,{
staticClass
:
"p-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
on
:{
change
:
t
.
changeSelect
},
model
:{
value
:
t
.
activeBrand
,
callback
:
function
(
a
){
t
.
activeBrand
=
a
},
expression
:
"activeBrand"
}},
t
.
_l
(
t
.
brandListData
,
function
(
t
){
return
e
(
"el-option"
,{
key
:
t
.
enterpriseId
,
attrs
:{
label
:
t
.
enterpriseName
,
value
:
t
.
enterpriseId
}})}))],
1
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"data-total-view m-t-20"
},[
e
(
"total-preview"
,{
attrs
:{
activeBrand
:
t
.
activeBrand
,
loginData
:
t
.
loginData
}})],
1
),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-body m-t-32"
},[
e
(
"div"
,{
staticClass
:
"chart-wrap flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"chart-left flex-1 border-box"
},[
e
(
"div"
,{
staticClass
:
"chart-top flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"flex"
},[
e
(
"div"
,{
class
:[
"font-14 cursor-pointer"
,
1
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
"1"
)}}},[
t
.
_v
(
"日访问趋势"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
class
:[
"font-14 day-tend cursor-pointer"
,
2
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
a
){
t
.
changeTab
(
"2"
)}}},[
t
.
_v
(
"日时段访问趋势"
)])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"cursor-pointer"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/loginDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
t
.
_v
(
"查看登录人员明细"
)]),
e
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right font-14 color-909399"
})])]),
t
.
_v
(
" "
),
2
==
t
.
tabActive
?
e
(
"div"
,{
staticClass
:
"date-div m-t-20"
},[
e
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
selectTendDay
,
callback
:
function
(
a
){
t
.
selectTendDay
=
a
},
expression
:
"selectTendDay"
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-content m-t-20"
},[
e
(
"day-login-chart"
,{
attrs
:{
charData
:
t
.
charData
,
id
:
"day-login-chart"
}}),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"m-t-20"
},[
e
(
"time-login-chart"
,{
attrs
:{
charData
:
t
.
charData
,
id
:
"time-login-chart"
}})],
1
)],
1
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-right flex-1 m-l-10"
},[
e
(
"div"
,{
staticClass
:
"chart-top flex flex-space-between"
},[
e
(
"div"
,{
staticClass
:
"font-14 color-303133"
},[
t
.
_v
(
"昨日区域登录统计"
)]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"cursor-pointer"
,
on
:{
click
:
function
(
a
){
t
.
changeRoute
(
"/areaLoginDetail?brandId="
+
t
.
activeBrand
)}}},[
e
(
"span"
,{
staticClass
:
"font-14 color-909399"
},[
t
.
_v
(
"区域登录明细"
)]),
e
(
"i"
,{
staticClass
:
"el-icon-arrow-right el-icon--right font-14 color-909399"
})])]),
t
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"chart-content"
},[
e
(
"area-progress"
,{
attrs
:{
charData
:
t
.
processData
,
id
:
"a-chart"
}})],
1
)])])])])])])])])},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
a
=
this
.
_self
.
_c
||
t
;
return
a
(
"div"
,{
staticClass
:
"flex flex-start"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-303133 w-140 line-h-32"
},[
this
.
_v
(
"好办使用详情"
)]),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-alert el-alert-tip el-alert--info flex flex-align-start"
,
attrs
:{
role
:
"alert"
}},[
a
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-2f54eb"
}),
this
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-alert__content"
},[
a
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。"
)])])])])}]};
var
m
=
e
(
"VU/8"
)(
p
,
g
,
!
1
,
function
(
t
){
e
(
"zaX9"
)},
"data-v-6eeae5ca"
,
null
);
a
.
default
=
m
.
exports
},
jNLg
:
function
(
t
,
a
,
e
){
"use strict"
;
var
i
=
e
(
"5i7M"
),
s
=
e
(
"Q0Ca"
),
n
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
loginClerkCnt
:{
nice
:
!
0
,
alias
:
"总登录人数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录人数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
,
label
:{
formatter
:
function
(
t
){
return
s
.
a
.
formatTime
(
t
)}}}),
this
.
chart
.
axis
(
"loginClerkCnt"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*loginClerkCnt"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"loginClerkCnt"
,
name
:
"总登录人数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
c
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
r
=
e
(
"VU/8"
)(
n
,
c
,
!
1
,
function
(
t
){
e
(
"rD31"
)},
"data-v-604683f6"
,
null
);
a
.
a
=
r
.
exports
},
rD31
:
function
(
t
,
a
){},
rbYK
:
function
(
t
,
a
,
e
){
"use strict"
;
var
i
=
e
(
"5i7M"
),
s
=
e
(
"Q0Ca"
),
n
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
avgLoginTimes
:{
nice
:
!
0
,
alias
:
"平均每人登录次数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录次数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
,
label
:{
formatter
:
function
(
t
){
return
s
.
a
.
formatTime
(
t
)}}}),
this
.
chart
.
axis
(
"avgLoginTimes"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*avgLoginTimes"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"avgLoginTimes"
,
name
:
"平均每人登录次数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
c
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
r
=
e
(
"VU/8"
)(
n
,
c
,
!
1
,
function
(
t
){
e
(
"c2QG"
)},
"data-v-347a9b73"
,
null
);
a
.
a
=
r
.
exports
},
zaX9
:
function
(
t
,
a
){}});
\ No newline at end of file
dist/static/js/9.44383cfb15abd9a26d55.js
0 → 100644
View file @
1a7c967e
webpackJsonp
([
9
],{
"+kZ0"
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"3Xzz"
),
o
=
a
(
"Qs+A"
),
r
=
a
(
"P9l9"
),
s
=
a
(
"Ch4/"
),
i
=
{
name
:
"select-card-template"
,
props
:{
cardTempShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
selectTemp
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
dialogVisible
:
!
1
,
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[]}},
computed
:{},
methods
:{
handleSelectionChange
:
function
(
e
){
this
.
multipleSelection
=
e
},
handleClose
:
function
(){
var
e
=
this
;
e
.
$emit
(
"closeTemp"
),
e
.
$refs
.
multipleTable
.
clearSelection
();
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})},
submitForm
:
function
(){
var
e
=
this
;
return
e
.
multipleSelection
.
length
?
e
.
multipleSelection
.
length
>
20
?(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多只能选择20个模板"
}),
!
1
):(
e
.
$emit
(
"returnData"
,
e
.
multipleSelection
),
void
e
.
$nextTick
(
function
(){
var
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})})):(
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择模板"
}),
!
1
)},
changeRoute
:
function
(
e
){
this
.
$router
.
push
(
e
)},
handleSizeChange
:
function
(
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
e
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
e
){
this
.
currentPage
=
e
,
this
.
getTableList
()},
getTableList
:
function
(
e
){
var
t
=
this
,
a
=
{
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
r
.
a
)(
"/haoban-app-customer-web/inner/list-template"
,
a
).
then
(
function
(
e
){
var
a
=
e
.
data
;
if
(
1
==
a
.
errorCode
)
return
t
.
tableData
=
a
.
result
||
[],
!
1
;
s
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
e
){
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
,
t
=
e
.
selectTemp
.
map
(
function
(
e
){
return
e
.
templateId
});
e
.
$nextTick
(
function
(){
e
.
$refs
.
multipleTable
.
clearSelection
(),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
multipleSelection
.
push
(
a
)}),
e
.
tableData
.
forEach
(
function
(
a
){
t
.
includes
(
a
.
templateId
)
&&
e
.
$refs
.
multipleTable
.
toggleRowSelection
(
a
,
!
0
)})})}},
watch
:{
cardTempShow
:
function
(
e
){
this
.
dialogVisible
=
e
},
selectTemp
:
function
(
e
,
t
){}},
mounted
:
function
(){
this
.
dialogVisible
=
this
.
cardTempShow
,
this
.
getTableList
(),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
n
.
a
,
setDepartment
:
o
.
a
}},
l
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
title
:
"选择模板"
,
visible
:
e
.
dialogVisible
,
width
:
"700px"
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
dialogVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{},[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
,
minHeight
:
e
.
tableH
},
attrs
:{
height
:
"450"
,
data
:
e
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"selection-change"
:
e
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"55"
}}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"提交人"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
commitName
)
+
"
\
n "
)]}}])})],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
handleClose
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
submitForm
}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
c
=
a
(
"VU/8"
)(
i
,
l
,
!
1
,
function
(
e
){
a
(
"9jSx"
)},
"data-v-63a4cf44"
,
null
);
t
.
a
=
c
.
exports
},
"8Rwt"
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
r
=
a
(
"l46T"
),
s
=
a
(
"+kZ0"
),
i
=
a
(
"ja1h"
),
l
=
a
(
"P9l9"
),
c
=
a
(
"3E4D"
),
p
=
a
(
"Ch4/"
),
d
=
a
(
"PI0u"
),
m
=
{
name
:
"chat-log"
,
props
:{
brandId
:{
type
:
String
,
default
:
function
(){
return
""
}},
activeGroupId
:{
type
:
String
,
default
:
function
(){
return
""
}}},
components
:{
limitInput
:
r
.
a
,
selectCardTemplate
:
s
.
a
,
selectWxDepart
:
i
.
a
},
data
:
function
(){
var
e
=
this
;
return
{
activeBrand
:
this
.
brandId
,
activeGroup
:
this
.
activeGroupId
,
activeId
:
"3"
,
wxEnterpriseId
:
localStorage
.
getItem
(
"userInfos"
)?
JSON
.
parse
(
localStorage
.
getItem
(
"userInfos"
)).
wxEnterpriseId
:
""
,
formData
:{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
cardErr
:
!
1
,
rules
:{
policyName
:[{
required
:
!
0
,
message
:
"请输入卡券策略名称"
,
trigger
:
"blur"
}],
cardTemplateJson
:[{
type
:
"array"
,
required
:
!
0
,
message
:
"请至少选择一个卡券模板"
,
trigger
:
"change"
}]},
cardSelectShow
:
!
1
,
choiceDateCopy
:[],
pickerOptions
:{
onPick
:
function
(
t
){
var
a
=
t
.
maxDate
,
n
=
t
.
minDate
;
e
.
choiceDateCopy
=
[
n
.
getTime
()],
a
&&
(
e
.
choiceDateCopy
=
[])},
disabledDate
:
function
(
t
){
if
(
e
.
choiceDateCopy
.
length
){
var
a
=
e
.
choiceDateCopy
[
0
]
-
31536
e6
,
n
=
e
.
choiceDateCopy
[
0
]
+
31536
e6
;
return
t
.
getTime
()
<
a
||
t
.
getTime
()
>
n
||
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}
return
t
.
getTime
()
<
Date
.
now
()
-
864
e5
}},
dateOptions
:[],
monthOptions
:[],
inputVisible
:
!
1
,
inputValue
:
""
,
cardTempShow
:
!
1
,
departShow
:
!
1
,
loadingBtn
:
!
1
}},
methods
:{
showDepartDilog
:
function
(){
this
.
departShow
=!
0
},
delDepart
:
function
(
e
,
t
){
t
.
splice
(
e
,
1
)},
toInput
:
function
(
e
){
/^
[
0
-
9
]
*
$
/
.
test
(
e
.
target
.
value
)
||
(
this
.
formData
.
sendTimes
=
1
)},
changeNoPosition
:
function
(
e
){
if
(
e
&&
this
.
formData
.
positionNames
.
length
>=
50
)
return
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
this
.
formData
.
noPosition
=!
1
,
!
1
;
e
?
this
.
formData
.
positionNames
.
push
(
"-1"
):
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
"-1"
),
1
)},
changeSendType
:
function
(){
1
==
this
.
formData
.
sendRange
?
this
.
departShow
=!
0
:(
this
.
formData
.
departmentJson
=
[],
this
.
departShow
=!
1
)},
clickSendType
:
function
(){
this
.
departShow
=!
0
},
refreshData
:
function
(
e
){
if
(
this
.
departShow
=!
1
,
"close"
==
e
)
return
!
1
;
this
.
formData
.
departmentJson
=
e
},
cancelEdit
:
function
(){
var
e
=
this
;
e
.
$confirm
(
"是否确认返回,返回后当前页面内容将丢失"
,
"提示"
,{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(
function
(){
e
.
$router
.
go
(
-
1
)}).
catch
(
function
(){})},
showCardTemp
:
function
(){
this
.
cardTempShow
=!
0
},
returnData
:
function
(
e
){
e
.
forEach
(
function
(
e
){
e
.
effectiveType
=
"0"
,
e
.
dateRange
=
[],
e
.
sendNumberDay
=
"0"
,
e
.
effectiveDay
=
"366"
,
e
.
sendLimit
=
"50000"
});
var
t
=
e
.
map
(
function
(
e
){
return
e
.
templateId
}),
a
=
[];
this
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
t
.
includes
(
e
.
templateId
)
&&
a
.
push
(
e
)}),
e
.
forEach
(
function
(
e
){
a
.
forEach
(
function
(
t
){
e
.
templateId
==
t
.
templateId
&&
(
e
.
effectiveType
=
t
.
effectiveType
,
e
.
dateRange
=
t
.
dateRange
,
e
.
sendNumberDay
=
t
.
sendNumberDay
,
e
.
effectiveDay
=
t
.
effectiveDay
)})}),
this
.
formData
.
cardTemplateJson
=
JSON
.
parse
(
o
()(
e
)),
this
.
cardTempShow
=!
1
},
closeTemp
:
function
(){
this
.
cardTempShow
=!
1
},
handleClose
:
function
(
e
){
this
.
formData
.
positionNames
.
splice
(
this
.
formData
.
positionNames
.
indexOf
(
e
),
1
)},
showInput
:
function
(){
var
e
=
this
;
if
(
e
.
formData
.
positionNames
.
length
>=
50
)
return
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可添加50个职务"
}),
!
1
;
e
.
inputVisible
=!
0
,
e
.
$nextTick
(
function
(
t
){
e
.
$refs
.
saveTagInput
.
$refs
.
input
.
focus
()})},
handleInputConfirm
:
function
(){
var
e
=
this
.
inputValue
;
e
&&
this
.
formData
.
positionNames
.
push
(
e
),
this
.
inputVisible
=!
1
,
this
.
inputValue
=
""
},
toDelTemp
:
function
(
e
,
t
,
a
){
a
.
splice
(
e
,
1
)},
handleDay
:
function
(){
for
(
var
e
=
[],
t
=
0
;
t
<
91
;
t
++
)
0
==
t
?
e
.
push
({
label
:
"当天"
,
value
:
String
(
t
)}):
e
.
push
({
label
:
"第"
+
t
+
"天"
,
value
:
String
(
t
)});
this
.
dateOptions
=
e
,
this
.
monthOptions
=
[];
for
(
var
a
=
1
;
a
<
13
;
a
++
)
this
.
monthOptions
.
push
({
label
:
a
+
"月"
,
value
:
String
(
a
)})},
submitForm
:
Object
(
d
.
a
)(
function
(
e
,
t
){
var
a
=
this
;
if
(
a
.
formData
.
validDateRange
||
(
a
.
formData
.
validDateRange
=
[]),
!
(
1
!=
a
.
formData
.
policyExpireDateType
||
a
.
formData
.
validDateRange
&&
a
.
formData
.
validDateRange
.
length
))
return
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择固定期限日期"
}),
!
1
;
if
(
!
a
.
formData
.
cardTemplateJson
)
return
!
1
;
var
n
=!
0
;
return
a
.
formData
.
cardTemplateJson
.
forEach
(
function
(
e
){
0
!=
e
.
effectiveType
||
e
.
dateRange
&&
e
.
dateRange
.
length
&&
e
.
dateRange
[
0
]
||
(
e
.
dateRange
=
[],
n
=!
1
),
e
.
startTimeString
=
e
.
dateRange
?
e
.
dateRange
[
0
]:
""
,
e
.
endTimeString
=
e
.
dateRange
?
e
.
dateRange
[
1
]:
""
}),
n
?
a
.
formData
.
cardTemplateJson
.
length
?(
a
.
cardErr
=!
1
,
1
!=
a
.
formData
.
sendRange
||
a
.
formData
.
departmentJson
.
length
?
1
!=
a
.
formData
.
sendMonthType
||
a
.
formData
.
sendMonthTimes
.
length
?
a
.
formData
.
sendTimes
?(
a
.
loadingBtn
=!
0
,
void
a
.
$refs
[
e
].
validate
(
function
(
e
){
e
?
a
.
postSaveCard
(
t
):
a
.
loadingBtn
=!
1
})):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择策略执行次数"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择多月循环"
}),
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择发送的部门"
}),
!
1
)):(
a
.
cardErr
=!
0
,
!
1
):(
a
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请先选择模板有效期"
}),
!
1
)},
1
e3
),
postSaveCard
:
function
(
e
){
var
t
=
this
,
a
=
{
policyId
:
t
.
formData
.
policyId
,
policyName
:
t
.
formData
.
policyName
,
cardTemplateJson
:
o
()(
t
.
formData
.
cardTemplateJson
),
sendRange
:
t
.
formData
.
sendRange
,
positionFlag
:
t
.
formData
.
positionFlag
?
1
:
0
,
positionNames
:
t
.
formData
.
positionNames
.
length
?
t
.
formData
.
positionNames
.
join
(
","
):
""
,
departmentJson
:
o
()(
t
.
formData
.
departmentJson
),
sendMonthType
:
t
.
formData
.
sendMonthType
,
sendTimes
:
t
.
formData
.
sendTimes
,
sendMonthTimes
:
t
.
formData
.
sendMonthTimes
.
length
?
t
.
formData
.
sendMonthTimes
.
join
(
","
):
""
,
policyExpireDateType
:
t
.
formData
.
policyExpireDateType
,
startTimeString
:
t
.
formData
.
validDateRange
[
0
],
endTimeString
:
t
.
formData
.
validDateRange
[
1
],
onlineFlag
:
t
.
formData
.
onlineFlag
,
wxEnterpriseId
:
t
.
wxEnterpriseId
};
Object
(
l
.
d
)((
t
.
$route
.
query
.
policyId
,
"/haoban-app-customer-web/inner/save-policy"
),
a
).
then
(
function
(
a
){
var
n
=
a
.
data
;
t
.
loadingBtn
=!
1
,
1
==
n
.
errorCode
&&
(
c
.
a
.
showmsg
(
t
.
$route
.
query
.
policyId
?
"编辑卡券策略成功"
:
"新建卡券策略成功"
,
"success"
),
e
?(
t
.
formData
=
{
policyId
:
""
,
policyName
:
""
,
cardTemplateJson
:[],
sendRange
:
"0"
,
positionFlag
:
!
1
,
noPosition
:
!
1
,
positionNames
:[],
departmentJson
:[],
sendMonthType
:
"0"
,
sendTimes
:
""
,
sendMonthTimes
:[],
policyExpireDateType
:
"0"
,
validDateRange
:[],
startTimeString
:
""
,
endTimeString
:
""
,
onlineFlag
:
"1"
},
t
.
choiceDateCopy
=
[]):
t
.
$router
.
push
(
"/cardStrategy"
)),
p
.
a
.
errorMsg
(
n
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
getCardData
:
function
(){
var
e
=
this
,
t
=
{
policyId
:
e
.
$route
.
query
.
policyId
,
gicEnterpriseId
:
e
.
brandId
};
Object
(
l
.
a
)(
"/haoban-app-customer-web/inner/find-policy"
,
t
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
cardTemplateRelateds
.
forEach
(
function
(
e
){
e
.
sendNumberDay
=
String
(
e
.
sendNumberDay
),
e
.
effectiveType
=
String
(
e
.
effectiveType
),
e
.
dateRange
=
[
e
.
startTimeString
?
e
.
startTimeString
:
""
,
e
.
endTimeString
?
e
.
endTimeString
:
""
]}),
e
.
formData
=
{
policyId
:
a
.
result
.
policyId
,
policyName
:
a
.
result
.
policyName
,
cardTemplateJson
:
a
.
result
.
cardTemplateRelateds
||
[],
sendRange
:
String
(
a
.
result
.
sendRange
),
positionFlag
:
1
==
a
.
result
.
positionFlag
,
noPosition
:
!
(
!
a
.
result
.
positionNames
.
includes
(
"-1"
)
&&!
a
.
result
.
positionNames
.
includes
(
-
1
)),
positionNames
:
a
.
result
.
positionNames
?
a
.
result
.
positionNames
.
split
(
","
):[],
departmentJson
:
a
.
result
.
departmentRelateds
||
[],
sendMonthType
:
String
(
a
.
result
.
sendMonthType
),
sendTimes
:
a
.
result
.
sendTimes
,
sendMonthTimes
:
a
.
result
.
sendMonthTimes
.
length
?
a
.
result
.
sendMonthTimes
.
split
(
","
):[],
policyExpireDateType
:
String
(
a
.
result
.
policyExpireDateType
),
startTimeString
:
a
.
result
.
startTimeString
,
endTimeString
:
a
.
result
.
endTimeString
,
onlineFlag
:
a
.
result
.
onlineFlag
,
validDateRange
:[
a
.
result
.
startTimeString
?
a
.
result
.
startTimeString
:
""
,
a
.
result
.
endTimeString
?
a
.
result
.
endTimeString
:
""
]},
!
1
;
p
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
brandId
:
function
(
e
,
t
){
e
&&
this
.
$route
.
query
.
policyId
&&
(
this
.
activeBrand
=
e
,
this
.
getCardData
())},
activeGroupId
:
function
(
e
,
t
){
e
&&
(
this
.
activeGroup
=
e
)}},
mounted
:
function
(){
var
e
=
this
;
e
.
$emit
(
"showTab"
,
"2"
),
e
.
$nextTick
(
function
(){
e
.
handleDay
()}),
e
.
$route
.
query
.
policyId
&&
e
.
getCardData
()}},
u
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"section"
,{
staticClass
:
"common-right-wrap"
},[
a
(
"div"
,{
staticClass
:
"new-card-body border-box"
},[
a
(
"el-form"
,{
ref
:
"ruleForm"
,
staticClass
:
"demo-ruleForm"
,
attrs
:{
model
:
e
.
formData
,
rules
:
e
.
rules
,
"label-width"
:
"120px"
}},[
a
(
"el-form-item"
,{
attrs
:{
label
:
"卡券策略名称"
,
prop
:
"policyName"
}},[
a
(
"limitInput"
,{
attrs
:{
inputWidth
:
340
,
inputValue
:
e
.
formData
.
policyName
,
getByType
:
"word"
,
holder
:
"请输入卡券策略名称"
,
maxLength
:
20
},
on
:{
"update:inputValue"
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyName"
,
t
)}}})],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"卡券选择策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large is-required"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"支持多选,最多可选20个模板"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"选择卡券模板"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"div"
,{
staticClass
:
"card-add-btn text-center cursor-pointer"
,
on
:{
click
:
e
.
showCardTemp
}},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
"选择卡券模板"
)])]),
e
.
_v
(
" "
),
e
.
formData
.
cardTemplateJson
.
length
?
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-table"
,{
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
"max-height"
:
"450"
,
data
:
e
.
formData
.
cardTemplateJson
,
"tooltip-effect"
:
"dark"
}},[
a
(
"el-table-column"
,{
attrs
:{
label
:
"卡券模板名称"
,
"min-width"
:
"120"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
e
.
_s
(
t
.
row
.
templateName
))]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"卡券类型"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
0
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"抵金券"
)]):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
cardType
?
a
(
"span"
,[
e
.
_v
(
"折扣券"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"有效期"
,
width
:
"505"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-select"
,{
staticClass
:
"w-100"
,
attrs
:{
placeholder
:
""
},
model
:{
value
:
t
.
row
.
effectiveType
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveType"
,
a
)},
expression
:
"scope.row.effectiveType"
}},[
a
(
"el-option"
,{
attrs
:{
label
:
"固定日期"
,
value
:
"0"
}}),
e
.
_v
(
" "
),
a
(
"el-option"
,{
attrs
:{
label
:
"发送后"
,
value
:
"1"
}})],
1
),
0
==
t
.
row
.
effectiveType
?
a
(
"el-date-picker"
,{
staticClass
:
"m-l-10 w-300 vertical-middle"
,
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd"
,
type
:
"daterange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始时间"
,
"end-placeholder"
:
"结束时间"
},
on
:{
change
:
e
.
changeDate
},
model
:{
value
:
t
.
row
.
dateRange
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"dateRange"
,
a
)},
expression
:
"scope.row.dateRange"
}}):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
t
.
row
.
effectiveType
?
a
(
"el-select"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
placeholder
:
"请选择"
},
model
:{
value
:
t
.
row
.
sendNumberDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"sendNumberDay"
,
a
)},
expression
:
"scope.row.sendNumberDay"
}},
e
.
_l
(
e
.
dateOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"有效,有效天数"
)]):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"el-input-number"
,{
staticClass
:
"w-100 m-l-10"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
366
},
model
:{
value
:
t
.
row
.
effectiveDay
,
callback
:
function
(
a
){
e
.
$set
(
t
.
row
,
"effectiveDay"
,
a
)},
expression
:
"scope.row.effectiveDay"
}}):
e
.
_e
(),
1
==
t
.
row
.
effectiveType
?
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
e
.
_v
(
"天"
)]):
e
.
_e
()]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"发送总数"
,
width
:
"350"
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
.
row
.
sendLimit
)
+
"
\
n "
)]}}])}),
e
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"操作"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
return
[
a
(
"el-button"
,{
attrs
:{
type
:
"text"
},
on
:{
click
:
function
(
a
){
e
.
toDelTemp
(
t
.
$index
,
t
.
row
,
e
.
formData
.
cardTemplateJson
)}}},[
e
.
_v
(
"删除"
)])]}}])})],
1
)],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
!
e
.
formData
.
cardTemplateJson
.
length
&&
e
.
cardErr
?
a
(
"div"
,{
staticClass
:
"el-form-item__error"
},[
e
.
_v
(
"请选择卡券模板"
)]):
e
.
_e
()])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"item-title font-14 color-303133 font-w-600"
},[
e
.
_v
(
"执行策略"
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"卡券的发送范围设置"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"发送范围"
)])])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
e
.
_v
(
"全企业"
)]),
a
(
"el-radio"
,{
staticClass
:
"m-l-40"
,
attrs
:{
label
:
"1"
},
on
:{
change
:
e
.
changeSendType
},
model
:{
value
:
e
.
formData
.
sendRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendRange"
,
t
)},
expression
:
"formData.sendRange"
}},[
a
(
"span"
,{
on
:{
click
:
e
.
clickSendType
}},[
e
.
_v
(
"部分部门"
)])]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendRange
?
a
(
"div"
,{
staticClass
:
"flex-column item-cell-select inline-block "
},[
a
(
"div"
,{
staticClass
:
"depart-item-wrap"
,
on
:{
click
:
e
.
showDepartDilog
}},[
a
(
"div"
,{
staticClass
:
"el-select el-select--large depart-item-content"
,
staticStyle
:{
width
:
"357px"
}},[
e
.
formData
.
departmentJson
.
length
?
e
.
_e
():
a
(
"span"
,{
staticClass
:
"font-14 color-c0c4cc p-l-10"
,
staticStyle
:{
display
:
"inline-block"
,
"line-height"
:
"32px"
,
color
:
"#c0c4cc"
}}),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-select__tags"
,
staticStyle
:{
"max-width"
:
"348px"
}},[
a
(
"span"
,{
staticStyle
:{
display
:
"block"
}},[
e
.
_l
(
e
.
formData
.
departmentJson
,
function
(
t
,
n
){
return
[
a
(
"span"
,{
key
:
n
,
staticClass
:
"el-tag el-tag--info el-tag--small"
},[
a
(
"span"
,{
staticClass
:
"el-select__tags-text"
},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))]),
e
.
_v
(
" "
),
a
(
"i"
,{
staticClass
:
"el-tag__close el-icon-close"
,
on
:{
click
:
function
(
t
){
t
.
stopPropagation
(),
e
.
delDepart
(
n
,
e
.
formData
.
departmentJson
)}}})])]})],
2
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"count-number font-12 color-909399"
},[
e
.
_v
(
"已选"
+
e
.
_s
(
e
.
formData
.
departmentJson
.
length
)
+
"个部门"
)])])])]):
e
.
_e
(),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-select"
},[
a
(
"div"
,{
staticClass
:
"position-check"
},[
a
(
"el-checkbox"
,{
model
:{
value
:
e
.
formData
.
positionFlag
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"positionFlag"
,
t
)},
expression
:
"formData.positionFlag"
}},[
e
.
_v
(
"按职务筛选"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"position-check-tags"
},[
a
(
"el-checkbox"
,{
staticClass
:
" no-position-tag"
,
on
:{
change
:
e
.
changeNoPosition
},
model
:{
value
:
e
.
formData
.
noPosition
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"noPosition"
,
t
)},
expression
:
"formData.noPosition"
}},[
e
.
_v
(
"无职务"
)]),
e
.
_v
(
" "
),
e
.
_l
(
e
.
formData
.
positionNames
,
function
(
t
){
return
[
-
1
!=
t
?
a
(
"el-tag"
,{
key
:
t
,
attrs
:{
closable
:
""
,
"disable-transitions"
:
!
1
},
on
:{
close
:
function
(
a
){
e
.
handleClose
(
t
)}}},[
e
.
_v
(
"
\
n "
+
e
.
_s
(
t
)
+
"
\
n "
)]):
e
.
_e
()]}),
e
.
_v
(
" "
),
e
.
inputVisible
?
a
(
"el-input"
,{
ref
:
"saveTagInput"
,
staticClass
:
"input-new-tag"
,
attrs
:{
size
:
"small"
,
maxlength
:
"20"
,
"show-word-limit"
:
""
},
on
:{
blur
:
e
.
handleInputConfirm
},
nativeOn
:{
keyup
:
function
(
t
){
return
"button"
in
t
||!
e
.
_k
(
t
.
keyCode
,
"enter"
,
13
,
t
.
key
,
"Enter"
)?
e
.
handleInputConfirm
(
t
):
null
}},
model
:{
value
:
e
.
inputValue
,
callback
:
function
(
t
){
e
.
inputValue
=
t
},
expression
:
"inputValue"
}}):
a
(
"el-button"
,{
staticClass
:
"button-new-tag"
,
attrs
:{
size
:
"small"
},
on
:{
click
:
e
.
showInput
}},[
e
.
_v
(
"+ 添加职务"
)])],
2
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略执行次数
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
},
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
e
.
_v
(
" "
),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"每月该策略针对单一成员执行几次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"每月循环"
)])]),
a
(
"el-radio"
,{
staticStyle
:{
"margin-right"
:
"0px"
,
"margin-left"
:
"30px"
},
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
sendMonthType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthType"
,
t
)},
expression
:
"formData.sendMonthType"
}},[
e
.
_v
(
e
.
_s
(
""
))]),
a
(
"el-tooltip"
,{
staticClass
:
"item"
,
attrs
:{
effect
:
"dark"
,
content
:
"第n月发送次数,例如第3,6,9月,每月1次"
,
placement
:
"top-start"
}},[
a
(
"span"
,{
staticStyle
:{
cursor
:
"pointer"
,
"padding-bottom"
:
"2px"
,
"border-bottom"
:
"1px dashed #2F54EB"
}},[
e
.
_v
(
"多月循环"
)])]),
e
.
_v
(
" "
),
0
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"每月"
)]),
a
(
"el-input-number"
,{
staticClass
:
"w-100"
,
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
(),
e
.
_v
(
" "
),
1
==
e
.
formData
.
sendMonthType
?
a
(
"div"
,{
staticClass
:
"m-t-10 month-recyle"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-r-10"
},[
e
.
_v
(
"第"
)]),
a
(
"el-select"
,{
staticClass
:
"w-150"
,
attrs
:{
multiple
:
""
,
"collapse-tags"
:
""
,
placeholder
:
"请选择"
},
model
:{
value
:
e
.
formData
.
sendMonthTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendMonthTimes"
,
t
)},
expression
:
"formData.sendMonthTimes"
}},
e
.
_l
(
e
.
monthOptions
,
function
(
e
){
return
a
(
"el-option"
,{
key
:
e
.
value
,
attrs
:{
label
:
e
.
label
,
value
:
e
.
value
}})})),
a
(
"el-input-number"
,{
staticClass
:
"m-l-10 w-100"
,
staticStyle
:{
"vertical-align"
:
"middle"
},
attrs
:{
"controls-position"
:
"right"
,
min
:
1
,
max
:
99
},
nativeOn
:{
keyup
:
function
(
t
){
return
a
=
t
,
e
.
toInput
(
a
);
var
a
}},
model
:{
value
:
e
.
formData
.
sendTimes
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"sendTimes"
,
t
)},
expression
:
"formData.sendTimes"
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-303133 p-l-10"
},[
e
.
_v
(
" 次"
)])],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item el-form-item--large"
},[
a
(
"label"
,{
staticClass
:
"el-form-item__label"
,
staticStyle
:{
width
:
"120px"
,
cursor
:
"pointer"
},
attrs
:{
for
:
"name"
}},[
e
.
_v
(
"
\
n 策略有效期
\
n "
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"el-form-item__content"
,
staticStyle
:{
"margin-left"
:
"120px"
}},[
a
(
"el-radio"
,{
attrs
:{
label
:
"0"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"长期有效"
)]),
a
(
"el-radio"
,{
attrs
:{
label
:
"1"
},
model
:{
value
:
e
.
formData
.
policyExpireDateType
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"policyExpireDateType"
,
t
)},
expression
:
"formData.policyExpireDateType"
}},[
e
.
_v
(
"固定期限"
)]),
e
.
_v
(
" "
),
1
==
e
.
formData
.
policyExpireDateType
?
a
(
"div"
,{
staticClass
:
"date-valid"
},[
a
(
"el-date-picker"
,{
attrs
:{
"prefix-icon"
:
"el-icon-time"
,
"picker-options"
:
e
.
pickerOptions
,
editable
:
!
1
,
"value-format"
:
"yyyy-MM-dd HH:mm:ss"
,
"default-time"
:[
"00:00:00"
,
"23:59:59"
],
type
:
"datetimerange"
,
align
:
"right"
,
"unlink-panels"
:
""
,
"range-separator"
:
"至"
,
"start-placeholder"
:
"开始日期"
,
"end-placeholder"
:
"结束日期"
},
model
:{
value
:
e
.
formData
.
validDateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
formData
,
"validDateRange"
,
t
)},
expression
:
"formData.validDateRange"
}})],
1
):
e
.
_e
()],
1
)]),
e
.
_v
(
" "
),
a
(
"el-form-item"
,[
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
e
.
cancelEdit
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
e
.
loadingBtn
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
)}}},[
e
.
_v
(
"确认"
+
e
.
_s
(
e
.
$route
.
query
.
policyId
?
"编辑"
:
"新建"
))]),
e
.
_v
(
" "
),
e
.
$route
.
query
.
policyId
?
e
.
_e
():
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"ruleForm"
,
"flag"
)}}},[
e
.
_v
(
"确认并继续新建"
)])],
1
)],
1
)],
1
),
e
.
_v
(
" "
),
a
(
"select-card-template"
,{
attrs
:{
cardTempShow
:
e
.
cardTempShow
,
selectTemp
:
e
.
formData
.
cardTemplateJson
},
on
:{
returnData
:
e
.
returnData
,
closeTemp
:
e
.
closeTemp
}}),
e
.
_v
(
" "
),
a
(
"select-wx-depart"
,{
attrs
:{
departShow
:
e
.
departShow
,
departArr
:
e
.
formData
.
departmentJson
},
on
:{
refreshData
:
e
.
refreshData
}})],
1
)},
staticRenderFns
:[]};
var
f
=
a
(
"VU/8"
)(
m
,
u
,
!
1
,
function
(
e
){
a
(
"Ezmd"
)},
"data-v-e82827c8"
,
null
);
t
.
default
=
f
.
exports
},
"9jSx"
:
function
(
e
,
t
){},
Ezmd
:
function
(
e
,
t
){},
M29i
:
function
(
e
,
t
){},
ja1h
:
function
(
e
,
t
,
a
){
"use strict"
;
var
n
=
a
(
"mvHQ"
),
o
=
a
.
n
(
n
),
r
=
a
(
"Xxa5"
),
s
=
a
.
n
(
r
),
i
=
a
(
"exGp"
),
l
=
a
.
n
(
i
),
c
=
a
(
"P9l9"
),
p
=
a
(
"Ch4/"
),
d
=
{
name
:
"select-wx-depart"
,
components
:{},
props
:{
departShow
:{
type
:
Boolean
,
default
:
function
(){
return
!
1
}},
departArr
:{
type
:[
Object
,
Array
],
default
:
function
(){
return
[]}}},
data
:
function
(){
return
{
selDepart
:[],
groupNodes
:[],
groupData
:[],
departVisible
:
!
1
,
checkedKeys
:
this
.
departArr
.
length
?
this
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
defaultProps
:{
children
:
"children"
,
label
:
"departmentName"
,
isLeaf
:
"isLeaf"
},
checkList
:[]}},
methods
:{
loadNode
:
function
(
e
,
t
){
var
a
=
this
;
return
l
()(
s
.
a
.
mark
(
function
n
(){
var
o
;
return
s
.
a
.
wrap
(
function
(
n
){
for
(;;)
switch
(
n
.
prev
=
n
.
next
){
case
0
:
if
(
o
=
a
,
0
!==
e
.
level
){
n
.
next
=
5
;
break
}
return
n
.
abrupt
(
"return"
,
t
(
o
.
getGroup
()));
case
5
:
return
n
.
next
=
7
,
o
.
getGroup
(
e
,
e
.
data
,
t
);
case
7
:
o
.
checkedKeys
=
o
.
departArr
.
length
?
o
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
o
.
initData
();
case
9
:
case
"end"
:
return
n
.
stop
()}},
n
,
a
)}))()},
checkGroup
:
function
(
e
){
this
.
groupNodes
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toRight
:
function
(){
this
.
selDepart
=
this
.
$refs
.
groupTrees
.
getCheckedNodes
()},
toLeft
:
function
(){
var
e
=
this
,
t
=
[];
e
.
selDepart
.
forEach
(
function
(
a
){
e
.
checkList
.
includes
(
a
.
departmentId
)
||
t
.
push
(
a
)}),
e
.
selDepart
=
t
,
e
.
$refs
.
groupTrees
.
setCheckedNodes
(
e
.
selDepart
)},
handleClose
:
function
(
e
){
this
.
$emit
(
"refreshData"
,
"close"
),
e
()},
cancel
:
function
(){
this
.
$emit
(
"refreshData"
,
"close"
)},
submitForm
:
function
(
e
){
return
this
.
selDepart
.
length
?
this
.
selDepart
.
length
>
50
?(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"最多可选50个部门"
}),
!
1
):
void
this
.
$emit
(
"refreshData"
,
this
.
selDepart
):(
this
.
$message
.
error
({
duration
:
1
e3
,
message
:
"请选择部门"
}),
!
1
)},
getGroup
:
function
(
e
,
t
,
a
){
var
n
=
this
,
o
=
{
parentId
:
t
?
t
.
departmentId
:
""
,
isStore
:
0
};
if
(
e
&&
(
!
t
.
hasSonNode
||
1
==
t
.
isStore
))
return
a
([]),
!
1
;
Object
(
c
.
a
)(
"/haoban-manage3-web/department-list-level"
,
o
).
then
(
function
(
o
){
var
r
=
o
.
data
;
if
(
1
==
r
.
errorCode
)
return
r
.
result
&&
r
.
result
.
length
&&
r
.
result
.
forEach
(
function
(
e
){
e
.
expand
=!
1
,
e
.
children
=
[],
e
.
label
=
e
.
departmentName
,
e
.
isLeaf
=!
e
.
hasSonNode
}),
e
?(
a
(
r
.
result
),
t
.
children
||
n
.
$set
(
t
,
"children"
,[]),
t
.
children
=
r
.
result
||
[],
n
.
$forceUpdate
(),
!
1
):(
n
.
groupData
=
r
.
result
||
[],
void
n
.
initData
());
p
.
a
.
errorMsg
(
r
)}).
catch
(
function
(
e
){
n
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
initData
:
function
(){
var
e
=
this
;
e
.
$nextTick
(
function
(){
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
watch
:{
departShow
:
function
(
e
){
this
.
departVisible
=
e
},
departArr
:
function
(
e
){
var
t
=
this
;
t
.
checkedKeys
=
t
.
departArr
.
length
?
t
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
length
?
t
.
selDepart
=
JSON
.
parse
(
o
()(
e
)):
t
.
selDepart
=
[],
t
.
$nextTick
(
function
(){
t
.
$refs
.
groupTrees
.
setCheckedKeys
(
t
.
checkedKeys
),
t
.
groupNodes
=
t
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
mounted
:
function
(){
var
e
=
this
;
e
.
departVisible
=
e
.
departShow
,
e
.
getGroup
(),
e
.
departArr
.
length
?
e
.
selDepart
=
JSON
.
parse
(
o
()(
e
.
departArr
)):
e
.
selDepart
=
[],
e
.
checkedKeys
=
e
.
departArr
.
length
?
e
.
departArr
.
map
(
function
(
e
){
return
e
.
departmentId
}):[],
e
.
$nextTick
(
function
(){
e
.
$refs
.
groupTrees
.
setCheckedKeys
(
e
.
checkedKeys
),
e
.
groupNodes
=
e
.
$refs
.
groupTrees
.
getCheckedNodes
()})}},
m
=
{
render
:
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"el-dialog"
,{
attrs
:{
width
:
"600px"
,
title
:
"选择部门"
,
visible
:
e
.
departVisible
,
"append-to-body"
:
""
,
"before-close"
:
e
.
handleClose
},
on
:{
"update:visible"
:
function
(
t
){
e
.
departVisible
=
t
},
open
:
e
.
initData
}},[
a
(
"div"
,{
staticClass
:
"depart-transfor"
},[
a
(
"div"
,{
staticClass
:
"depart-transfor-left"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"组织架构"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
})]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"transfor-body"
},[
a
(
"div"
,{
staticClass
:
"transfor-body-tree"
},[
a
(
"el-tree"
,{
ref
:
"groupTrees"
,
attrs
:{
data
:
e
.
groupData
,
load
:
e
.
loadNode
,
"default-checked-keys"
:
e
.
checkedKeys
,
"node-key"
:
"departmentId"
,
"check-strictly"
:
""
,
lazy
:
""
,
"show-checkbox"
:
""
,
props
:
e
.
defaultProps
},
on
:{
check
:
e
.
checkGroup
},
scopedSlots
:
e
.
_u
([{
key
:
"default"
,
fn
:
function
(
t
){
var
n
=
t
.
node
,
o
=
t
.
data
;
return
a
(
"span"
,{
staticClass
:
"custom-tree-node"
},[
a
(
"span"
,{
class
:[
"font-14 p-r-10 iconfont"
,
1
==
o
.
isStore
?
"icondianpu-kuai"
:
"iconqiye-tianchong"
,
1
==
o
.
bindFlag
?
"color-2f54eb"
:
"color-dedfe6"
]}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266"
},[
e
.
_v
(
e
.
_s
(
n
.
label
))])])}}])})],
1
)])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-middle"
},[
a
(
"div"
,{
staticClass
:
"m-b-10"
},[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
groupNodes
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-right"
},
on
:{
click
:
e
.
toRight
}},[
e
.
_v
(
"转入"
)])],
1
),
e
.
_v
(
" "
),
a
(
"div"
,[
a
(
"el-button"
,{
attrs
:{
disabled
:
!
e
.
checkList
.
length
,
type
:
"primary"
,
icon
:
"el-icon-arrow-left"
},
on
:{
click
:
e
.
toLeft
}},[
e
.
_v
(
"移除"
)])],
1
)]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"depart-transfor-right"
},[
a
(
"div"
,{
staticClass
:
"transfor-header flex flex-space-between"
},[
a
(
"span"
,{
staticClass
:
"font-14 color-303133"
},[
e
.
_v
(
"已选"
)]),
e
.
_v
(
" "
),
a
(
"span"
,{
staticClass
:
"font-12 color-909399"
},[
e
.
_v
(
e
.
_s
(
e
.
selDepart
.
length
))])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"select-body"
},[
a
(
"div"
,{
staticClass
:
"select-body-list"
},[
a
(
"el-checkbox-group"
,{
model
:{
value
:
e
.
checkList
,
callback
:
function
(
t
){
e
.
checkList
=
t
},
expression
:
"checkList"
}},[
a
(
"div"
,
e
.
_l
(
e
.
selDepart
,
function
(
t
,
n
){
return
a
(
"el-checkbox"
,{
key
:
n
+
"sel"
,
attrs
:{
label
:
t
.
departmentId
}},[
e
.
_v
(
e
.
_s
(
t
.
departmentName
))])}))])],
1
)])])]),
e
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"dialog-footer"
,
attrs
:{
slot
:
"footer"
},
slot
:
"footer"
},[
a
(
"el-button"
,{
on
:{
click
:
e
.
cancel
}},[
e
.
_v
(
"取消"
)]),
e
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
},
on
:{
click
:
function
(
t
){
e
.
submitForm
(
"partForm"
)}}},[
e
.
_v
(
"确定"
)])],
1
)])},
staticRenderFns
:[]};
var
u
=
a
(
"VU/8"
)(
d
,
m
,
!
1
,
function
(
e
){
a
(
"M29i"
)},
"data-v-643f63dd"
,
null
);
t
.
a
=
u
.
exports
}});
\ No newline at end of file
dist/static/js/9.6346b5a7f615bb4d915e.js
deleted
100644 → 0
View file @
adf76b76
webpackJsonp
([
9
],{
TfHd
:
function
(
t
,
e
){},
bYtv
:
function
(
t
,
e
){},
jNLg
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"5i7M"
),
s
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
loginClerkCnt
:{
nice
:
!
0
,
alias
:
"总登录人数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录人数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
}),
this
.
chart
.
axis
(
"loginClerkCnt"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*loginClerkCnt"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"loginClerkCnt"
,
name
:
"总登录人数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
n
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
a
(
"bYtv"
)},
"data-v-e02862d4"
,
null
);
e
.
a
=
o
.
exports
},
kX6v
:
function
(
t
,
e
,
a
){
"use strict"
;
Object
.
defineProperty
(
e
,
"__esModule"
,{
value
:
!
0
});
var
i
=
a
(
"3Xzz"
),
s
=
a
(
"ApSX"
),
n
=
a
(
"jNLg"
),
o
=
a
(
"rbYK"
),
l
=
a
(
"P9l9"
),
r
=
a
(
"Ch4/"
),
c
=
a
(
"Q0Ca"
),
d
=
a
(
"3E4D"
),
u
=
{
name
:
"activeDetail"
,
data
:
function
(){
return
{
navpath
:[{
name
:
"好办使用详情"
,
path
:
"/enterpriseUseData?brandId="
+
this
.
$route
.
query
.
brandId
},{
name
:
"登录人员明细"
,
path
:
""
}],
selectTendDay
:
""
,
activeName
:
"first"
,
selectStartDay
:
""
,
selectEndDay
:
""
,
pickerOptions
:{
disabledDate
:
function
(
t
){
var
e
=
Date
.
now
()
-
6912
e5
;
return
t
.
getTime
()
>=
Date
.
now
()
-
864
e5
||
t
.
getTime
()
<
e
}},
groupIds
:[],
charData
:[],
currentPage
:
1
,
pageSize
:
20
,
total
:
0
,
tableData
:[],
multipleSelection
:[],
sortColumn
:
""
,
sortType
:
""
,
addShow
:
!
1
,
loadingBtn
:
!
1
,
selectRadio
:
0
,
tabActive
:
"1"
}},
computed
:{},
methods
:{
changeTableDate
:
function
(){
this
.
getTableList
()},
changeDate
:
function
(){
this
.
getTendData
()},
changeTab
:
function
(
t
){
this
.
tabActive
=
t
,
this
.
selectStartDay
=
1
==
t
?
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
):
this
.
selectTendDay
,
this
.
getTendData
()},
checkGroupIds
:
function
(
t
){
this
.
groupIds
=
t
,
this
.
getTableList
()},
handleClick
:
function
(
t
,
e
){
this
.
currentPage
=
1
,
this
.
pageSize
=
20
,
this
.
total
=
0
,
this
.
selectRadio
=
0
,
this
.
getTableList
()},
sortChangeLogin
:
function
(
t
,
e
,
a
){
this
.
sortColumn
=
t
.
prop
,
this
.
sortType
=
"ascending"
==
t
.
order
?
"asc"
:
"desc"
,
this
.
getTableList
()},
sortChange
:
function
(
t
,
e
,
a
){
this
.
sortColumn
=
t
.
prop
,
this
.
sortType
=
"ascending"
==
t
.
order
?
"asc"
:
"desc"
,
this
.
getTableList
()},
handleCommand
:
function
(
t
){
this
.
selectRadio
=
t
},
handleSelectionChange
:
function
(
t
){
this
.
multipleSelection
=
t
},
exportExcel
:
function
(){
if
(
!
this
.
multipleSelection
.
length
)
return
d
.
a
.
showmsg
(
"请选择人员"
,
"warning"
),
!
1
;
this
.
loadingBtn
=!
0
,
this
.
postExcelData
()},
postExcelData
:
function
(){
var
t
=
this
,
e
=
{
enterpriseId
:
t
.
$route
.
query
.
brandId
,
startDate
:
t
.
selectEndDay
,
endDate
:
t
.
selectEndDay
,
groupIdList
:
t
.
groupIds
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
),
loginStatus
:
"first"
==
t
.
activeName
?
1
:
"0"
,
selectType
:
t
.
selectRadio
,
taskIds
:
1
==
t
.
selectRadio
?
""
:
t
.
multipleSelection
.
map
(
function
(
t
){
return
t
.
taskId
}).
join
(
","
)};
Object
(
l
.
b
)(
"/haoban-manage3-web/web/export-login-detail-list"
,
e
).
then
(
function
(
e
){
if
(
t
.
loadingBtn
=!
1
,
!
e
.
data
)
return
r
.
a
.
errorMsg
(
"暂无数据"
),
!
1
;
var
a
=
new
Blob
([
e
.
data
],{
type
:
"application/vnd.ms-excel"
}),
i
=
document
.
createElement
(
"a"
);
i
.
download
=
"门店任务导购报表.csv"
,
i
.
style
.
display
=
"none"
,
i
.
href
=
URL
.
createObjectURL
(
a
),
document
.
body
.
appendChild
(
i
),
i
.
click
(),
URL
.
revokeObjectURL
(
i
.
href
),
document
.
body
.
removeChild
(
i
)}).
catch
(
function
(
e
){
t
.
loadingBtn
=!
1
,
t
.
$message
.
error
({
duration
:
1
e3
,
message
:
e
.
message
})})},
changeRoute
:
function
(
t
){
this
.
$router
.
push
(
t
)},
handleSizeChange
:
function
(
t
){
this
.
currentPage
=
1
,
this
.
pageSize
=
t
,
this
.
getTableList
()},
handleCurrentChange
:
function
(
t
){
this
.
currentPage
=
t
,
this
.
getTableList
()},
getTendData
:
function
(
t
){
var
e
=
this
,
a
=
{
enterpriseId
:
e
.
$route
.
query
.
brandId
,
datesType
:
e
.
tabActive
,
startDate
:
e
.
selectStartDay
,
endDate
:
e
.
selectTendDay
};
Object
(
l
.
a
)(
"/haoban-manage3-web/web/total-login-data"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
a
.
result
.
result
&&
a
.
result
.
result
.
forEach
(
function
(
t
){
t
.
bizDates
=
t
.
bizDates
.
split
(
"-"
)[
1
]
+
"-"
+
t
.
bizDates
.
split
(
"-"
)[
2
],
t
.
avgLoginTimes
=
parseInt
(
t
.
avgLoginTimes
),
t
.
avgVisitTime
=
parseInt
(
t
.
avgVisitTime
)}),
e
.
charData
=
a
.
result
.
result
||
[],
!
1
;
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})},
getTableList
:
function
(
t
){
var
e
=
this
,
a
=
{
enterpriseId
:
e
.
$route
.
query
.
brandId
,
startDate
:
e
.
selectEndDay
,
endDate
:
e
.
selectEndDay
,
groupIdList
:
e
.
groupIds
.
map
(
function
(
t
){
return
t
.
storeGroupId
}).
join
(
","
),
loginStatus
:
"first"
==
e
.
activeName
?
1
:
"0"
,
sortColumn
:
e
.
sortColumn
,
sortType
:
e
.
sortType
,
pageSize
:
e
.
pageSize
,
currentPage
:
e
.
currentPage
};
Object
(
l
.
d
)(
"/haoban-manage3-web/web/login-detail-list"
,
a
).
then
(
function
(
t
){
var
a
=
t
.
data
;
if
(
1
==
a
.
errorCode
)
return
e
.
tableData
=
a
.
result
.
result
.
list
||
[],
e
.
total
=
a
.
result
.
result
.
total
||
0
,
!
1
;
r
.
a
.
errorMsg
(
a
)}).
catch
(
function
(
t
){
e
.
$message
.
error
({
duration
:
1
e3
,
message
:
t
.
message
})})}},
watch
:{
activeBrand
:
function
(
t
,
e
){
this
.
activeBrand
=
t
},
activeGroup
:
function
(
t
,
e
){
this
.
activeGroup
=
t
}},
mounted
:
function
(){
var
t
=
this
;
t
.
selectStartDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
6048
e5
),
t
.
selectEndDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
t
.
selectTendDay
=
c
.
a
.
timeStampToYmd
((
new
Date
).
getTime
()
-
864
e5
),
t
.
$nextTick
(
function
(){
t
.
getTableList
(),
t
.
getTendData
()}),
document
.
documentElement
.
style
.
backgroundColor
=
"#f0f2f5"
},
destroyed
:
function
(){
document
.
documentElement
.
style
.
backgroundColor
=
"#fff"
},
components
:{
navCrumb
:
i
.
a
,
gicSelectGroupMult
:
s
.
a
,
dayLoginChart
:
n
.
a
,
timeLoginChart
:
o
.
a
}},
h
=
{
render
:
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"div"
,{
staticClass
:
"my-customer-wrap common-set-wrap"
},[
a
(
"nav-crumb"
,{
attrs
:{
navpath
:
t
.
navpath
}}),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"right-content"
},[
a
(
"div"
,{
staticClass
:
"right-box"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
a
(
"div"
,{
staticClass
:
"apps-content flex"
,
staticStyle
:{
"min-height"
:
"calc(100vh - 104px)"
}},[
a
(
"div"
,{
staticClass
:
"apps-content-right"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"div"
,{
staticClass
:
"font-16 color-303133"
},[
a
(
"div"
,{
staticClass
:
"flex"
},[
a
(
"div"
,{
class
:[
"font-14 cursor-pointer"
,
1
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
e
){
t
.
changeTab
(
"1"
)}}},[
t
.
_v
(
"日访问趋势"
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
class
:[
"font-14 day-tend cursor-pointer"
,
2
==
t
.
tabActive
?
"color-303133"
:
"color-909399"
],
on
:{
click
:
function
(
e
){
t
.
changeTab
(
"2"
)}}},[
t
.
_v
(
"日时段访问趋势"
)])])]),
t
.
_v
(
" "
),
t
.
_m
(
0
)]),
t
.
_v
(
" "
),
2
==
t
.
tabActive
?
a
(
"div"
,{
staticClass
:
"date-div m-t-20"
},[
a
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeDate
},
model
:{
value
:
t
.
selectTendDay
,
callback
:
function
(
e
){
t
.
selectTendDay
=
e
},
expression
:
"selectTendDay"
}})],
1
):
t
.
_e
(),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"chart-body m-t-20"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"day-login-chart"
,{
staticClass
:
"flex-1"
,
attrs
:{
charData
:
t
.
charData
,
id
:
"day-login-chart"
}}),
t
.
_v
(
" "
),
a
(
"time-login-chart"
,{
staticClass
:
"flex-1"
,
attrs
:{
charData
:
t
.
charData
,
id
:
"time-login-chart"
}})],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
a
(
"el-tabs"
,{
attrs
:{
type
:
"card"
},
on
:{
"tab-click"
:
t
.
handleClick
},
model
:{
value
:
t
.
activeName
,
callback
:
function
(
e
){
t
.
activeName
=
e
},
expression
:
"activeName"
}},[
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"登录人员"
,
name
:
"first"
}}),
t
.
_v
(
" "
),
a
(
"el-tab-pane"
,{
attrs
:{
label
:
"未登录人员"
,
name
:
"second"
}})],
1
)],
1
),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"table-search"
},[
a
(
"div"
,{
staticClass
:
"flex flex-space-between"
},[
a
(
"div"
,[
a
(
"el-date-picker"
,{
attrs
:{
"value-format"
:
"yyyy-MM-dd"
,
type
:
"date"
,
placeholder
:
"选择日期"
,
clearable
:
!
1
,
"picker-options"
:
t
.
pickerOptions
},
on
:{
change
:
t
.
changeTableDate
},
model
:{
value
:
t
.
selectEndDay
,
callback
:
function
(
e
){
t
.
selectEndDay
=
e
},
expression
:
"selectEndDay"
}}),
a
(
"gic-select-group-mult"
,{
staticClass
:
"m-l-10"
,
attrs
:{
selectData
:
t
.
groupIds
},
on
:{
checkGroupIds
:
t
.
checkGroupIds
}}),
a
(
"span"
,{
staticClass
:
"font-14 color-606266 p-l-10"
},[
t
.
_v
(
"筛选条件下,"
+
t
.
_s
(
"second"
==
t
.
activeName
?
"未"
:
""
)
+
"登录人员有 "
+
t
.
_s
(
t
.
total
)
+
" 人,名单如下:"
)])],
1
),
t
.
_v
(
" "
),
a
(
"el-button"
,{
attrs
:{
type
:
"primary"
,
loading
:
t
.
loadingBtn
},
on
:{
click
:
t
.
exportExcel
}},[
a
(
"i"
,{
staticClass
:
"iconfont icon-icon_yunxiazai p-r-6"
}),
t
.
_v
(
"导出"
)])],
1
)]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"m-t-20"
},[
"first"
==
t
.
activeName
?
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"sort-change"
:
t
.
sortChangeLogin
,
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"45"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
t
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"iconfont icongengduo"
})]),
t
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择当页"
)])]),
t
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
t
){}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"员工信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"ul-li-cell"
},[
a
(
"div"
,{
staticClass
:
"cell-info"
},[
a
(
"div"
,{
staticClass
:
"cell-info-name font-14 color-303133 flex flex-column"
},[
a
(
"span"
,{
staticClass
:
"gic-name"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkName
||
"--"
))]),
a
(
"span"
,{
staticClass
:
"gic-version"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkCode
||
"--"
))])])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"归属门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
storeName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"lastLoginTime"
,
label
:
"最后登录时间"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
lastLoginTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
lastLoginTime
)))])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"loginTimes"
,
label
:
"登录次数"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
"
\
n "
+
t
.
_s
(
e
.
row
.
loginTimes
||
"--"
)
+
"
\
n "
)]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"avgLoginTimes"
,
label
:
"平均访问时长"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
avgLoginTimes
||
"--"
)
+
"
\
n "
)]}}])})],
1
)],
1
):
a
(
"div"
,[
a
(
"el-table"
,{
ref
:
"multipleTable"
,
staticClass
:
"select-table"
,
style
:{
width
:
"100%"
},
attrs
:{
data
:
t
.
tableData
,
"tooltip-effect"
:
"dark"
},
on
:{
"sort-change"
:
t
.
sortChange
,
"selection-change"
:
t
.
handleSelectionChange
}},[
a
(
"el-table-column"
,{
attrs
:{
type
:
"selection"
,
width
:
"45"
}}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
width
:
"25"
},
scopedSlots
:
t
.
_u
([{
key
:
"header"
,
fn
:
function
(
e
){
return
[
a
(
"el-dropdown"
,{
staticStyle
:{
"line-height"
:
"10px"
,
padding
:
"0"
,
"margin-left"
:
"-15px"
,
transform
:
"translateY(4px)"
,
"-webkit-transform"
:
"translateY(4px)"
},
attrs
:{
placement
:
"bottom-start"
},
on
:{
command
:
t
.
handleCommand
}},[
a
(
"span"
,{
staticClass
:
"el-dropdown-link"
},[
a
(
"i"
,{
staticClass
:
"iconfont icongengduo"
})]),
t
.
_v
(
" "
),
a
(
"el-dropdown-menu"
,{
attrs
:{
slot
:
"dropdown"
},
slot
:
"dropdown"
},[
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"0"
}},[
a
(
"span"
,{
style
:{
color
:
0
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择当页"
)])]),
t
.
_v
(
" "
),
a
(
"el-dropdown-item"
,{
attrs
:{
command
:
"1"
}},[
a
(
"span"
,{
style
:{
color
:
1
==
t
.
selectRadio
?
"#2f54eb"
:
"#606266"
}},[
t
.
_v
(
"选择全部"
)])])],
1
)],
1
)]}},{
key
:
"default"
,
fn
:
function
(
t
){}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"员工信息"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"ul-li-cell"
},[
a
(
"div"
,{
staticClass
:
"cell-info"
},[
a
(
"div"
,{
staticClass
:
"cell-info-name font-14 color-303133 flex flex-column"
},[
a
(
"span"
,{
staticClass
:
"gic-name"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkName
||
"--"
))]),
a
(
"span"
,{
staticClass
:
"gic-version"
},[
t
.
_v
(
t
.
_s
(
e
.
row
.
clerkCode
||
"--"
))])])])])]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
""
,
label
:
"归属门店"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
t
.
_v
(
t
.
_s
(
e
.
row
.
storeName
||
"--"
))]}}])}),
t
.
_v
(
" "
),
a
(
"el-table-column"
,{
attrs
:{
prop
:
"lastLoginTime"
,
label
:
"上次登录时间"
,
sortable
:
"custom"
,
"show-overflow-tooltip"
:
""
},
scopedSlots
:
t
.
_u
([{
key
:
"default"
,
fn
:
function
(
e
){
return
[
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToYmd"
)(
e
.
row
.
lastLoginTime
)))]),
t
.
_v
(
" "
),
a
(
"div"
,{
staticClass
:
"line-18"
},[
t
.
_v
(
t
.
_s
(
t
.
_f
(
"timeStampToHms"
)(
e
.
row
.
lastLoginTime
)))])]}}])})],
1
)],
1
),
t
.
_v
(
" "
),
0
!=
t
.
tableData
.
length
?
a
(
"div"
,{
staticClass
:
"block common-wrap__page text-right m-t-24"
},[
a
(
"dm-pagination"
,{
attrs
:{
background
:
""
,
"current-page"
:
t
.
currentPage
,
"page-sizes"
:[
20
,
40
,
60
,
80
],
"page-size"
:
t
.
pageSize
,
layout
:
"total, sizes, prev, pager, next, jumper"
,
total
:
t
.
total
},
on
:{
"size-change"
:
t
.
handleSizeChange
,
"current-change"
:
t
.
handleCurrentChange
}})],
1
):
t
.
_e
()])])])])])],
1
)},
staticRenderFns
:[
function
(){
var
t
=
this
.
$createElement
,
e
=
this
.
_self
.
_c
||
t
;
return
e
(
"div"
,{
staticClass
:
"el-alert el-alert-tip el-alert--info flex flex-align-start w-426"
,
attrs
:{
role
:
"alert"
}},[
e
(
"i"
,{
staticClass
:
"el-alert__icon el-icon-info font-12 color-2f54eb"
}),
this
.
_v
(
" "
),
e
(
"div"
,{
staticClass
:
"el-alert__content"
},[
e
(
"span"
,{
staticClass
:
"el-alert__title color-606266 font-14"
},[
this
.
_v
(
"数据更新截至于昨日。今日数据需要隔天上午8点后进行查看。"
)])])])}]};
var
p
=
a
(
"VU/8"
)(
u
,
h
,
!
1
,
function
(
t
){
a
(
"TfHd"
)},
"data-v-6770e4cc"
,
null
);
e
.
default
=
p
.
exports
},
l7U4
:
function
(
t
,
e
){},
rbYK
:
function
(
t
,
e
,
a
){
"use strict"
;
var
i
=
a
(
"5i7M"
),
s
=
{
data
:
function
(){
return
{
chart
:
null
}},
props
:{
charData
:{
type
:
Array
,
default
:
function
(){
return
[]}},
id
:
String
,
width
:{
type
:
Number
,
default
:
800
}},
mounted
:
function
(){
var
t
=
this
;
setTimeout
(
function
(){
t
.
drawChart
()},
30
)},
beforeUpdate
:
function
(){
this
.
drawChart
()},
watch
:{
charData
:
function
(){
this
.
drawChart
()}},
methods
:{
drawChart
:
function
(){
this
.
chart
&&
this
.
chart
.
destroy
(),
this
.
chart
=
new
i
.
a
({
container
:
this
.
id
,
width
:
this
.
width
,
autoFit
:
!
0
,
height
:
280
,
padding
:[
50
,
80
,
60
,
80
]}),
this
.
chart
.
source
(
this
.
charData
),
this
.
chart
.
scale
({
avgVisitTime
:{
min
:
0
,
nice
:
!
0
,
alias
:
"人均访问时长"
},
avgLoginTimes
:{
nice
:
!
0
,
alias
:
"平均每人登录次数"
},
bizDates
:{}}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"-4%"
,
"-10%"
],
content
:
"登录次数"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
guide
().
text
({
top
:
!
0
,
position
:[
"100%"
,
"-10%"
],
content
:
"访问时长"
,
offsetX
:
0
,
offsetY
:
0
}),
this
.
chart
.
axis
(
"avgVisitTime"
,{
grid
:
null
,
title
:
null
}),
this
.
chart
.
axis
(
"avgLoginTimes"
,{
title
:
null
}),
this
.
chart
.
tooltip
({
showCrosshairs
:
!
0
,
shared
:
!
0
}),
this
.
chart
.
interval
().
position
(
"bizDates*avgLoginTimes"
).
color
(
"#597EF7"
),
this
.
chart
.
line
().
position
(
"bizDates*avgVisitTime"
).
color
(
"#5ad8a6"
),
this
.
chart
.
legend
({
position
:
"top"
,
itemGap
:
20
,
custom
:
!
0
,
items
:[{
value
:
"avgLoginTimes"
,
name
:
"平均每人登录次数"
,
marker
:{
symbol
:
"square"
,
style
:{
fill
:
"#597ef7"
,
r
:
4
}}},{
value
:
"avgVisitTime"
,
name
:
"人均访问时长"
,
marker
:{
symbol
:
"hyphen"
,
style
:{
stroke
:
"#5ad8a6"
,
r
:
5
,
lineWidth
:
3
}}}]}),
this
.
chart
.
render
()}}},
n
=
{
render
:
function
(){
var
t
=
this
.
$createElement
;
return
(
this
.
_self
.
_c
||
t
)(
"div"
,{
attrs
:{
id
:
this
.
id
}})},
staticRenderFns
:[]};
var
o
=
a
(
"VU/8"
)(
s
,
n
,
!
1
,
function
(
t
){
a
(
"l7U4"
)},
"data-v-fdd54b1a"
,
null
);
e
.
a
=
o
.
exports
}});
\ No newline at end of file
dist/static/js/app.
ef6dd57ebd2e799ecc33
.js
→
dist/static/js/app.
0b3578979ae04c31e874
.js
View file @
1a7c967e
webpackJsonp
([
86
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/enterpriseData"
,
name
:
"企业数据"
,
redirect
:
"enterpriseUseData"
,
component
:
h
()(
"enterpriseData"
,
"index"
),
children
:[{
path
:
"/enterpriseUseData"
,
name
:
"好办使用详情"
,
component
:
h
()(
"enterpriseData"
,
"enterpriseUseData"
)},{
path
:
"/activeDetail"
,
name
:
"激活人员明细"
,
component
:
h
()(
"enterpriseData"
,
"activeDetail"
)},{
path
:
"/loginDetail"
,
name
:
"登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"loginDetail"
)},{
path
:
"/areaLoginDetail"
,
name
:
"区域登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"areaLoginDetail"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
C
=
a
.
n
(
x
),
T
=
a
(
"bOdI"
),
b
=
a
.
n
(
T
),
R
=
a
(
"SJI6"
),
A
=
a
.
n
(
R
);
u
.
a
.
use
(
A
.
a
);
var
L
=
new
A
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
M
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),
a
(
"Q0Ca"
)),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
U
=
a
(
"l9mu"
),
J
=
a
.
n
(
U
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
J
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
M
.
a
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
M
.
a
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
L
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
75
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
37
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
77
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
33
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
41
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
20
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
45
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
14
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
46
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
16
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
27
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
78
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
38
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
6
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
44
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
59
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
60
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
71
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
84
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
66
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
29
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
49
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
34
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
74
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
70
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
8
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
13
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
63
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
48
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
52
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
50
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
30
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
51
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
80
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
11
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
10
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
43
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
81
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
69
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
67
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
35
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
39
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
72
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
76
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
58
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
57
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
40
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
82
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
17
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
61
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
55
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
53
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
28
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
79
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
54
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
19
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
5
],
"./business/index.vue"
:[
"jPcV"
,
0
,
83
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
73
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
25
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
62
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
15
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
56
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./enterpriseData/activeDetail.vue"
:[
"h9Ca"
,
0
,
21
],
"./enterpriseData/areaLoginDetail.vue"
:[
"TLd+"
,
0
,
24
],
"./enterpriseData/enterpriseUseData.vue"
:[
"i4c9"
,
0
,
7
],
"./enterpriseData/index.vue"
:[
"CTf4"
,
0
,
65
],
"./enterpriseData/loginDetail.vue"
:[
"kX6v"
,
0
,
9
],
"./errorPage/403.vue"
:[
"6XGN"
,
26
],
"./errorPage/404.vue"
:[
"AejC"
,
31
],
"./errorPage/500.vue"
:[
"FskK"
,
23
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
32
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
64
],
"./login/index.vue"
:[
"T+/8"
,
0
,
22
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
68
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
36
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
42
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
47
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
18
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
12
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
Q0Ca
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}}}},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
webpackJsonp
([
86
],{
"/NA0"
:
function
(
e
,
t
){},
0
:
function
(
e
,
t
,
a
){
a
(
"j1ja"
),
e
.
exports
=
a
(
"NHnr"
)},
"4qCZ"
:
function
(
e
,
t
){},
"5tgt"
:
function
(
e
,
t
,
a
){
e
.
exports
=
function
(
e
,
t
){
return
function
(
n
){
a
(
"Opzk"
)(
"./"
+
e
+
"/"
+
t
+
".vue"
).
then
(
function
(
e
){
n
(
e
)})}}},
NHnr
:
function
(
e
,
t
,
a
){
"use strict"
;
Object
.
defineProperty
(
t
,
"__esModule"
,{
value
:
!
0
});
var
n
=
a
(
"fZjL"
),
o
=
a
.
n
(
n
),
r
=
(
a
(
"j1ja"
),
a
(
"hKoQ"
)),
p
=
a
.
n
(
r
),
s
=
{
render
:
function
(){
var
e
=
this
.
$createElement
,
t
=
this
.
_self
.
_c
||
e
;
return
t
(
"div"
,{
attrs
:{
id
:
"app"
}},[
t
(
"transition"
,{
attrs
:{
name
:
"fade"
,
mode
:
"out-in"
}},[
t
(
"router-view"
)],
1
)],
1
)},
staticRenderFns
:[]};
var
i
=
a
(
"VU/8"
)({
name
:
"App"
,
data
:
function
(){
return
{}}},
s
,
!
1
,
function
(
e
){
a
(
"/NA0"
)},
null
,
null
).
exports
,
c
=
a
(
"lRwf"
),
u
=
a
.
n
(
c
),
m
=
a
(
"pRNm"
),
d
=
a
.
n
(
m
),
l
=
a
(
"5tgt"
),
h
=
a
.
n
(
l
);
u
.
a
.
use
(
d
.
a
);
var
v
=
function
(
e
){
a
.
e
(
1
).
then
(
a
.
bind
(
null
,
"ODjX"
)).
then
(
function
(
t
){
e
(
t
)})};
window
.
sessionStorage
.
getItem
(
"token"
)
&&
store
.
commit
(
types
.
LOGIN
,
window
.
sessionStorage
.
getItem
(
"token"
));
var
f
,
g
=
[{
path
:
"/"
,
name
:
"/"
,
redirect
:
"login"
},{
path
:
"/login"
,
name
:
"登录"
,
component
:
h
()(
"login"
,
"index"
)},{
path
:
"/index"
,
name
:
"index"
,
component
:
h
()(
"index"
,
"index"
)},{
path
:
"/contacts"
,
name
:
"通讯录"
,
redirect
:
"contactsList"
,
component
:
h
()(
"business"
,
"index"
),
children
:[{
path
:
"/contactsList"
,
name
:
"通讯录"
,
component
:
h
()(
"business"
,
"contacts"
)},{
path
:
"/syncLog"
,
name
:
"通讯录日志"
,
component
:
h
()(
"business"
,
"syncLog"
)},{
path
:
"/authMerchant"
,
name
:
"授权商户"
,
component
:
h
()(
"business"
,
"authMerchant"
)}]},{
path
:
"/enterprise"
,
name
:
"企业设置"
,
redirect
:
"enterpriseSet"
,
component
:
h
()(
"enterprise"
,
"index"
),
children
:[{
path
:
"/enterpriseSet"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"enterpriseSet"
)},{
path
:
"/adminList"
,
name
:
"企业信息"
,
component
:
h
()(
"enterprise"
,
"adminList"
)},{
path
:
"/material"
,
name
:
"素材库"
,
component
:
h
()(
"enterprise"
,
"material"
)}]},{
path
:
"/enterpriseData"
,
name
:
"企业数据"
,
redirect
:
"enterpriseUseData"
,
component
:
h
()(
"enterpriseData"
,
"index"
),
children
:[{
path
:
"/enterpriseUseData"
,
name
:
"好办使用详情"
,
component
:
h
()(
"enterpriseData"
,
"enterpriseUseData"
)},{
path
:
"/activeDetail"
,
name
:
"激活人员明细"
,
component
:
h
()(
"enterpriseData"
,
"activeDetail"
)},{
path
:
"/loginDetail"
,
name
:
"登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"loginDetail"
)},{
path
:
"/areaLoginDetail"
,
name
:
"区域登录人员明细"
,
component
:
h
()(
"enterpriseData"
,
"areaLoginDetail"
)}]},{
path
:
"/overStore"
,
name
:
"溢出门店"
,
redirect
:
"unreview"
,
component
:
h
()(
"overstore"
,
"index"
),
children
:[{
path
:
"/overStoreList"
,
name
:
"溢出门店"
,
component
:
h
()(
"overstore"
,
"overStoreList"
)}]},{
path
:
"/apps"
,
name
:
"企业应用"
,
redirect
:
"mycustomer"
,
component
:
h
()(
"apps"
,
"index"
),
children
:[{
path
:
"/mycustomer"
,
name
:
"我的顾客的"
,
redirect
:
"/memberShowSet"
,
component
:
h
()(
"apps/customerApp"
,
"index"
),
children
:[{
path
:
"/memberShowSet"
,
name
:
"会员展示设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberShowSet"
)},{
path
:
"/memberGroupSet"
,
name
:
"会员分组设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberGroupSet"
)},{
path
:
"/memberSearchSet"
,
name
:
"会员搜索设置"
,
component
:
h
()(
"apps/customerApp"
,
"memberSearchSet"
)},{
path
:
"/myCustomerList"
,
name
:
"我的顾客列表"
,
component
:
h
()(
"apps/customerApp"
,
"myCustomerList"
)},{
path
:
"/addGroupTemplate"
,
name
:
"添加模板"
,
component
:
h
()(
"apps/customerApp"
,
"addGroupTemplate"
)},{
path
:
"/storeRangeSet"
,
name
:
"门店范围设置"
,
component
:
h
()(
"apps/customerApp"
,
"storeRangeSet"
)}]},{
path
:
"/cloudDaily"
,
name
:
"云日报"
,
redirect
:
"/dailyRecord"
,
component
:
h
()(
"apps/cloudDaily"
,
"index"
),
children
:[{
path
:
"/dailyRecord"
,
name
:
"云日报记录"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyRecord"
)},{
path
:
"/dailyExport"
,
name
:
"云日报导出"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyExport"
)},{
path
:
"/dailyDetail"
,
name
:
"日报详情"
,
component
:
h
()(
"apps/cloudDaily"
,
"dailyDetail"
)},{
path
:
"/taskAssign"
,
name
:
"任务下发设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"taskAssign"
)},{
path
:
"/systemReport"
,
name
:
"系统报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"systemReport"
)},{
path
:
"/customReport"
,
name
:
"自定义报表"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReport"
)},{
path
:
"/customReportSet"
,
name
:
"自定义报表设置"
,
component
:
h
()(
"apps/cloudDaily"
,
"customReportSet"
)}]},{
path
:
"/trafficTask"
,
name
:
"话务任务"
,
redirect
:
"/taskRecord"
,
component
:
h
()(
"apps/trafficTask"
,
"index"
),
children
:[{
path
:
"/taskRecord"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskRecord"
)},{
path
:
"/taskView"
,
name
:
"话务任务记录"
,
component
:
h
()(
"apps/trafficTask"
,
"taskView"
)},{
path
:
"/taskDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskDetail"
)},{
path
:
"/taskViewDetail"
,
name
:
"话务任务详情"
,
component
:
h
()(
"apps/trafficTask"
,
"taskViewDetail"
)},{
path
:
"/trafficTaskSet"
,
name
:
"话务任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"trafficTaskSet"
)},{
path
:
"/badEvaluateSet"
,
name
:
"不良评价设置"
,
component
:
h
()(
"apps/badEvaluate"
,
"badEvaluateSet"
)},{
path
:
"/taskList"
,
name
:
"会话任务列表"
,
component
:
h
()(
"apps/trafficTask"
,
"taskList"
)},{
path
:
"/newSession"
,
name
:
"新建会话任务"
,
component
:
h
()(
"apps/trafficTask"
,
"newSession"
)},{
path
:
"/taskSessionSet"
,
name
:
"会话任务设置"
,
component
:
h
()(
"apps/trafficTask"
,
"taskSessionSet"
)}]},{
path
:
"/quota"
,
name
:
"指标管理"
,
redirect
:
"/monthList"
,
component
:
h
()(
"apps/quota"
,
"index"
),
children
:[{
path
:
"/monthList"
,
name
:
"月指标列表"
,
component
:
h
()(
"apps/quota"
,
"monthList"
)},{
path
:
"/storeMonthTask"
,
name
:
"门店月指标"
,
component
:
h
()(
"apps/quota"
,
"storeMonthTask"
)},{
path
:
"/salerMonthDetail"
,
name
:
"导购月指标详情"
,
component
:
h
()(
"apps/quota"
,
"salerMonthDetail"
)},{
path
:
"/companyDaySet"
,
name
:
"商户日权重"
,
component
:
h
()(
"apps/quota"
,
"companyDaySet"
)},{
path
:
"/monthTask"
,
name
:
"月指标任务"
,
component
:
h
()(
"apps/quota"
,
"monthTask"
),
meta
:{
keepAlive
:
!
0
}},{
path
:
"/monthTaskDetail"
,
name
:
"月指标任务详情"
,
component
:
h
()(
"apps/quota"
,
"monthTaskDetail"
),
meta
:{
keepAlive
:
!
0
}}]},{
path
:
"/cardList"
,
name
:
"卡券赠送"
,
redirect
:
"/cardList"
,
component
:
h
()(
"apps/card"
,
"index"
),
children
:[{
path
:
"/cardList"
,
name
:
"卡券列表"
,
component
:
h
()(
"apps/card"
,
"cardList"
)},{
path
:
"/cardRecord"
,
name
:
"卡券记录"
,
component
:
h
()(
"apps/card"
,
"cardRecord"
)},{
path
:
"/newCard"
,
name
:
"新建卡券"
,
component
:
h
()(
"apps/card"
,
"newCard"
)}]},{
path
:
"/protectCard"
,
name
:
"内购券"
,
redirect
:
"/cardTemplate"
,
component
:
h
()(
"apps/protectCard"
,
"index"
),
children
:[{
path
:
"/cardTemplate"
,
name
:
"卡券模板"
,
component
:
h
()(
"apps/protectCard"
,
"cardTemplate"
)},{
path
:
"/newCardTemp"
,
name
:
"新建模板"
,
component
:
h
()(
"apps/protectCard"
,
"newCardTemp"
)},{
path
:
"/cardStrategy"
,
name
:
"卡券策略"
,
component
:
h
()(
"apps/protectCard"
,
"cardStrategy"
)},{
path
:
"/newCardStrategy"
,
name
:
"新建策略"
,
component
:
h
()(
"apps/protectCard"
,
"newCardStrategy"
)},{
path
:
"/cardPut"
,
name
:
"内购券投放"
,
component
:
h
()(
"apps/protectCard"
,
"cardPut"
)},{
path
:
"/newCardPut"
,
name
:
"新建补发"
,
component
:
h
()(
"apps/protectCard"
,
"newCardPut"
)},{
path
:
"/cardPutRecord"
,
name
:
"投放记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardPutRecord"
)},{
path
:
"/cardGetRecord"
,
name
:
"领取记录"
,
component
:
h
()(
"apps/protectCard"
,
"cardGetRecord"
)}]},{
path
:
"/shoppingCenter"
,
name
:
"商品中心"
,
redirect
:
"/goodsShowSet"
,
component
:
h
()(
"apps/shoppingCenter"
,
"index"
),
children
:[{
path
:
"/goodsShowSet"
,
name
:
"商品展示设置"
,
component
:
h
()(
"apps/shoppingCenter"
,
"goodsShowSet"
)}]}]},{
path
:
"/reviewCenter"
,
name
:
"审核中心"
,
redirect
:
"unreview"
,
component
:
h
()(
"reviewCenter"
,
"index"
),
children
:[{
path
:
"/reviewed"
,
name
:
"已审核"
,
component
:
h
()(
"reviewCenter"
,
"reviewed"
)},{
path
:
"/unreview"
,
name
:
"未审核"
,
component
:
h
()(
"reviewCenter"
,
"unreview"
)},{
path
:
"/reviewSet"
,
name
:
"审核设置"
,
component
:
h
()(
"reviewCenter"
,
"reviewSet"
)}]},{
path
:
"/gic-error"
,
name
:
"gic跳转失败页"
,
component
:
h
()(
"errorPage"
,
"gic-error"
)},{
path
:
"/403"
,
name
:
"无权访问"
,
component
:
v
},{
path
:
"/404"
,
name
:
"error404"
,
component
:
v
},{
path
:
"/500"
,
name
:
"error500"
,
component
:
v
},{
path
:
"*"
,
redirect
:
"/404"
,
hidden
:
!
0
}],
D
=
new
d
.
a
({
routes
:
g
,
scrollBehavior
:
function
(){
return
{
y
:
0
}}}),
S
=
a
(
"zL8q"
),
w
=
a
.
n
(
S
),
k
=
a
(
"Rf8U"
),
y
=
a
.
n
(
k
),
x
=
a
(
"mtWM"
),
C
=
a
.
n
(
x
),
T
=
a
(
"bOdI"
),
b
=
a
.
n
(
T
),
M
=
a
(
"SJI6"
),
R
=
a
.
n
(
M
);
u
.
a
.
use
(
R
.
a
);
var
A
=
new
R
.
a
.
Store
({
state
:{
user
:{},
token
:
null
,
title
:
""
,
show
:
!
1
,
bgHeight
:
window
.
screen
.
availHeight
-
440
-
24
+
"px"
,
addDepartment
:[],
editDepartment
:[],
delDepartment
:[]},
mutations
:(
f
=
{},
b
()(
f
,
"login"
,
function
(
e
,
t
){
sessionStorage
.
token
=
t
,
e
.
token
=
t
}),
b
()(
f
,
"logout"
,
function
(
e
){
sessionStorage
.
removeItem
(
"token"
),
e
.
token
=
null
}),
b
()(
f
,
"title"
,
function
(
e
,
t
){
e
.
title
=
t
}),
b
()(
f
,
"show"
,
function
(
e
,
t
){
e
.
show
=
t
}),
b
()(
f
,
"saveAdd"
,
function
(
e
,
t
){
e
.
addDepartment
.
push
(
t
)}),
b
()(
f
,
"saveEdit"
,
function
(
e
,
t
){
e
.
editDepartment
.
push
(
t
)}),
b
()(
f
,
"saveDel"
,
function
(
e
,
t
){
e
.
delDepartment
.
push
(
t
)}),
b
()(
f
,
"clearAdd"
,
function
(
e
){
e
.
addDepartment
=
[]}),
b
()(
f
,
"clearEdit"
,
function
(
e
){
e
.
editDepartment
=
[]}),
b
()(
f
,
"clearData"
,
function
(
e
){
e
.
addDepartment
=
[],
e
.
editDepartment
=
[],
e
.
delDepartment
=
[]}),
f
),
actions
:{
saveAddInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveAdd"
,
t
)},
saveEditInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveEdit"
,
t
)},
saveDelInfo
:
function
(
e
,
t
){
e
.
commit
(
"saveDel"
,
t
)},
clearAddData
:
function
(
e
,
t
){
e
.
commit
(
"clearAdd"
)},
clearEditData
:
function
(
e
,
t
){
e
.
commit
(
"clearEdit"
)},
clearTreeData
:
function
(
e
,
t
){
e
.
commit
(
"clearData"
)}}}),
L
=
(
a
(
"4qCZ"
),
a
(
"tvR6"
),
a
(
"uKUT"
),
a
(
"Xcu2"
),
a
(
"xtVA"
),
a
(
"Q0Ca"
)),
E
=
a
(
"TUaa"
),
P
=
a
.
n
(
E
),
V
=
a
(
"tyqE"
),
q
=
a
.
n
(
V
),
I
=
a
(
"pRVe"
),
H
=
a
.
n
(
I
),
G
=
a
(
"XsK6"
),
j
=
a
.
n
(
G
),
Y
=
a
(
"QRL9"
),
F
=
a
.
n
(
Y
),
N
=
a
(
"2Pnh"
),
O
=
a
.
n
(
N
),
U
=
a
(
"l9mu"
),
J
=
a
.
n
(
U
),
X
=
{
install
:
function
(
e
,
t
){
e
.
prototype
.
getPdf
=
function
(){
var
e
=
this
.
htmlTitle
;
O
()(
document
.
querySelector
(
"#pdfDom"
),{
allowTaint
:
!
0
,
foreignObjectRendering
:
!
0
}).
then
(
function
(
t
){
var
a
=
t
.
width
,
n
=
t
.
height
,
o
=
a
/
592.28
*
841.89
,
r
=
n
,
p
=
0
,
s
=
592.28
/
a
*
n
,
i
=
t
.
toDataURL
(
"image/jpeg"
,
1
),
c
=
new
J
.
a
(
""
,
"pt"
,
"a4"
);
if
(
r
<
o
)
c
.
addImage
(
i
,
"JPEG"
,
0
,
0
,
595.28
,
s
);
else
for
(;
r
>
0
;)
c
.
addImage
(
i
,
"JPEG"
,
0
,
p
,
595.28
,
s
),
p
-=
841.89
,(
r
-=
o
)
>
0
&&
c
.
addPage
();
c
.
save
(
e
+
".pdf"
)})}}},
z
=
a
(
"/IwO"
),
K
=
a
.
n
(
z
);
p
.
a
.
polyfill
(),
Vue
.
use
(
K
.
a
),
K
.
a
.
initAMapApiLoader
({
key
:
"d53a58848be368a7398dc56d5670fe9c"
,
plugin
:[
"Autocomplete"
,
"PlaceSearch"
,
"Scale"
,
"OverView"
,
"Geocoder"
,
"ToolBar"
,
"MapType"
,
"PolyEditor"
,
"AMap.CircleEditor"
],
v
:
"1.4.4"
}),
Vue
.
use
(
X
),
Vue
.
use
(
j
.
a
),
Vue
.
use
(
F
.
a
),
Vue
.
use
(
H
.
a
),
Vue
.
use
(
q
.
a
),
Vue
.
use
(
P
.
a
),
Vue
.
config
.
productionTip
=!
1
,
Vue
.
use
(
w
.
a
,{
size
:
"large"
}),
Vue
.
use
(
y
.
a
,
C
.
a
),
Vue
.
axios
.
defaults
.
withCredentials
=!
0
,
o
()(
L
.
a
).
forEach
(
function
(
e
){
Vue
.
filter
(
e
,
L
.
a
[
e
])}),
D
.
beforeEach
(
function
(
e
,
t
,
a
){
window
.
axiosPromiseArr
&&
axiosPromiseArr
.
forEach
(
function
(
e
,
t
){
e
.
cancel
(),
delete
axiosPromiseArr
[
t
]});
var
n
=
window
.
location
.
origin
;
n
.
indexOf
(
"localhost"
),
localStorage
.
getItem
(
"userInfos"
),
"/"
==
e
.
path
?
a
({
path
:
"/login"
}):
a
()}),
new
Vue
({
el
:
"#app"
,
router
:
D
,
store
:
A
,
components
:{
App
:
i
},
template
:
"<App/>"
})},
Opzk
:
function
(
e
,
t
,
a
){
var
n
=
{
"./apps/badEvaluate/badEvaluateDetail.vue"
:[
"Yz8m"
,
0
,
75
],
"./apps/badEvaluate/badEvaluateRecord.vue"
:[
"DCIc"
,
0
,
37
],
"./apps/badEvaluate/badEvaluateSet.vue"
:[
"moBL"
,
0
,
77
],
"./apps/badEvaluate/index.vue"
:[
"AG22"
,
0
,
33
],
"./apps/card/cardList.vue"
:[
"X5LE"
,
0
,
41
],
"./apps/card/cardRecord.vue"
:[
"xDJN"
,
0
,
20
],
"./apps/card/index.vue"
:[
"nV1L"
,
0
,
45
],
"./apps/card/newCard.vue"
:[
"7/Zw"
,
0
,
14
],
"./apps/cloudDaily/customReport.vue"
:[
"ak3k"
,
0
,
46
],
"./apps/cloudDaily/customReportSet.vue"
:[
"LTPC"
,
0
,
3
],
"./apps/cloudDaily/dailyDetail.vue"
:[
"JwJ7"
,
0
,
16
],
"./apps/cloudDaily/dailyExport.vue"
:[
"H3Dc"
,
0
,
27
],
"./apps/cloudDaily/dailyRecord.vue"
:[
"IuWw"
,
0
,
78
],
"./apps/cloudDaily/index.vue"
:[
"4QyY"
,
0
,
38
],
"./apps/cloudDaily/systemReport.vue"
:[
"J/6z"
,
0
,
6
],
"./apps/cloudDaily/taskAssign.vue"
:[
"Hb/M"
,
0
,
44
],
"./apps/cloudDaily/template/block.vue"
:[
"O3gZ"
,
59
],
"./apps/cloudDaily/template/date-range.vue"
:[
"2WGr"
,
60
],
"./apps/cloudDaily/template/image.vue"
:[
"8dpP"
,
71
],
"./apps/cloudDaily/template/input.vue"
:[
"zHtI"
,
84
],
"./apps/cloudDaily/template/select.vue"
:[
"rYZf"
,
66
],
"./apps/customerApp/addGroupTemplate.vue"
:[
"vIlm"
,
0
,
29
],
"./apps/customerApp/index.vue"
:[
"QHTa"
,
0
,
49
],
"./apps/customerApp/memberGroupSet.vue"
:[
"JuNN"
,
0
,
34
],
"./apps/customerApp/memberSearchSet.vue"
:[
"Z3Aa"
,
0
,
74
],
"./apps/customerApp/memberShowSet.vue"
:[
"odfG"
,
0
,
70
],
"./apps/customerApp/myCustomerList.vue"
:[
"9CCr"
,
0
,
8
],
"./apps/customerApp/storeRangeSet.vue"
:[
"z3jf"
,
0
,
13
],
"./apps/index.vue"
:[
"K1Vb"
,
0
,
63
],
"./apps/protectCard/cardGetRecord.vue"
:[
"5GE8"
,
0
,
48
],
"./apps/protectCard/cardPut.vue"
:[
"cD4x"
,
0
,
52
],
"./apps/protectCard/cardPutRecord.vue"
:[
"dhLd"
,
0
,
50
],
"./apps/protectCard/cardStrategy.vue"
:[
"rUvh"
,
0
,
30
],
"./apps/protectCard/cardTemplate.vue"
:[
"c7iB"
,
0
,
51
],
"./apps/protectCard/index.vue"
:[
"aWmL"
,
0
,
80
],
"./apps/protectCard/newCardPut.vue"
:[
"9db3"
,
0
,
10
],
"./apps/protectCard/newCardStrategy.vue"
:[
"8Rwt"
,
0
,
9
],
"./apps/protectCard/newCardTemp.vue"
:[
"tF0P"
,
0
,
43
],
"./apps/quota/companyDaySet.vue"
:[
"NiGE"
,
0
,
81
],
"./apps/quota/index.vue"
:[
"qSX4"
,
0
,
69
],
"./apps/quota/monthList.vue"
:[
"fAFA"
,
0
,
67
],
"./apps/quota/monthTask.vue"
:[
"NpHY"
,
0
,
35
],
"./apps/quota/monthTaskDetail.vue"
:[
"YKf6"
,
0
,
39
],
"./apps/quota/salerMonthDetail.vue"
:[
"+qr5"
,
0
,
72
],
"./apps/quota/storeMonthTask.vue"
:[
"qWC+"
,
0
,
76
],
"./apps/shoppingCenter/goodsShowSet.vue"
:[
"XrL3"
,
0
,
58
],
"./apps/shoppingCenter/index.vue"
:[
"FIFf"
,
0
,
57
],
"./apps/trafficTask/index.vue"
:[
"FmZU"
,
0
,
40
],
"./apps/trafficTask/newSession.vue"
:[
"upTI"
,
0
,
82
],
"./apps/trafficTask/taskDetail.vue"
:[
"XrDD"
,
0
,
17
],
"./apps/trafficTask/taskList.vue"
:[
"FMQe"
,
0
,
61
],
"./apps/trafficTask/taskRecord.vue"
:[
"m+x7"
,
0
,
55
],
"./apps/trafficTask/taskSessionSet.vue"
:[
"lPa5"
,
0
,
53
],
"./apps/trafficTask/taskView.vue"
:[
"w2fd"
,
0
,
28
],
"./apps/trafficTask/taskViewDetail.vue"
:[
"SBUJ"
,
0
,
79
],
"./apps/trafficTask/trafficTaskSet.vue"
:[
"OUXi"
,
0
,
54
],
"./business/authMerchant.vue"
:[
"mjMK"
,
0
,
19
],
"./business/contacts.vue"
:[
"/W60"
,
0
,
5
],
"./business/index.vue"
:[
"jPcV"
,
0
,
83
],
"./business/orgStructSet.vue"
:[
"OI5V"
,
0
,
4
],
"./business/recycle.vue"
:[
"K8Yn"
,
0
,
73
],
"./business/syncLog.vue"
:[
"20P3"
,
0
,
25
],
"./enterprise/adminList.vue"
:[
"zYBJ"
,
0
,
62
],
"./enterprise/enterpriseSet.vue"
:[
"x5Fx"
,
0
,
15
],
"./enterprise/index.vue"
:[
"m9dW"
,
0
,
56
],
"./enterprise/material.vue"
:[
"q+Sm"
,
0
,
2
],
"./enterpriseData/activeDetail.vue"
:[
"h9Ca"
,
0
,
21
],
"./enterpriseData/areaLoginDetail.vue"
:[
"TLd+"
,
0
,
24
],
"./enterpriseData/enterpriseUseData.vue"
:[
"i4c9"
,
0
,
7
],
"./enterpriseData/index.vue"
:[
"CTf4"
,
0
,
65
],
"./enterpriseData/loginDetail.vue"
:[
"kX6v"
,
0
,
11
],
"./errorPage/403.vue"
:[
"6XGN"
,
26
],
"./errorPage/404.vue"
:[
"AejC"
,
31
],
"./errorPage/500.vue"
:[
"FskK"
,
23
],
"./errorPage/gic-error.vue"
:[
"Q3j/"
,
32
],
"./errorPage/index.vue"
:[
"ODjX"
,
1
],
"./index/index.vue"
:[
"JXTs"
,
0
,
64
],
"./login/index.vue"
:[
"T+/8"
,
0
,
22
],
"./overstore/index.vue"
:[
"Y55K"
,
0
,
68
],
"./overstore/overStoreList.vue"
:[
"vuAV"
,
0
,
36
],
"./reviewCenter/index.vue"
:[
"+lem"
,
0
,
42
],
"./reviewCenter/reviewSet.vue"
:[
"6j9f"
,
0
,
47
],
"./reviewCenter/reviewed.vue"
:[
"CLYF"
,
0
,
18
],
"./reviewCenter/unreview.vue"
:[
"xCEU"
,
0
,
12
]};
function
o
(
e
){
var
t
=
n
[
e
];
return
t
?
Promise
.
all
(
t
.
slice
(
1
).
map
(
a
.
e
)).
then
(
function
(){
return
a
(
t
[
0
])}):
Promise
.
reject
(
new
Error
(
"Cannot find module '"
+
e
+
"'."
))}
o
.
keys
=
function
(){
return
Object
.
keys
(
n
)},
o
.
id
=
"Opzk"
,
e
.
exports
=
o
},
Q0Ca
:
function
(
e
,
t
,
a
){
"use strict"
;
t
.
a
=
{
dateFormat
:
function
(
e
,
t
){
if
(
e
){
e
=
10
===
e
.
toString
().
length
?
1
e3
*
e
:
e
;
var
a
=
new
Date
(
e
),
n
=
{
"M+"
:
a
.
getMonth
()
+
1
,
"D+"
:
a
.
getDate
(),
W
:
"日一二三四五六"
.
charAt
(
a
.
getDay
()),
"h+"
:
a
.
getHours
(),
"m+"
:
a
.
getMinutes
(),
"s+"
:
a
.
getSeconds
(),
"q+"
:
Math
.
floor
((
a
.
getMonth
()
+
3
)
/
3
),
S
:
a
.
getMilliseconds
()};
for
(
var
o
in
/
(
Y+
)
/
.
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,(
a
.
getFullYear
()
+
""
).
substr
(
4
-
RegExp
.
$1
.
length
))),
n
)
new
RegExp
(
"("
+
o
+
")"
).
test
(
t
)
&&
(
t
=
t
.
replace
(
RegExp
.
$1
,
1
===
RegExp
.
$1
.
length
?
n
[
o
]:(
"00"
+
n
[
o
]).
substr
((
""
+
n
[
o
]).
length
)));
return
t
}},
formatTimeStamp
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
timeStampToYm
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
n
}},
timeStampToYmd
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
;
return
t
.
getFullYear
()
+
"-"
+
o
+
"-"
+
n
}},
timeStampToHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
);
return
(
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
())
+
":"
+
(
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
())
+
":"
+
(
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
())}},
formatTimeYmdHms
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
(
e
),
a
=
t
.
getMonth
()
+
1
,
n
=
t
.
getDate
()
<
10
?
"0"
+
t
.
getDate
():
t
.
getDate
(),
o
=
a
<
10
?
"0"
+
a
:
a
,
r
=
t
.
getHours
()
<
10
?
"0"
+
t
.
getHours
():
t
.
getHours
(),
p
=
t
.
getMinutes
()
<
10
?
"0"
+
t
.
getMinutes
():
t
.
getMinutes
(),
s
=
t
.
getSeconds
()
<
10
?
"0"
+
t
.
getSeconds
():
t
.
getSeconds
();
return
t
.
getFullYear
()
+
"."
+
o
+
"."
+
n
+
" "
+
r
+
":"
+
p
+
":"
+
s
}},
formatPhoneNum
:
function
(
e
){
return
e
?(
e
=
e
.
toString
()).
substr
(
0
,
3
)
+
"****"
+
e
.
substr
(
7
,
11
):
""
},
formatName
:
function
(
e
){
return
e
?
"**"
+
(
e
=
e
.
toString
()).
substr
(
e
.
length
-
1
,
e
.
length
):
""
},
timeStampSpace
:
function
(
e
){
if
(
e
){
var
t
=
new
Date
,
a
=
new
Date
(
Number
(
e
)).
getTime
()
-
t
.
getTime
();
if
(
a
<
0
)
return
""
;
var
n
=
a
%
864
e5
,
o
=
n
%
36
e5
;
return
Math
.
floor
(
a
/
864
e5
)
+
"天"
+
Math
.
floor
(
n
/
36
e5
)
+
"小时"
+
Math
.
floor
(
o
/
6
e4
)
+
"分"
}},
formatTime
:
function
(
e
){
if
(
!
e
)
return
"00:00:00"
;
var
t
=
e
/
1
e3
,
a
=
Math
.
floor
(
t
/
60
/
60
/
24
);
return
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
<
10
?
"0"
+
(
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
):
24
*
a
+
Math
.
floor
(
t
/
60
/
60
)
%
24
)
+
":"
+
(
Math
.
floor
(
t
/
60
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
/
60
)
%
60
:
Math
.
floor
(
t
/
60
)
%
60
)
+
":"
+
(
Math
.
floor
(
t
)
%
60
<
10
?
"0"
+
Math
.
floor
(
t
)
%
60
:
Math
.
floor
(
t
)
%
60
)}}},
SJI6
:
function
(
e
,
t
){
e
.
exports
=
Vuex
},
Xcu2
:
function
(
e
,
t
){},
lRwf
:
function
(
e
,
t
){
e
.
exports
=
Vue
},
pRNm
:
function
(
e
,
t
){
e
.
exports
=
VueRouter
},
tvR6
:
function
(
e
,
t
){},
uKUT
:
function
(
e
,
t
){},
xtVA
:
function
(
e
,
t
){}},[
0
]);
\ No newline at end of file
dist/static/js/manifest.
aeb20f4f1523bd5ff6ba
.js
→
dist/static/js/manifest.
5964cbb18eb7169b088f
.js
View file @
1a7c967e
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
87
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a65b89ba49331c2da266"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"2025d32c544f960c7161"
,
3
:
"5e5fd50a283f45682919"
,
4
:
"7fb54b0d6edc84c910b5"
,
5
:
"d493a299eefcfbd9f885"
,
6
:
"987ab930d70320e9de11"
,
7
:
"1191fad680a0811550c6"
,
8
:
"6f38a596c23a135b17cc"
,
9
:
"6346b5a7f615bb4d915e"
,
10
:
"1d0857d1e94ff89262fb"
,
11
:
"03c37101384d7f8451c2"
,
12
:
"fc628ad952a874c7bc5f"
,
13
:
"eeb1013728f3e67bb869"
,
14
:
"cc777d4e374d0428a9f9"
,
15
:
"1a4794eae71e5676b82a"
,
16
:
"9ff89e3ae22fb695931f"
,
17
:
"0ee5ffd1827c0ab14257"
,
18
:
"fdb6aeb863dd5e05ebd6"
,
19
:
"ceaa40d8aa6227ccaa7b"
,
20
:
"41027a6d3a2c48820f68"
,
21
:
"711aa9a9ac3eae33b133"
,
22
:
"a1fc1510f2466b09fb99"
,
23
:
"8a47f55d3794b05cdde6"
,
24
:
"1053e8d27a11e83656c6"
,
25
:
"7a5e36a2c3be8a778bc3"
,
26
:
"e598d1edc20e37a70420"
,
27
:
"320dc28c5619664352ef"
,
28
:
"41e343a4d56ae502def9"
,
29
:
"1b665b6c377fa61779aa"
,
30
:
"44ad619653abe09fe4a2"
,
31
:
"f15018c679d31a23a484"
,
32
:
"3b191a8ca4748306ba30"
,
33
:
"d60beb8286a5273c8520"
,
34
:
"21e42e4239a3a4bece96"
,
35
:
"8c517c66214b3008ba1d"
,
36
:
"49f42097022ad1c511a9"
,
37
:
"06fc7189271107a22952"
,
38
:
"b38db70a1ac98d47033e"
,
39
:
"4d86ee1e3301f7724be9"
,
40
:
"58b97f413035bfcac73d"
,
41
:
"eee22ad0ab971e133a9f"
,
42
:
"d349ab27ce555f725e4f"
,
43
:
"0c35c92dcabc93995c47"
,
44
:
"a22bd4a80c711131d8cf"
,
45
:
"eba0691dbaf3680ac324"
,
46
:
"f3c31220fd4f30dba00a"
,
47
:
"52768d75b34a3ac8e091"
,
48
:
"35fc1ffcea3edca588fa"
,
49
:
"07ea1d498a5e7f89f13b"
,
50
:
"ba943a0915a5c08260e6"
,
51
:
"377ddd3618ad5bd9c3a8"
,
52
:
"1e2ae65363a4861dd355"
,
53
:
"cad2e8ac87e5684a9bc2"
,
54
:
"aa9df4f3a7eacae9e5db"
,
55
:
"5515666662cecc9025bc"
,
56
:
"2d7039de458c3c9cb678"
,
57
:
"9f9fb6bfcac478732dad"
,
58
:
"7ca51a6189813a34c8e8"
,
59
:
"94cef91aa20f1ed4e307"
,
60
:
"af4a6c684004f80a7ee0"
,
61
:
"61567903701f9732f012"
,
62
:
"ddef6dba0e1841fb538c"
,
63
:
"a3a44a6f506f871deab4"
,
64
:
"40f89a451c2e89015091"
,
65
:
"4e16618829c82ab55c8a"
,
66
:
"af70555c4e8832c02abf"
,
67
:
"8fdd20bb6633a594da91"
,
68
:
"5c88c8205192e47c5440"
,
69
:
"4df5e7e8568b818a23af"
,
70
:
"ca6ac1fe2e2c3ac7a6ca"
,
71
:
"c4b9ffa6fd9ed879342f"
,
72
:
"ecca0939974e3cb8b4ff"
,
73
:
"4c5f9e1a5892624f46e6"
,
74
:
"e4179f75b296bd599098"
,
75
:
"a29bc05b96ce086304e1"
,
76
:
"a4e7039d1702d1398ad6"
,
77
:
"9568405fcd7f68bbbed2"
,
78
:
"6c0dc47c4cd66828eea7"
,
79
:
"0018729eec70a9546602"
,
80
:
"189377999dd7e01b560e"
,
81
:
"32879f43d7e376621672"
,
82
:
"80e1bea9e7c52a0010e2"
,
83
:
"8e92060d7042fa029dc4"
,
84
:
"917d6e79a15c0ce10d4c"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
!
function
(
e
){
var
a
=
window
.
webpackJsonp
;
window
.
webpackJsonp
=
function
(
c
,
b
,
n
){
for
(
var
r
,
t
,
o
,
i
=
0
,
u
=
[];
i
<
c
.
length
;
i
++
)
t
=
c
[
i
],
f
[
t
]
&&
u
.
push
(
f
[
t
][
0
]),
f
[
t
]
=
0
;
for
(
r
in
b
)
Object
.
prototype
.
hasOwnProperty
.
call
(
b
,
r
)
&&
(
e
[
r
]
=
b
[
r
]);
for
(
a
&&
a
(
c
,
b
,
n
);
u
.
length
;)
u
.
shift
()();
if
(
n
)
for
(
i
=
0
;
i
<
n
.
length
;
i
++
)
o
=
d
(
d
.
s
=
n
[
i
]);
return
o
};
var
c
=
{},
f
=
{
87
:
0
};
function
d
(
a
){
if
(
c
[
a
])
return
c
[
a
].
exports
;
var
f
=
c
[
a
]
=
{
i
:
a
,
l
:
!
1
,
exports
:{}};
return
e
[
a
].
call
(
f
.
exports
,
f
,
f
.
exports
,
d
),
f
.
l
=!
0
,
f
.
exports
}
d
.
e
=
function
(
e
){
var
a
=
f
[
e
];
if
(
0
===
a
)
return
new
Promise
(
function
(
e
){
e
()});
if
(
a
)
return
a
[
2
];
var
c
=
new
Promise
(
function
(
c
,
d
){
a
=
f
[
e
]
=
[
c
,
d
]});
a
[
2
]
=
c
;
var
b
=
document
.
getElementsByTagName
(
"head"
)[
0
],
n
=
document
.
createElement
(
"script"
);
n
.
type
=
"text/javascript"
,
n
.
charset
=
"utf-8"
,
n
.
async
=!
0
,
n
.
timeout
=
12
e4
,
d
.
nc
&&
n
.
setAttribute
(
"nonce"
,
d
.
nc
),
n
.
src
=
d
.
p
+
"static/js/"
+
e
+
"."
+
{
0
:
"a65b89ba49331c2da266"
,
1
:
"954a8a70c5f1171933ac"
,
2
:
"2025d32c544f960c7161"
,
3
:
"5e5fd50a283f45682919"
,
4
:
"7fb54b0d6edc84c910b5"
,
5
:
"d493a299eefcfbd9f885"
,
6
:
"987ab930d70320e9de11"
,
7
:
"99e363c878cfbd2fee8f"
,
8
:
"6f38a596c23a135b17cc"
,
9
:
"44383cfb15abd9a26d55"
,
10
:
"ba45ab3ce5ecc5a4c375"
,
11
:
"3a4ca451e189626349a5"
,
12
:
"fc628ad952a874c7bc5f"
,
13
:
"eeb1013728f3e67bb869"
,
14
:
"cc777d4e374d0428a9f9"
,
15
:
"1a4794eae71e5676b82a"
,
16
:
"9ff89e3ae22fb695931f"
,
17
:
"0ee5ffd1827c0ab14257"
,
18
:
"fdb6aeb863dd5e05ebd6"
,
19
:
"ceaa40d8aa6227ccaa7b"
,
20
:
"41027a6d3a2c48820f68"
,
21
:
"711aa9a9ac3eae33b133"
,
22
:
"a1fc1510f2466b09fb99"
,
23
:
"8a47f55d3794b05cdde6"
,
24
:
"1053e8d27a11e83656c6"
,
25
:
"7a5e36a2c3be8a778bc3"
,
26
:
"e598d1edc20e37a70420"
,
27
:
"320dc28c5619664352ef"
,
28
:
"41e343a4d56ae502def9"
,
29
:
"1b665b6c377fa61779aa"
,
30
:
"44ad619653abe09fe4a2"
,
31
:
"f15018c679d31a23a484"
,
32
:
"3b191a8ca4748306ba30"
,
33
:
"d60beb8286a5273c8520"
,
34
:
"21e42e4239a3a4bece96"
,
35
:
"8c517c66214b3008ba1d"
,
36
:
"49f42097022ad1c511a9"
,
37
:
"06fc7189271107a22952"
,
38
:
"b38db70a1ac98d47033e"
,
39
:
"4d86ee1e3301f7724be9"
,
40
:
"58b97f413035bfcac73d"
,
41
:
"eee22ad0ab971e133a9f"
,
42
:
"d349ab27ce555f725e4f"
,
43
:
"0c35c92dcabc93995c47"
,
44
:
"a22bd4a80c711131d8cf"
,
45
:
"eba0691dbaf3680ac324"
,
46
:
"f3c31220fd4f30dba00a"
,
47
:
"52768d75b34a3ac8e091"
,
48
:
"35fc1ffcea3edca588fa"
,
49
:
"07ea1d498a5e7f89f13b"
,
50
:
"ba943a0915a5c08260e6"
,
51
:
"377ddd3618ad5bd9c3a8"
,
52
:
"1e2ae65363a4861dd355"
,
53
:
"cad2e8ac87e5684a9bc2"
,
54
:
"aa9df4f3a7eacae9e5db"
,
55
:
"5515666662cecc9025bc"
,
56
:
"2d7039de458c3c9cb678"
,
57
:
"9f9fb6bfcac478732dad"
,
58
:
"7ca51a6189813a34c8e8"
,
59
:
"94cef91aa20f1ed4e307"
,
60
:
"af4a6c684004f80a7ee0"
,
61
:
"61567903701f9732f012"
,
62
:
"ddef6dba0e1841fb538c"
,
63
:
"a3a44a6f506f871deab4"
,
64
:
"40f89a451c2e89015091"
,
65
:
"4e16618829c82ab55c8a"
,
66
:
"af70555c4e8832c02abf"
,
67
:
"8fdd20bb6633a594da91"
,
68
:
"5c88c8205192e47c5440"
,
69
:
"4df5e7e8568b818a23af"
,
70
:
"ca6ac1fe2e2c3ac7a6ca"
,
71
:
"c4b9ffa6fd9ed879342f"
,
72
:
"ecca0939974e3cb8b4ff"
,
73
:
"4c5f9e1a5892624f46e6"
,
74
:
"e4179f75b296bd599098"
,
75
:
"a29bc05b96ce086304e1"
,
76
:
"a4e7039d1702d1398ad6"
,
77
:
"9568405fcd7f68bbbed2"
,
78
:
"6c0dc47c4cd66828eea7"
,
79
:
"0018729eec70a9546602"
,
80
:
"189377999dd7e01b560e"
,
81
:
"32879f43d7e376621672"
,
82
:
"80e1bea9e7c52a0010e2"
,
83
:
"8e92060d7042fa029dc4"
,
84
:
"917d6e79a15c0ce10d4c"
}[
e
]
+
".js"
;
var
r
=
setTimeout
(
t
,
12
e4
);
function
t
(){
n
.
onerror
=
n
.
onload
=
null
,
clearTimeout
(
r
);
var
a
=
f
[
e
];
0
!==
a
&&
(
a
&&
a
[
1
](
new
Error
(
"Loading chunk "
+
e
+
" failed."
)),
f
[
e
]
=
void
0
)}
return
n
.
onerror
=
n
.
onload
=
t
,
b
.
appendChild
(
n
),
c
},
d
.
m
=
e
,
d
.
c
=
c
,
d
.
d
=
function
(
e
,
a
,
c
){
d
.
o
(
e
,
a
)
||
Object
.
defineProperty
(
e
,
a
,{
configurable
:
!
1
,
enumerable
:
!
0
,
get
:
c
})},
d
.
n
=
function
(
e
){
var
a
=
e
&&
e
.
__esModule
?
function
(){
return
e
.
default
}:
function
(){
return
e
};
return
d
.
d
(
a
,
"a"
,
a
),
a
},
d
.
o
=
function
(
e
,
a
){
return
Object
.
prototype
.
hasOwnProperty
.
call
(
e
,
a
)},
d
.
p
=
"./"
,
d
.
oe
=
function
(
e
){
throw
console
.
error
(
e
),
e
}}([]);
\ No newline at end of file
src/components/login-data/day-login-chart.vue
View file @
1a7c967e
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-02 16:48:49
* @LastEditors: 无尘
* @LastEditTime: 2020-07-08 1
3:51:26
* @LastEditTime: 2020-07-08 1
4:50:45
-->
<!--
<day-login-chart :charData="charData" id="day-login-chart"></day-login-chart>
...
...
@@ -16,7 +16,7 @@
<
script
>
import
*
as
G2
from
'@antv/g2'
;
import
dateFormat
from
'@/filters/index.js'
;
export
default
{
data
()
{
return
{
...
...
@@ -93,7 +93,12 @@ export default {
});
this
.
chart
.
axis
(
'avgVisitTime'
,
{
grid
:
null
,
title
:
null
title
:
null
,
label
:
{
formatter
:
val
=>
{
return
dateFormat
.
formatTime
(
val
);
// 格式化坐标轴显示文本
}
}
});
this
.
chart
.
axis
(
'loginClerkCnt'
,
{
title
:
null
...
...
src/components/login-data/time-login-chart.vue
View file @
1a7c967e
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-02 16:48:49
* @LastEditors: 无尘
* @LastEditTime: 2020-07-08 1
3:59:10
* @LastEditTime: 2020-07-08 1
4:51:06
-->
<!--
<time-login-chart :charData="charData" id="time-login-chart"></time-login-chart>
...
...
@@ -16,7 +16,7 @@
<
script
>
import
*
as
G2
from
'@antv/g2'
;
import
dateFormat
from
'@/filters/index.js'
;
export
default
{
data
()
{
return
{
...
...
@@ -93,7 +93,12 @@ export default {
});
this
.
chart
.
axis
(
'avgVisitTime'
,
{
grid
:
null
,
title
:
null
title
:
null
,
label
:
{
formatter
:
val
=>
{
return
dateFormat
.
formatTime
(
val
);
// 格式化坐标轴显示文本
}
}
});
this
.
chart
.
axis
(
'avgLoginTimes'
,
{
title
:
null
...
...
src/filters/index.js
View file @
1a7c967e
...
...
@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2019-09-11 18:18:32
* @LastEditors: 无尘
* @LastEditTime: 2020-0
6-12 15:34:51
* @LastEditTime: 2020-0
7-08 14:46:27
*/
/* 全局过滤器 */
...
...
@@ -164,6 +164,27 @@ const formatName = function(name) {
return
'**'
+
name
.
substr
(
name
.
length
-
1
,
name
.
length
);
};
/**
* 毫秒---> *时*分*秒
* @param timestamp
*/
const
formatTime
=
function
(
msTime
)
{
if
(
!
msTime
)
{
return
'00:00:00'
;
}
let
time
=
msTime
/
1000
;
let
day
=
Math
.
floor
(
time
/
60
/
60
/
24
);
let
hour
=
day
*
24
+
(
Math
.
floor
(
time
/
60
/
60
)
%
24
)
<
10
?
'0'
+
(
day
*
24
+
(
Math
.
floor
(
time
/
60
/
60
)
%
24
))
:
day
*
24
+
(
Math
.
floor
(
time
/
60
/
60
)
%
24
);
let
minute
=
Math
.
floor
(
time
/
60
)
%
60
<
10
?
'0'
+
(
Math
.
floor
(
time
/
60
)
%
60
)
:
Math
.
floor
(
time
/
60
)
%
60
;
let
second
=
Math
.
floor
(
time
)
%
60
<
10
?
'0'
+
(
Math
.
floor
(
time
)
%
60
)
:
Math
.
floor
(
time
)
%
60
;
return
`
${
hour
}
:
${
minute
}
:
${
second
}
`
;
};
export
default
{
dateFormat
,
formatTimeStamp
,
...
...
@@ -173,5 +194,6 @@ export default {
formatTimeYmdHms
,
formatPhoneNum
,
formatName
,
timeStampSpace
timeStampSpace
,
formatTime
};
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