Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
日
日程管理
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
日程管理
提交
5ba9a76a
提交
5ba9a76a
编写于
12月 24, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v20241223 值班配置》列表值不读取,计算属性处理过的
上级
4bfca872
变更
5
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
28 行增加
和
27 行删除
+28
-27
chunk-31287019.22237464.css
dist/css/chunk-31287019.22237464.css
+1
-0
index.html
dist/index.html
+1
-1
app.d5c3ffb2.js
dist/js/app.d5c3ffb2.js
+2
-2
chunk-31287019.440550c2.js
dist/js/chunk-31287019.440550c2.js
+1
-1
CEditModal.vue
src/components/common/CEditModal.vue
+23
-23
未找到文件。
dist/css/chunk-
7e1bdc20.6076a71d
.css
→
dist/css/chunk-
31287019.22237464
.css
浏览文件 @
5ba9a76a
[
data-v-5ff263ac
]
.ivu-modal-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1050
!important
}
[
data-v-5ff263ac
]
.ivu-modal-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1050
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
[
data-v-5ff263ac
]
.ivu-drawer-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1100
!important
}
[
data-v-5ff263ac
]
.ivu-drawer-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1100
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
.ivu-form-item
[
data-v-5ff263ac
]
{
padding-right
:
15px
}
.fileRow
[
data-v-5ff263ac
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.fileRow
.delIcon
[
data-v-5ff263ac
]
{
color
:
#ed4014
}
.fileRow
.delIcon
[
data-v-5ff263ac
]
:hover
{
color
:
#f16643
;
cursor
:
pointer
}
.class-drawer
[
data-v-5ff263ac
]
{
height
:
"calc(100% - 55px)"
;
overflow
:
"auto"
;
padding-bottom
:
"53px"
;
position
:
"static"
;
z-index
:
1100
!important
}
.class-drawer
.subTitle
[
data-v-5ff263ac
]
{
margin-top
:
20px
;
font-size
:
14px
;
color
:
#191f25
;
font-weight
:
700
}
.class-drawer
.drawer-footer
[
data-v-5ff263ac
]
{
width
:
100%
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
background
:
#fff
}
.class-drawer
[
data-v-5ff263ac
]
.ivu-drawer-header-inner
{
font-size
:
20px
;
font-weight
:
600
}
[
data-v-2fc404c8
]
.ivu-modal-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1050
!important
}
[
data-v-2fc404c8
]
.ivu-modal-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1050
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
[
data-v-2fc404c8
]
.ivu-drawer-mask
{
position
:
fixed
;
top
:
0
;
bottom
:
0
;
left
:
0
;
right
:
0
;
background-color
:
rgba
(
55
,
55
,
55
,
.6
);
height
:
100%
;
z-index
:
1100
!important
}
[
data-v-2fc404c8
]
.ivu-drawer-wrap
{
position
:
fixed
;
overflow
:
auto
;
top
:
0
;
right
:
0
;
bottom
:
0
;
left
:
0
;
z-index
:
1100
!important
;
-webkit-overflow-scrolling
:
touch
;
outline
:
0
}
.ivu-form-item
[
data-v-2fc404c8
]
{
padding-right
:
15px
}
.fileRow
[
data-v-2fc404c8
]
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
}
.fileRow
.delIcon
[
data-v-2fc404c8
]
{
color
:
#ed4014
}
.fileRow
.delIcon
[
data-v-2fc404c8
]
:hover
{
color
:
#f16643
;
cursor
:
pointer
}
.class-drawer
[
data-v-2fc404c8
]
{
height
:
"calc(100% - 55px)"
;
overflow
:
"auto"
;
padding-bottom
:
"53px"
;
position
:
"static"
;
z-index
:
1100
!important
}
.class-drawer
.subTitle
[
data-v-2fc404c8
]
{
margin-top
:
20px
;
font-size
:
14px
;
color
:
#191f25
;
font-weight
:
700
}
.class-drawer
.drawer-footer
[
data-v-2fc404c8
]
{
width
:
100%
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
border-top
:
1px
solid
#e8e8e8
;
padding
:
10px
16px
;
text-align
:
right
;
background
:
#fff
}
.class-drawer
[
data-v-2fc404c8
]
.ivu-drawer-header-inner
{
font-size
:
20px
;
font-weight
:
600
}
\ No newline at end of file
\ No newline at end of file
dist/index.html
浏览文件 @
5ba9a76a
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
><title>
值班管理
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.e335ea91.css
rel=
stylesheet
></head><body><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 值班管理。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.95a08806.js
></script><script
src=
js/app.fc7ced5b.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
http-equiv=
X-UA-Compatible
content=
"IE=edge"
><meta
name=
viewport
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
><title>
值班管理
</title><link
href=
css/chunk-vendors.cc1990b1.css
rel=
stylesheet
><link
href=
css/app.e335ea91.css
rel=
stylesheet
></head><body><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 值班管理。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.95a08806.js
></script><script
src=
js/app.d5c3ffb2.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
fc7ced5b
.js
→
dist/js/app.
d5c3ffb2
.js
浏览文件 @
5ba9a76a
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-
7e1bdc20.dbf33cd4
.js
→
dist/js/chunk-
31287019.440550c2
.js
浏览文件 @
5ba9a76a
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-7e1bdc20
"
],{
"
12cb
"
:
function
(
t
,
e
,
i
){
"
use strict
"
;
i
(
"
20d6
"
),
i
(
"
7f7f
"
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
_self
.
_c
;
return
e
(
"
div
"
,[
e
(
"
Drawer
"
,{
staticClass
:
"
class-drawer
"
,
attrs
:{
title
:
"
配置值班时间
"
,
transfer
:
""
,
width
:
"
800
"
},
model
:{
value
:
t
.
showDrawer
,
callback
:
function
(
e
){
t
.
showDrawer
=
e
},
expression
:
"
showDrawer
"
}},[
e
(
"
div
"
,{
staticStyle
:{
"
margin-top
"
:
"
20px
"
}},[
e
(
"
Card
"
,{
attrs
:{
"
dis-hover
"
:
""
}},[
e
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
padding
:
"
12px 0
"
,
"
background-color
"
:
"
#f6f6f6
"
}},[
e
(
"
Col
"
,{
attrs
:{
span
:
"
14
"
}},[
t
.
_v
(
"
值班时间范围限制
"
)])],
1
),
e
(
"
Row
"
,{
key
:
t
.
aaa
,
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
}},
t
.
_l
(
t
.
formDataTimeTable
.
time
,(
function
(
i
,
n
){
return
e
(
"
Col
"
,{
key
:
n
,
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
attrs
:{
span
:
"
24
"
}},[
e
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
240px
"
},
attrs
:{
clearable
:
!
1
,
format
:
"
HH:mm
"
,
placeholder
:
"
未设置
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-open-change
"
:
function
(
e
){
return
t
.
onOpenChangeTimeTable
(
e
,
i
,
n
)}},
model
:{
value
:
i
.
timeRange
,
callback
:
function
(
e
){
t
.
$set
(
i
,
"
timeRange
"
,
e
)},
expression
:
"
item.timeRange
"
}}),
e
(
"
i-switch
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
"
false-value
"
:
0
,
"
true-value
"
:
1
,
size
:
"
large
"
},
on
:{
"
on-change
"
:
function
(
e
){
return
t
.
onSwitchChangeTimeTable
(
e
,
i
,
n
)}},
scopedSlots
:
t
.
_u
([{
key
:
"
open
"
,
fn
:
function
(){
return
[
e
(
"
span
"
,[
t
.
_v
(
"
次日
"
)])]},
proxy
:
!
0
},{
key
:
"
close
"
,
fn
:
function
(){
return
[
e
(
"
span
"
,[
t
.
_v
(
"
当日
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
i
.
morrow
,
callback
:
function
(
e
){
t
.
$set
(
i
,
"
morrow
"
,
e
)},
expression
:
"
item.morrow
"
}}),
e
(
"
div
"
,{
staticStyle
:{
"
margin-left
"
:
"
auto
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否继续该操作?
"
},
on
:{
"
on-ok
"
:
function
(){
t
.
formDataTimeTable
.
time
.
splice
(
n
,
1
)},
"
on-cancel
"
:
function
(
t
){}}},[
e
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-close
"
,
shape
:
"
circle
"
}})],
1
)],
1
)],
1
)})),
1
),
e
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Button
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
icon
:
"
ios-add
"
,
type
:
"
dashed
"
},
on
:{
click
:
function
(
e
){
return
t
.
formDataTimeTable
.
time
.
push
({
begin
:
""
,
end
:
""
,
morrow
:
0
})}}},[
t
.
_v
(
"
添加时间
\n
"
)])],
1
)],
1
)],
1
),
e
(
"
div
"
,{
staticClass
:
"
drawer-footer
"
},[
e
(
"
Button
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
on
:{
click
:
function
(
e
){
t
.
showDrawer
=!
1
}}},[
t
.
_v
(
"
取消
"
)]),
e
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
save
}},[
t
.
_v
(
"
保存
"
)])],
1
)]),
e
(
"
Modal
"
,{
attrs
:{
"
before-close
"
:
t
.
beforeClose
,
"
mask-closable
"
:
t
.
maskClosable
,
title
:
t
.
modalTitle
,
transfer
:
!
1
,
width
:
t
.
width
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
t
.
isDetails
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"
关闭
"
)])],
1
):
e
(
"
div
"
,[
e
(
"
Button
"
,{
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"
取消
"
)]),
e
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
onSubmit
}},[
t
.
_v
(
"
提交
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
show
,
callback
:
function
(
e
){
t
.
show
=
e
},
expression
:
"
show
"
}},[[
t
.
loading
?
e
(
"
Spin
"
,{
attrs
:{
fix
:
""
,
size
:
"
large
"
}}):
t
.
_e
(),
e
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
"
label-width
"
:
t
.
formLabelWidth
,
model
:
t
.
formData
,
rules
:
t
.
formRule
,
"
label-colon
"
:
""
}},[
t
.
isDetails
?
t
.
_e
():
e
(
"
Row
"
,[
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
!=
t
.
type
&&
"
file
"
!=
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,
t
.
_b
({
key
:
i
.
id
},
"
Col
"
,
t
.
grid
,
!
1
),[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
id
}},[
"
input
"
==
i
.
type
?
e
(
"
Input
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请输入
"
+
i
.
name
,
clearable
:
""
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}}):
t
.
_e
(),
"
textarea
"
==
i
.
type
?
e
(
"
Input
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请输入
"
+
i
.
name
,
rows
:
i
.
rows
,
clearable
:
""
,
type
:
"
textarea
"
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}}):
"
select
"
==
i
.
type
?
e
(
"
Select
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请选择
"
+
i
.
name
,
clearable
:
""
,
filterable
:
""
},
on
:{
"
on-query-change
"
:
t
.
onQueryChange
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}},
t
.
_l
(
i
.
optList
,(
function
(
i
){
return
e
(
"
Option
"
,{
key
:
i
.
value
,
attrs
:{
value
:
i
.
value
}},[
t
.
_v
(
t
.
_s
(
i
.
label
)
+
"
\n
"
)])})),
1
):
"
multipleselect
"
==
i
.
type
?
e
(
"
Select
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请选择
"
+
i
.
name
,
clearable
:
""
,
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}},
t
.
_l
(
i
.
optList
,(
function
(
i
){
return
e
(
"
Option
"
,{
key
:
i
.
value
,
attrs
:{
value
:
i
.
value
}},[
t
.
_v
(
t
.
_s
(
i
.
label
)
+
"
\n
"
)])})),
1
):
"
switch
"
==
i
.
type
?
e
(
"
i-switch
"
,{
attrs
:{
"
false-value
"
:
0
,
"
true-value
"
:
1
},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
timerange
"
==
i
.
type
?
e
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
editable
:
!
0
,
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onClearTimerange
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
datetime
"
==
i
.
type
?
e
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
datetime
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onClearTimerange1
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
datetimerange
"
==
i
.
type
?
e
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
datetimerange
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onCleardatetimerange
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
area
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setMap
}},[
t
.
_v
(
t
.
_s
([
"
配置坐标
"
,
"
更改坐标
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
attandence_area
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
attandence_area
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-pin-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
address
)
+
"
(范围:
"
+
t
.
_s
(
i
.
offset
)
+
"
米)
\n
"
)],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
attandence_area
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
"
areaTime1
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setTime1
}},[
t
.
_v
(
t
.
_s
([
"
配置时间
"
,
"
更改时间
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
sign_daytime
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_daytime
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
sign_daytime
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
"
areaTime2
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setTime2
}},[
t
.
_v
(
t
.
_s
([
"
配置时间
"
,
"
更改时间
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
sign_night_time
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_night_time
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
sign_night_time
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
t
.
_e
()],
1
)],
1
)})),
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
file
"
==
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
,
n
){
return
e
(
"
Col
"
,{
key
:
i
.
id
,
attrs
:{
span
:
"
12
"
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},[
e
(
"
Upload
"
,{
attrs
:{
"
before-upload
"
:
function
(
e
){
return
t
.
uploadFile
(
e
,
i
.
id
,
n
)},
action
:
"
#
"
,
multiple
:
""
}},[
e
(
"
Button
"
,{
attrs
:{
loading
:
t
.
uploadBtLoading
[
n
],
icon
:
"
ios-cloud-upload-outline
"
}},[
t
.
_v
(
"
选择文件
\n
"
)])],
1
),
t
.
_l
(
t
.
formData
[
i
.
id
],(
function
(
n
){
return
e
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
e
(
"
a
"
,{
attrs
:{
href
:
n
.
path
,
target
:
"
_blank
"
}},[
t
.
_v
(
t
.
_s
(
n
.
file_name
))]),
e
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
e
){
return
t
.
fileDel
(
n
,
i
.
id
)}}})],
1
)}))],
2
)],
1
)}))],
2
),
!
t
.
isDetails
&&
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
length
?
e
(
"
Row
"
,
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})),(
function
(
i
,
n
){
return
e
(
"
FormItem
"
,{
key
:
i
.
id
,
attrs
:{
label
:
"
值班时间区间
"
}},[
e
(
"
Table
"
,{
key
:
t
.
aaa
,
attrs
:{
columns
:
i
.
columns
,
data
:
i
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
i
){
var
n
=
i
.
row
;
i
.
index
;
return
t
.
_l
(
n
.
time
,(
function
(
i
,
n
){
return
e
(
"
Tag
"
,{
key
:
n
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
t
.
_v
(
t
.
_s
(
i
.
Begin
+
"
~
"
+
i
.
End
+
[
"
当日
"
,
"
次日
"
][
i
.
Morrow
])
+
"
\n
"
)])}))}},{
key
:
"
action
"
,
fn
:
function
(
n
){
var
a
=
n
.
row
,
r
=
n
.
index
;
return
[
e
(
"
a
"
,{
on
:{
click
:
function
(
e
){
return
t
.
openClass
(
a
,
r
,
i
)}}},[
t
.
_v
(
"
配置
"
)])]}}],
null
,
!
0
)})],
1
)})),
1
):
t
.
_e
(),
t
.
isDetails
?
e
(
"
Row
"
,[
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
!=
t
.
type
&&
"
file
"
!=
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,
t
.
_b
({
key
:
i
.
id
},
"
Col
"
,
t
.
grid
,
!
1
),[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},[
"
input
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
textarea
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
datetime
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
timerange
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
].
join
(
"
-
"
)))]):
t
.
_e
(),
"
datetimerange
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
].
join
(
"
~
"
)))]):
t
.
_e
(),
"
areaTime1
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
sign_daytime
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_daytime
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
areaTime2
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
sign_night_time
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_night_time
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
area
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
attandence_area
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
attandence_area
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-pin-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
address
)
+
"
(范围:
"
+
t
.
_s
(
i
.
offset
)
+
"
米)
\n
"
)],
1
)])]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
select
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
optList
[
i
.
optList
.
findIndex
((
function
(
e
){
return
e
.
value
==
t
.
formData
[
i
.
id
]}))].
label
)
+
"
\n
"
)]):
t
.
_e
(),
"
switch
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
""
.
concat
(
1
==
t
.
formData
[
i
.
id
]?
"
是
"
:
"
否
"
)))]):
t
.
_e
()])],
1
)})),
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
file
"
==
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,{
key
:
i
.
id
,
attrs
:{
span
:
"
12
"
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},
t
.
_l
(
t
.
formData
[
i
.
id
],(
function
(
n
){
return
e
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
e
(
"
a
"
,{
attrs
:{
href
:
n
.
path
,
target
:
"
_blank
"
}},[
t
.
_v
(
t
.
_s
(
n
.
file_name
))]),
e
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
e
){
return
t
.
fileDel
(
n
,
i
.
id
)}}})],
1
)})),
0
)],
1
)}))],
2
):
t
.
_e
(),
t
.
isDetails
&&
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
length
?
e
(
"
Row
"
,
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})),(
function
(
i
,
n
){
return
e
(
"
FormItem
"
,{
key
:
i
.
id
,
attrs
:{
label
:
"
值班时间区间
"
}},[
e
(
"
Table
"
,{
key
:
i
.
id
,
attrs
:{
columns
:
i
.
columns
,
data
:
i
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
i
){
var
n
=
i
.
row
;
i
.
index
;
return
t
.
_l
(
n
.
time
,(
function
(
i
,
n
){
return
e
(
"
Tag
"
,{
key
:
n
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
t
.
_v
(
t
.
_s
(
i
.
Begin
+
"
~
"
+
i
.
End
+
[
"
当日
"
,
"
次日
"
][
i
.
Morrow
])
+
"
\n
"
)])}))}}],
null
,
!
0
)})],
1
)})),
1
):
t
.
_e
()],
1
)]],
2
)],
1
)},
a
=
[],
r
=
(
i
(
"
8e6e
"
),
i
(
"
456d
"
),
i
(
"
ac6a
"
),
i
(
"
bd86
"
)),
o
=
(
i
(
"
7514
"
),
i
(
"
f576
"
),
i
(
"
28a5
"
),
i
(
"
f410
"
)),
l
=
i
.
n
(
o
);
function
s
(
t
){
if
(
l
()(
t
))
return
t
}
var
c
=
i
(
"
f921
"
),
f
=
i
.
n
(
c
),
m
=
i
(
"
d8d6
"
),
u
=
i
.
n
(
m
);
function
d
(
t
,
e
){
var
i
=
null
==
t
?
null
:
"
undefined
"
!=
typeof
f
.
a
&&
t
[
u
.
a
]
||
t
[
"
@@iterator
"
];
if
(
null
!=
i
){
var
n
,
a
,
r
,
o
,
l
=
[],
s
=!
0
,
c
=!
1
;
try
{
if
(
r
=
(
i
=
i
.
call
(
t
)).
next
,
0
===
e
){
if
(
Object
(
i
)
!==
i
)
return
;
s
=!
1
}
else
for
(;
!
(
s
=
(
n
=
r
.
call
(
i
)).
done
)
&&
(
l
.
push
(
n
.
value
),
l
.
length
!==
e
);
s
=!
0
);}
catch
(
t
){
c
=!
0
,
a
=
t
}
finally
{
try
{
if
(
!
s
&&
null
!=
i
[
"
return
"
]
&&
(
o
=
i
[
"
return
"
](),
Object
(
o
)
!==
o
))
return
}
finally
{
if
(
c
)
throw
a
}}
return
l
}}
var
p
=
i
(
"
e630
"
);
function
h
(){
throw
new
TypeError
(
"
Invalid attempt to destructure non-iterable instance.
\n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
"
)}
function
g
(
t
,
e
){
return
s
(
t
)
||
d
(
t
,
e
)
||
Object
(
p
[
"
a
"
])(
t
,
e
)
||
h
()}
i
(
"
c5f6
"
);
var
y
=
i
(
"
2ef0
"
),
v
=
i
.
n
(
y
);
function
b
(
t
,
e
){
var
i
=
Object
.
keys
(
t
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
t
);
e
&&
(
n
=
n
.
filter
((
function
(
e
){
return
Object
.
getOwnPropertyDescriptor
(
t
,
e
).
enumerable
}))),
i
.
push
.
apply
(
i
,
n
)}
return
i
}
function
_
(
t
){
for
(
var
e
=
1
;
e
<
arguments
.
length
;
e
++
){
var
i
=
null
!=
arguments
[
e
]?
arguments
[
e
]:{};
e
%
2
?
b
(
Object
(
i
),
!
0
).
forEach
((
function
(
e
){
Object
(
r
[
"
a
"
])(
t
,
e
,
i
[
e
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
t
,
Object
.
getOwnPropertyDescriptors
(
i
)):
b
(
Object
(
i
)).
forEach
((
function
(
e
){
Object
.
defineProperty
(
t
,
e
,
Object
.
getOwnPropertyDescriptor
(
i
,
e
))}))}
return
t
}
var
w
=
{
props
:{
regionDot
:{
type
:
Number
,
default
:
0
},
loading
:{
type
:
Boolean
,
default
:
!
1
},
formItem
:{
type
:
Array
,
require
:
!
0
},
formRule
:{
type
:
Object
,
default
:
function
(){}},
formLabelWidth
:{
type
:
Number
,
default
:
80
},
value
:{
type
:
Boolean
,
require
:
!
0
},
width
:{
default
:
"
520
"
},
maskClosable
:{
type
:
Boolean
,
default
:
!
1
},
__PROP_NAMES_MAP
:{
maskClosable
:
"
mask-closable
"
}},
watch
:{
value
:
function
(
t
){
this
.
show
=
t
}},
data
:
function
(){
return
{
show
:
this
.
value
,
modalTitle
:
"
编辑
"
,
formData
:{},
grid
:{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
uploadBtLoading
:[],
isDetails
:
!
1
,
peopleKey
:
""
,
aaa
:
123123
,
showDrawer
:
!
1
,
formDataTimeTable
:{
time
:[{
begin
:
"
12:00
"
,
end
:
"
15:00
"
},{
begin
:
"
12:00
"
,
end
:
"
15:00
"
}]}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
checkTimes
:
function
(
t
,
e
){
function
i
(
t
){
var
e
=
t
.
split
(
"
:
"
).
map
(
Number
),
i
=
g
(
e
,
2
),
n
=
i
[
0
],
a
=
i
[
1
];
return
60
*
n
+
a
}
var
n
=
t
.
map
((
function
(
t
){
var
e
=
t
.
split
(
"
~
"
).
map
(
i
),
n
=
g
(
e
,
2
),
a
=
n
[
0
],
r
=
n
[
1
];
return
{
start
:
a
,
end
:
r
}})),
a
=
e
.
map
(
i
),
r
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
end
;
return
t
>
i
}))})),
o
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
start
;
return
t
<
i
}))})),
l
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
start
,
n
=
e
.
end
;
return
t
<
i
||
t
>
n
}))}));
return
r
||
o
||
l
},
onOpenChangeTimeTable
:
function
(
t
,
e
,
i
){
var
n
=
this
;
if
(
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
t
,
e
,
i
),
!
t
){
var
a
=
{
0
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
0
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
当日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)},
1
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
1
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
次日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)}};
a
[
e
.
morrow
]()}},
onSwitchChangeTimeTable
:
function
(
t
,
e
,
i
){
var
n
=
this
;
if
(
void
0
!==
e
.
timeRange
){
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
t
,
e
,
i
);
var
a
=
{
0
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
0
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
当日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)},
1
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
1
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
次日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)}};
a
[
e
.
morrow
]()}},
save
:
function
(){
var
t
=
this
,
e
=
v
.
a
.
cloneDeep
(
this
.
formItem
.
find
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
data
);
function
i
(
t
){
return
t
.
map
((
function
(
t
){
if
(
void
0
!==
t
.
timeRange
)
return
{
Begin
:
t
.
timeRange
[
0
],
End
:
t
.
timeRange
[
1
],
Morrow
:
t
.
morrow
}})).
filter
((
function
(
t
){
return
void
0
!==
t
}))}
var
n
=
{
"
周一
"
:
function
(){
return
e
[
0
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周二
"
:
function
(){
return
e
[
1
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周三
"
:
function
(){
return
e
[
2
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周四
"
:
function
(){
return
e
[
3
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周五
"
:
function
(){
return
e
[
4
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周六
"
:
function
(){
return
e
[
5
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周日
"
:
function
(){
return
e
[
6
].
time
=
i
(
t
.
formDataTimeTable
.
time
)}};
n
[
this
.
formDataTimeTable
.
day
](),
this
.
formItem
.
find
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
data
=
e
;
var
a
=
{
one
:
e
[
0
].
time
,
two
:
e
[
1
].
time
,
three
:
e
[
2
].
time
,
four
:
e
[
3
].
time
,
five
:
e
[
4
].
time
,
six
:
e
[
5
].
time
,
seven
:
e
[
6
].
time
};
this
.
formData
[
"
sign_daytime
"
]
=
JSON
.
stringify
(
a
),
this
.
showDrawer
=!
1
},
openClass
:
function
(
t
,
e
,
i
){
console
.
log
(
"
🚀🚀openClass,
"
,
t
,
e
),
this
.
formDataTimeTable
=
_
(
_
({},
t
),{},{
id
:
i
.
id
,
index
:
e
,
time
:
t
.
time
.
map
((
function
(
t
){
return
{
morrow
:
t
.
Morrow
,
timeRange
:[
t
.
Begin
,
t
.
End
]}}))}),
this
.
showDrawer
=!
0
},
setTime2
:
function
(){
this
.
$emit
(
"
setTime2
"
,
!
0
)},
setTime1
:
function
(){
this
.
$emit
(
"
setTime1
"
,
!
0
)},
setMap
:
function
(){
this
.
$emit
(
"
setMap
"
,
!
0
)},
onQueryChange
:
function
(
t
){
this
.
peopleKey
=
t
,
this
.
$emit
(
"
getPeopleList
"
,
t
)},
modalInit
:
function
(){
var
t
=
this
,
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"
add
"
,
i
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
""
;
if
(
this
.
isDetails
=!
1
,
this
.
uploadBtLoading
=
[],
"
add
"
==
e
)
this
.
$refs
.
form
.
resetFields
(),
this
.
modalTitle
=
n
||
"
新增
"
,
this
.
formData
=
i
?
Object
(
y
[
"
cloneDeep
"
])(
i
):{};
else
if
(
"
edit
"
==
e
){
this
.
modalTitle
=
"
编辑
"
,
this
.
$refs
.
form
.
resetFields
(),
this
.
formData
=
Object
(
y
[
"
cloneDeep
"
])(
i
);
var
a
=
this
.
formItem
.
findIndex
((
function
(
t
){
return
"
timerange
"
==
t
.
type
}));
if
(
-
1
!=
a
)
try
{
var
r
=
this
.
formItem
[
a
].
id
;
this
.
formData
[
r
]
=
this
.
formData
[
r
].
split
(
"
-
"
)}
catch
(
o
){
console
.
log
(
"
🚀🚀🚀,
"
,
o
)}}
this
.
formItem
.
forEach
((
function
(
e
){
"
file
"
==
e
.
type
&&
t
.
uploadBtLoading
.
push
(
!
1
)}))},
modalDetailsInit
:
function
(
t
,
e
){
this
.
isDetails
=!
0
,
this
.
modalTitle
=
""
.
concat
(
t
[
e
],
"
- 详情
"
),
this
.
formData
=
Object
(
y
[
"
cloneDeep
"
])(
t
)},
uploadFile
:
function
(
t
,
e
,
i
){
var
n
=
this
;
this
.
uploadBtLoading
[
i
]
=!
0
,
this
.
$forceUpdate
();
var
a
=
new
FormData
;
return
a
.
append
(
"
file
"
,
t
),
this
.
asc
.
postApiCommonFileUpload
(
a
).
then
((
function
(
t
){
1
==
t
.
code
?(
n
.
formData
[
e
].
push
(
t
.
response
),
n
.
$Message
.
success
(
t
.
msg
)):
n
.
$Message
.
error
(
t
.
msg_detail
)})).
finally
((
function
(){
n
.
uploadBtLoading
[
i
]
=!
1
,
n
.
$forceUpdate
()})),
!
1
},
fileDel
:
function
(
t
,
e
){
var
i
=
this
.
formData
[
e
].
findIndex
((
function
(
e
){
return
e
.
id
==
t
.
id
}));
this
.
formData
[
e
].
splice
(
i
,
1
)},
onClearTimerange
:
function
(
t
,
e
){
this
.
formData
[
e
]
=
[]},
onCleardatetimerange
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀event🚀,
"
,
t
),
this
.
formData
[
e
]
=
[]},
onClearTimerange1
:
function
(
t
,
e
){
this
.
formData
[
e
]
=
[]},
beforeClose
:
function
(){
this
.
$emit
(
"
onClose
"
)},
onCancel
:
function
(){
this
.
$emit
(
"
onCancel
"
),
this
.
$emit
(
"
onClose
"
)},
onSubmit
:
function
(){
var
t
=
this
;
this
.
$refs
.
form
.
validate
((
function
(
e
){
if
(
e
){
var
i
=
Object
(
y
[
"
cloneDeep
"
])(
t
.
formData
),
n
=
t
.
formItem
.
findIndex
((
function
(
t
){
return
"
timerange
"
==
t
.
type
}));
if
(
-
1
!=
n
){
var
a
=
t
.
formItem
[
n
].
id
;
i
[
a
]
=
i
[
a
].
join
(
"
-
"
)}
t
.
$emit
(
"
onSubmit
"
,
i
)}
else
t
.
$Message
.
warning
(
"
请检查输入项
"
)}))}}},
D
=
w
,
T
=
(
i
(
"
4231
"
),
i
(
"
2877
"
)),
x
=
Object
(
T
[
"
a
"
])(
D
,
n
,
a
,
!
1
,
null
,
"
5ff263ac
"
,
null
);
e
[
"
a
"
]
=
x
.
exports
},
"
25fd
"
:
function
(
t
,
e
,
i
){},
"
2e08
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
9def
"
),
a
=
i
(
"
9744
"
),
r
=
i
(
"
be13
"
);
t
.
exports
=
function
(
t
,
e
,
i
,
o
){
var
l
=
String
(
r
(
t
)),
s
=
l
.
length
,
c
=
void
0
===
i
?
"
"
:
String
(
i
),
f
=
n
(
e
);
if
(
f
<=
s
||
""
==
c
)
return
l
;
var
m
=
f
-
s
,
u
=
a
.
call
(
c
,
Math
.
ceil
(
m
/
c
.
length
));
return
u
.
length
>
m
&&
(
u
=
u
.
slice
(
0
,
m
)),
o
?
u
+
l
:
l
+
u
}},
4231
:
function
(
t
,
e
,
i
){
"
use strict
"
;
i
(
"
25fd
"
)},
"
5dbc
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
d3f4
"
),
a
=
i
(
"
8b97
"
).
set
;
t
.
exports
=
function
(
t
,
e
,
i
){
var
r
,
o
=
e
.
constructor
;
return
o
!==
i
&&
"
function
"
==
typeof
o
&&
(
r
=
o
.
prototype
)
!==
i
.
prototype
&&
n
(
r
)
&&
a
&&
a
(
t
,
r
),
t
}},
"
8b97
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
d3f4
"
),
a
=
i
(
"
cb7c
"
),
r
=
function
(
t
,
e
){
if
(
a
(
t
),
!
n
(
e
)
&&
null
!==
e
)
throw
TypeError
(
e
+
"
: can't set as prototype!
"
)};
t
.
exports
=
{
set
:
Object
.
setPrototypeOf
||
(
"
__proto__
"
in
{}?
function
(
t
,
e
,
n
){
try
{
n
=
i
(
"
9b43
"
)(
Function
.
call
,
i
(
"
11e9
"
).
f
(
Object
.
prototype
,
"
__proto__
"
).
set
,
2
),
n
(
t
,[]),
e
=!
(
t
instanceof
Array
)}
catch
(
a
){
e
=!
0
}
return
function
(
t
,
i
){
return
r
(
t
,
i
),
e
?
t
.
__proto__
=
i
:
n
(
t
,
i
),
t
}}({},
!
1
):
void
0
),
check
:
r
}},
9744
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
4588
"
),
a
=
i
(
"
be13
"
);
t
.
exports
=
function
(
t
){
var
e
=
String
(
a
(
this
)),
i
=
""
,
r
=
n
(
t
);
if
(
r
<
0
||
r
==
1
/
0
)
throw
RangeError
(
"
Count can't be negative
"
);
for
(;
r
>
0
;(
r
>>>=
1
)
&&
(
e
+=
e
))
1
&
r
&&
(
i
+=
e
);
return
i
}},
aa77
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
5ca1
"
),
a
=
i
(
"
be13
"
),
r
=
i
(
"
79e5
"
),
o
=
i
(
"
fdef
"
),
l
=
"
[
"
+
o
+
"
]
"
,
s
=
"
"
,
c
=
RegExp
(
"
^
"
+
l
+
l
+
"
*
"
),
f
=
RegExp
(
l
+
l
+
"
*$
"
),
m
=
function
(
t
,
e
,
i
){
var
a
=
{},
l
=
r
((
function
(){
return
!!
o
[
t
]()
||
s
[
t
]()
!=
s
})),
c
=
a
[
t
]
=
l
?
e
(
u
):
o
[
t
];
i
&&
(
a
[
i
]
=
c
),
n
(
n
.
P
+
n
.
F
*
l
,
"
String
"
,
a
)},
u
=
m
.
trim
=
function
(
t
,
e
){
return
t
=
String
(
a
(
t
)),
1
&
e
&&
(
t
=
t
.
replace
(
c
,
""
)),
2
&
e
&&
(
t
=
t
.
replace
(
f
,
""
)),
t
};
t
.
exports
=
m
},
c5f6
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
7726
"
),
a
=
i
(
"
69a8
"
),
r
=
i
(
"
2d95
"
),
o
=
i
(
"
5dbc
"
),
l
=
i
(
"
6a99
"
),
s
=
i
(
"
79e5
"
),
c
=
i
(
"
9093
"
).
f
,
f
=
i
(
"
11e9
"
).
f
,
m
=
i
(
"
86cc
"
).
f
,
u
=
i
(
"
aa77
"
).
trim
,
d
=
"
Number
"
,
p
=
n
[
d
],
h
=
p
,
g
=
p
.
prototype
,
y
=
r
(
i
(
"
2aeb
"
)(
g
))
==
d
,
v
=
"
trim
"
in
String
.
prototype
,
b
=
function
(
t
){
var
e
=
l
(
t
,
!
1
);
if
(
"
string
"
==
typeof
e
&&
e
.
length
>
2
){
e
=
v
?
e
.
trim
():
u
(
e
,
3
);
var
i
,
n
,
a
,
r
=
e
.
charCodeAt
(
0
);
if
(
43
===
r
||
45
===
r
){
if
(
i
=
e
.
charCodeAt
(
2
),
88
===
i
||
120
===
i
)
return
NaN
}
else
if
(
48
===
r
){
switch
(
e
.
charCodeAt
(
1
)){
case
66
:
case
98
:
n
=
2
,
a
=
49
;
break
;
case
79
:
case
111
:
n
=
8
,
a
=
55
;
break
;
default
:
return
+
e
}
for
(
var
o
,
s
=
e
.
slice
(
2
),
c
=
0
,
f
=
s
.
length
;
c
<
f
;
c
++
)
if
(
o
=
s
.
charCodeAt
(
c
),
o
<
48
||
o
>
a
)
return
NaN
;
return
parseInt
(
s
,
n
)}}
return
+
e
};
if
(
!
p
(
"
0o1
"
)
||!
p
(
"
0b1
"
)
||
p
(
"
+0x1
"
)){
p
=
function
(
t
){
var
e
=
arguments
.
length
<
1
?
0
:
t
,
i
=
this
;
return
i
instanceof
p
&&
(
y
?
s
((
function
(){
g
.
valueOf
.
call
(
i
)})):
r
(
i
)
!=
d
)?
o
(
new
h
(
b
(
e
)),
i
,
p
):
b
(
e
)};
for
(
var
_
,
w
=
i
(
"
9e1e
"
)?
c
(
h
):
"
MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger
"
.
split
(
"
,
"
),
D
=
0
;
w
.
length
>
D
;
D
++
)
a
(
h
,
_
=
w
[
D
])
&&!
a
(
p
,
_
)
&&
m
(
p
,
_
,
f
(
h
,
_
));
p
.
prototype
=
g
,
g
.
constructor
=
p
,
i
(
"
2aba
"
)(
n
,
d
,
p
)}},
f576
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
5ca1
"
),
a
=
i
(
"
2e08
"
),
r
=
i
(
"
a25f
"
),
o
=
/Version
\/
10
\.\d
+
(\.\d
+
)?(
Mobile
\/\w
+
)?
Safari
\/
/
.
test
(
r
);
n
(
n
.
P
+
n
.
F
*
o
,
"
String
"
,{
padStart
:
function
(
t
){
return
a
(
this
,
t
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
!
0
)}})},
fdef
:
function
(
t
,
e
){
t
.
exports
=
"
\t\n\
v
\
f
\r
\
u2028
\
u2029
\
ufeff
"
}}]);
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-31287019
"
],{
"
12cb
"
:
function
(
t
,
e
,
i
){
"
use strict
"
;
i
(
"
20d6
"
),
i
(
"
7f7f
"
);
var
n
=
function
(){
var
t
=
this
,
e
=
t
.
_self
.
_c
;
return
e
(
"
div
"
,[
e
(
"
Drawer
"
,{
staticClass
:
"
class-drawer
"
,
attrs
:{
title
:
"
配置值班时间
"
,
transfer
:
""
,
width
:
"
800
"
},
model
:{
value
:
t
.
showDrawer
,
callback
:
function
(
e
){
t
.
showDrawer
=
e
},
expression
:
"
showDrawer
"
}},[
e
(
"
div
"
,{
staticStyle
:{
"
margin-top
"
:
"
20px
"
}},[
e
(
"
Card
"
,{
attrs
:{
"
dis-hover
"
:
""
}},[
e
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
padding
:
"
12px 0
"
,
"
background-color
"
:
"
#f6f6f6
"
}},[
e
(
"
Col
"
,{
attrs
:{
span
:
"
14
"
}},[
t
.
_v
(
"
值班时间范围限制
"
)])],
1
),
e
(
"
Row
"
,{
key
:
t
.
aaa
,
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
}},
t
.
_l
(
t
.
formDataTimeTable
.
time
,(
function
(
i
,
n
){
return
e
(
"
Col
"
,{
key
:
n
,
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
attrs
:{
span
:
"
24
"
}},[
e
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
240px
"
},
attrs
:{
clearable
:
!
1
,
format
:
"
HH:mm
"
,
placeholder
:
"
未设置
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-open-change
"
:
function
(
e
){
return
t
.
onOpenChangeTimeTable
(
e
,
i
,
n
)}},
model
:{
value
:
i
.
timeRange
,
callback
:
function
(
e
){
t
.
$set
(
i
,
"
timeRange
"
,
e
)},
expression
:
"
item.timeRange
"
}}),
e
(
"
i-switch
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
"
false-value
"
:
0
,
"
true-value
"
:
1
,
size
:
"
large
"
},
on
:{
"
on-change
"
:
function
(
e
){
return
t
.
onSwitchChangeTimeTable
(
e
,
i
,
n
)}},
scopedSlots
:
t
.
_u
([{
key
:
"
open
"
,
fn
:
function
(){
return
[
e
(
"
span
"
,[
t
.
_v
(
"
次日
"
)])]},
proxy
:
!
0
},{
key
:
"
close
"
,
fn
:
function
(){
return
[
e
(
"
span
"
,[
t
.
_v
(
"
当日
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
i
.
morrow
,
callback
:
function
(
e
){
t
.
$set
(
i
,
"
morrow
"
,
e
)},
expression
:
"
item.morrow
"
}}),
e
(
"
div
"
,{
staticStyle
:{
"
margin-left
"
:
"
auto
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否继续该操作?
"
},
on
:{
"
on-ok
"
:
function
(){
t
.
formDataTimeTable
.
time
.
splice
(
n
,
1
)},
"
on-cancel
"
:
function
(
t
){}}},[
e
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-close
"
,
shape
:
"
circle
"
}})],
1
)],
1
)],
1
)})),
1
),
e
(
"
Row
"
,{
staticStyle
:{
"
margin-bottom
"
:
"
10px
"
,
display
:
"
flex
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Button
"
,{
staticStyle
:{
width
:
"
200px
"
},
attrs
:{
icon
:
"
ios-add
"
,
type
:
"
dashed
"
},
on
:{
click
:
function
(
e
){
return
t
.
formDataTimeTable
.
time
.
push
({
begin
:
""
,
end
:
""
,
morrow
:
0
})}}},[
t
.
_v
(
"
添加时间
\n
"
)])],
1
)],
1
)],
1
),
e
(
"
div
"
,{
staticClass
:
"
drawer-footer
"
},[
e
(
"
Button
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
on
:{
click
:
function
(
e
){
t
.
showDrawer
=!
1
}}},[
t
.
_v
(
"
取消
"
)]),
e
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
save
}},[
t
.
_v
(
"
保存
"
)])],
1
)]),
e
(
"
Modal
"
,{
attrs
:{
"
before-close
"
:
t
.
beforeClose
,
"
mask-closable
"
:
t
.
maskClosable
,
title
:
t
.
modalTitle
,
transfer
:
!
1
,
width
:
t
.
width
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
t
.
isDetails
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"
关闭
"
)])],
1
):
e
(
"
div
"
,[
e
(
"
Button
"
,{
on
:{
click
:
t
.
onCancel
}},[
t
.
_v
(
"
取消
"
)]),
e
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
onSubmit
}},[
t
.
_v
(
"
提交
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
show
,
callback
:
function
(
e
){
t
.
show
=
e
},
expression
:
"
show
"
}},[[
t
.
loading
?
e
(
"
Spin
"
,{
attrs
:{
fix
:
""
,
size
:
"
large
"
}}):
t
.
_e
(),
e
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
"
label-width
"
:
t
.
formLabelWidth
,
model
:
t
.
formData
,
rules
:
t
.
formRule
,
"
label-colon
"
:
""
}},[
t
.
isDetails
?
t
.
_e
():
e
(
"
Row
"
,[
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
!=
t
.
type
&&
"
file
"
!=
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,
t
.
_b
({
key
:
i
.
id
},
"
Col
"
,
t
.
grid
,
!
1
),[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
id
}},[
"
input
"
==
i
.
type
?
e
(
"
Input
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请输入
"
+
i
.
name
,
clearable
:
""
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}}):
t
.
_e
(),
"
textarea
"
==
i
.
type
?
e
(
"
Input
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请输入
"
+
i
.
name
,
rows
:
i
.
rows
,
clearable
:
""
,
type
:
"
textarea
"
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}}):
"
select
"
==
i
.
type
?
e
(
"
Select
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请选择
"
+
i
.
name
,
clearable
:
""
,
filterable
:
""
},
on
:{
"
on-query-change
"
:
t
.
onQueryChange
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}},
t
.
_l
(
i
.
optList
,(
function
(
i
){
return
e
(
"
Option
"
,{
key
:
i
.
value
,
attrs
:{
value
:
i
.
value
}},[
t
.
_v
(
t
.
_s
(
i
.
label
)
+
"
\n
"
)])})),
1
):
"
multipleselect
"
==
i
.
type
?
e
(
"
Select
"
,{
attrs
:{
disabled
:
i
.
disabled
,
placeholder
:
"
请选择
"
+
i
.
name
,
clearable
:
""
,
filterable
:
""
,
multiple
:
""
},
model
:{
value
:
t
.
formData
[
i
.
id
],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
.
id
,
e
)},
expression
:
"
formData[item.id]
"
}},
t
.
_l
(
i
.
optList
,(
function
(
i
){
return
e
(
"
Option
"
,{
key
:
i
.
value
,
attrs
:{
value
:
i
.
value
}},[
t
.
_v
(
t
.
_s
(
i
.
label
)
+
"
\n
"
)])})),
1
):
"
switch
"
==
i
.
type
?
e
(
"
i-switch
"
,{
attrs
:{
"
false-value
"
:
0
,
"
true-value
"
:
1
},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
timerange
"
==
i
.
type
?
e
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
editable
:
!
0
,
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
timerange
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onClearTimerange
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
datetime
"
==
i
.
type
?
e
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
datetime
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onClearTimerange1
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
datetimerange
"
==
i
.
type
?
e
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
placeholder
:
"
请选择
"
+
i
.
name
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placement
:
"
bottom-end
"
,
type
:
"
datetimerange
"
},
on
:{
"
on-clear
"
:
function
(
e
){
return
t
.
onCleardatetimerange
(
e
,
i
[
"
id
"
])}},
model
:{
value
:
t
.
formData
[
i
[
"
id
"
]],
callback
:
function
(
e
){
t
.
$set
(
t
.
formData
,
i
[
"
id
"
],
e
)},
expression
:
"
formData[item['id']]
"
}}):
"
area
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setMap
}},[
t
.
_v
(
t
.
_s
([
"
配置坐标
"
,
"
更改坐标
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
attandence_area
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
attandence_area
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-pin-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
address
)
+
"
(范围:
"
+
t
.
_s
(
i
.
offset
)
+
"
米)
\n
"
)],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
attandence_area
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
"
areaTime1
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setTime1
}},[
t
.
_v
(
t
.
_s
([
"
配置时间
"
,
"
更改时间
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
sign_daytime
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_daytime
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
sign_daytime
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
"
areaTime2
"
==
i
.
type
?
e
(
"
div
"
,[
e
(
"
Button
"
,{
attrs
:{
ghost
:
""
,
type
:
"
primary
"
},
on
:{
click
:
t
.
setTime2
}},[
t
.
_v
(
t
.
_s
([
"
配置时间
"
,
"
更改时间
"
][
t
.
regionDot
]))]),
t
.
_l
(
t
.
formData
[
"
sign_night_time
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_night_time
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
"
min-height
"
:
"
20px
"
,
display
:
"
flex
"
,
padding
:
"
5px
"
,
margin
:
"
5px 0
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]),
e
(
"
div
"
,{
staticStyle
:{
cursor
:
"
pointer
"
,
width
:
"
15%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
e
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
title
:
"
是否确认删除?
"
,
transfer
:
""
},
on
:{
"
on-ok
"
:
function
(){
return
t
.
formData
[
"
sign_night_time
"
].
splice
(
n
,
1
)}}},[
e
(
"
Icon
"
,{
attrs
:{
color
:
"
#A3A3A3
"
,
size
:
"
20
"
,
type
:
"
md-close
"
}})],
1
)],
1
)]),
e
(
"
divider
"
)],
1
):
t
.
_e
()}))],
2
):
t
.
_e
()],
1
)],
1
)})),
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
file
"
==
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
,
n
){
return
e
(
"
Col
"
,{
key
:
i
.
id
,
attrs
:{
span
:
"
12
"
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},[
e
(
"
Upload
"
,{
attrs
:{
"
before-upload
"
:
function
(
e
){
return
t
.
uploadFile
(
e
,
i
.
id
,
n
)},
action
:
"
#
"
,
multiple
:
""
}},[
e
(
"
Button
"
,{
attrs
:{
loading
:
t
.
uploadBtLoading
[
n
],
icon
:
"
ios-cloud-upload-outline
"
}},[
t
.
_v
(
"
选择文件
\n
"
)])],
1
),
t
.
_l
(
t
.
formData
[
i
.
id
],(
function
(
n
){
return
e
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
e
(
"
a
"
,{
attrs
:{
href
:
n
.
path
,
target
:
"
_blank
"
}},[
t
.
_v
(
t
.
_s
(
n
.
file_name
))]),
e
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
e
){
return
t
.
fileDel
(
n
,
i
.
id
)}}})],
1
)}))],
2
)],
1
)}))],
2
),
!
t
.
isDetails
&&
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
length
?
e
(
"
Row
"
,
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})),(
function
(
i
,
n
){
return
e
(
"
FormItem
"
,{
key
:
i
.
id
,
attrs
:{
label
:
"
值班时间区间
"
}},[
e
(
"
Table
"
,{
key
:
t
.
aaa
,
attrs
:{
columns
:
i
.
columns
,
data
:
i
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
i
){
var
n
=
i
.
row
;
i
.
index
;
return
t
.
_l
(
n
.
time
,(
function
(
i
,
n
){
return
e
(
"
Tag
"
,{
key
:
n
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
t
.
_v
(
t
.
_s
(
i
.
Begin
+
"
~
"
+
i
.
End
+
[
"
当日
"
,
"
次日
"
][
i
.
Morrow
])
+
"
\n
"
)])}))}},{
key
:
"
action
"
,
fn
:
function
(
n
){
var
a
=
n
.
row
,
r
=
n
.
index
;
return
[
e
(
"
a
"
,{
on
:{
click
:
function
(
e
){
return
t
.
openClass
(
a
,
r
,
i
)}}},[
t
.
_v
(
"
配置
"
)])]}}],
null
,
!
0
)})],
1
)})),
1
):
t
.
_e
(),
t
.
isDetails
?
e
(
"
Row
"
,[
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
!=
t
.
type
&&
"
file
"
!=
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,
t
.
_b
({
key
:
i
.
id
},
"
Col
"
,
t
.
grid
,
!
1
),[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},[
"
input
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
textarea
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
datetime
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
]))]):
t
.
_e
(),
"
timerange
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
].
join
(
"
-
"
)))]):
t
.
_e
(),
"
datetimerange
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
t
.
formData
[
i
.
id
].
join
(
"
~
"
)))]):
t
.
_e
(),
"
areaTime1
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
sign_daytime
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_daytime
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
areaTime2
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
sign_night_time
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
sign_night_time
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-alarm-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
begin
+
"
~
"
+
i
.
end
)
+
"
\n
"
),
1
==
i
.
morrow
?
e
(
"
Tag
"
,{
staticClass
:
"
ivu-ml-8
"
,
attrs
:{
color
:
"
primary
"
}},[
t
.
_v
(
"
次日
"
)]):
t
.
_e
()],
1
)]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
area
"
==
i
.
type
?
e
(
"
span
"
,
t
.
_l
(
t
.
formData
[
"
attandence_area
"
],(
function
(
i
,
n
){
return
t
.
formData
[
"
attandence_area
"
].
length
>
0
?
e
(
"
div
"
,{
key
:
n
},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
85%
"
,
height
:
"
100%
"
,
"
background-color
"
:
"
#ffffff
"
}},[
e
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
line-height
"
:
"
18px
"
}},[
e
(
"
Icon
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
ios-pin-outline
"
}}),
t
.
_v
(
t
.
_s
(
i
.
address
)
+
"
(范围:
"
+
t
.
_s
(
i
.
offset
)
+
"
米)
\n
"
)],
1
)])]):
t
.
_e
()})),
0
):
t
.
_e
(),
"
select
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
"
\n
"
+
t
.
_s
(
i
.
optList
[
i
.
optList
.
findIndex
((
function
(
e
){
return
e
.
value
==
t
.
formData
[
i
.
id
]}))].
label
)
+
"
\n
"
)]):
t
.
_e
(),
"
switch
"
==
i
.
type
?
e
(
"
span
"
,[
t
.
_v
(
t
.
_s
(
""
.
concat
(
1
==
t
.
formData
[
i
.
id
]?
"
是
"
:
"
否
"
)))]):
t
.
_e
()])],
1
)})),
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
file
"
==
t
.
type
&&
(
!
t
.
hasOwnProperty
(
"
show
"
)
||
t
.
show
)})),(
function
(
i
){
return
e
(
"
Col
"
,{
key
:
i
.
id
,
attrs
:{
span
:
"
12
"
}},[
e
(
"
FormItem
"
,{
attrs
:{
label
:
i
.
name
,
prop
:
i
.
name
}},
t
.
_l
(
t
.
formData
[
i
.
id
],(
function
(
n
){
return
e
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
e
(
"
a
"
,{
attrs
:{
href
:
n
.
path
,
target
:
"
_blank
"
}},[
t
.
_v
(
t
.
_s
(
n
.
file_name
))]),
e
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
e
){
return
t
.
fileDel
(
n
,
i
.
id
)}}})],
1
)})),
0
)],
1
)}))],
2
):
t
.
_e
(),
t
.
isDetails
&&
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
length
?
e
(
"
Row
"
,
t
.
_l
(
t
.
formItem
.
filter
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})),(
function
(
i
,
n
){
return
e
(
"
FormItem
"
,{
key
:
i
.
id
,
attrs
:{
label
:
"
值班时间区间
"
}},[
e
(
"
Table
"
,{
key
:
i
.
id
,
attrs
:{
columns
:
i
.
columns
,
data
:
i
.
data
,
border
:
""
,
size
:
"
small
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
time
"
,
fn
:
function
(
i
){
var
n
=
i
.
row
;
i
.
index
;
return
t
.
_l
(
n
.
time
,(
function
(
i
,
n
){
return
e
(
"
Tag
"
,{
key
:
n
,
staticStyle
:{
"
margin-right
"
:
"
5px
"
},
attrs
:{
color
:
"
blue
"
}},[
t
.
_v
(
t
.
_s
(
i
.
Begin
+
"
~
"
+
i
.
End
+
[
"
当日
"
,
"
次日
"
][
i
.
Morrow
])
+
"
\n
"
)])}))}}],
null
,
!
0
)})],
1
)})),
1
):
t
.
_e
()],
1
)]],
2
)],
1
)},
a
=
[],
r
=
(
i
(
"
8e6e
"
),
i
(
"
456d
"
),
i
(
"
ac6a
"
),
i
(
"
bd86
"
)),
o
=
(
i
(
"
7514
"
),
i
(
"
f576
"
),
i
(
"
28a5
"
),
i
(
"
f410
"
)),
l
=
i
.
n
(
o
);
function
s
(
t
){
if
(
l
()(
t
))
return
t
}
var
c
=
i
(
"
f921
"
),
f
=
i
.
n
(
c
),
m
=
i
(
"
d8d6
"
),
u
=
i
.
n
(
m
);
function
d
(
t
,
e
){
var
i
=
null
==
t
?
null
:
"
undefined
"
!=
typeof
f
.
a
&&
t
[
u
.
a
]
||
t
[
"
@@iterator
"
];
if
(
null
!=
i
){
var
n
,
a
,
r
,
o
,
l
=
[],
s
=!
0
,
c
=!
1
;
try
{
if
(
r
=
(
i
=
i
.
call
(
t
)).
next
,
0
===
e
){
if
(
Object
(
i
)
!==
i
)
return
;
s
=!
1
}
else
for
(;
!
(
s
=
(
n
=
r
.
call
(
i
)).
done
)
&&
(
l
.
push
(
n
.
value
),
l
.
length
!==
e
);
s
=!
0
);}
catch
(
t
){
c
=!
0
,
a
=
t
}
finally
{
try
{
if
(
!
s
&&
null
!=
i
[
"
return
"
]
&&
(
o
=
i
[
"
return
"
](),
Object
(
o
)
!==
o
))
return
}
finally
{
if
(
c
)
throw
a
}}
return
l
}}
var
p
=
i
(
"
e630
"
);
function
h
(){
throw
new
TypeError
(
"
Invalid attempt to destructure non-iterable instance.
\n
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.
"
)}
function
g
(
t
,
e
){
return
s
(
t
)
||
d
(
t
,
e
)
||
Object
(
p
[
"
a
"
])(
t
,
e
)
||
h
()}
i
(
"
c5f6
"
);
var
y
=
i
(
"
2ef0
"
),
v
=
i
.
n
(
y
);
function
b
(
t
,
e
){
var
i
=
Object
.
keys
(
t
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
t
);
e
&&
(
n
=
n
.
filter
((
function
(
e
){
return
Object
.
getOwnPropertyDescriptor
(
t
,
e
).
enumerable
}))),
i
.
push
.
apply
(
i
,
n
)}
return
i
}
function
_
(
t
){
for
(
var
e
=
1
;
e
<
arguments
.
length
;
e
++
){
var
i
=
null
!=
arguments
[
e
]?
arguments
[
e
]:{};
e
%
2
?
b
(
Object
(
i
),
!
0
).
forEach
((
function
(
e
){
Object
(
r
[
"
a
"
])(
t
,
e
,
i
[
e
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
t
,
Object
.
getOwnPropertyDescriptors
(
i
)):
b
(
Object
(
i
)).
forEach
((
function
(
e
){
Object
.
defineProperty
(
t
,
e
,
Object
.
getOwnPropertyDescriptor
(
i
,
e
))}))}
return
t
}
var
w
=
{
props
:{
regionDot
:{
type
:
Number
,
default
:
0
},
loading
:{
type
:
Boolean
,
default
:
!
1
},
formItem
:{
type
:
Array
,
require
:
!
0
},
formRule
:{
type
:
Object
,
default
:
function
(){}},
formLabelWidth
:{
type
:
Number
,
default
:
80
},
value
:{
type
:
Boolean
,
require
:
!
0
},
width
:{
default
:
"
520
"
},
maskClosable
:{
type
:
Boolean
,
default
:
!
1
},
__PROP_NAMES_MAP
:{
maskClosable
:
"
mask-closable
"
}},
watch
:{
value
:
function
(
t
){
this
.
show
=
t
}},
data
:
function
(){
return
{
show
:
this
.
value
,
modalTitle
:
"
编辑
"
,
formData
:{},
grid
:{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
uploadBtLoading
:[],
isDetails
:
!
1
,
peopleKey
:
""
,
aaa
:
123123
,
showDrawer
:
!
1
,
formDataTimeTable
:{
time
:[{
begin
:
"
12:00
"
,
end
:
"
15:00
"
},{
begin
:
"
12:00
"
,
end
:
"
15:00
"
}]}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
checkTimes
:
function
(
t
,
e
){
function
i
(
t
){
var
e
=
t
.
split
(
"
:
"
).
map
(
Number
),
i
=
g
(
e
,
2
),
n
=
i
[
0
],
a
=
i
[
1
];
return
60
*
n
+
a
}
var
n
=
t
.
map
((
function
(
t
){
var
e
=
t
.
split
(
"
~
"
).
map
(
i
),
n
=
g
(
e
,
2
),
a
=
n
[
0
],
r
=
n
[
1
];
return
{
start
:
a
,
end
:
r
}})),
a
=
e
.
map
(
i
),
r
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
end
;
return
t
>
i
}))})),
o
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
start
;
return
t
<
i
}))})),
l
=
a
.
every
((
function
(
t
){
return
n
.
every
((
function
(
e
){
var
i
=
e
.
start
,
n
=
e
.
end
;
return
t
<
i
||
t
>
n
}))}));
return
r
||
o
||
l
},
onOpenChangeTimeTable
:
function
(
t
,
e
,
i
){
var
n
=
this
;
if
(
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
t
,
e
,
i
),
!
t
){
var
a
=
{
0
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
0
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
当日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)},
1
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
1
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
次日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)}};
a
[
e
.
morrow
]()}},
onSwitchChangeTimeTable
:
function
(
t
,
e
,
i
){
var
n
=
this
;
if
(
void
0
!==
e
.
timeRange
){
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
t
,
e
,
i
);
var
a
=
{
0
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
0
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
当日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)},
1
:
function
(){
var
t
=
n
.
formDataTimeTable
.
time
.
map
((
function
(
t
){
if
(
1
===
t
.
morrow
)
return
t
.
timeRange
.
join
(
"
~
"
)})).
filter
((
function
(
t
){
return
void
0
!==
t
}));
-
1
!==
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
))
&&
t
.
splice
(
t
.
indexOf
(
e
.
timeRange
.
join
(
"
~
"
)),
1
),
n
.
checkTimes
(
t
,
e
.
timeRange
)
||
(
n
.
formDataTimeTable
.
time
.
splice
(
i
,
1
),
n
.
$Message
.
error
(
"
次日配置时间重叠,请重新配置时间
"
),
n
.
aaa
++
)}};
a
[
e
.
morrow
]()}},
save
:
function
(){
var
t
=
this
,
e
=
v
.
a
.
cloneDeep
(
this
.
formItem
.
find
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
data
);
function
i
(
t
){
return
t
.
map
((
function
(
t
){
if
(
void
0
!==
t
.
timeRange
)
return
{
Begin
:
t
.
timeRange
[
0
],
End
:
t
.
timeRange
[
1
],
Morrow
:
t
.
morrow
}})).
filter
((
function
(
t
){
return
void
0
!==
t
}))}
var
n
=
{
"
周一
"
:
function
(){
return
e
[
0
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周二
"
:
function
(){
return
e
[
1
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周三
"
:
function
(){
return
e
[
2
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周四
"
:
function
(){
return
e
[
3
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周五
"
:
function
(){
return
e
[
4
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周六
"
:
function
(){
return
e
[
5
].
time
=
i
(
t
.
formDataTimeTable
.
time
)},
"
周日
"
:
function
(){
return
e
[
6
].
time
=
i
(
t
.
formDataTimeTable
.
time
)}};
n
[
this
.
formDataTimeTable
.
day
](),
this
.
formItem
.
find
((
function
(
t
){
return
"
timeTable
"
===
t
.
type
})).
data
=
e
;
var
a
=
{
one
:
e
[
0
].
time
,
two
:
e
[
1
].
time
,
three
:
e
[
2
].
time
,
four
:
e
[
3
].
time
,
five
:
e
[
4
].
time
,
six
:
e
[
5
].
time
,
seven
:
e
[
6
].
time
};
this
.
formData
[
"
sign_daytime
"
]
=
JSON
.
stringify
(
a
),
this
.
showDrawer
=!
1
},
openClass
:
function
(
t
,
e
,
i
){
console
.
log
(
"
🚀🚀openClass,
"
,
t
,
e
),
this
.
formDataTimeTable
=
_
(
_
({},
t
),{},{
id
:
i
.
id
,
index
:
e
,
time
:
t
.
time
.
map
((
function
(
t
){
return
{
morrow
:
t
.
Morrow
,
timeRange
:[
t
.
Begin
,
t
.
End
]}}))}),
this
.
showDrawer
=!
0
},
setTime2
:
function
(){
this
.
$emit
(
"
setTime2
"
,
!
0
)},
setTime1
:
function
(){
this
.
$emit
(
"
setTime1
"
,
!
0
)},
setMap
:
function
(){
this
.
$emit
(
"
setMap
"
,
!
0
)},
onQueryChange
:
function
(
t
){
this
.
peopleKey
=
t
,
this
.
$emit
(
"
getPeopleList
"
,
t
)},
modalInit
:
function
(){
var
t
=
this
,
e
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"
add
"
,
i
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
""
;
if
(
this
.
isDetails
=!
1
,
this
.
uploadBtLoading
=
[],
"
add
"
==
e
)
this
.
$refs
.
form
.
resetFields
(),
this
.
modalTitle
=
n
||
"
新增
"
,
this
.
formData
=
i
?
Object
(
y
[
"
cloneDeep
"
])(
i
):{};
else
if
(
"
edit
"
==
e
){
this
.
modalTitle
=
"
编辑
"
,
this
.
$refs
.
form
.
resetFields
(),
this
.
formData
=
Object
(
y
[
"
cloneDeep
"
])(
i
);
var
a
=
this
.
formItem
.
findIndex
((
function
(
t
){
return
"
timerange
"
==
t
.
type
}));
if
(
-
1
!=
a
)
try
{
var
r
=
this
.
formItem
[
a
].
id
;
this
.
formData
[
r
]
=
this
.
formData
[
r
].
split
(
"
-
"
)}
catch
(
o
){
console
.
log
(
"
🚀🚀🚀,
"
,
o
)}}
this
.
formItem
.
forEach
((
function
(
e
){
"
file
"
==
e
.
type
&&
t
.
uploadBtLoading
.
push
(
!
1
)}))},
modalDetailsInit
:
function
(
t
,
e
){
this
.
isDetails
=!
0
,
this
.
modalTitle
=
""
.
concat
(
t
[
e
],
"
- 详情
"
),
this
.
formData
=
Object
(
y
[
"
cloneDeep
"
])(
t
)},
uploadFile
:
function
(
t
,
e
,
i
){
var
n
=
this
;
this
.
uploadBtLoading
[
i
]
=!
0
,
this
.
$forceUpdate
();
var
a
=
new
FormData
;
return
a
.
append
(
"
file
"
,
t
),
this
.
asc
.
postApiCommonFileUpload
(
a
).
then
((
function
(
t
){
1
==
t
.
code
?(
n
.
formData
[
e
].
push
(
t
.
response
),
n
.
$Message
.
success
(
t
.
msg
)):
n
.
$Message
.
error
(
t
.
msg_detail
)})).
finally
((
function
(){
n
.
uploadBtLoading
[
i
]
=!
1
,
n
.
$forceUpdate
()})),
!
1
},
fileDel
:
function
(
t
,
e
){
var
i
=
this
.
formData
[
e
].
findIndex
((
function
(
e
){
return
e
.
id
==
t
.
id
}));
this
.
formData
[
e
].
splice
(
i
,
1
)},
onClearTimerange
:
function
(
t
,
e
){
this
.
formData
[
e
]
=
[]},
onCleardatetimerange
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀event🚀,
"
,
t
),
this
.
formData
[
e
]
=
[]},
onClearTimerange1
:
function
(
t
,
e
){
this
.
formData
[
e
]
=
[]},
beforeClose
:
function
(){
this
.
$emit
(
"
onClose
"
)},
onCancel
:
function
(){
this
.
$emit
(
"
onCancel
"
),
this
.
$emit
(
"
onClose
"
)},
onSubmit
:
function
(){
var
t
=
this
;
this
.
$refs
.
form
.
validate
((
function
(
e
){
if
(
e
){
var
i
=
Object
(
y
[
"
cloneDeep
"
])(
t
.
formData
),
n
=
t
.
formItem
.
findIndex
((
function
(
t
){
return
"
timerange
"
==
t
.
type
}));
if
(
-
1
!=
n
){
var
a
=
t
.
formItem
[
n
].
id
;
i
[
a
]
=
i
[
a
].
join
(
"
-
"
)}
t
.
$emit
(
"
onSubmit
"
,
i
)}
else
t
.
$Message
.
warning
(
"
请检查输入项
"
)}))}}},
D
=
w
,
T
=
(
i
(
"
4e91
"
),
i
(
"
2877
"
)),
x
=
Object
(
T
[
"
a
"
])(
D
,
n
,
a
,
!
1
,
null
,
"
2fc404c8
"
,
null
);
e
[
"
a
"
]
=
x
.
exports
},
"
2e08
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
9def
"
),
a
=
i
(
"
9744
"
),
r
=
i
(
"
be13
"
);
t
.
exports
=
function
(
t
,
e
,
i
,
o
){
var
l
=
String
(
r
(
t
)),
s
=
l
.
length
,
c
=
void
0
===
i
?
"
"
:
String
(
i
),
f
=
n
(
e
);
if
(
f
<=
s
||
""
==
c
)
return
l
;
var
m
=
f
-
s
,
u
=
a
.
call
(
c
,
Math
.
ceil
(
m
/
c
.
length
));
return
u
.
length
>
m
&&
(
u
=
u
.
slice
(
0
,
m
)),
o
?
u
+
l
:
l
+
u
}},
"
4e91
"
:
function
(
t
,
e
,
i
){
"
use strict
"
;
i
(
"
8a00
"
)},
"
5dbc
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
d3f4
"
),
a
=
i
(
"
8b97
"
).
set
;
t
.
exports
=
function
(
t
,
e
,
i
){
var
r
,
o
=
e
.
constructor
;
return
o
!==
i
&&
"
function
"
==
typeof
o
&&
(
r
=
o
.
prototype
)
!==
i
.
prototype
&&
n
(
r
)
&&
a
&&
a
(
t
,
r
),
t
}},
"
8a00
"
:
function
(
t
,
e
,
i
){},
"
8b97
"
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
d3f4
"
),
a
=
i
(
"
cb7c
"
),
r
=
function
(
t
,
e
){
if
(
a
(
t
),
!
n
(
e
)
&&
null
!==
e
)
throw
TypeError
(
e
+
"
: can't set as prototype!
"
)};
t
.
exports
=
{
set
:
Object
.
setPrototypeOf
||
(
"
__proto__
"
in
{}?
function
(
t
,
e
,
n
){
try
{
n
=
i
(
"
9b43
"
)(
Function
.
call
,
i
(
"
11e9
"
).
f
(
Object
.
prototype
,
"
__proto__
"
).
set
,
2
),
n
(
t
,[]),
e
=!
(
t
instanceof
Array
)}
catch
(
a
){
e
=!
0
}
return
function
(
t
,
i
){
return
r
(
t
,
i
),
e
?
t
.
__proto__
=
i
:
n
(
t
,
i
),
t
}}({},
!
1
):
void
0
),
check
:
r
}},
9744
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
4588
"
),
a
=
i
(
"
be13
"
);
t
.
exports
=
function
(
t
){
var
e
=
String
(
a
(
this
)),
i
=
""
,
r
=
n
(
t
);
if
(
r
<
0
||
r
==
1
/
0
)
throw
RangeError
(
"
Count can't be negative
"
);
for
(;
r
>
0
;(
r
>>>=
1
)
&&
(
e
+=
e
))
1
&
r
&&
(
i
+=
e
);
return
i
}},
aa77
:
function
(
t
,
e
,
i
){
var
n
=
i
(
"
5ca1
"
),
a
=
i
(
"
be13
"
),
r
=
i
(
"
79e5
"
),
o
=
i
(
"
fdef
"
),
l
=
"
[
"
+
o
+
"
]
"
,
s
=
"
"
,
c
=
RegExp
(
"
^
"
+
l
+
l
+
"
*
"
),
f
=
RegExp
(
l
+
l
+
"
*$
"
),
m
=
function
(
t
,
e
,
i
){
var
a
=
{},
l
=
r
((
function
(){
return
!!
o
[
t
]()
||
s
[
t
]()
!=
s
})),
c
=
a
[
t
]
=
l
?
e
(
u
):
o
[
t
];
i
&&
(
a
[
i
]
=
c
),
n
(
n
.
P
+
n
.
F
*
l
,
"
String
"
,
a
)},
u
=
m
.
trim
=
function
(
t
,
e
){
return
t
=
String
(
a
(
t
)),
1
&
e
&&
(
t
=
t
.
replace
(
c
,
""
)),
2
&
e
&&
(
t
=
t
.
replace
(
f
,
""
)),
t
};
t
.
exports
=
m
},
c5f6
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
7726
"
),
a
=
i
(
"
69a8
"
),
r
=
i
(
"
2d95
"
),
o
=
i
(
"
5dbc
"
),
l
=
i
(
"
6a99
"
),
s
=
i
(
"
79e5
"
),
c
=
i
(
"
9093
"
).
f
,
f
=
i
(
"
11e9
"
).
f
,
m
=
i
(
"
86cc
"
).
f
,
u
=
i
(
"
aa77
"
).
trim
,
d
=
"
Number
"
,
p
=
n
[
d
],
h
=
p
,
g
=
p
.
prototype
,
y
=
r
(
i
(
"
2aeb
"
)(
g
))
==
d
,
v
=
"
trim
"
in
String
.
prototype
,
b
=
function
(
t
){
var
e
=
l
(
t
,
!
1
);
if
(
"
string
"
==
typeof
e
&&
e
.
length
>
2
){
e
=
v
?
e
.
trim
():
u
(
e
,
3
);
var
i
,
n
,
a
,
r
=
e
.
charCodeAt
(
0
);
if
(
43
===
r
||
45
===
r
){
if
(
i
=
e
.
charCodeAt
(
2
),
88
===
i
||
120
===
i
)
return
NaN
}
else
if
(
48
===
r
){
switch
(
e
.
charCodeAt
(
1
)){
case
66
:
case
98
:
n
=
2
,
a
=
49
;
break
;
case
79
:
case
111
:
n
=
8
,
a
=
55
;
break
;
default
:
return
+
e
}
for
(
var
o
,
s
=
e
.
slice
(
2
),
c
=
0
,
f
=
s
.
length
;
c
<
f
;
c
++
)
if
(
o
=
s
.
charCodeAt
(
c
),
o
<
48
||
o
>
a
)
return
NaN
;
return
parseInt
(
s
,
n
)}}
return
+
e
};
if
(
!
p
(
"
0o1
"
)
||!
p
(
"
0b1
"
)
||
p
(
"
+0x1
"
)){
p
=
function
(
t
){
var
e
=
arguments
.
length
<
1
?
0
:
t
,
i
=
this
;
return
i
instanceof
p
&&
(
y
?
s
((
function
(){
g
.
valueOf
.
call
(
i
)})):
r
(
i
)
!=
d
)?
o
(
new
h
(
b
(
e
)),
i
,
p
):
b
(
e
)};
for
(
var
_
,
w
=
i
(
"
9e1e
"
)?
c
(
h
):
"
MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger
"
.
split
(
"
,
"
),
D
=
0
;
w
.
length
>
D
;
D
++
)
a
(
h
,
_
=
w
[
D
])
&&!
a
(
p
,
_
)
&&
m
(
p
,
_
,
f
(
h
,
_
));
p
.
prototype
=
g
,
g
.
constructor
=
p
,
i
(
"
2aba
"
)(
n
,
d
,
p
)}},
f576
:
function
(
t
,
e
,
i
){
"
use strict
"
;
var
n
=
i
(
"
5ca1
"
),
a
=
i
(
"
2e08
"
),
r
=
i
(
"
a25f
"
),
o
=
/Version
\/
10
\.\d
+
(\.\d
+
)?(
Mobile
\/\w
+
)?
Safari
\/
/
.
test
(
r
);
n
(
n
.
P
+
n
.
F
*
o
,
"
String
"
,{
padStart
:
function
(
t
){
return
a
(
this
,
t
,
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
!
0
)}})},
fdef
:
function
(
t
,
e
){
t
.
exports
=
"
\t\n\
v
\
f
\r
\
u2028
\
u2029
\
ufeff
"
}}]);
\ No newline at end of file
\ No newline at end of file
src/components/common/CEditModal.vue
浏览文件 @
5ba9a76a
...
@@ -24,7 +24,8 @@
...
@@ -24,7 +24,8 @@
type=
"timerange"
type=
"timerange"
@
on-open-change=
"onOpenChangeTimeTable($event,item,index)"
/>
@
on-open-change=
"onOpenChangeTimeTable($event,item,index)"
/>
<!-- 可预约座位-->
<!-- 可预约座位-->
<i-switch
@
on-change=
"onSwitchChangeTimeTable($event,item,index)"
v-model=
"item.morrow"
:false-value=
"0"
:true-value=
"1"
class=
"ivu-ml-8"
size=
"large"
>
<i-switch
@
on-change=
"onSwitchChangeTimeTable($event,item,index)"
v-model=
"item.morrow"
:false-value=
"0"
:true-value=
"1"
class=
"ivu-ml-8"
size=
"large"
>
<template
#open
>
<template
#open
>
<span>
次日
</span>
<span>
次日
</span>
</
template
>
</
template
>
...
@@ -515,32 +516,32 @@ export default {
...
@@ -515,32 +516,32 @@ export default {
if
(
!
event
)
{
if
(
!
event
)
{
// 关闭浮层时触发
// 关闭浮层时触发
let
strategy
=
{
let
strategy
=
{
//当日|次日,执行不同对比策略
//当日|次日,执行不同对比策略
0
:
()
=>
{
0
:
()
=>
{
let
deleteEventArrayCurrentDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
let
deleteEventArrayCurrentDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
//当日
//当日
if
(
cur
.
morrow
===
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
if
(
cur
.
morrow
===
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
cur
!==
undefined
)
}).
filter
(
cur
=>
cur
!==
undefined
)
if
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayCurrentDay
.
splice
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayCurrentDay
.
splice
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
!
(
this
.
checkTimes
(
deleteEventArrayCurrentDay
,
item
.
timeRange
)))
{
if
(
!
(
this
.
checkTimes
(
deleteEventArrayCurrentDay
,
item
.
timeRange
)))
{
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
$Message
.
error
(
'
当日配置时间重叠,请重新配置时间
'
);
this
.
$Message
.
error
(
'
当日配置时间重叠,请重新配置时间
'
);
this
.
aaa
++
this
.
aaa
++
}
}
},
},
1
:
()
=>
{
1
:
()
=>
{
let
deleteEventArrayMorrowDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
let
deleteEventArrayMorrowDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
//次日
//次日
if
(
cur
.
morrow
===
1
)
return
cur
.
timeRange
.
join
(
'
~
'
);
if
(
cur
.
morrow
===
1
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
cur
!==
undefined
)
}).
filter
(
cur
=>
cur
!==
undefined
)
if
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayMorrowDay
.
splice
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayMorrowDay
.
splice
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
!
(
this
.
checkTimes
(
deleteEventArrayMorrowDay
,
item
.
timeRange
)))
{
if
(
!
(
this
.
checkTimes
(
deleteEventArrayMorrowDay
,
item
.
timeRange
)))
{
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
$Message
.
error
(
'
次日配置时间重叠,请重新配置时间
'
);
this
.
$Message
.
error
(
'
次日配置时间重叠,请重新配置时间
'
);
this
.
aaa
++
this
.
aaa
++
}
}
}
}
...
@@ -550,35 +551,35 @@ export default {
...
@@ -550,35 +551,35 @@ export default {
},
},
onSwitchChangeTimeTable
(
event
,
item
,
index
)
{
onSwitchChangeTimeTable
(
event
,
item
,
index
)
{
if
(
item
.
timeRange
!==
void
0
){
if
(
item
.
timeRange
!==
void
0
)
{
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
event
,
item
,
index
)
console
.
log
(
"
🚀🚀event, item, index🚀,
"
,
event
,
item
,
index
)
let
strategy
=
{
let
strategy
=
{
//当日|次日,执行不同对比策略
//当日|次日,执行不同对比策略
0
:
()
=>
{
0
:
()
=>
{
let
deleteEventArrayCurrentDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
let
deleteEventArrayCurrentDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
//当日
//当日
if
(
cur
.
morrow
===
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
if
(
cur
.
morrow
===
0
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
cur
!==
undefined
)
}).
filter
(
cur
=>
cur
!==
undefined
)
if
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayCurrentDay
.
splice
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayCurrentDay
.
splice
(
deleteEventArrayCurrentDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
!
(
this
.
checkTimes
(
deleteEventArrayCurrentDay
,
item
.
timeRange
)))
{
if
(
!
(
this
.
checkTimes
(
deleteEventArrayCurrentDay
,
item
.
timeRange
)))
{
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
$Message
.
error
(
'
当日配置时间重叠,请重新配置时间
'
);
this
.
$Message
.
error
(
'
当日配置时间重叠,请重新配置时间
'
);
this
.
aaa
++
this
.
aaa
++
}
}
},
},
1
:
()
=>
{
1
:
()
=>
{
let
deleteEventArrayMorrowDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
let
deleteEventArrayMorrowDay
=
this
.
formDataTimeTable
.
time
.
map
(
cur
=>
{
//次日
//次日
if
(
cur
.
morrow
===
1
)
return
cur
.
timeRange
.
join
(
'
~
'
);
if
(
cur
.
morrow
===
1
)
return
cur
.
timeRange
.
join
(
'
~
'
);
}).
filter
(
cur
=>
cur
!==
undefined
)
}).
filter
(
cur
=>
cur
!==
undefined
)
if
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayMorrowDay
.
splice
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
))
!==
-
1
)
deleteEventArrayMorrowDay
.
splice
(
deleteEventArrayMorrowDay
.
indexOf
(
item
.
timeRange
.
join
(
'
~
'
)),
1
);
//删除刚添加的元素,不在对比数据内
if
(
!
(
this
.
checkTimes
(
deleteEventArrayMorrowDay
,
item
.
timeRange
)))
{
if
(
!
(
this
.
checkTimes
(
deleteEventArrayMorrowDay
,
item
.
timeRange
)))
{
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
//对比算法 ,大于、小于且不在已有时间段内,返回则删除
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
formDataTimeTable
.
time
.
splice
(
index
,
1
);
this
.
$Message
.
error
(
'
次日配置时间重叠,请重新配置时间
'
);
this
.
$Message
.
error
(
'
次日配置时间重叠,请重新配置时间
'
);
this
.
aaa
++
this
.
aaa
++
}
}
}
}
...
@@ -589,19 +590,18 @@ export default {
...
@@ -589,19 +590,18 @@ export default {
},
},
save
()
{
save
()
{
//深拷贝,防止污染 1~7天的数据
//深拷贝,防止污染 1~7天的数据
let
array
=
_
.
cloneDeep
(
this
.
formItem
.
find
(
cur
=>
cur
.
type
===
'
timeTable
'
).
data
);
let
array
=
_
.
cloneDeep
(
this
.
formItem
.
find
(
cur
=>
cur
.
type
===
'
timeTable
'
).
data
);
function
getFormatData
(
data
)
{
function
getFormatData
(
data
)
{
//获取开放时间段,格式化
//获取开放时间段,格式化
return
data
.
map
(
cur
=>
{
return
data
.
map
(
cur
=>
{
if
(
cur
.
timeRange
!==
void
0
)
return
{
if
(
cur
.
timeRange
!==
void
0
)
return
{
"
Begin
"
:
cur
.
timeRange
[
0
],
"
Begin
"
:
cur
.
timeRange
[
0
],
"
End
"
:
cur
.
timeRange
[
1
],
"
End
"
:
cur
.
timeRange
[
1
],
"
Morrow
"
:
cur
.
morrow
,
"
Morrow
"
:
cur
.
morrow
,
}
}
}).
filter
(
cur
=>
cur
!==
undefined
)
}).
filter
(
cur
=>
cur
!==
undefined
)
}
}
let
info
=
{
let
info
=
{
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录