Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
D
dutyManagement
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
dutyManagement
提交
1cbb902a
提交
1cbb902a
编写于
3月 05, 2025
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
20250305 值班安排》列表“值班班级”字段支持动态宽度
上级
0c399e72
流水线
#33453
已失败 ,包含阶段
in 30 second
变更
9
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
34 行增加
和
11 行删除
+34
-11
app.35e59e0d.css
dist/css/app.35e59e0d.css
+1
-1
chunk-6ed29bfa.6c903bd8.css
dist/css/chunk-6ed29bfa.6c903bd8.css
+1
-0
chunk-cf7dc65e.9ea43c88.css
dist/css/chunk-cf7dc65e.9ea43c88.css
+0
-1
index.html
dist/index.html
+1
-1
app.e9789aec.js
dist/js/app.e9789aec.js
+2
-2
chunk-6ed29bfa.9854a8c3.js
dist/js/chunk-6ed29bfa.9854a8c3.js
+1
-0
chunk-cf7dc65e.499fa8bf.js
dist/js/chunk-cf7dc65e.499fa8bf.js
+0
-1
index.vue
src/layouts/basic-layout/menu-side/index.vue
+22
-2
index.vue
src/pages/dutyArrangement/index.vue
+6
-3
未找到文件。
dist/css/app.
de53c9b8
.css
→
dist/css/app.
35e59e0d
.css
浏览文件 @
1cbb902a
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/css/chunk-6ed29bfa.6c903bd8.css
0 → 100644
浏览文件 @
1cbb902a
.selectTitleIcon
[
data-v-eeae8b34
]
:hover
{
cursor
:
pointer
}
\ No newline at end of file
dist/css/chunk-cf7dc65e.9ea43c88.css
已删除
100644 → 0
浏览文件 @
0c399e72
.selectTitleIcon
[
data-v-37465201
]
:hover
{
cursor
:
pointer
}
\ No newline at end of file
dist/index.html
浏览文件 @
1cbb902a
<!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"
><link
rel=
"shortcut icon"
href=
favicon.ico
><title>
值班管理
</title><link
href=
css/app.de53c9b8.css
rel=
stylesheet
></head><body><script
charset=
utf-8
src=
"https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"
></script><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 党建管理系统。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.231bdbe1.js
></script><script
src=
js/app.759054b1.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"
><link
rel=
"shortcut icon"
href=
favicon.ico
><title>
值班管理
</title><link
href=
css/app.35e59e0d.css
rel=
stylesheet
></head><body><script
charset=
utf-8
src=
"https://map.qq.com/api/gljs?v=1.exp&key=IZXBZ-OTAWV-XU7PV-5FAAL-F6VXH-7XBQP"
></script><script
src=
/a/manager/identify/identify.js
></script><noscript><strong>
请开启 JavaScript 功能来使用 党建管理系统。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.231bdbe1.js
></script><script
src=
js/app.e9789aec.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
759054b1
.js
→
dist/js/app.
e9789aec
.js
浏览文件 @
1cbb902a
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-6ed29bfa.9854a8c3.js
0 → 100644
浏览文件 @
1cbb902a
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-6ed29bfa
"
],{
"
58c5
"
:
function
(
t
,
e
,
a
){},
"
5df3
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
var
i
=
a
(
"
02f4
"
)(
!
0
);
a
(
"
01f9
"
)(
String
,
"
String
"
,(
function
(
t
){
this
.
_t
=
String
(
t
),
this
.
_i
=
0
}),(
function
(){
var
t
,
e
=
this
.
_t
,
a
=
this
.
_i
;
return
a
>=
e
.
length
?{
value
:
void
0
,
done
:
!
0
}:(
t
=
i
(
e
,
a
),
this
.
_i
+=
t
.
length
,{
value
:
t
,
done
:
!
1
})}))},
"
6d00
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
(
"
58c5
"
)},
"
9ca0
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
r
(
e
);
var
i
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"
div
"
,[
a
(
"
Card
"
,{
staticStyle
:{
width
:
"
100%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
title
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
h3
"
,{
staticStyle
:{
height
:
"
30px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
t
.
_v
(
"
值班安排
"
)]),
t
.
selectFlag
?
t
.
_e
():
a
(
"
div
"
,{
staticClass
:
"
selectTitleIcon
"
,
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
on
:{
click
:
function
(
e
){
t
.
selectFlag
=!
0
}}},[
a
(
"
span
"
,[
t
.
_v
(
"
展开
"
)]),
a
(
"
Icon
"
,{
staticClass
:
"
selectTitleIcon
"
,
attrs
:{
size
:
25
,
type
:
"
ios-arrow-dropright
"
,
color
:
"
#2d8cf0
"
}})],
1
),
t
.
selectFlag
?
a
(
"
div
"
,{
staticClass
:
"
selectTitleIcon
"
,
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
on
:{
click
:
function
(
e
){
t
.
selectFlag
=!
t
.
selectFlag
}}},[
a
(
"
span
"
,[
t
.
_v
(
"
收起
"
)]),
a
(
"
Icon
"
,{
staticClass
:
"
selectTitleIcon
"
,
attrs
:{
size
:
25
,
type
:
"
ios-arrow-dropdown
"
,
color
:
"
#2d8cf0
"
}})],
1
):
t
.
_e
()]),
a
(
"
transition
"
,{
attrs
:{
name
:
"
move-up
"
}},[
t
.
selectFlag
?
a
(
"
div
"
,[
a
(
"
Row
"
,{
staticStyle
:{
"
margin-top
"
:
"
10px
"
},
attrs
:{
justify
:
"
space-between
"
,
wrap
:
""
}},
t
.
_l
(
t
.
cityListAll
,(
function
(
e
,
i
){
return
a
(
"
Col
"
,{
key
:
i
,
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
flex-wrap
"
:
"
nowrap
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
span
"
,{
staticStyle
:{
"
margin-right
"
:
"
5px
"
}},[
t
.
_v
(
t
.
_s
(
e
[
1
]))]),
a
(
"
Select
"
,{
key
:
i
,
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
},
model
:{
value
:
t
.
cityListAllObject
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
cityListAllObject
,
e
[
2
],
a
)},
expression
:
"
cityListAllObject[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)])})),
1
),
a
(
"
Row
"
,{
staticStyle
:{
"
margin-top
"
:
"
10px
"
},
attrs
:{
justify
:
"
space-between
"
,
wrap
:
""
}},[
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
center
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
值班日期:
"
)]),
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
,
type
:
"
daterange
"
,
placeholder
:
"
请选择值班日期
"
},
on
:{
"
on-change
"
:
t
.
dutyDateSelect
},
model
:{
value
:
t
.
dutyDateX
,
callback
:
function
(
e
){
t
.
dutyDateX
=
e
},
expression
:
"
dutyDateX
"
}})],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
值班领导:
"
)]),
a
(
"
Select
"
,{
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
cityListAllObject
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
cityListAllObject
,
"
is_lead
"
,
e
)},
expression
:
"
cityListAllObject.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
姓名/卡号:
"
)]),
a
(
"
Input
"
,{
staticStyle
:{
width
:
"
10.5vw
"
,
"
margin-right
"
:
"
8.5vw
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入姓名或卡号
"
},
model
:{
value
:
t
.
cityListAllObject
.
key_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
cityListAllObject
,
"
key_name
"
,
e
)},
expression
:
"
cityListAllObject.key_name
"
}})],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
icon
:
"
ios-search
"
},
on
:{
click
:
t
.
search
}},[
t
.
_v
(
"
查询数据
"
)])],
1
)],
1
)],
1
):
t
.
_e
()])]},
proxy
:
!
0
},{
key
:
"
extra
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
warning
"
},
on
:{
click
:
t
.
batchPush
}},[
t
.
_v
(
"
批量推送
"
)]),
a
(
"
ButtonGroup
"
,[
a
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-add-circle-outline
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleButtonClick
(
"
addDuty
"
)}}},[
t
.
_v
(
"
增添值班
"
)]),
a
(
"
Button
"
,{
attrs
:{
label
:
"
dutyDataOutput
"
,
icon
:
"
ios-log-out
"
},
on
:{
click
:
t
.
dutyDataImport
}},[
t
.
_v
(
"
数据导出
\n
"
)]),
a
(
"
Button
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
attrs
:{
icon
:
"
ios-cloud-upload-outline
"
,
label
:
"
dutyModelInput
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleButtonClick
(
"
dutyModelInput
"
)}}},[
t
.
_v
(
"
\n
模板导入
\n
"
)]),
a
(
"
Button
"
,{
attrs
:{
label
:
"
dutyModelOutput
"
,
icon
:
"
ios-log-out
"
},
on
:{
click
:
function
(
e
){
t
.
exportModalShow
=!
0
}}},[
t
.
_v
(
"
模板导出
\n
"
)])],
1
)],
1
)]},
proxy
:
!
0
}])},[
a
(
"
Table
"
,{
attrs
:{
border
:
""
,
loading
:
t
.
tableLoading
,
columns
:
t
.
columns
,
data
:
t
.
data
,
height
:
t
.
tableHeightCal
},
on
:{
"
on-select
"
:
t
.
onSelect
,
"
on-select-cancel
"
:
t
.
onSelectCancel
,
"
on-select-all
"
:
t
.
onSelectAll
,
"
on-select-all-cancel
"
:
t
.
onSelectAllCancel
},
scopedSlots
:
t
.
_u
([{
key
:
"
watch_remark
"
,
fn
:
function
(
e
){
var
a
=
e
.
row
;
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
(
a
.
watch_remark
)
+
"
\n
"
)]}},{
key
:
"
is_lead
"
,
fn
:
function
(
e
){
var
a
=
e
.
row
;
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
([
"
值班教师
"
,
"
值班领导
"
][
a
.
is_lead
])
+
"
\n
"
)]}},{
key
:
"
action
"
,
fn
:
function
(
e
){
var
i
=
e
.
row
;
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-evenly
"
}},[
a
(
"
Button
"
,{
attrs
:{
type
:
"
warning
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
pushDuty
(
i
)}}},[
t
.
_v
(
"
推送
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
updateDuty
(
i
)}}},[
t
.
_v
(
"
修改
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
deleteDuty
(
i
)}}},[
t
.
_v
(
"
删除
"
)])],
1
)]}}])}),
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
70px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
Page
"
,{
key
:
t
.
pageKey
,
attrs
:{
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
total
:
t
.
total
,
"
page-size
"
:
t
.
page_size
,
"
page-size-opts
"
:[
100
,
200
,
500
,
1
e3
],
"
model-value
"
:
"
page_index
"
},
on
:{
"
on-change
"
:
t
.
currentPage
,
"
on-page-size-change
"
:
t
.
currentPageCount
}})],
1
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
closable
:
""
,
"
mask-closable
"
:
!
1
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
asyncCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
asyncOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
addDuty
,
callback
:
function
(
e
){
t
.
addDuty
=
e
},
expression
:
"
addDuty
"
}},[
a
(
"
Form
"
,{
ref
:
"
formValidate
"
,
attrs
:{
model
:
t
.
formValidate
,
rules
:
t
.
ruleValidate
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名
"
,
prop
:
"
username1
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
placeholder
:
"
请选择用户
"
},
on
:{
"
on-change
"
:
t
.
usernameChange
},
model
:{
value
:
t
.
formValidate
.
username1
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
username1
"
,
e
)},
expression
:
"
formValidate.username1
"
}},
t
.
_l
(
t
.
userArray
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
工号
"
,
prop
:
"
card_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入工号
"
},
model
:{
value
:
t
.
formValidate
.
card_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
card_name
"
,
e
)},
expression
:
"
formValidate.card_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
联系方式
"
,
prop
:
"
mobile
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
number
"
,
placeholder
:
"
请输入联系方式
"
},
model
:{
value
:
t
.
formValidate
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
mobile
"
,
e
)},
expression
:
"
formValidate.mobile
"
}})],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
],
filterable
:
!
0
},
model
:{
value
:
t
.
formValidate
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
formValidate
,
e
[
2
],
a
)},
expression
:
"
formValidate[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)})),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
formValidate
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
is_lead
"
,
e
)},
expression
:
"
formValidate.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
options
:
t
.
options1
,
placeholder
:
"
请选择值班日期
"
},
on
:{
"
on-change
"
:
t
.
dutyDate
},
model
:{
value
:
t
.
formValidate
.
watch_date
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
watch_date
"
,
e
)},
expression
:
"
formValidate.watch_date
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班班级
"
,
prop
:
"
watch_remark
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
textarea
"
,
autosize
:{
minRows
:
2
,
maxRows
:
5
},
placeholder
:
"
值班班级
"
},
model
:{
value
:
t
.
formValidate
.
watch_remark
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
watch_remark
"
,
e
)},
expression
:
"
formValidate.watch_remark
"
}})],
1
)],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
"
修改值班安排
"
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
updateCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
updateOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
updateDutyModal
,
callback
:
function
(
e
){
t
.
updateDutyModal
=
e
},
expression
:
"
updateDutyModal
"
}},[
a
(
"
Form
"
,{
ref
:
"
updateDutyFrom
"
,
attrs
:{
model
:
t
.
updateDutyFrom
,
rules
:
t
.
updeteRuleValidate
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名
"
,
prop
:
"
username1
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
placeholder
:
"
请选择用户
"
},
on
:{
"
on-change
"
:
t
.
usernameChange1
},
model
:{
value
:
t
.
updateDutyFrom
.
username1
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
username1
"
,
e
)},
expression
:
"
updateDutyFrom.username1
"
}},
t
.
_l
(
t
.
userArray
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
工号
"
,
prop
:
"
card_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入工号
"
},
model
:{
value
:
t
.
updateDutyFrom
.
card_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
card_name
"
,
e
)},
expression
:
"
updateDutyFrom.card_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
联系方式
"
,
prop
:
"
mobile
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
number
"
,
placeholder
:
"
请输入联系方式
"
},
model
:{
value
:
t
.
updateDutyFrom
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
mobile
"
,
e
)},
expression
:
"
updateDutyFrom.mobile
"
}})],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
]},
model
:{
value
:
t
.
updateDutyFrom
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
updateDutyFrom
,
e
[
2
],
a
)},
expression
:
"
updateDutyFrom[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)})),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
updateDutyFrom
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
is_lead
"
,
e
)},
expression
:
"
updateDutyFrom.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
value
:
t
.
updateDutyFrom
.
watch_date
,
options
:
t
.
options1
},
on
:{
"
on-change
"
:
t
.
updateDutyDate
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班班级
"
,
prop
:
"
watch_remark
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
textarea
"
,
autosize
:{
minRows
:
2
,
maxRows
:
5
},
placeholder
:
"
值班班级
"
},
model
:{
value
:
t
.
updateDutyFrom
.
watch_remark
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
watch_remark
"
,
e
)},
expression
:
"
updateDutyFrom.watch_remark
"
}})],
1
)],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
dutyDataInputCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
dutyDataInputOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
dutyDataInputModal
,
callback
:
function
(
e
){
t
.
dutyDataInputModal
=
e
},
expression
:
"
dutyDataInputModal
"
}},[
a
(
"
Form
"
,{
ref
:
"
dutyDataInput
"
,
attrs
:{
model
:
t
.
dutyDataInputObject
,
rules
:
t
.
rulesDutyDataInput
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名或卡号
"
,
prop
:
"
key_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入姓名或卡号
"
},
model
:{
value
:
t
.
dutyDataInputObject
.
key_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
dutyDataInputObject
,
"
key_name
"
,
e
)},
expression
:
"
dutyDataInputObject.key_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
},
on
:{
"
on-change
"
:
t
.
dutyDataInputDateSelect
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
dutyDataInputObject
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
dutyDataInputObject
,
"
is_lead
"
,
e
)},
expression
:
"
dutyDataInputObject.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
]},
model
:{
value
:
t
.
dutyDataInputObject
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
dutyDataInputObject
,
e
[
2
],
a
)},
expression
:
"
dutyDataInputObject[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)}))],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
dutyModelImportCancel
}},[
t
.
_v
(
"
取消
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
dutyModelImportModal
,
callback
:
function
(
e
){
t
.
dutyModelImportModal
=
e
},
expression
:
"
dutyModelImportModal
"
}},[
a
(
"
Upload
"
,{
attrs
:{
"
before-upload
"
:
t
.
dutyModelUpload
,
"
on-error
"
:
t
.
dutyModelError
,
"
on-success
"
:
t
.
dutyModelSuccess
,
"
on-format-error
"
:
t
.
dutyModelFormatError
,
format
:[
"
xlsx
"
],
multiple
:
!
1
,
type
:
"
drag
"
,
action
:
""
}},[
a
(
"
div
"
,{
staticStyle
:{
padding
:
"
120px 0
"
}},[
a
(
"
Icon
"
,{
staticStyle
:{
color
:
"
#3399ff
"
},
attrs
:{
type
:
"
ios-cloud-upload
"
,
size
:
"
52
"
}}),
a
(
"
p
"
,[
t
.
_v
(
"
值班模板文件上传
"
)])],
1
)])],
1
),
a
(
"
Modal
"
,{
attrs
:{
"
mask-closable
"
:
!
1
,
title
:
"
模板导出
"
},
on
:{
"
on-ok
"
:
t
.
exportTemplate
},
model
:{
value
:
t
.
exportModalShow
,
callback
:
function
(
e
){
t
.
exportModalShow
=
e
},
expression
:
"
exportModalShow
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
模板年月:
"
)]),
a
(
"
DatePicker
"
,{
attrs
:{
type
:
"
month
"
,
format
:
"
yyyy-MM
"
,
placeholder
:
""
},
model
:{
value
:
t
.
tempYearMonth
,
callback
:
function
(
e
){
t
.
tempYearMonth
=
e
},
expression
:
"
tempYearMonth
"
}})],
1
)],
1
)},
n
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
456d
"
),
a
(
"
ac6a
"
),
a
(
"
5df3
"
),
a
(
"
28a5
"
),
a
(
"
20d6
"
),
a
(
"
96cf
"
),
a
(
"
3b8d
"
)),
l
=
a
(
"
bd86
"
),
c
=
(
a
(
"
a481
"
),
a
(
"
967e
"
)),
s
=
a
.
n
(
c
),
o
=
a
(
"
5e9b
"
),
u
=
a
(
"
2ef0
"
),
d
=
a
.
n
(
u
),
p
=
a
(
"
c276
"
),
m
=
(
a
(
"
a78e
"
),
a
(
"
5a0c
"
)),
y
=
a
.
n
(
m
),
h
=
a
(
"
806c
"
);
function
f
(
t
,
e
){
var
a
=
Object
.
keys
(
t
);
if
(
Object
.
getOwnPropertySymbols
){
var
i
=
Object
.
getOwnPropertySymbols
(
t
);
e
&&
(
i
=
i
.
filter
((
function
(
e
){
return
Object
.
getOwnPropertyDescriptor
(
t
,
e
).
enumerable
}))),
a
.
push
.
apply
(
a
,
i
)}
return
a
}
function
g
(
t
){
for
(
var
e
=
1
;
e
<
arguments
.
length
;
e
++
){
var
a
=
null
!=
arguments
[
e
]?
arguments
[
e
]:{};
e
%
2
?
f
(
Object
(
a
),
!
0
).
forEach
((
function
(
e
){
Object
(
l
[
"
a
"
])(
t
,
e
,
a
[
e
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
t
,
Object
.
getOwnPropertyDescriptors
(
a
)):
f
(
Object
(
a
)).
forEach
((
function
(
e
){
Object
.
defineProperty
(
t
,
e
,
Object
.
getOwnPropertyDescriptor
(
a
,
e
))}))}
return
t
}
var
b
=
{
components
:{},
data
:
function
(){
return
{
userArray
:[],
tableLoading
:
!
1
,
fileUploadFlag
:
!
1
,
loadingStatus
:
!
1
,
file
:
null
,
dutyModelImportModal
:
!
1
,
dutyDataInputObject
:{
startTime
:
""
,
endTime
:
""
,
is_lead
:
""
,
watch_date
:
""
,
campusid
:
""
,
watch_hour_id
:
""
,
watchtypeid
:
""
,
dept_id
:
""
},
publicModalTitle
:
""
,
dutyDataInputModal
:
!
1
,
DatePickerKey
:
1
,
updateDutyFrom
:{},
updateDutyModal
:
!
1
,
addDutySlectList
:[],
dutyRole
:[{
label
:
"
否
"
,
value
:
0
},{
label
:
"
是
"
,
value
:
1
}],
options1
:{
disabledDate
:
function
(
t
){
return
t
&&
t
.
valueOf
()
<
Date
.
now
()
-
864
e5
}},
formValidate
:{
username
:
""
,
watch_date
:
""
,
mobile
:
""
,
is_lead
:
""
,
card_name
:
""
,
watch_remark
:
""
,
campusid
:
""
,
watch_hour_id
:
""
,
watchtypeid
:
""
,
dept_id
:
""
},
rulesDutyDataInput
:{
key_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名或工号不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
change
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
updeteRuleValidate
:{
username1
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名不能为空!
"
,
trigger
:
"
change
"
}],
card_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
工号不能为空!!
"
,
trigger
:
"
blur
"
}],
mobile
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
联系方式不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
blur
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
ruleValidate
:{
username1
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名不能为空!
"
,
trigger
:
"
change
"
}],
card_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
工号不能为空!!
"
,
trigger
:
"
change
"
}],
mobile
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
联系方式不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
change
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
addDutyLoading
:
!
0
,
addDuty
:
!
1
,
selectFlag
:
!
1
,
cityListAllObject
:{
dutyType
:
""
,
dutyHourTime
:
""
,
dutyCampus
:
""
,
dutyDepSelect
:
""
,
key_name
:
""
,
is_lead
:
3
,
dutyDate
:
""
,
startTime
:(
new
Date
).
toLocaleDateString
(
"
cn
"
,{
hour12
:
!
1
}).
replace
(
/
\/
/g
,
"
-
"
),
endTime
:(
new
Date
).
toLocaleDateString
(
"
cn
"
,{
hour12
:
!
1
}).
replace
(
/
\/
/g
,
"
-
"
),
startTimeSearch
:
""
,
endTimeSearch
:
""
,
startTimeFlag
:
""
,
endTimeFlag
:
""
},
cityListAlltSearchFlagObject
:{
dutyType
:
""
,
dutyHourTime
:
""
,
dutyCampus
:
""
,
dutyDepSelect
:
""
,
key_name
:
""
,
is_lead
:
3
,
dutyDate
:
""
,
startTimeSearch
:
""
,
endTimeSearch
:
""
},
buttonSize
:
""
,
searchSlecte
:[
"
值班类型
"
,
"
值班部门
"
,
"
值班校区
"
],
cityListAll
:[],
model1
:
""
,
model2
:
""
,
model3
:
""
,
model4
:
""
,
pageKey
:
1
,
total
:
0
,
page_index
:
1
,
page_size
:
100
,
is_lead
:
3
,
columns
:[{
type
:
"
selection
"
,
width
:
60
,
align
:
"
center
"
,
fixed
:
"
left
"
},{
title
:
"
姓名
"
,
key
:
"
username
"
,
minWidth
:
150
},{
title
:
"
工号
"
,
key
:
"
card_name
"
,
minWidth
:
150
},{
title
:
"
联系方式
"
,
key
:
"
mobile
"
,
minWidth
:
150
},{
title
:
"
值班部门
"
,
key
:
"
dept_name
"
,
minWidth
:
150
},{
title
:
"
值班类型
"
,
key
:
"
watchtypename
"
,
minWidth
:
150
},{
title
:
"
值班校区
"
,
key
:
"
campusname
"
,
minWidth
:
150
},{
title
:
"
值班权限
"
,
slot
:
"
is_lead
"
,
minWidth
:
150
},{
title
:
"
值班班级
"
,
resizable
:
!
0
,
slot
:
"
watch_remark
"
,
width
:
300
},{
title
:
"
值班时间
"
,
key
:
"
watch_hour_time
"
,
minWidth
:
150
},{
title
:
"
值班日期
"
,
key
:
"
watch_date
"
,
minWidth
:
150
,
sortable
:
!
0
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
minWidth
:
180
,
align
:
"
center
"
,
fixed
:
"
right
"
}],
data
:[],
pushListSlc
:[],
exportModalShow
:
!
1
,
tempYearMonth
:
""
,
dutyDateX
:[]}},
computed
:{
tableHeightCal
:
function
(){
return
document
.
documentElement
.
clientHeight
-
360
},
util
:
function
(){
return
p
[
"
a
"
]}},
watch
:{
"
cityListAllObject.dutyType
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyHourTime
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyCampus
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyDepSelect
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
dutyDataInputObject
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}},
cityListAllObject
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}},
formValidate
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}}},
methods
:{
usernameChange1
:
function
(
t
){
var
e
=
this
;
o
[
"
N
"
]({
card
:
t
}).
then
((
function
(
t
){
e
.
updateDutyFrom
=
g
(
g
({},
e
.
updateDutyFrom
),
t
.
response
)}))},
usernameChange
:
function
(
t
){
var
e
=
this
;
o
[
"
N
"
]({
card
:
t
}).
then
((
function
(
t
){
e
.
formValidate
=
g
(
g
({},
e
.
formValidate
),
t
.
response
)}))},
dutyModelImportCancel
:
function
(){
this
.
dutyModelImportModal
=!
1
},
dutyModelImportOK
:
function
(){
this
.
file
=
null
,
this
.
loadingStatus
=!
1
},
dutyModelUpload
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
e
){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
new
FormData
,
a
.
append
(
"
file
"
,
e
),
t
.
next
=
4
,
o
[
"
T
"
](
a
);
case
4
:
if
(
i
=
t
.
sent
,
1
===
i
.
code
){
t
.
next
=
9
;
break
}
this
.
$Message
.
error
(
i
.
msg_detail
),
t
.
next
=
12
;
break
;
case
9
:
return
t
.
next
=
11
,
this
.
getWatchList
();
case
11
:
this
.
dutyModelImportModal
=!
1
;
case
12
:
return
t
.
abrupt
(
"
return
"
,
!
1
);
case
13
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(
e
){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyModelFormatError
:
function
(
t
,
e
){
this
.
$Message
.
error
(
"
文件格式错误!
"
)},
dutyModelSuccess
:
function
(
t
,
e
,
a
){
this
.
$Message
.
info
(
t
.
msg
)},
dutyModelError
:
function
(
t
,
e
,
a
){},
dutyDataInputCancel
:
function
(){
this
.
dutyDataInputModal
=!
1
},
dutyDataImport
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
e
,
a
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
=
{
start_time
:
""
!==
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
?
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
:
this
.
cityListAllObject
.
startTime
,
end_time
:
""
!==
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
?
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
:
this
.
cityListAllObject
.
endTime
,
is_lead
:
this
.
cityListAlltSearchFlagObject
.
is_lead
,
dep_id
:
this
.
cityListAlltSearchFlagObject
.
dutyDepSelect
,
key_name
:
this
.
cityListAlltSearchFlagObject
.
key_name
,
type_id
:
this
.
cityListAlltSearchFlagObject
.
dutyType
,
watchhour_time
:
this
.
cityListAlltSearchFlagObject
.
dutyHourTime
,
campus_id
:
this
.
cityListAlltSearchFlagObject
.
dutyCampus
},
t
.
next
=
3
,
o
[
"
P
"
](
e
);
case
3
:
a
=
t
.
sent
,
window
.
location
.
href
=
this
.
$ascURL
+
a
.
response
;
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyDataInputOK
:
function
(){
var
t
=
this
;
this
.
$refs
[
"
dutyDataInput
"
].
validate
(
function
(){
var
e
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(
a
){
var
i
,
n
;
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
if
(
!
a
){
e
.
next
=
6
;
break
}
return
i
=
{
dep_id
:
t
.
dutyDataInputObject
.
dep_id
,
key_name
:
t
.
dutyDataInputObject
.
key_name
,
start_time
:
t
.
dutyDataInputObject
.
startTime
,
end_time
:
t
.
dutyDataInputObject
.
endTime
,
type_id
:
t
.
dutyDataInputObject
.
watchtypeid
,
watchhour_time
:
t
.
dutyDataInputObject
.
watch_hour_id
,
is_lead
:
t
.
dutyDataInputObject
.
is_lead
},
e
.
next
=
4
,
o
[
"
P
"
](
i
);
case
4
:
n
=
e
.
sent
,
window
.
location
.
href
=
t
.
$ascURL
+
n
.
response
;
case
6
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)})));
return
function
(
t
){
return
e
.
apply
(
this
,
arguments
)}}())},
dutyDataInputDateSelect
:
function
(
t
){
this
.
dutyDataInputObject
.
watch_date
=
t
[
0
]
+
"
-
"
+
t
[
1
],
this
.
dutyDataInputObject
.
startTime
=
t
[
0
],
this
.
dutyDataInputObject
.
endTime
=
t
[
1
]},
updateDutyDate
:
function
(
t
){
this
.
updateDutyFrom
.
watch_date
=
t
},
updateCancel
:
function
(){
this
.
updateDutyModal
=!
1
},
updateOK
:
function
(){
var
t
=
this
;
this
.
$refs
[
"
updateDutyFrom
"
].
validate
((
function
(
e
){
e
&&
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
a
=
t
.
updateDutyFrom
,
e
.
next
=
3
,
o
[
"
V
"
](
a
);
case
3
:
return
i
=
e
.
sent
,
t
.
getWatchList
(),
t
.
updateDutyModal
=!
1
,
e
.
abrupt
(
"
return
"
,
i
);
case
7
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)}))))}))},
validateTime
:
function
(
t
){
var
e
=
new
Date
(
t
),
a
=
e
.
getFullYear
(),
i
=
e
.
getMonth
(),
n
=
e
.
getDate
();
return
""
.
concat
(
a
,
"
-
"
).
concat
(
i
,
"
-
"
).
concat
(
n
)},
onSelect
:
function
(
t
,
e
){
this
.
pushListSlc
.
push
(
e
.
watchid
)},
onSelectCancel
:
function
(
t
,
e
){
var
a
=
this
.
pushListSlc
.
findIndex
((
function
(
t
){
return
t
==
e
.
watchid
}));
this
.
pushListSlc
.
splice
(
a
,
1
)},
onSelectAll
:
function
(
t
){
this
.
pushListSlc
=
t
.
map
((
function
(
t
){
return
t
.
watchid
}))},
onSelectAllCancel
:
function
(
t
){
this
.
pushListSlc
=
[]},
batchPush
:
function
(){
var
t
=
this
;
0
!=
this
.
pushListSlc
.
length
?
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确认推送?
"
,
loading
:
!
0
,
onOk
:
function
(){
t
.
pushM
(
t
.
pushListSlc
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
getWatchList
()}))}}):
this
.
$Message
.
warning
({
content
:
"
请选择要推送的人员
"
,
background
:
!
0
})},
pushDuty
:
function
(
t
){
var
e
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确认推送?
"
,
loading
:
!
0
,
onOk
:
function
(){
e
.
pushM
([
t
.
watchid
]).
then
((
function
(){
e
.
$Modal
.
remove
()}))}})},
pushM
:
function
(
t
){
var
e
=
this
;
return
new
Promise
((
function
(
a
){
o
[
"
W
"
](
t
).
then
((
function
(
t
){
1
==
t
.
code
?
e
.
$Message
.
success
({
content
:
t
.
msg
,
background
:
!
0
}):
e
.
$Message
.
error
({
content
:
t
.
msg_detail
,
background
:
!
0
})})).
finally
((
function
(){
a
()}))}))},
updateDuty
:
function
(
t
){
this
.
updateDutyFrom
=
d
.
a
.
cloneDeep
(
g
(
g
({},
t
),{},{
username1
:
t
.
card_name
})),
this
.
updateDutyModal
=!
0
},
deleteDuty
:
function
(
t
){
var
e
=
this
;
this
.
publicConfirm
((
function
(){
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
a
(){
var
i
,
n
;
return
s
.
a
.
wrap
((
function
(
a
){
while
(
1
)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
i
=
{
id
:
t
.
watchid
},
a
.
next
=
3
,
o
[
"
Q
"
](
i
);
case
3
:
return
n
=
a
.
sent
,
e
.
getWatchList
(),
a
.
abrupt
(
"
return
"
,
n
);
case
6
:
case
"
end
"
:
return
a
.
stop
()}}),
a
)}))))}))},
search
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
this
.
cityListAllObject
.
startTimeSearch
=
""
!==
this
.
cityListAllObject
.
startTimeFlag
?
this
.
cityListAllObject
.
startTimeFlag
:
this
.
cityListAllObject
.
startTime
,
this
.
cityListAllObject
.
endTimeSearch
=
""
!==
this
.
cityListAllObject
.
endtTimeFlag
?
this
.
cityListAllObject
.
endtTimeFlag
:
this
.
cityListAllObject
.
endTime
,
void
0
===
this
.
cityListAllObject
.
is_lead
?
this
.
cityListAllObject
.
is_lead
=
3
:
this
.
cityListAllObject
.
is_lead
,
this
.
cityListAlltSearchFlagObject
=
d
.
a
.
cloneDeep
(
this
.
cityListAllObject
),
this
.
pageKey
++
,
this
.
page_index
=
1
,
t
.
next
=
8
,
this
.
getWatchList
();
case
8
:
t
.
sent
;
case
9
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyDateSelect
:
function
(
t
){
this
.
cityListAllObject
.
startTimeFlag
=
t
[
0
],
this
.
cityListAllObject
.
endtTimeFlag
=
t
[
1
]},
dutyDate
:
function
(
t
){
this
.
formValidate
.
watch_date
=
t
},
asyncOK
:
function
(){
var
t
=
this
,
e
=
d
.
a
.
cloneDeep
(
this
.
formValidate
);
this
.
$refs
[
"
formValidate
"
].
validate
((
function
(
a
){
a
&&
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
a
(){
var
i
;
return
s
.
a
.
wrap
((
function
(
a
){
while
(
1
)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
a
.
next
=
2
,
o
[
"
O
"
](
e
);
case
2
:
return
i
=
a
.
sent
,
a
.
next
=
5
,
t
.
getWatchList
();
case
5
:
return
t
.
addDuty
=!
1
,
a
.
abrupt
(
"
return
"
,
i
);
case
7
:
case
"
end
"
:
return
a
.
stop
()}}),
a
)}))))}))},
asyncCancel
:
function
(){
this
.
addDuty
=!
1
},
exportTemplate
:
function
(){
var
t
=
y
()(
this
.
tempYearMonth
).
format
(
"
YYYY-MM
"
).
split
(
"
-
"
);
o
[
"
U
"
](
t
[
0
],
t
[
1
]).
then
((
function
(
t
){
window
.
open
(
t
.
response
)}))},
handleButtonClick
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
e
){
var
a
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
t
.
t0
=
e
,
t
.
next
=
"
addDuty
"
===
t
.
t0
?
3
:
"
dutyModelOutput
"
===
t
.
t0
?
8
:
"
dutyDataOutput
"
===
t
.
t0
?
13
:
"
dutyModelInput
"
===
t
.
t0
?
16
:
18
;
break
;
case
3
:
return
this
.
publicModalTitle
=
"
增添值班数据
"
,
this
.
formValidate
.
watch_date
=
""
,
this
.
$refs
[
"
formValidate
"
].
resetFields
(),
this
.
addDuty
=!
0
,
t
.
abrupt
(
"
break
"
,
18
);
case
8
:
return
t
.
next
=
10
,
o
[
"
U
"
]();
case
10
:
return
a
=
t
.
sent
,
window
.
location
.
href
=
this
.
$ascURL
+
a
.
response
,
t
.
abrupt
(
"
break
"
,
18
);
case
13
:
return
this
.
publicModalTitle
=
"
值班数据导出
"
,
this
.
dutyDataInputModal
=!
0
,
t
.
abrupt
(
"
break
"
,
18
);
case
16
:
this
.
publicModalTitle
=
"
值班模板导入
"
,
this
.
dutyModelImportModal
=!
0
;
case
18
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(
e
){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
addDutySearchSelectList
:
function
(){
var
t
=
this
;
Promise
.
all
([
this
.
getSearchSelectListPromiseAllAction
(
"
dept_name
"
,
"
值班部门
"
,
"
dept_id
"
,
o
[
"
u
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyType
"
,
"
值班类型
"
,
"
watchtypeid
"
,
o
[
"
A
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
campusname
"
,
"
值班校区
"
,
"
campusid
"
,
o
[
"
t
"
])]).
then
((
function
(
e
){
t
.
addDutySlectList
=
e
,
console
.
log
(
"
🚀🚀🚀,
"
,
e
),
t
.
DatePickerKey
++
}))},
getSearchSelectListPromiseAllAction
:
function
(
t
,
e
,
a
,
i
){
return
new
Promise
(
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
n
,
r
){
var
l
,
c
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
next
=
2
,
i
();
case
2
:
l
=
t
.
sent
,
c
=
[
l
.
response
,
e
,
a
],
n
(
c
);
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})));
return
function
(
e
,
a
){
return
t
.
apply
(
this
,
arguments
)}}())},
getSearchSelectList
:
function
(){
var
t
=
this
;
Promise
.
all
([
this
.
getSearchSelectListPromiseAllAction
(
"
dutyType
"
,
"
值班类型:
"
,
"
dutyType
"
,
o
[
"
A
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyHourTime
"
,
"
值班时段:
"
,
"
dutyHourTime
"
,
o
[
"
w
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyCampus
"
,
"
值班校区:
"
,
"
dutyCampus
"
,
o
[
"
t
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyDepSelect
"
,
"
值班部门:
"
,
"
dutyDepSelect
"
,
o
[
"
u
"
])]).
then
((
function
(
e
){
t
.
cityListAll
=
e
}))},
getWatchList
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
e
=
this
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
h
[
"
getInitListRequest
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
.
tableLoading
=!
0
,
e
.
pushListSlc
=
[],
a
=
{
page_index
:
e
.
page_index
,
page_size
:
e
.
page_size
,
start_time
:
""
!==
e
.
cityListAlltSearchFlagObject
.
startTimeSearch
?
e
.
cityListAlltSearchFlagObject
.
startTimeSearch
:
e
.
cityListAllObject
.
startTime
,
end_time
:
""
!==
e
.
cityListAlltSearchFlagObject
.
endTimeSearch
?
e
.
cityListAlltSearchFlagObject
.
endTimeSearch
:
e
.
cityListAllObject
.
endTime
,
is_lead
:
e
.
cityListAlltSearchFlagObject
.
is_lead
,
dep_id
:
e
.
cityListAlltSearchFlagObject
.
dutyDepSelect
,
key_name
:
e
.
cityListAlltSearchFlagObject
.
key_name
,
type_id
:
e
.
cityListAlltSearchFlagObject
.
dutyType
,
watchhour_time
:
e
.
cityListAlltSearchFlagObject
.
dutyHourTime
,
campus_id
:
e
.
cityListAlltSearchFlagObject
.
dutyCampus
},
t
.
next
=
5
,
o
[
"
x
"
](
a
);
case
5
:
i
=
t
.
sent
,
e
.
data
=
i
.
response
.
data
,
e
.
total
=
i
.
response
.
data_count
,
e
.
tableLoading
=!
1
;
case
9
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)}))));
case
1
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
currentPage
:
function
(
t
){
this
.
page_index
=
t
,
this
.
getWatchList
()},
currentPageCount
:
function
(
t
){
this
.
page_size
=
t
,
this
.
getWatchList
()},
publicConfirm
:
function
(
t
){
this
.
$Modal
.
confirm
({
title
:
"
警告
"
,
content
:
"
<p>是否继续此操作?</p>
"
,
cancelText
:
"
取消
"
,
okText
:
"
确定
"
,
onOk
:
function
(){
var
e
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(){
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
t
();
case
2
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)})));
function
a
(){
return
e
.
apply
(
this
,
arguments
)}
return
a
}()})},
publicMessage
:
function
(
t
){
1
!==
t
.
code
?
this
.
$Message
[
"
warning
"
]({
background
:
!
0
,
content
:
"
操作异常
"
}):(
this
.
$Spin
.
hide
(),
this
.
$Message
[
"
success
"
]({
background
:
!
0
,
content
:
"
操作成功
"
}))},
GetUserSelect
:
function
(){
var
t
=
this
;
o
[
"
s
"
]({
condition
:
""
}).
then
((
function
(
e
){
t
.
userArray
=
e
.
response
}))}},
beforeCreate
:
function
(){},
created
:
function
(){},
beforeMount
:
function
(){},
mounted
:
function
(){
var
t
=
new
Date
,
e
=
y
()(
t
).
format
(
"
YYYY-MM-
"
)
+
y
()(
t
).
startOf
(
"
month
"
).
format
(
"
DD
"
),
a
=
y
()(
t
).
format
(
"
YYYY-MM-
"
)
+
y
()(
t
).
endOf
(
"
month
"
).
format
(
"
DD
"
);
this
.
cityListAllObject
.
startTimeFlag
=
e
,
this
.
cityListAllObject
.
endtTimeFlag
=
a
,
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
=
e
,
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
=
a
,
this
.
dutyDateX
=
[
new
Date
(
e
),
new
Date
(
a
)],
this
.
addDutySearchSelectList
(),
this
.
getWatchList
(),
this
.
getSearchSelectList
(),
this
.
GetUserSelect
()},
beforeUpdate
:
function
(){},
updated
:
function
(){},
beforeDestroy
:
function
(){},
destroyed
:
function
(){},
activated
:
function
(){}},
_
=
b
,
w
=
(
a
(
"
6d00
"
),
a
(
"
2877
"
)),
v
=
Object
(
w
[
"
a
"
])(
_
,
i
,
n
,
!
1
,
null
,
"
eeae8b34
"
,
null
);
e
[
"
default
"
]
=
v
.
exports
}}]);
\ No newline at end of file
dist/js/chunk-cf7dc65e.499fa8bf.js
已删除
100644 → 0
浏览文件 @
0c399e72
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-cf7dc65e
"
],{
"
5df3
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
var
i
=
a
(
"
02f4
"
)(
!
0
);
a
(
"
01f9
"
)(
String
,
"
String
"
,(
function
(
t
){
this
.
_t
=
String
(
t
),
this
.
_i
=
0
}),(
function
(){
var
t
,
e
=
this
.
_t
,
a
=
this
.
_i
;
return
a
>=
e
.
length
?{
value
:
void
0
,
done
:
!
0
}:(
t
=
i
(
e
,
a
),
this
.
_i
+=
t
.
length
,{
value
:
t
,
done
:
!
1
})}))},
"
7eb3
"
:
function
(
t
,
e
,
a
){},
"
9ca0
"
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
.
r
(
e
);
var
i
=
function
(){
var
t
=
this
,
e
=
t
.
$createElement
,
a
=
t
.
_self
.
_c
||
e
;
return
a
(
"
div
"
,[
a
(
"
Card
"
,{
staticStyle
:{
width
:
"
100%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
title
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
h3
"
,{
staticStyle
:{
height
:
"
30px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
t
.
_v
(
"
值班安排
"
)]),
t
.
selectFlag
?
t
.
_e
():
a
(
"
div
"
,{
staticClass
:
"
selectTitleIcon
"
,
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
on
:{
click
:
function
(
e
){
t
.
selectFlag
=!
0
}}},[
a
(
"
span
"
,[
t
.
_v
(
"
展开
"
)]),
a
(
"
Icon
"
,{
staticClass
:
"
selectTitleIcon
"
,
attrs
:{
size
:
25
,
type
:
"
ios-arrow-dropright
"
,
color
:
"
#2d8cf0
"
}})],
1
),
t
.
selectFlag
?
a
(
"
div
"
,{
staticClass
:
"
selectTitleIcon
"
,
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
on
:{
click
:
function
(
e
){
t
.
selectFlag
=!
t
.
selectFlag
}}},[
a
(
"
span
"
,[
t
.
_v
(
"
收起
"
)]),
a
(
"
Icon
"
,{
staticClass
:
"
selectTitleIcon
"
,
attrs
:{
size
:
25
,
type
:
"
ios-arrow-dropdown
"
,
color
:
"
#2d8cf0
"
}})],
1
):
t
.
_e
()]),
a
(
"
transition
"
,{
attrs
:{
name
:
"
move-up
"
}},[
t
.
selectFlag
?
a
(
"
div
"
,[
a
(
"
Row
"
,{
staticStyle
:{
"
margin-top
"
:
"
10px
"
},
attrs
:{
justify
:
"
space-between
"
,
wrap
:
""
}},
t
.
_l
(
t
.
cityListAll
,(
function
(
e
,
i
){
return
a
(
"
Col
"
,{
key
:
i
,
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
flex-wrap
"
:
"
nowrap
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
span
"
,{
staticStyle
:{
"
margin-right
"
:
"
5px
"
}},[
t
.
_v
(
t
.
_s
(
e
[
1
]))]),
a
(
"
Select
"
,{
key
:
i
,
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
},
model
:{
value
:
t
.
cityListAllObject
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
cityListAllObject
,
e
[
2
],
a
)},
expression
:
"
cityListAllObject[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)])})),
1
),
a
(
"
Row
"
,{
staticStyle
:{
"
margin-top
"
:
"
10px
"
},
attrs
:{
justify
:
"
space-between
"
,
wrap
:
""
}},[
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
center
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
值班日期:
"
)]),
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
,
type
:
"
daterange
"
,
placeholder
:
"
请选择值班日期
"
},
on
:{
"
on-change
"
:
t
.
dutyDateSelect
},
model
:{
value
:
t
.
dutyDateX
,
callback
:
function
(
e
){
t
.
dutyDateX
=
e
},
expression
:
"
dutyDateX
"
}})],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
值班领导:
"
)]),
a
(
"
Select
"
,{
staticStyle
:{
width
:
"
10.5vw
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
cityListAllObject
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
cityListAllObject
,
"
is_lead
"
,
e
)},
expression
:
"
cityListAllObject.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
姓名/卡号:
"
)]),
a
(
"
Input
"
,{
staticStyle
:{
width
:
"
10.5vw
"
,
"
margin-right
"
:
"
8.5vw
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入姓名或卡号
"
},
model
:{
value
:
t
.
cityListAllObject
.
key_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
cityListAllObject
,
"
key_name
"
,
e
)},
expression
:
"
cityListAllObject.key_name
"
}})],
1
)]),
a
(
"
Col
"
,{
attrs
:{
span
:
4.5
}},[
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
icon
:
"
ios-search
"
},
on
:{
click
:
t
.
search
}},[
t
.
_v
(
"
查询数据
"
)])],
1
)],
1
)],
1
):
t
.
_e
()])]},
proxy
:
!
0
},{
key
:
"
extra
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-right
"
:
"
8px
"
},
attrs
:{
type
:
"
warning
"
},
on
:{
click
:
t
.
batchPush
}},[
t
.
_v
(
"
批量推送
"
)]),
a
(
"
ButtonGroup
"
,[
a
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-add-circle-outline
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleButtonClick
(
"
addDuty
"
)}}},[
t
.
_v
(
"
增添值班
"
)]),
a
(
"
Button
"
,{
attrs
:{
label
:
"
dutyDataOutput
"
,
icon
:
"
ios-log-out
"
},
on
:{
click
:
t
.
dutyDataImport
}},[
t
.
_v
(
"
数据导出
\n
"
)]),
a
(
"
Button
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
},
attrs
:{
icon
:
"
ios-cloud-upload-outline
"
,
label
:
"
dutyModelInput
"
},
on
:{
click
:
function
(
e
){
return
t
.
handleButtonClick
(
"
dutyModelInput
"
)}}},[
t
.
_v
(
"
\n
模板导入
\n
"
)]),
a
(
"
Button
"
,{
attrs
:{
label
:
"
dutyModelOutput
"
,
icon
:
"
ios-log-out
"
},
on
:{
click
:
function
(
e
){
t
.
exportModalShow
=!
0
}}},[
t
.
_v
(
"
模板导出
\n
"
)])],
1
)],
1
)]},
proxy
:
!
0
}])},[
a
(
"
Table
"
,{
attrs
:{
loading
:
t
.
tableLoading
,
columns
:
t
.
columns
,
data
:
t
.
data
,
height
:
t
.
tableHeightCal
},
on
:{
"
on-select
"
:
t
.
onSelect
,
"
on-select-cancel
"
:
t
.
onSelectCancel
,
"
on-select-all
"
:
t
.
onSelectAll
,
"
on-select-all-cancel
"
:
t
.
onSelectAllCancel
},
scopedSlots
:
t
.
_u
([{
key
:
"
watch_remark
"
,
fn
:
function
(
t
){
var
e
=
t
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
transfer
:
!
0
,
text
:
e
.
watch_remark
,
length
:
8
,
tooltip
:
""
}})]}},{
key
:
"
is_lead
"
,
fn
:
function
(
e
){
var
a
=
e
.
row
;
return
[
t
.
_v
(
"
\n
"
+
t
.
_s
([
"
值班教师
"
,
"
值班领导
"
][
a
.
is_lead
])
+
"
\n
"
)]}},{
key
:
"
action
"
,
fn
:
function
(
e
){
var
i
=
e
.
row
;
return
[
a
(
"
div
"
,{
staticStyle
:{
display
:
"
flex
"
,
"
justify-content
"
:
"
space-evenly
"
}},[
a
(
"
Button
"
,{
attrs
:{
type
:
"
warning
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
pushDuty
(
i
)}}},[
t
.
_v
(
"
推送
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
updateDuty
(
i
)}}},[
t
.
_v
(
"
修改
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
e
){
return
t
.
deleteDuty
(
i
)}}},[
t
.
_v
(
"
删除
"
)])],
1
)]}}])}),
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
70px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
Page
"
,{
key
:
t
.
pageKey
,
attrs
:{
"
show-total
"
:
""
,
"
show-sizer
"
:
""
,
"
show-elevator
"
:
""
,
total
:
t
.
total
,
"
page-size
"
:
t
.
page_size
,
"
page-size-opts
"
:[
100
,
200
,
500
,
1
e3
],
"
model-value
"
:
"
page_index
"
},
on
:{
"
on-change
"
:
t
.
currentPage
,
"
on-page-size-change
"
:
t
.
currentPageCount
}})],
1
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
closable
:
""
,
"
mask-closable
"
:
!
1
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
asyncCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
asyncOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
addDuty
,
callback
:
function
(
e
){
t
.
addDuty
=
e
},
expression
:
"
addDuty
"
}},[
a
(
"
Form
"
,{
ref
:
"
formValidate
"
,
attrs
:{
model
:
t
.
formValidate
,
rules
:
t
.
ruleValidate
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名
"
,
prop
:
"
username1
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
placeholder
:
"
请选择用户
"
},
on
:{
"
on-change
"
:
t
.
usernameChange
},
model
:{
value
:
t
.
formValidate
.
username1
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
username1
"
,
e
)},
expression
:
"
formValidate.username1
"
}},
t
.
_l
(
t
.
userArray
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
工号
"
,
prop
:
"
card_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入工号
"
},
model
:{
value
:
t
.
formValidate
.
card_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
card_name
"
,
e
)},
expression
:
"
formValidate.card_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
联系方式
"
,
prop
:
"
mobile
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
number
"
,
placeholder
:
"
请输入联系方式
"
},
model
:{
value
:
t
.
formValidate
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
mobile
"
,
e
)},
expression
:
"
formValidate.mobile
"
}})],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
],
filterable
:
!
0
},
model
:{
value
:
t
.
formValidate
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
formValidate
,
e
[
2
],
a
)},
expression
:
"
formValidate[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)})),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
formValidate
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
is_lead
"
,
e
)},
expression
:
"
formValidate.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
options
:
t
.
options1
,
placeholder
:
"
请选择值班日期
"
},
on
:{
"
on-change
"
:
t
.
dutyDate
},
model
:{
value
:
t
.
formValidate
.
watch_date
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
watch_date
"
,
e
)},
expression
:
"
formValidate.watch_date
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班班级
"
,
prop
:
"
watch_remark
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
textarea
"
,
autosize
:{
minRows
:
2
,
maxRows
:
5
},
placeholder
:
"
值班班级
"
},
model
:{
value
:
t
.
formValidate
.
watch_remark
,
callback
:
function
(
e
){
t
.
$set
(
t
.
formValidate
,
"
watch_remark
"
,
e
)},
expression
:
"
formValidate.watch_remark
"
}})],
1
)],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
"
修改值班安排
"
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
updateCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
updateOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
updateDutyModal
,
callback
:
function
(
e
){
t
.
updateDutyModal
=
e
},
expression
:
"
updateDutyModal
"
}},[
a
(
"
Form
"
,{
ref
:
"
updateDutyFrom
"
,
attrs
:{
model
:
t
.
updateDutyFrom
,
rules
:
t
.
updeteRuleValidate
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名
"
,
prop
:
"
username1
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
placeholder
:
"
请选择用户
"
},
on
:{
"
on-change
"
:
t
.
usernameChange1
},
model
:{
value
:
t
.
updateDutyFrom
.
username1
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
username1
"
,
e
)},
expression
:
"
updateDutyFrom.username1
"
}},
t
.
_l
(
t
.
userArray
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
工号
"
,
prop
:
"
card_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入工号
"
},
model
:{
value
:
t
.
updateDutyFrom
.
card_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
card_name
"
,
e
)},
expression
:
"
updateDutyFrom.card_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
联系方式
"
,
prop
:
"
mobile
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
number
"
,
placeholder
:
"
请输入联系方式
"
},
model
:{
value
:
t
.
updateDutyFrom
.
mobile
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
mobile
"
,
e
)},
expression
:
"
updateDutyFrom.mobile
"
}})],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
]},
model
:{
value
:
t
.
updateDutyFrom
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
updateDutyFrom
,
e
[
2
],
a
)},
expression
:
"
updateDutyFrom[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)})),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
updateDutyFrom
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
is_lead
"
,
e
)},
expression
:
"
updateDutyFrom.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
date
"
,
value
:
t
.
updateDutyFrom
.
watch_date
,
options
:
t
.
options1
},
on
:{
"
on-change
"
:
t
.
updateDutyDate
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班班级
"
,
prop
:
"
watch_remark
"
}},[
a
(
"
Input
"
,{
attrs
:{
type
:
"
textarea
"
,
autosize
:{
minRows
:
2
,
maxRows
:
5
},
placeholder
:
"
值班班级
"
},
model
:{
value
:
t
.
updateDutyFrom
.
watch_remark
,
callback
:
function
(
e
){
t
.
$set
(
t
.
updateDutyFrom
,
"
watch_remark
"
,
e
)},
expression
:
"
updateDutyFrom.watch_remark
"
}})],
1
)],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
dutyDataInputCancel
}},[
t
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
t
.
dutyDataInputOK
}},[
t
.
_v
(
"
确定
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
dutyDataInputModal
,
callback
:
function
(
e
){
t
.
dutyDataInputModal
=
e
},
expression
:
"
dutyDataInputModal
"
}},[
a
(
"
Form
"
,{
ref
:
"
dutyDataInput
"
,
attrs
:{
model
:
t
.
dutyDataInputObject
,
rules
:
t
.
rulesDutyDataInput
,
"
label-width
"
:
80
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
姓名或卡号
"
,
prop
:
"
key_name
"
}},[
a
(
"
Input
"
,{
attrs
:{
placeholder
:
"
请输入姓名或卡号
"
},
model
:{
value
:
t
.
dutyDataInputObject
.
key_name
,
callback
:
function
(
e
){
t
.
$set
(
t
.
dutyDataInputObject
,
"
key_name
"
,
e
)},
expression
:
"
dutyDataInputObject.key_name
"
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
值班日期
"
,
prop
:
"
watch_date
"
}},[
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
},
on
:{
"
on-change
"
:
t
.
dutyDataInputDateSelect
}})],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
是否为值班领导
"
,
prop
:
"
is_lead
"
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
"
是否为值班领导
"
},
model
:{
value
:
t
.
dutyDataInputObject
.
is_lead
,
callback
:
function
(
e
){
t
.
$set
(
t
.
dutyDataInputObject
,
"
is_lead
"
,
e
)},
expression
:
"
dutyDataInputObject.is_lead
"
}},
t
.
_l
(
t
.
dutyRole
,(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
value
}},[
t
.
_v
(
t
.
_s
(
e
.
label
))])})),
1
)],
1
),
t
.
_l
(
t
.
addDutySlectList
,(
function
(
e
,
i
){
return
a
(
"
FormItem
"
,{
key
:
i
,
attrs
:{
label
:
e
[
1
],
prop
:
e
[
2
],
"
label-width
"
:
80
}},[
a
(
"
Select
"
,{
attrs
:{
placeholder
:
e
[
1
]},
model
:{
value
:
t
.
dutyDataInputObject
[
e
[
2
]],
callback
:
function
(
a
){
t
.
$set
(
t
.
dutyDataInputObject
,
e
[
2
],
a
)},
expression
:
"
dutyDataInputObject[item[2]]
"
}},
t
.
_l
(
e
[
0
],(
function
(
e
,
i
){
return
a
(
"
Option
"
,{
key
:
i
,
attrs
:{
value
:
e
.
id
}},[
t
.
_v
(
t
.
_s
(
e
.
name
))])})),
1
)],
1
)}))],
2
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
title
:
t
.
publicModalTitle
,
width
:
"
40%
"
},
scopedSlots
:
t
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
text
"
},
on
:{
click
:
t
.
dutyModelImportCancel
}},[
t
.
_v
(
"
取消
"
)])]},
proxy
:
!
0
}]),
model
:{
value
:
t
.
dutyModelImportModal
,
callback
:
function
(
e
){
t
.
dutyModelImportModal
=
e
},
expression
:
"
dutyModelImportModal
"
}},[
a
(
"
Upload
"
,{
attrs
:{
"
before-upload
"
:
t
.
dutyModelUpload
,
"
on-error
"
:
t
.
dutyModelError
,
"
on-success
"
:
t
.
dutyModelSuccess
,
"
on-format-error
"
:
t
.
dutyModelFormatError
,
format
:[
"
xlsx
"
],
multiple
:
!
1
,
type
:
"
drag
"
,
action
:
""
}},[
a
(
"
div
"
,{
staticStyle
:{
padding
:
"
120px 0
"
}},[
a
(
"
Icon
"
,{
staticStyle
:{
color
:
"
#3399ff
"
},
attrs
:{
type
:
"
ios-cloud-upload
"
,
size
:
"
52
"
}}),
a
(
"
p
"
,[
t
.
_v
(
"
值班模板文件上传
"
)])],
1
)])],
1
),
a
(
"
Modal
"
,{
attrs
:{
"
mask-closable
"
:
!
1
,
title
:
"
模板导出
"
},
on
:{
"
on-ok
"
:
t
.
exportTemplate
},
model
:{
value
:
t
.
exportModalShow
,
callback
:
function
(
e
){
t
.
exportModalShow
=
e
},
expression
:
"
exportModalShow
"
}},[
a
(
"
span
"
,[
t
.
_v
(
"
模板年月:
"
)]),
a
(
"
DatePicker
"
,{
attrs
:{
type
:
"
month
"
,
format
:
"
yyyy-MM
"
,
placeholder
:
""
},
model
:{
value
:
t
.
tempYearMonth
,
callback
:
function
(
e
){
t
.
tempYearMonth
=
e
},
expression
:
"
tempYearMonth
"
}})],
1
)],
1
)},
n
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
456d
"
),
a
(
"
ac6a
"
),
a
(
"
5df3
"
),
a
(
"
28a5
"
),
a
(
"
20d6
"
),
a
(
"
96cf
"
),
a
(
"
3b8d
"
)),
l
=
a
(
"
bd86
"
),
c
=
(
a
(
"
a481
"
),
a
(
"
967e
"
)),
s
=
a
.
n
(
c
),
o
=
a
(
"
5e9b
"
),
u
=
a
(
"
2ef0
"
),
d
=
a
.
n
(
u
),
p
=
a
(
"
c276
"
),
m
=
(
a
(
"
a78e
"
),
a
(
"
5a0c
"
)),
y
=
a
.
n
(
m
),
h
=
a
(
"
806c
"
);
function
f
(
t
,
e
){
var
a
=
Object
.
keys
(
t
);
if
(
Object
.
getOwnPropertySymbols
){
var
i
=
Object
.
getOwnPropertySymbols
(
t
);
e
&&
(
i
=
i
.
filter
((
function
(
e
){
return
Object
.
getOwnPropertyDescriptor
(
t
,
e
).
enumerable
}))),
a
.
push
.
apply
(
a
,
i
)}
return
a
}
function
g
(
t
){
for
(
var
e
=
1
;
e
<
arguments
.
length
;
e
++
){
var
a
=
null
!=
arguments
[
e
]?
arguments
[
e
]:{};
e
%
2
?
f
(
Object
(
a
),
!
0
).
forEach
((
function
(
e
){
Object
(
l
[
"
a
"
])(
t
,
e
,
a
[
e
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
t
,
Object
.
getOwnPropertyDescriptors
(
a
)):
f
(
Object
(
a
)).
forEach
((
function
(
e
){
Object
.
defineProperty
(
t
,
e
,
Object
.
getOwnPropertyDescriptor
(
a
,
e
))}))}
return
t
}
var
b
=
{
components
:{},
data
:
function
(){
return
{
userArray
:[],
tableLoading
:
!
1
,
fileUploadFlag
:
!
1
,
loadingStatus
:
!
1
,
file
:
null
,
dutyModelImportModal
:
!
1
,
dutyDataInputObject
:{
startTime
:
""
,
endTime
:
""
,
is_lead
:
""
,
watch_date
:
""
,
campusid
:
""
,
watch_hour_id
:
""
,
watchtypeid
:
""
,
dept_id
:
""
},
publicModalTitle
:
""
,
dutyDataInputModal
:
!
1
,
DatePickerKey
:
1
,
updateDutyFrom
:{},
updateDutyModal
:
!
1
,
addDutySlectList
:[],
dutyRole
:[{
label
:
"
否
"
,
value
:
0
},{
label
:
"
是
"
,
value
:
1
}],
options1
:{
disabledDate
:
function
(
t
){
return
t
&&
t
.
valueOf
()
<
Date
.
now
()
-
864
e5
}},
formValidate
:{
username
:
""
,
watch_date
:
""
,
mobile
:
""
,
is_lead
:
""
,
card_name
:
""
,
watch_remark
:
""
,
campusid
:
""
,
watch_hour_id
:
""
,
watchtypeid
:
""
,
dept_id
:
""
},
rulesDutyDataInput
:{
key_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名或工号不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
change
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
updeteRuleValidate
:{
username1
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名不能为空!
"
,
trigger
:
"
change
"
}],
card_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
工号不能为空!!
"
,
trigger
:
"
blur
"
}],
mobile
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
联系方式不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
blur
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
ruleValidate
:{
username1
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
姓名不能为空!
"
,
trigger
:
"
change
"
}],
card_name
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
工号不能为空!!
"
,
trigger
:
"
change
"
}],
mobile
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
联系方式不能为空!
"
,
trigger
:
"
blur
"
}],
watch_date
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班日期不能为空!
"
,
trigger
:
"
change
"
}],
is_lead
:[{
type
:
"
number
"
,
required
:
!
0
,
message
:
"
值班权限不能为空!
"
,
trigger
:
"
change
"
}],
campusid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班类型不能为空!
"
,
trigger
:
"
change
"
}],
watchtypeid
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班校区不能为空!
"
,
trigger
:
"
change
"
}],
dept_id
:[{
type
:
"
string
"
,
required
:
!
0
,
message
:
"
值班部门不能为空!
"
,
trigger
:
"
change
"
}]},
addDutyLoading
:
!
0
,
addDuty
:
!
1
,
selectFlag
:
!
1
,
cityListAllObject
:{
dutyType
:
""
,
dutyHourTime
:
""
,
dutyCampus
:
""
,
dutyDepSelect
:
""
,
key_name
:
""
,
is_lead
:
3
,
dutyDate
:
""
,
startTime
:(
new
Date
).
toLocaleDateString
(
"
cn
"
,{
hour12
:
!
1
}).
replace
(
/
\/
/g
,
"
-
"
),
endTime
:(
new
Date
).
toLocaleDateString
(
"
cn
"
,{
hour12
:
!
1
}).
replace
(
/
\/
/g
,
"
-
"
),
startTimeSearch
:
""
,
endTimeSearch
:
""
,
startTimeFlag
:
""
,
endTimeFlag
:
""
},
cityListAlltSearchFlagObject
:{
dutyType
:
""
,
dutyHourTime
:
""
,
dutyCampus
:
""
,
dutyDepSelect
:
""
,
key_name
:
""
,
is_lead
:
3
,
dutyDate
:
""
,
startTimeSearch
:
""
,
endTimeSearch
:
""
},
buttonSize
:
""
,
searchSlecte
:[
"
值班类型
"
,
"
值班部门
"
,
"
值班校区
"
],
cityListAll
:[],
model1
:
""
,
model2
:
""
,
model3
:
""
,
model4
:
""
,
pageKey
:
1
,
total
:
0
,
page_index
:
1
,
page_size
:
100
,
is_lead
:
3
,
columns
:[{
type
:
"
selection
"
,
width
:
60
,
align
:
"
center
"
,
fixed
:
"
left
"
},{
title
:
"
姓名
"
,
key
:
"
username
"
,
minWidth
:
150
},{
title
:
"
工号
"
,
key
:
"
card_name
"
,
minWidth
:
150
},{
title
:
"
联系方式
"
,
key
:
"
mobile
"
,
minWidth
:
150
},{
title
:
"
值班部门
"
,
key
:
"
dept_name
"
,
minWidth
:
150
},{
title
:
"
值班类型
"
,
key
:
"
watchtypename
"
,
minWidth
:
150
},{
title
:
"
值班校区
"
,
key
:
"
campusname
"
,
minWidth
:
150
},{
title
:
"
值班权限
"
,
slot
:
"
is_lead
"
,
minWidth
:
150
},{
title
:
"
值班班级
"
,
slot
:
"
watch_remark
"
,
minWidth
:
150
},{
title
:
"
值班时间
"
,
key
:
"
watch_hour_time
"
,
minWidth
:
150
},{
title
:
"
值班日期
"
,
key
:
"
watch_date
"
,
minWidth
:
150
,
sortable
:
!
0
},{
title
:
"
操作
"
,
slot
:
"
action
"
,
minWidth
:
160
,
align
:
"
center
"
,
fixed
:
"
right
"
}],
data
:[],
pushListSlc
:[],
exportModalShow
:
!
1
,
tempYearMonth
:
""
,
dutyDateX
:[]}},
computed
:{
tableHeightCal
:
function
(){
return
document
.
documentElement
.
clientHeight
-
360
},
util
:
function
(){
return
p
[
"
a
"
]}},
watch
:{
"
cityListAllObject.dutyType
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyHourTime
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyCampus
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
"
cityListAllObject.dutyDepSelect
"
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)},
dutyDataInputObject
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}},
cityListAllObject
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}},
formValidate
:{
deep
:
!
0
,
handler
:
function
(
t
,
e
){
console
.
log
(
"
🚀🚀🚀,
"
,
t
)}}},
methods
:{
usernameChange1
:
function
(
t
){
var
e
=
this
;
o
[
"
N
"
]({
card
:
t
}).
then
((
function
(
t
){
e
.
updateDutyFrom
=
g
(
g
({},
e
.
updateDutyFrom
),
t
.
response
)}))},
usernameChange
:
function
(
t
){
var
e
=
this
;
o
[
"
N
"
]({
card
:
t
}).
then
((
function
(
t
){
e
.
formValidate
=
g
(
g
({},
e
.
formValidate
),
t
.
response
)}))},
dutyModelImportCancel
:
function
(){
this
.
dutyModelImportModal
=!
1
},
dutyModelImportOK
:
function
(){
this
.
file
=
null
,
this
.
loadingStatus
=!
1
},
dutyModelUpload
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
e
){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
a
=
new
FormData
,
a
.
append
(
"
file
"
,
e
),
t
.
next
=
4
,
o
[
"
T
"
](
a
);
case
4
:
if
(
i
=
t
.
sent
,
1
===
i
.
code
){
t
.
next
=
9
;
break
}
this
.
$Message
.
error
(
i
.
msg_detail
),
t
.
next
=
12
;
break
;
case
9
:
return
t
.
next
=
11
,
this
.
getWatchList
();
case
11
:
this
.
dutyModelImportModal
=!
1
;
case
12
:
return
t
.
abrupt
(
"
return
"
,
!
1
);
case
13
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(
e
){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyModelFormatError
:
function
(
t
,
e
){
this
.
$Message
.
error
(
"
文件格式错误!
"
)},
dutyModelSuccess
:
function
(
t
,
e
,
a
){
this
.
$Message
.
info
(
t
.
msg
)},
dutyModelError
:
function
(
t
,
e
,
a
){},
dutyDataInputCancel
:
function
(){
this
.
dutyDataInputModal
=!
1
},
dutyDataImport
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
e
,
a
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
=
{
start_time
:
""
!==
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
?
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
:
this
.
cityListAllObject
.
startTime
,
end_time
:
""
!==
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
?
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
:
this
.
cityListAllObject
.
endTime
,
is_lead
:
this
.
cityListAlltSearchFlagObject
.
is_lead
,
dep_id
:
this
.
cityListAlltSearchFlagObject
.
dutyDepSelect
,
key_name
:
this
.
cityListAlltSearchFlagObject
.
key_name
,
type_id
:
this
.
cityListAlltSearchFlagObject
.
dutyType
,
watchhour_time
:
this
.
cityListAlltSearchFlagObject
.
dutyHourTime
,
campus_id
:
this
.
cityListAlltSearchFlagObject
.
dutyCampus
},
t
.
next
=
3
,
o
[
"
P
"
](
e
);
case
3
:
a
=
t
.
sent
,
window
.
location
.
href
=
this
.
$ascURL
+
a
.
response
;
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyDataInputOK
:
function
(){
var
t
=
this
;
this
.
$refs
[
"
dutyDataInput
"
].
validate
(
function
(){
var
e
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(
a
){
var
i
,
n
;
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
if
(
!
a
){
e
.
next
=
6
;
break
}
return
i
=
{
dep_id
:
t
.
dutyDataInputObject
.
dep_id
,
key_name
:
t
.
dutyDataInputObject
.
key_name
,
start_time
:
t
.
dutyDataInputObject
.
startTime
,
end_time
:
t
.
dutyDataInputObject
.
endTime
,
type_id
:
t
.
dutyDataInputObject
.
watchtypeid
,
watchhour_time
:
t
.
dutyDataInputObject
.
watch_hour_id
,
is_lead
:
t
.
dutyDataInputObject
.
is_lead
},
e
.
next
=
4
,
o
[
"
P
"
](
i
);
case
4
:
n
=
e
.
sent
,
window
.
location
.
href
=
t
.
$ascURL
+
n
.
response
;
case
6
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)})));
return
function
(
t
){
return
e
.
apply
(
this
,
arguments
)}}())},
dutyDataInputDateSelect
:
function
(
t
){
this
.
dutyDataInputObject
.
watch_date
=
t
[
0
]
+
"
-
"
+
t
[
1
],
this
.
dutyDataInputObject
.
startTime
=
t
[
0
],
this
.
dutyDataInputObject
.
endTime
=
t
[
1
]},
updateDutyDate
:
function
(
t
){
this
.
updateDutyFrom
.
watch_date
=
t
},
updateCancel
:
function
(){
this
.
updateDutyModal
=!
1
},
updateOK
:
function
(){
var
t
=
this
;
this
.
$refs
[
"
updateDutyFrom
"
].
validate
((
function
(
e
){
e
&&
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
a
=
t
.
updateDutyFrom
,
e
.
next
=
3
,
o
[
"
V
"
](
a
);
case
3
:
return
i
=
e
.
sent
,
t
.
getWatchList
(),
t
.
updateDutyModal
=!
1
,
e
.
abrupt
(
"
return
"
,
i
);
case
7
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)}))))}))},
validateTime
:
function
(
t
){
var
e
=
new
Date
(
t
),
a
=
e
.
getFullYear
(),
i
=
e
.
getMonth
(),
n
=
e
.
getDate
();
return
""
.
concat
(
a
,
"
-
"
).
concat
(
i
,
"
-
"
).
concat
(
n
)},
onSelect
:
function
(
t
,
e
){
this
.
pushListSlc
.
push
(
e
.
watchid
)},
onSelectCancel
:
function
(
t
,
e
){
var
a
=
this
.
pushListSlc
.
findIndex
((
function
(
t
){
return
t
==
e
.
watchid
}));
this
.
pushListSlc
.
splice
(
a
,
1
)},
onSelectAll
:
function
(
t
){
this
.
pushListSlc
=
t
.
map
((
function
(
t
){
return
t
.
watchid
}))},
onSelectAllCancel
:
function
(
t
){
this
.
pushListSlc
=
[]},
batchPush
:
function
(){
var
t
=
this
;
0
!=
this
.
pushListSlc
.
length
?
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确认推送?
"
,
loading
:
!
0
,
onOk
:
function
(){
t
.
pushM
(
t
.
pushListSlc
).
then
((
function
(){
t
.
$Modal
.
remove
(),
t
.
getWatchList
()}))}}):
this
.
$Message
.
warning
({
content
:
"
请选择要推送的人员
"
,
background
:
!
0
})},
pushDuty
:
function
(
t
){
var
e
=
this
;
this
.
$Modal
.
confirm
({
title
:
"
提示
"
,
content
:
"
是否确认推送?
"
,
loading
:
!
0
,
onOk
:
function
(){
e
.
pushM
([
t
.
watchid
]).
then
((
function
(){
e
.
$Modal
.
remove
()}))}})},
pushM
:
function
(
t
){
var
e
=
this
;
return
new
Promise
((
function
(
a
){
o
[
"
W
"
](
t
).
then
((
function
(
t
){
1
==
t
.
code
?
e
.
$Message
.
success
({
content
:
t
.
msg
,
background
:
!
0
}):
e
.
$Message
.
error
({
content
:
t
.
msg_detail
,
background
:
!
0
})})).
finally
((
function
(){
a
()}))}))},
updateDuty
:
function
(
t
){
this
.
updateDutyFrom
=
d
.
a
.
cloneDeep
(
g
(
g
({},
t
),{},{
username1
:
t
.
card_name
})),
this
.
updateDutyModal
=!
0
},
deleteDuty
:
function
(
t
){
var
e
=
this
;
this
.
publicConfirm
((
function
(){
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
a
(){
var
i
,
n
;
return
s
.
a
.
wrap
((
function
(
a
){
while
(
1
)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
i
=
{
id
:
t
.
watchid
},
a
.
next
=
3
,
o
[
"
Q
"
](
i
);
case
3
:
return
n
=
a
.
sent
,
e
.
getWatchList
(),
a
.
abrupt
(
"
return
"
,
n
);
case
6
:
case
"
end
"
:
return
a
.
stop
()}}),
a
)}))))}))},
search
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
this
.
cityListAllObject
.
startTimeSearch
=
""
!==
this
.
cityListAllObject
.
startTimeFlag
?
this
.
cityListAllObject
.
startTimeFlag
:
this
.
cityListAllObject
.
startTime
,
this
.
cityListAllObject
.
endTimeSearch
=
""
!==
this
.
cityListAllObject
.
endtTimeFlag
?
this
.
cityListAllObject
.
endtTimeFlag
:
this
.
cityListAllObject
.
endTime
,
void
0
===
this
.
cityListAllObject
.
is_lead
?
this
.
cityListAllObject
.
is_lead
=
3
:
this
.
cityListAllObject
.
is_lead
,
this
.
cityListAlltSearchFlagObject
=
d
.
a
.
cloneDeep
(
this
.
cityListAllObject
),
this
.
pageKey
++
,
this
.
page_index
=
1
,
t
.
next
=
8
,
this
.
getWatchList
();
case
8
:
t
.
sent
;
case
9
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
dutyDateSelect
:
function
(
t
){
this
.
cityListAllObject
.
startTimeFlag
=
t
[
0
],
this
.
cityListAllObject
.
endtTimeFlag
=
t
[
1
]},
dutyDate
:
function
(
t
){
this
.
formValidate
.
watch_date
=
t
},
asyncOK
:
function
(){
var
t
=
this
,
e
=
d
.
a
.
cloneDeep
(
this
.
formValidate
);
this
.
$refs
[
"
formValidate
"
].
validate
((
function
(
a
){
a
&&
h
[
"
myEncapsulationFunction
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
a
(){
var
i
;
return
s
.
a
.
wrap
((
function
(
a
){
while
(
1
)
switch
(
a
.
prev
=
a
.
next
){
case
0
:
return
a
.
next
=
2
,
o
[
"
O
"
](
e
);
case
2
:
return
i
=
a
.
sent
,
a
.
next
=
5
,
t
.
getWatchList
();
case
5
:
return
t
.
addDuty
=!
1
,
a
.
abrupt
(
"
return
"
,
i
);
case
7
:
case
"
end
"
:
return
a
.
stop
()}}),
a
)}))))}))},
asyncCancel
:
function
(){
this
.
addDuty
=!
1
},
exportTemplate
:
function
(){
var
t
=
y
()(
this
.
tempYearMonth
).
format
(
"
YYYY-MM
"
).
split
(
"
-
"
);
o
[
"
U
"
](
t
[
0
],
t
[
1
]).
then
((
function
(
t
){
window
.
open
(
t
.
response
)}))},
handleButtonClick
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
e
){
var
a
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
t
.
t0
=
e
,
t
.
next
=
"
addDuty
"
===
t
.
t0
?
3
:
"
dutyModelOutput
"
===
t
.
t0
?
8
:
"
dutyDataOutput
"
===
t
.
t0
?
13
:
"
dutyModelInput
"
===
t
.
t0
?
16
:
18
;
break
;
case
3
:
return
this
.
publicModalTitle
=
"
增添值班数据
"
,
this
.
formValidate
.
watch_date
=
""
,
this
.
$refs
[
"
formValidate
"
].
resetFields
(),
this
.
addDuty
=!
0
,
t
.
abrupt
(
"
break
"
,
18
);
case
8
:
return
t
.
next
=
10
,
o
[
"
U
"
]();
case
10
:
return
a
=
t
.
sent
,
window
.
location
.
href
=
this
.
$ascURL
+
a
.
response
,
t
.
abrupt
(
"
break
"
,
18
);
case
13
:
return
this
.
publicModalTitle
=
"
值班数据导出
"
,
this
.
dutyDataInputModal
=!
0
,
t
.
abrupt
(
"
break
"
,
18
);
case
16
:
this
.
publicModalTitle
=
"
值班模板导入
"
,
this
.
dutyModelImportModal
=!
0
;
case
18
:
case
"
end
"
:
return
t
.
stop
()}}),
t
,
this
)})));
function
e
(
e
){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
addDutySearchSelectList
:
function
(){
var
t
=
this
;
Promise
.
all
([
this
.
getSearchSelectListPromiseAllAction
(
"
dept_name
"
,
"
值班部门
"
,
"
dept_id
"
,
o
[
"
u
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyType
"
,
"
值班类型
"
,
"
watchtypeid
"
,
o
[
"
A
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
campusname
"
,
"
值班校区
"
,
"
campusid
"
,
o
[
"
t
"
])]).
then
((
function
(
e
){
t
.
addDutySlectList
=
e
,
console
.
log
(
"
🚀🚀🚀,
"
,
e
),
t
.
DatePickerKey
++
}))},
getSearchSelectListPromiseAllAction
:
function
(
t
,
e
,
a
,
i
){
return
new
Promise
(
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(
n
,
r
){
var
l
,
c
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
t
.
next
=
2
,
i
();
case
2
:
l
=
t
.
sent
,
c
=
[
l
.
response
,
e
,
a
],
n
(
c
);
case
5
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})));
return
function
(
e
,
a
){
return
t
.
apply
(
this
,
arguments
)}}())},
getSearchSelectList
:
function
(){
var
t
=
this
;
Promise
.
all
([
this
.
getSearchSelectListPromiseAllAction
(
"
dutyType
"
,
"
值班类型:
"
,
"
dutyType
"
,
o
[
"
A
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyHourTime
"
,
"
值班时段:
"
,
"
dutyHourTime
"
,
o
[
"
w
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyCampus
"
,
"
值班校区:
"
,
"
dutyCampus
"
,
o
[
"
t
"
]),
this
.
getSearchSelectListPromiseAllAction
(
"
dutyDepSelect
"
,
"
值班部门:
"
,
"
dutyDepSelect
"
,
o
[
"
u
"
])]).
then
((
function
(
e
){
t
.
cityListAll
=
e
}))},
getWatchList
:
function
(){
var
t
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
e
=
this
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
h
[
"
getInitListRequest
"
](
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
t
(){
var
a
,
i
;
return
s
.
a
.
wrap
((
function
(
t
){
while
(
1
)
switch
(
t
.
prev
=
t
.
next
){
case
0
:
return
e
.
tableLoading
=!
0
,
e
.
pushListSlc
=
[],
a
=
{
page_index
:
e
.
page_index
,
page_size
:
e
.
page_size
,
start_time
:
""
!==
e
.
cityListAlltSearchFlagObject
.
startTimeSearch
?
e
.
cityListAlltSearchFlagObject
.
startTimeSearch
:
e
.
cityListAllObject
.
startTime
,
end_time
:
""
!==
e
.
cityListAlltSearchFlagObject
.
endTimeSearch
?
e
.
cityListAlltSearchFlagObject
.
endTimeSearch
:
e
.
cityListAllObject
.
endTime
,
is_lead
:
e
.
cityListAlltSearchFlagObject
.
is_lead
,
dep_id
:
e
.
cityListAlltSearchFlagObject
.
dutyDepSelect
,
key_name
:
e
.
cityListAlltSearchFlagObject
.
key_name
,
type_id
:
e
.
cityListAlltSearchFlagObject
.
dutyType
,
watchhour_time
:
e
.
cityListAlltSearchFlagObject
.
dutyHourTime
,
campus_id
:
e
.
cityListAlltSearchFlagObject
.
dutyCampus
},
t
.
next
=
5
,
o
[
"
x
"
](
a
);
case
5
:
i
=
t
.
sent
,
e
.
data
=
i
.
response
.
data
,
e
.
total
=
i
.
response
.
data_count
,
e
.
tableLoading
=!
1
;
case
9
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)}))));
case
1
:
case
"
end
"
:
return
t
.
stop
()}}),
t
)})));
function
e
(){
return
t
.
apply
(
this
,
arguments
)}
return
e
}(),
currentPage
:
function
(
t
){
this
.
page_index
=
t
,
this
.
getWatchList
()},
currentPageCount
:
function
(
t
){
this
.
page_size
=
t
,
this
.
getWatchList
()},
publicConfirm
:
function
(
t
){
this
.
$Modal
.
confirm
({
title
:
"
警告
"
,
content
:
"
<p>是否继续此操作?</p>
"
,
cancelText
:
"
取消
"
,
okText
:
"
确定
"
,
onOk
:
function
(){
var
e
=
Object
(
r
[
"
a
"
])(
s
.
a
.
mark
((
function
e
(){
return
s
.
a
.
wrap
((
function
(
e
){
while
(
1
)
switch
(
e
.
prev
=
e
.
next
){
case
0
:
return
e
.
next
=
2
,
t
();
case
2
:
case
"
end
"
:
return
e
.
stop
()}}),
e
)})));
function
a
(){
return
e
.
apply
(
this
,
arguments
)}
return
a
}()})},
publicMessage
:
function
(
t
){
1
!==
t
.
code
?
this
.
$Message
[
"
warning
"
]({
background
:
!
0
,
content
:
"
操作异常
"
}):(
this
.
$Spin
.
hide
(),
this
.
$Message
[
"
success
"
]({
background
:
!
0
,
content
:
"
操作成功
"
}))},
GetUserSelect
:
function
(){
var
t
=
this
;
o
[
"
s
"
]({
condition
:
""
}).
then
((
function
(
e
){
t
.
userArray
=
e
.
response
}))}},
beforeCreate
:
function
(){},
created
:
function
(){},
beforeMount
:
function
(){},
mounted
:
function
(){
var
t
=
new
Date
,
e
=
y
()(
t
).
format
(
"
YYYY-MM-
"
)
+
y
()(
t
).
startOf
(
"
month
"
).
format
(
"
DD
"
),
a
=
y
()(
t
).
format
(
"
YYYY-MM-
"
)
+
y
()(
t
).
endOf
(
"
month
"
).
format
(
"
DD
"
);
this
.
cityListAllObject
.
startTimeFlag
=
e
,
this
.
cityListAllObject
.
endtTimeFlag
=
a
,
this
.
cityListAlltSearchFlagObject
.
startTimeSearch
=
e
,
this
.
cityListAlltSearchFlagObject
.
endTimeSearch
=
a
,
this
.
dutyDateX
=
[
new
Date
(
e
),
new
Date
(
a
)],
this
.
addDutySearchSelectList
(),
this
.
getWatchList
(),
this
.
getSearchSelectList
(),
this
.
GetUserSelect
()},
beforeUpdate
:
function
(){},
updated
:
function
(){},
beforeDestroy
:
function
(){},
destroyed
:
function
(){},
activated
:
function
(){}},
_
=
b
,
w
=
(
a
(
"
e5f7
"
),
a
(
"
2877
"
)),
v
=
Object
(
w
[
"
a
"
])(
_
,
i
,
n
,
!
1
,
null
,
"
37465201
"
,
null
);
e
[
"
default
"
]
=
v
.
exports
},
e5f7
:
function
(
t
,
e
,
a
){
"
use strict
"
;
a
(
"
7eb3
"
)}}]);
\ No newline at end of file
src/layouts/basic-layout/menu-side/index.vue
浏览文件 @
1cbb902a
...
@@ -32,8 +32,16 @@
...
@@ -32,8 +32,16 @@
</
template
>
</
template
>
</Menu>
</Menu>
<div
style=
"position: absolute ;bottom: 10px;width: 100%;"
>
<div
style=
"position: absolute ;bottom: 10px;width: 100%;"
>
<div
style=
"display: flex;width:100%;height: 50px; justify-content: center;align-items: center;"
>
<div
class=
"footer"
>
<span
style=
"font-size: 12px;"
>
build v250214 1.0.1
</span>
<span
style=
"text-align: center;
color: #b1b1b1;
font-size: 12px;
width: 100%;
"
>
V1.0.1.250205-250305
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -113,3 +121,15 @@
...
@@ -113,3 +121,15 @@
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
.footer
{
text-align
:
center
;
color
:
#999
;
font-size
:
12px
;
padding
:
8px
0
;
width
:
100%
;
height
:
40px
;
position
:
absolute
;
bottom
:
0
;
}
</
style
>
src/pages/dutyArrangement/index.vue
浏览文件 @
1cbb902a
...
@@ -92,6 +92,7 @@
...
@@ -92,6 +92,7 @@
</div>
</div>
</
template
>
</
template
>
<Table
<Table
border
:loading=
"tableLoading"
:loading=
"tableLoading"
:columns=
"columns"
:columns=
"columns"
:data=
"data"
:data=
"data"
...
@@ -101,7 +102,8 @@
...
@@ -101,7 +102,8 @@
@
on-select-all=
"onSelectAll"
@
on-select-all=
"onSelectAll"
@
on-select-all-cancel=
"onSelectAllCancel"
>
@
on-select-all-cancel=
"onSelectAllCancel"
>
<
template
#watch_remark
="{
row
}"
>
<
template
#watch_remark
="{
row
}"
>
<Ellipsis
:transfer=
"true"
:text=
"row.watch_remark"
:length=
"8"
tooltip
/>
{{
row
.
watch_remark
}}
<!--
<Ellipsis
:transfer=
"true"
:text=
"row.watch_remark"
:length=
"8"
tooltip
/>
-->
</
template
>
</
template
>
<
template
#is_lead
="{
row
}"
>
<
template
#is_lead
="{
row
}"
>
{{
[
'
值班教师
'
,
'
值班领导
'
][
row
.
is_lead
]
}}
{{
[
'
值班教师
'
,
'
值班领导
'
][
row
.
is_lead
]
}}
...
@@ -495,8 +497,9 @@
...
@@ -495,8 +497,9 @@
},
},
{
{
title
:
"
值班班级
"
,
title
:
"
值班班级
"
,
resizable
:
true
,
slot
:
'
watch_remark
'
,
slot
:
'
watch_remark
'
,
minWidth
:
15
0
,
width
:
30
0
,
},
},
{
{
title
:
"
值班时间
"
,
title
:
"
值班时间
"
,
...
@@ -514,7 +517,7 @@
...
@@ -514,7 +517,7 @@
{
{
title
:
"
操作
"
,
title
:
"
操作
"
,
slot
:
'
action
'
,
slot
:
'
action
'
,
minWidth
:
1
6
0
,
minWidth
:
1
8
0
,
align
:
'
center
'
,
align
:
'
center
'
,
fixed
:
'
right
'
fixed
:
'
right
'
}
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录