Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
教
教师下企业考勤(前端)
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
教师下企业考勤(前端)
提交
322fba33
提交
322fba33
编写于
3月 09, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v20240308 保存
上级
08ce68bf
流水线
#24497
已通过 ,包含阶段
in 28 second
变更
4
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
index.html
dist/index.html
+1
-1
app.8f4ab740.js
dist/js/app.8f4ab740.js
+1
-1
chunk-583cfe78.67940fdd.js
dist/js/chunk-583cfe78.67940fdd.js
+1
-1
index.vue
src/pages/activityManagement/index.vue
+2
-2
未找到文件。
dist/index.html
浏览文件 @
322fba33
<!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/chunk-vendors.0122f5db.css
rel=
stylesheet
><link
href=
css/app.dd21080a.css
rel=
stylesheet
></head><body><noscript><strong>
请开启 JavaScript 功能来使用 教师下企业。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.b3dfef74.js
></script><script
src=
js/app.5d44d65e.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/chunk-vendors.0122f5db.css
rel=
stylesheet
><link
href=
css/app.dd21080a.css
rel=
stylesheet
></head><body><noscript><strong>
请开启 JavaScript 功能来使用 教师下企业。
</strong></noscript><div
id=
app
></div><script
src=
js/chunk-vendors.b3dfef74.js
></script><script
src=
js/app.8f4ab740.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
dist/js/app.
5d44d65e
.js
→
dist/js/app.
8f4ab740
.js
浏览文件 @
322fba33
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-583cfe78.
120c1808
.js
→
dist/js/chunk-583cfe78.
67940fdd
.js
浏览文件 @
322fba33
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-583cfe78
"
],{
"
0d80
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
e666
"
)},
"
356b
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Card
"
,{
ref
:
"
card
"
,
scopedSlots
:
e
.
_u
([{
key
:
"
title
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
40px
"
,
display
:
"
flex
"
,
"
justify-content
"
:
"
flex-end
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
DatePicker
"
,{
staticClass
:
"
ivu-mr-8
"
,
staticStyle
:{
width
:
"
15vw
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
选择提交时间范围筛选
"
,
clearable
:
""
},
on
:{
"
on-change
"
:
e
.
datePickerChange
},
model
:{
value
:
e
.
params
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
dateRange
"
,
t
)},
expression
:
"
params.dateRange
"
}}),
a
(
"
Input
"
,{
staticClass
:
"
ivu-mr-8
"
,
staticStyle
:{
width
:
"
10vw
"
},
attrs
:{
placeholder
:
"
输入姓名/卡号搜索
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
suffix
"
,
fn
:
function
(){
return
[
a
(
"
Icon
"
,{
staticStyle
:{
cursor
:
"
pointer
"
},
attrs
:{
type
:
"
ios-search
"
},
on
:{
click
:
e
.
search
}})]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
params
.
card_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
card_name
"
,
t
)},
expression
:
"
params.card_name
"
}}),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
attrs
:{
icon
:
"
md-sync
"
},
on
:{
click
:
e
.
reset
}}),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
attrs
:{
loading
:
e
.
btl1
},
on
:{
click
:
function
(
t
){
return
e
.
ImportFile
(
"
list
"
)}}},[
e
.
_v
(
"
\n
导出表格
\n
"
)]),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
on
:{
click
:
function
(
t
){
return
e
.
ImportFile
(
"
file
"
)}}},[
e
.
_v
(
"
\n
导出附件
\n
"
)])],
1
)]},
proxy
:
!
0
}])},[
a
(
"
CTable
"
,{
key
:
e
.
tk
,
ref
:
"
CTable
"
,
attrs
:{
"
span-index-array
"
:
e
.
spanMethodObject
.
indexArray
,
"
span-method-flag
"
:
e
.
spanMethodObject
.
show
,
"
span-method
"
:
e
.
handleSpan
,
tableColumns
:
e
.
tableColumns
.
filter
((
function
(
e
){
return
e
.
show
})),
tableData
:
e
.
tableData
,
approvalStateIndexArray
:
e
.
approvalStateIndexArray
,
tableLoading
:
e
.
tableLoading
,
tableSize
:
e
.
tableSize
,
dataCount
:
e
.
dataCount
,
pageIndex
:
e
.
params
.
page_index
,
pageSize
:
e
.
params
.
page_size
},
on
:{
switchChange
:
e
.
switchChange
,
rowEdit
:
e
.
rowEdit
,
rowDelete
:
e
.
rowDelete
,
onPageChange
:
e
.
onPageChange
,
handleSpan
:
e
.
handleSpan
,
onPageSizeChange
:
e
.
onPageSizeChange
},
scopedSlots
:
e
.
_u
([{
key
:
"
file
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
e
.
_l
(
n
.
file
,(
function
(
t
,
i
){
return
a
(
"
div
"
,{
key
:
i
,
staticStyle
:{
"
min-width
"
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
el-image
"
,{
staticStyle
:{
width
:
"
60px
"
,
height
:
"
60px
"
},
attrs
:{
src
:
t
,
"
preview-src-list
"
:
n
.
file
}},[
e
.
_v
(
"
查看
"
)])],
1
)}))}},{
key
:
"
img_upload
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
text
:
t
.
img_upload
,
height
:
50
,
tooltip
:
""
,
transfer
:
!
0
}})]}},{
key
:
"
remark
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
text
:
t
.
remark
,
height
:
60
,
tooltip
:
""
,
transfer
:
!
0
}})]}}])}),
a
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
e
.
formItem
,
formRule
:
e
.
formRule
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}}),
a
(
"
Modal
"
,{
attrs
:{
title
:
"
附件导出
"
,
"
min-width
"
:
"
25
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
width
:
"
8vw
"
},
attrs
:{
loading
:
e
.
btl
,
type
:
"
primary
"
},
on
:{
click
:
e
.
fileImport
}},[
e
.
_v
(
"
导出
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
fileEditModalshow
,
callback
:
function
(
t
){
e
.
fileEditModalshow
=
t
},
expression
:
"
fileEditModalshow
"
}},[
a
(
"
Form
"
,{
ref
:
"
formValidate
"
,
attrs
:{
model
:
e
.
fileDefaultFormData
,
rules
:
e
.
fileFormRule
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件字段:
"
,
prop
:
"
item_id
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
clearable
:
""
,
placeholder
:
"
请选择附件字段
"
},
model
:{
value
:
e
.
fileDefaultFormData
.
item_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
item_id
"
,
t
)},
expression
:
"
fileDefaultFormData.item_id
"
}},
e
.
_l
(
e
.
teamIdArray
,(
function
(
t
,
n
){
return
a
(
"
Option
"
,{
key
:
n
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件命名方式:
"
,
prop
:
"
rule_type
"
}},[
a
(
"
RadioGroup
"
,{
model
:{
value
:
e
.
fileDefaultFormData
.
rule_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
rule_type
"
,
t
)},
expression
:
"
fileDefaultFormData.rule_type
"
}},[
a
(
"
Radio
"
,{
attrs
:{
border
:
""
,
label
:
0
}},[
e
.
_v
(
"
保持文件原始名称
"
)]),
a
(
"
Radio
"
,{
attrs
:{
border
:
""
,
label
:
1
}},[
e
.
_v
(
"
按照表单中字段命名
"
)])],
1
)],
1
),
1
==
e
.
fileDefaultFormData
.
rule_type
?
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件命名规则(按选择顺序):
"
,
prop
:
"
file_name_rule
"
}},[
a
(
"
Select
"
,{
attrs
:{
multiple
:
""
,
filterable
:
""
,
clearable
:
""
,
placeholder
:
"
请选择附件命名规则
"
},
model
:{
value
:
e
.
fileDefaultFormData
.
file_name_rule
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
file_name_rule
"
,
t
)},
expression
:
"
fileDefaultFormData.file_name_rule
"
}},
e
.
_l
(
e
.
fileNameRuleArray
,(
function
(
t
,
n
){
return
a
(
"
Option
"
,{
key
:
n
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
)],
1
):
e
.
_e
()],
1
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
"
min-width
"
:
"
12
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
header
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
"
font-size
"
:
"
18px
"
,
color
:
"
#19be6b
"
,
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Icon
"
,{
attrs
:{
type
:
"
md-checkmark-circle-outline
"
}}),
e
.
_v
(
"
附件解压码
\n
"
)],
1
)]},
proxy
:
!
0
},{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
width
:
"
150px
"
},
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
copy
(
e
.
passwrodValue
)}}},[
e
.
_v
(
"
复制解压码
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
passwordModal
,
callback
:
function
(
t
){
e
.
passwordModal
=
t
},
expression
:
"
passwordModal
"
}},[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
h1
"
,{
staticStyle
:{
color
:
"
#515A6E
"
},
attrs
:{
id
:
"
w
"
}},[
e
.
_v
(
e
.
_s
(
e
.
passwrodValue
))])])])],
1
)],
1
)},
i
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
456d
"
),
a
(
"
c5f6
"
),
a
(
"
ac6a
"
),
a
(
"
ade3
"
)),
o
=
(
a
(
"
7f7f
"
),
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Table
"
,{
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
tableColumns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
e
.
tableSize
,
"
span-method
"
:
e
.
spanMethod
,
border
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"
generalSwitch
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
,
i
=
t
.
index
;
return
[
a
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
n
,
i
)}},
model
:{
value
:
n
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
n
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
a
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
a
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},{
key
:
"
actionAndDetails
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
a
"
,{
on
:{
click
:
function
(
t
){
return
e
.
details
(
n
)}}},[
e
.
_v
(
"
详情
"
)]),
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},
e
.
_l
(
e
.
$scopedSlots
,(
function
(
t
,
a
){
return
{
key
:
a
,
fn
:
function
(
t
){
return
[
e
.
_t
(
a
,
null
,
null
,
t
)]}}}))],
null
,
!
0
)}),
a
(
"
div
"
,{
staticClass
:
"
ivu-text-center ivu-mt
"
},[
a
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
pageIndex
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:
e
.
pageSizeOpts
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
},
on
:{
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)}),
l
=
[],
s
=
{
props
:{
spanIndexArray
:{
type
:
Array
,
default
:
!
1
},
spanMethodFlag
:{
type
:
Boolean
,
default
:
!
1
},
tableColumns
:{
type
:
Array
,
require
:
!
0
},
tableData
:{
type
:
Array
,
require
:
!
0
},
tableLoading
:{
type
:
Boolean
,
default
:
!
1
},
tableSize
:{
type
:
String
,
default
:
"
default
"
},
dataCount
:{
type
:
Number
,
require
:
!
0
},
pageIndex
:{
type
:
Number
,
require
:
!
0
},
pageSize
:{
type
:
Number
,
require
:
!
0
},
pageSizeOpts
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
50
,
100
]}}},
data
:
function
(){
return
{}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
switchChange
:
function
(
e
,
t
,
a
){
this
.
$emit
(
"
switchChange
"
,
e
,
t
,
a
)},
details
:
function
(
e
){
this
.
$emit
(
"
rowDetails
"
,
e
)},
edit
:
function
(
e
){
this
.
$emit
(
"
rowEdit
"
,
e
)},
del
:
function
(
e
){
this
.
$emit
(
"
rowDelete
"
,
e
)},
handleChangePage
:
function
(
e
){
this
.
$emit
(
"
onPageChange
"
,
e
)},
handleChangePageSize
:
function
(
e
){
this
.
$emit
(
"
onPageSizeChange
"
,
e
)},
spanMethod
:
function
(
e
){
var
t
=
e
.
row
,
a
=
(
e
.
column
,
e
.
rowIndex
),
n
=
e
.
columnIndex
;
if
(
this
.
spanMethodFlag
){
if
(
a
===
t
.
startIndex
&&
n
<
6
)
return
[
t
.
endIndex
+
1
-
t
.
startIndex
,
1
];
if
(
a
>
t
.
startIndex
&&
a
<=
t
.
endIndex
&&
n
<
6
)
return
[
0
,
0
];
if
(
a
===
t
.
startIndex7Columns
&&
6
===
n
)
return
[
t
.
endIndex7Columns
+
1
-
t
.
startIndex7Columns
,
1
];
if
(
a
>=
t
.
startIndex7Columns
&&
a
<=
t
.
endIndex7Columns
&&
6
===
n
)
return
[
0
,
0
]}}}},
c
=
s
,
d
=
a
(
"
2877
"
),
u
=
Object
(
d
[
"
a
"
])(
c
,
o
,
l
,
!
1
,
null
,
"
7c63ebaf
"
,
null
),
f
=
u
.
exports
,
m
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Modal
"
,{
attrs
:{
title
:
e
.
modalTitle
,
width
:
e
.
width
,
"
mask-closable
"
:
e
.
maskClosable
,
transfer
:
!
1
,
"
before-close
"
:
e
.
beforeClose
},
scopedSlots
:
e
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
e
.
isDetails
?
a
(
"
div
"
,[
a
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
关闭
"
)])],
1
):
a
(
"
div
"
,[
a
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"
提交
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
show
,
callback
:
function
(
t
){
e
.
show
=
t
},
expression
:
"
show
"
}},[[
e
.
loading
?
a
(
"
Spin
"
,{
attrs
:{
size
:
"
large
"
,
fix
:
""
}}):
e
.
_e
(),
a
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
"
label-colon
"
:
""
,
model
:
e
.
formData
,
rules
:
e
.
formRule
,
"
label-width
"
:
e
.
formLabelWidth
}},[
e
.
isDetails
?
e
.
_e
():
a
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
id
}},[
"
input
"
==
t
.
type
?
a
(
"
Input
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}}):
e
.
_e
(),
"
textarea
"
==
t
.
type
?
a
(
"
Input
"
,{
attrs
:{
clearable
:
""
,
type
:
"
textarea
"
,
placeholder
:
"
请输入
"
+
t
.
name
,
rows
:
t
.
rows
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}}):
"
select
"
==
t
.
type
?
a
(
"
Select
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
,
filterable
:
""
,
disabled
:
t
.
disabled
},
on
:{
"
on-query-change
"
:
e
.
onQueryChange
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
multipleselect
"
==
t
.
type
?
a
(
"
Select
"
,{
attrs
:{
clearable
:
""
,
multiple
:
""
,
filterable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
switch
"
==
t
.
type
?
a
(
"
i-switch
"
,{
attrs
:{
"
true-value
"
:
1
,
"
false-value
"
:
0
},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
"
timerange
"
==
t
.
type
?
a
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
format
:
"
HH:mm
"
,
type
:
"
timerange
"
,
placement
:
"
bottom-end
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
"
daterange
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
scopedSlots
:
e
.
_u
([{
key
:
"
prefix
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
,
n
){
return
a
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
a
(
"
Upload
"
,{
attrs
:{
multiple
:
""
,
action
:
"
#
"
,
"
before-upload
"
:
function
(
a
){
return
e
.
uploadFile
(
a
,
t
.
id
,
n
)}}},[
a
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-cloud-upload-outline
"
,
loading
:
e
.
uploadBtLoading
[
n
]}},[
e
.
_v
(
"
选择文件
"
)])],
1
),
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
n
){
return
a
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
a
(
"
a
"
,{
attrs
:{
target
:
"
_blank
"
,
href
:
n
.
path
}},[
e
.
_v
(
e
.
_s
(
n
.
file_name
))]),
a
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
a
){
return
e
.
fileDel
(
n
,
t
.
id
)}}})],
1
)}))],
2
)],
1
)}))],
2
),
e
.
isDetails
?
a
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
"
input
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
select
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
optList
[
t
.
optList
.
findIndex
((
function
(
a
){
return
a
.
value
==
e
.
formData
[
t
.
id
]}))].
label
)
+
"
\n
"
)]):
e
.
_e
(),
"
switch
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
1
==
e
.
formData
[
t
.
id
]?
"
是
"
:
"
否
"
))]):
e
.
_e
()])],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
n
){
return
a
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
a
(
"
a
"
,{
attrs
:{
target
:
"
_blank
"
,
href
:
n
.
path
}},[
e
.
_v
(
e
.
_s
(
n
.
file_name
))]),
a
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
a
){
return
e
.
fileDel
(
n
,
t
.
id
)}}})],
1
)})),
0
)],
1
)}))],
2
):
e
.
_e
()],
1
)]],
2
)],
1
)},
p
=
[],
h
=
(
a
(
"
28a5
"
),
a
(
"
20d6
"
),
a
(
"
2ef0
"
)),
b
=
{
props
:{
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
(
e
){
this
.
show
=
e
}},
data
:
function
(){
return
{
show
:
this
.
value
,
modalTitle
:
"
编辑
"
,
formData
:{},
grid
:{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
uploadBtLoading
:[],
isDetails
:
!
1
,
peopleKey
:
""
}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
onQueryChange
:
function
(
e
){
this
.
peopleKey
=
e
,
this
.
$emit
(
"
getPeopleList
"
,
e
)},
modalInit
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"
add
"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
""
;
if
(
this
.
isDetails
=!
1
,
this
.
uploadBtLoading
=
[],
"
add
"
==
t
)
this
.
modalTitle
=
n
||
"
新增
"
,
this
.
formData
=
a
?
Object
(
h
[
"
cloneDeep
"
])(
a
):{};
else
if
(
"
edit
"
==
t
){
this
.
modalTitle
=
"
编辑
"
,
this
.
formData
=
Object
(
h
[
"
cloneDeep
"
])(
a
);
var
i
=
this
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
i
){
var
r
=
this
.
formItem
[
i
].
id
;
this
.
formData
[
r
]
=
this
.
formData
[
r
].
split
(
"
-
"
)}}
this
.
formItem
.
forEach
((
function
(
t
){
"
file
"
==
t
.
type
&&
e
.
uploadBtLoading
.
push
(
!
1
)}))},
modalDetailsInit
:
function
(
e
,
t
){
this
.
isDetails
=!
0
,
this
.
modalTitle
=
""
.
concat
(
e
[
t
],
"
- 详情
"
),
this
.
formData
=
Object
(
h
[
"
cloneDeep
"
])(
e
)},
uploadFile
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
uploadBtLoading
[
a
]
=!
0
,
this
.
$forceUpdate
();
var
i
=
new
FormData
;
return
i
.
append
(
"
file
"
,
e
),
this
.
asc
.
postApiCommonFileUpload
(
i
).
then
((
function
(
e
){
1
==
e
.
code
?(
n
.
formData
[
t
].
push
(
e
.
response
),
n
.
$Message
.
success
(
e
.
msg
)):
n
.
$Message
.
error
(
e
.
msg_detail
)})).
finally
((
function
(){
n
.
uploadBtLoading
[
a
]
=!
1
,
n
.
$forceUpdate
()})),
!
1
},
fileDel
:
function
(
e
,
t
){
var
a
=
this
.
formData
[
t
].
findIndex
((
function
(
t
){
return
t
.
id
==
e
.
id
}));
this
.
formData
[
t
].
splice
(
a
,
1
)},
beforeClose
:
function
(){
this
.
$emit
(
"
onClose
"
)},
onCancel
:
function
(){
this
.
$emit
(
"
onCancel
"
),
this
.
$emit
(
"
onClose
"
)},
onSubmit
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
h
[
"
cloneDeep
"
])(
e
.
formData
),
n
=
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
n
){
var
i
=
e
.
formItem
[
n
].
id
;
a
[
i
]
=
a
[
i
].
join
(
"
-
"
)}
e
.
$emit
(
"
onSubmit
"
,
a
)}
else
e
.
$Message
.
warning
(
"
请检查输入项
"
)}))},
resetForm
:
function
(){
this
.
$refs
.
form
.
resetFields
()}}},
g
=
b
,
y
=
(
a
(
"
0d80
"
),
Object
(
d
[
"
a
"
])(
g
,
m
,
p
,
!
1
,
null
,
"
41efa6cc
"
,
null
)),
_
=
y
.
exports
,
v
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Form
"
,{
staticClass
:
"
searchDiv
"
,
attrs
:{
model
:
e
.
searchCondObj
,
"
label-width
"
:
e
.
labelWidth
,
"
label-colon
"
:
e
.
labelColon
}},[
a
(
"
Row
"
,[
e
.
_l
(
e
.
searchCondList
.
filter
((
function
(
e
){
return
e
.
show
})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
}},[
"
input
"
==
t
.
type
?
a
(
"
Input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}}):
"
select
"
==
t
.
type
?
a
(
"
Select
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
daterange
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
daterangeChange
(
a
,
n
,
t
.
id
)}},
scopedSlots
:
e
.
_u
([{
key
:
"
prefix
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
"
datetime
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
attrs
:{
type
:
"
datetime
"
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
datetimeChange
(
a
,
n
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
a
(
"
Col
"
,
e
.
_b
({
staticClass
:
"
buttonCol
"
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
searchBt
}},[
e
.
_v
(
"
查询
"
)]),
a
(
"
Button
"
,{
on
:{
click
:
e
.
resetBt
}},[
e
.
_v
(
"
重置
"
)])],
1
)],
2
)],
1
)],
1
)},
w
=
[],
k
=
{
props
:{
searchCondList
:{
type
:
Array
,
require
:
!
0
},
labelWidth
:{
type
:
Number
,
default
:
100
},
labelColon
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
grid
:{
sm
:
12
,
md
:
12
,
lg
:
8
,
xl
:
6
},
searchCondObj
:{}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
searchBt
:
function
(){
this
.
$emit
(
"
onSubmit
"
,
this
.
searchCondObj
)},
resetBt
:
function
(){
this
.
searchCondObj
=
{},
this
.
$emit
(
"
onReset
"
)},
datetimeChange
:
function
(
e
,
t
,
a
){
this
.
searchCondObj
[
a
]
=
e
},
daterangeChange
:
function
(
e
,
t
,
a
){
this
.
searchCondObj
[
a
]
=
e
}}},
D
=
k
,
C
=
(
a
(
"
3cee
"
),
Object
(
d
[
"
a
"
])(
D
,
v
,
w
,
!
1
,
null
,
"
7648d8d8
"
,
null
)),
x
=
C
.
exports
,
I
=
a
(
"
5a0c
"
),
S
=
a
.
n
(
I
),
O
=
a
(
"
b6bd
"
);
function
E
(
e
){
return
Object
(
O
[
"
a
"
])({
url
:
"
/api/Enterpriseclock/GetEnterpriseclockFileExport?user_id=
"
.
concat
(
e
.
user_id
,
"
&form_id=
"
).
concat
(
e
.
form_id
),
method
:
"
post
"
,
data
:
e
})}
var
F
=
a
(
"
a78e
"
),
M
=
a
.
n
(
F
);
function
$
(
e
,
t
){
var
a
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
n
=
n
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
a
.
push
.
apply
(
a
,
n
)}
return
a
}
function
j
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
$
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
$
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
A
=
{
name
:
"
list
"
,
components
:{
CTable
:
f
,
CEditModal
:
_
,
SearchCondForm
:
x
},
data
:
function
(){
return
{
btl1
:
!
1
,
btl
:
!
1
,
passwrodValue
:
""
,
passwordModal
:
!
1
,
tk
:
1
,
title
:
""
,
spanMethodObject
:{
show
:
!
1
,
indexArray
:[]},
searchCondList
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
show
:
!
0
,
optList
:[]},{
id
:
"
dateRange
"
,
name
:
"
提交时间范围
"
,
type
:
"
daterange
"
,
show
:
!
0
,
optList
:[]}],
params
:{
dateRange
:[],
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
page_index
:
1
,
page_size
:
10
},
tableColumns
:[{
key
:
"
name
"
,
title
:
"
姓名
"
,
align
:
"
center
"
,
width
:
80
,
show
:
!
0
},{
key
:
"
card
"
,
title
:
"
工号
"
,
align
:
"
center
"
,
width
:
100
,
show
:
!
0
},{
key
:
"
day
"
,
title
:
"
天数
"
,
align
:
"
center
"
,
minWidth
:
120
,
show
:
!
0
},{
key
:
"
dept_name
"
,
title
:
"
行政部门
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
ssbm
"
,
title
:
"
所属教学部
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
phone
"
,
title
:
"
联系电话
"
,
align
:
"
center
"
,
minWidth
:
130
,
show
:
!
0
},{
key
:
"
type
"
,
title
:
"
申请类型
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
location
"
,
title
:
"
定位
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
date
"
,
title
:
"
日期
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
scope
"
,
title
:
"
申请打卡范围
"
,
align
:
"
center
"
,
minWidth
:
240
,
show
:
!
0
},{
slot
:
"
file
"
,
title
:
"
附件
"
,
align
:
"
center
"
,
minWidth
:
240
,
show
:
!
0
},{
key
:
"
createtime
"
,
title
:
"
实际打卡时间
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
week
"
,
title
:
"
星期
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
slot
:
"
remark
"
,
title
:
"
备注
"
,
align
:
"
center
"
,
minWidth
:
120
,
show
:
!
0
}],
tableLoading
:
!
1
,
approvalStateIndexArray
:[],
tableData
:[],
tableSize
:
"
default
"
,
tableFullscreen
:
!
1
,
dataCount
:
0
,
collapse
:
!
1
,
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
formItem
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
file_name
"
,
name
:
"
附件字段
"
,
type
:
"
multipleselect
"
,
show
:
!
0
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[{
value
:
"
name
"
,
label
:
"
姓名
"
},{
value
:
"
card
"
,
label
:
"
工号
"
},{
value
:
"
day
"
,
label
:
"
天数
"
},{
value
:
"
dept_name
"
,
label
:
"
行政部门
"
},{
value
:
"
ssbm
"
,
label
:
"
所属教学部
"
},{
value
:
"
phone
"
,
label
:
"
联系电话
"
},{
value
:
"
type
"
,
label
:
"
申请类型
"
},{
value
:
"
location
"
,
label
:
"
定位
"
},{
value
:
"
date
"
,
label
:
"
日期
"
},{
value
:
"
scope
"
,
label
:
"
申请打卡范围
"
},{
value
:
"
file
"
,
label
:
"
附件
"
},{
value
:
"
createtime
"
,
label
:
"
实际打卡时间
"
},{
value
:
"
week
"
,
label
:
"
星期
"
}]},{
id
:
"
daterange
"
,
name
:
"
时间范围
"
,
type
:
"
daterange
"
,
disabled
:
!
1
,
require
:
!
0
,
optList
:[]}],
formRule
:{
daterange
:[{
required
:
!
0
,
type
:
"
array
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}]},
defaultFormData
:{
daterange
:[],
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
file_name
:[]},
fileEditModalshow
:
!
1
,
fileEditModalLoading
:
!
1
,
fileFormItem
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
file_name
"
,
name
:
"
附件字段
"
,
type
:
"
multipleselect
"
,
show
:
!
0
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[{
value
:
"
name
"
,
label
:
"
姓名
"
},{
value
:
"
card
"
,
label
:
"
工号
"
},{
value
:
"
day
"
,
label
:
"
天数
"
},{
value
:
"
dept_name
"
,
label
:
"
行政部门
"
},{
value
:
"
ssbm
"
,
label
:
"
所属教学部
"
},{
value
:
"
phone
"
,
label
:
"
联系电话
"
},{
value
:
"
type
"
,
label
:
"
申请类型
"
},{
value
:
"
location
"
,
label
:
"
定位
"
},{
value
:
"
date
"
,
label
:
"
日期
"
},{
value
:
"
scope
"
,
label
:
"
申请打卡范围
"
},{
value
:
"
file
"
,
label
:
"
附件
"
},{
value
:
"
createtime
"
,
label
:
"
实际打卡时间
"
},{
value
:
"
week
"
,
label
:
"
星期
"
}]},{
id
:
"
daterange
"
,
name
:
"
时间范围
"
,
type
:
"
daterange
"
,
disabled
:
!
1
,
require
:
!
0
,
optList
:[]}],
fileFormRule
:{
item_id
:[{
required
:
!
0
,
type
:
"
string
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}],
rule_type
:[{
required
:
!
0
,
type
:
"
number
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}],
file_name_rule
:[{
required
:
!
0
,
type
:
"
array
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}]},
fileDefaultFormData
:{
form_id
:
""
,
user_id
:
""
,
role
:
"
Admin
"
,
audit_status
:
0
,
key_word
:
""
,
submit_time_start
:
""
,
submit_time_end
:
""
,
show_title
:[],
sort
:
""
,
rule_type
:
0
,
item_id
:
""
,
file_name_rule
:[]},
teamIdArray
:[],
fileNameRuleArray
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getData
(),
this
.
GetFromId
(),
this
.
GetFormSelect
()},
methods
:{
copy
:
function
(){
var
e
=
this
;
navigator
.
clipboard
.
writeText
(
this
.
passwrodValue
).
then
((
function
(){
e
.
$Message
.
success
(
"
复制成功
"
)}))},
GetFromId
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetFromId
().
then
((
function
(
t
){
e
.
fileDefaultFormData
.
form_id
=
t
.
response
}))},
GetFormSelect
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetFormSelect
().
then
((
function
(
t
){
e
.
teamIdArray
=
t
.
response
.
attr
.
map
((
function
(
e
){
return
{
label
:
e
.
name
,
value
:
e
.
id
}})),
e
.
fileNameRuleArray
=
t
.
response
.
selectlist
.
map
((
function
(
e
){
return
{
label
:
e
.
name
,
value
:
e
.
id
}}))}))},
datePickerChange
:
function
(
e
){
this
.
params
=
j
(
j
({},
this
.
params
),{},{
dateRange
:
e
,
begin_time
:
e
[
0
],
end_time
:
e
[
1
],
page_index
:
1
}),
this
.
getData
()},
fileImport
:
function
(){
var
e
=
this
;
this
.
$refs
.
formValidate
.
validate
((
function
(
t
){
t
&&
(
e
.
fileDefaultFormData
=
j
(
j
({},
e
.
fileDefaultFormData
),{},{
user_id
:
JSON
.
parse
(
M
.
a
.
get
(
"
admin-teacher-go2-corporation-userinfo
"
)).
user_id
,
submit_time_start
:
e
.
params
.
begin_time
,
submit_time_end
:
e
.
params
.
end_time
,
key_word
:
e
.
params
.
card_name
}),
e
.
hooks
.
myEncapsulationFunction
((
function
(){
return
e
.
btl
=!
0
,
E
(
e
.
fileDefaultFormData
).
then
((
function
(
t
){
return
1
===
t
.
code
&&
(
e
.
fileEditModalshow
=!
1
,
e
.
btl
=!
1
,
e
.
passwrodValue
=
t
.
response
.
password
,
e
.
passwordModal
=!
0
,
window
.
location
.
href
=
t
.
response
.
file_path
),
t
})).
catch
((
function
(){
e
.
btl
=!
1
}))})))}))},
ImportFile
:
function
(
e
){
var
t
=
this
,
a
=
{
list
:
function
(){
t
.
hooks
.
myEncapsulationFunction
((
function
(){
return
t
.
btl1
=!
0
,
t
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
t
.
params
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
t
.
btl1
=!
1
,
window
.
location
.
href
=
e
.
response
),
e
})).
catch
((
function
(){
t
.
btl1
=!
1
}))}))},
file
:
function
(){
t
.
$refs
.
formValidate
.
resetFields
(),
t
.
fileEditModalshow
=!
0
}};
a
[
e
]()},
getRangeOfElements
:
function
(
e
){
for
(
var
t
=
[],
a
=
0
;
a
<
e
.
length
;){
for
(
var
n
=
a
,
i
=
a
,
r
=
a
+
1
;
r
<
e
.
length
;
r
++
){
if
(
e
[
a
].
card
!==
e
[
r
].
card
||
e
[
a
].
type
!==
e
[
r
].
type
)
break
;
i
=
r
}
t
.
push
({
card
:
e
[
a
].
card
,
type
:
e
[
a
].
type
,
startIndex7Columns
:
n
,
endIndex7Columns
:
i
}),
a
=
i
+
1
}
return
t
},
findStartAndEndIndex
:
function
(
e
){
for
(
var
t
=
[],
a
=
e
[
0
],
n
=
0
,
i
=
1
;
i
<=
e
.
length
;
i
++
)
if
(
e
[
i
]
!==
a
||
i
===
e
.
length
){
var
r
=
i
-
1
;
t
.
push
({
element
:
a
,
startIndex
:
n
,
endIndex
:
r
}),
i
<
e
.
length
&&
(
a
=
e
[
i
],
n
=
i
)}
return
t
},
filtrationData
:
function
(
e
){
var
t
=
this
.
findStartAndEndIndex
(
e
.
map
((
function
(
e
,
t
){
return
e
.
card
})));
return
this
.
spanMethodObject
.
indexArray
=
t
,
e
.
forEach
((
function
(
e
,
a
){
t
.
forEach
((
function
(
t
){
e
.
card
===
t
.
element
&&
(
e
.
startIndex
=
t
.
startIndex
,
e
.
endIndex
=
t
.
endIndex
)}))})),
e
},
handleSpan
:
function
(
e
,
t
,
a
,
n
){
return
this
.
$refs
.
CTable
.
spanMethod
(),[
1
,
2
]},
search
:
function
(
e
){
this
.
params
=
j
(
j
({
card_nam
:
this
.
params
.
card_name
},
this
.
params
),{},{
begin_time
:
this
.
params
.
dateRange
[
0
],
end_time
:
this
.
params
.
dateRange
[
1
]}),
this
.
onPageChange
(
1
)},
reset
:
function
(){
this
.
params
=
{
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
page_index
:
1
,
page_size
:
10
},
this
.
onPageChange
(
1
)},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
this
.
asc
.
postApiEnterpriseclockGetEnterpriseclockList
(
this
.
params
).
then
((
function
(
t
){
if
(
t
.
response
.
data
){
e
.
tableData
=
t
.
response
.
data
.
map
((
function
(
e
){
return
j
(
j
({},
e
),{},{
file
:
e
.
file
.
map
((
function
(
e
){
return
window
.
location
.
origin
+
e
}))})})),
e
.
dataCount
=
t
.
response
.
data_count
;
var
a
=
e
.
getRangeOfElements
(
e
.
tableData
);
e
.
tableData
=
e
.
tableData
.
map
((
function
(
e
){
return
a
.
forEach
((
function
(
t
){
e
.
card
===
t
.
card
&&
e
.
type
===
t
.
type
&&
(
e
=
j
(
j
({},
e
),
t
))})),
e
})),
e
.
$nextTick
((
function
(){
return
e
.
spanMethodObject
.
show
=!
0
})),
e
.
approvalStateIndexArray
=
e
.
getRangeOfElements
(
e
.
tableData
),
e
.
tableData
=
e
.
filtrationData
(
e
.
tableData
),
e
.
tk
++
}
else
e
.
tableData
=
[],
e
.
dataCount
=
0
,
e
.
tk
++
})).
finally
((
function
(){
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
tableData
[
a
].
is_enable
=
e
,
this
.
asc
.
getApiKeyKeyEnable
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
t
){
1
==
t
.
code
?
n
.
$Message
.
success
(
t
.
response
):(
n
.
tableData
[
a
].
is_enable
=
0
==
e
?
1
:
0
,
n
.
$Message
.
error
(
t
.
msg_detail
))}))},
rowEdit
:
function
(
e
){
var
t
=
this
;
this
.
editModalshow
=!
0
,
this
.
editModalLoading
=!
0
,
this
.
asc
.
getApiKeyGetKeyInfo
({
id
:
e
.
id
}).
then
((
function
(
e
){
t
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
e
.
response
),
t
.
editModalLoading
=!
1
}))},
modalSubmit
:
function
(
e
){
var
t
=
this
;
this
.
hooks
.
myEncapsulationFunction
((
function
(){
var
a
=
[
"
postApiEnterpriseclockGetEnterpriseclockExport
"
,
"
postApiEnterpriseclockGetEnterpriseclockFileExport
"
][
"
list
"
!==
t
.
title
?
Number
(
!
0
):
Number
(
!
1
)];
return
t
.
asc
[
a
](
j
(
j
({},
e
),{},{
begin_time
:
S
()(
e
.
daterange
[
0
]).
format
(
"
YYYY-MM-DD
"
),
end_time
:
S
()(
e
.
daterange
[
1
]).
format
(
"
YYYY-MM-DD
"
)}))})).
then
((
function
(
e
){
return
1
===
e
.
code
&&
setTimeout
((
function
(){
return
window
.
location
.
href
=
e
.
response
}),
300
),
e
}))},
rowDelete
:
function
(
e
){
var
t
=
this
;
this
.
asc
.
getApiKeyKeyDel
({
id
:
e
.
id
,
is_del
:
1
}).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
msg
),
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)}))},
onPageChange
:
function
(
e
){
this
.
params
.
page_index
=
e
,
this
.
getData
()},
onPageSizeChange
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
this
.
onPageChange
(
1
)}}},
P
=
A
,
L
=
Object
(
d
[
"
a
"
])(
P
,
n
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
L
.
exports
},
"
3cee
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ab4f
"
)},
aa77
:
function
(
e
,
t
,
a
){
var
n
=
a
(
"
5ca1
"
),
i
=
a
(
"
be13
"
),
r
=
a
(
"
79e5
"
),
o
=
a
(
"
fdef
"
),
l
=
"
[
"
+
o
+
"
]
"
,
s
=
"
"
,
c
=
RegExp
(
"
^
"
+
l
+
l
+
"
*
"
),
d
=
RegExp
(
l
+
l
+
"
*$
"
),
u
=
function
(
e
,
t
,
a
){
var
i
=
{},
l
=
r
((
function
(){
return
!!
o
[
e
]()
||
s
[
e
]()
!=
s
})),
c
=
i
[
e
]
=
l
?
t
(
f
):
o
[
e
];
a
&&
(
i
[
a
]
=
c
),
n
(
n
.
P
+
n
.
F
*
l
,
"
String
"
,
i
)},
f
=
u
.
trim
=
function
(
e
,
t
){
return
e
=
String
(
i
(
e
)),
1
&
t
&&
(
e
=
e
.
replace
(
c
,
""
)),
2
&
t
&&
(
e
=
e
.
replace
(
d
,
""
)),
e
};
e
.
exports
=
u
},
ab4f
:
function
(
e
,
t
,
a
){},
c5f6
:
function
(
e
,
t
,
a
){
"
use strict
"
;
var
n
=
a
(
"
7726
"
),
i
=
a
(
"
69a8
"
),
r
=
a
(
"
2d95
"
),
o
=
a
(
"
5dbc
"
),
l
=
a
(
"
6a99
"
),
s
=
a
(
"
79e5
"
),
c
=
a
(
"
9093
"
).
f
,
d
=
a
(
"
11e9
"
).
f
,
u
=
a
(
"
86cc
"
).
f
,
f
=
a
(
"
aa77
"
).
trim
,
m
=
"
Number
"
,
p
=
n
[
m
],
h
=
p
,
b
=
p
.
prototype
,
g
=
r
(
a
(
"
2aeb
"
)(
b
))
==
m
,
y
=
"
trim
"
in
String
.
prototype
,
_
=
function
(
e
){
var
t
=
l
(
e
,
!
1
);
if
(
"
string
"
==
typeof
t
&&
t
.
length
>
2
){
t
=
y
?
t
.
trim
():
f
(
t
,
3
);
var
a
,
n
,
i
,
r
=
t
.
charCodeAt
(
0
);
if
(
43
===
r
||
45
===
r
){
if
(
a
=
t
.
charCodeAt
(
2
),
88
===
a
||
120
===
a
)
return
NaN
}
else
if
(
48
===
r
){
switch
(
t
.
charCodeAt
(
1
)){
case
66
:
case
98
:
n
=
2
,
i
=
49
;
break
;
case
79
:
case
111
:
n
=
8
,
i
=
55
;
break
;
default
:
return
+
t
}
for
(
var
o
,
s
=
t
.
slice
(
2
),
c
=
0
,
d
=
s
.
length
;
c
<
d
;
c
++
)
if
(
o
=
s
.
charCodeAt
(
c
),
o
<
48
||
o
>
i
)
return
NaN
;
return
parseInt
(
s
,
n
)}}
return
+
t
};
if
(
!
p
(
"
0o1
"
)
||!
p
(
"
0b1
"
)
||
p
(
"
+0x1
"
)){
p
=
function
(
e
){
var
t
=
arguments
.
length
<
1
?
0
:
e
,
a
=
this
;
return
a
instanceof
p
&&
(
g
?
s
((
function
(){
b
.
valueOf
.
call
(
a
)})):
r
(
a
)
!=
m
)?
o
(
new
h
(
_
(
t
)),
a
,
p
):
_
(
t
)};
for
(
var
v
,
w
=
a
(
"
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
(
"
,
"
),
k
=
0
;
w
.
length
>
k
;
k
++
)
i
(
h
,
v
=
w
[
k
])
&&!
i
(
p
,
v
)
&&
u
(
p
,
v
,
d
(
h
,
v
));
p
.
prototype
=
b
,
b
.
constructor
=
p
,
a
(
"
2aba
"
)(
n
,
m
,
p
)}},
e666
:
function
(
e
,
t
,
a
){},
fdef
:
function
(
e
,
t
){
e
.
exports
=
"
\t\n\
v
\
f
\r
\
u2028
\
u2029
\
ufeff
"
}}]);
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-583cfe78
"
],{
"
0d80
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
e666
"
)},
"
356b
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
.
r
(
t
);
var
n
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Card
"
,{
ref
:
"
card
"
,
scopedSlots
:
e
.
_u
([{
key
:
"
title
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
40px
"
,
display
:
"
flex
"
,
"
justify-content
"
:
"
flex-end
"
,
"
align-items
"
:
"
center
"
}},[
a
(
"
DatePicker
"
,{
staticClass
:
"
ivu-mr-8
"
,
staticStyle
:{
width
:
"
15vw
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
选择提交时间范围筛选
"
,
clearable
:
""
},
on
:{
"
on-change
"
:
e
.
datePickerChange
},
model
:{
value
:
e
.
params
.
dateRange
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
dateRange
"
,
t
)},
expression
:
"
params.dateRange
"
}}),
a
(
"
Input
"
,{
staticClass
:
"
ivu-mr-8
"
,
staticStyle
:{
width
:
"
10vw
"
},
attrs
:{
placeholder
:
"
输入姓名/卡号搜索
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
suffix
"
,
fn
:
function
(){
return
[
a
(
"
Icon
"
,{
staticStyle
:{
cursor
:
"
pointer
"
},
attrs
:{
type
:
"
ios-search
"
},
on
:{
click
:
e
.
search
}})]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
params
.
card_name
,
callback
:
function
(
t
){
e
.
$set
(
e
.
params
,
"
card_name
"
,
t
)},
expression
:
"
params.card_name
"
}}),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
attrs
:{
icon
:
"
md-sync
"
},
on
:{
click
:
e
.
reset
}}),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
attrs
:{
loading
:
e
.
btl1
},
on
:{
click
:
function
(
t
){
return
e
.
ImportFile
(
"
list
"
)}}},[
e
.
_v
(
"
\n
导出表格
\n
"
)]),
a
(
"
Button
"
,{
staticClass
:
"
ivu-mr-8
"
,
on
:{
click
:
function
(
t
){
return
e
.
ImportFile
(
"
file
"
)}}},[
e
.
_v
(
"
\n
导出附件
\n
"
)])],
1
)]},
proxy
:
!
0
}])},[
a
(
"
CTable
"
,{
key
:
e
.
tk
,
ref
:
"
CTable
"
,
attrs
:{
"
span-index-array
"
:
e
.
spanMethodObject
.
indexArray
,
"
span-method-flag
"
:
e
.
spanMethodObject
.
show
,
"
span-method
"
:
e
.
handleSpan
,
tableColumns
:
e
.
tableColumns
.
filter
((
function
(
e
){
return
e
.
show
})),
tableData
:
e
.
tableData
,
approvalStateIndexArray
:
e
.
approvalStateIndexArray
,
tableLoading
:
e
.
tableLoading
,
tableSize
:
e
.
tableSize
,
dataCount
:
e
.
dataCount
,
pageIndex
:
e
.
params
.
page_index
,
pageSize
:
e
.
params
.
page_size
},
on
:{
switchChange
:
e
.
switchChange
,
rowEdit
:
e
.
rowEdit
,
rowDelete
:
e
.
rowDelete
,
onPageChange
:
e
.
onPageChange
,
handleSpan
:
e
.
handleSpan
,
onPageSizeChange
:
e
.
onPageSizeChange
},
scopedSlots
:
e
.
_u
([{
key
:
"
file
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
e
.
_l
(
n
.
file
,(
function
(
t
,
i
){
return
a
(
"
div
"
,{
key
:
i
,
staticStyle
:{
"
min-width
"
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
el-image
"
,{
staticStyle
:{
width
:
"
60px
"
,
height
:
"
60px
"
},
attrs
:{
src
:
t
,
"
preview-src-list
"
:
n
.
file
}},[
e
.
_v
(
"
查看
"
)])],
1
)}))}},{
key
:
"
img_upload
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
text
:
t
.
img_upload
,
height
:
50
,
tooltip
:
""
,
transfer
:
!
0
}})]}},{
key
:
"
remark
"
,
fn
:
function
(
e
){
var
t
=
e
.
row
;
return
[
a
(
"
Ellipsis
"
,{
attrs
:{
text
:
t
.
remark
,
height
:
60
,
tooltip
:
""
,
transfer
:
!
0
}})]}}])}),
a
(
"
CEditModal
"
,{
ref
:
"
ceditmodal
"
,
attrs
:{
formItem
:
e
.
formItem
,
formRule
:
e
.
formRule
,
loading
:
e
.
editModalLoading
,
formLabelWidth
:
100
,
width
:
800
},
on
:{
onClose
:
function
(
t
){
e
.
editModalshow
=!
1
},
onSubmit
:
e
.
modalSubmit
},
model
:{
value
:
e
.
editModalshow
,
callback
:
function
(
t
){
e
.
editModalshow
=
t
},
expression
:
"
editModalshow
"
}}),
a
(
"
Modal
"
,{
attrs
:{
title
:
"
附件导出
"
,
"
min-width
"
:
"
25
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
width
:
"
8vw
"
},
attrs
:{
loading
:
e
.
btl
,
type
:
"
primary
"
},
on
:{
click
:
e
.
fileImport
}},[
e
.
_v
(
"
导出
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
fileEditModalshow
,
callback
:
function
(
t
){
e
.
fileEditModalshow
=
t
},
expression
:
"
fileEditModalshow
"
}},[
a
(
"
Form
"
,{
ref
:
"
formValidate
"
,
attrs
:{
model
:
e
.
fileDefaultFormData
,
rules
:
e
.
fileFormRule
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件字段:
"
,
prop
:
"
item_id
"
}},[
a
(
"
Select
"
,{
attrs
:{
filterable
:
""
,
clearable
:
""
,
placeholder
:
"
请选择附件字段
"
},
model
:{
value
:
e
.
fileDefaultFormData
.
item_id
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
item_id
"
,
t
)},
expression
:
"
fileDefaultFormData.item_id
"
}},
e
.
_l
(
e
.
teamIdArray
,(
function
(
t
,
n
){
return
a
(
"
Option
"
,{
key
:
n
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
)],
1
),
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件命名方式:
"
,
prop
:
"
rule_type
"
}},[
a
(
"
RadioGroup
"
,{
model
:{
value
:
e
.
fileDefaultFormData
.
rule_type
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
rule_type
"
,
t
)},
expression
:
"
fileDefaultFormData.rule_type
"
}},[
a
(
"
Radio
"
,{
attrs
:{
border
:
""
,
label
:
0
}},[
e
.
_v
(
"
保持文件原始名称
"
)]),
a
(
"
Radio
"
,{
attrs
:{
border
:
""
,
label
:
1
}},[
e
.
_v
(
"
按照表单中字段命名
"
)])],
1
)],
1
),
1
==
e
.
fileDefaultFormData
.
rule_type
?
a
(
"
FormItem
"
,{
attrs
:{
label
:
"
附件命名规则(按选择顺序):
"
,
prop
:
"
file_name_rule
"
}},[
a
(
"
Select
"
,{
attrs
:{
multiple
:
""
,
filterable
:
""
,
clearable
:
""
,
placeholder
:
"
请选择附件命名规则
"
},
model
:{
value
:
e
.
fileDefaultFormData
.
file_name_rule
,
callback
:
function
(
t
){
e
.
$set
(
e
.
fileDefaultFormData
,
"
file_name_rule
"
,
t
)},
expression
:
"
fileDefaultFormData.file_name_rule
"
}},
e
.
_l
(
e
.
fileNameRuleArray
,(
function
(
t
,
n
){
return
a
(
"
Option
"
,{
key
:
n
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
)],
1
):
e
.
_e
()],
1
)],
1
),
a
(
"
Modal
"
,{
attrs
:{
"
min-width
"
:
"
12
"
},
scopedSlots
:
e
.
_u
([{
key
:
"
header
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
"
font-size
"
:
"
18px
"
,
color
:
"
#19be6b
"
,
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Icon
"
,{
attrs
:{
type
:
"
md-checkmark-circle-outline
"
}}),
e
.
_v
(
"
附件解压码
\n
"
)],
1
)]},
proxy
:
!
0
},{
key
:
"
footer
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
100%
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
Button
"
,{
staticStyle
:{
width
:
"
150px
"
},
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
function
(
t
){
return
e
.
copy
(
e
.
passwrodValue
)}}},[
e
.
_v
(
"
复制解压码
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
passwordModal
,
callback
:
function
(
t
){
e
.
passwordModal
=
t
},
expression
:
"
passwordModal
"
}},[
a
(
"
div
"
,{
staticStyle
:{
width
:
"
100%
"
,
height
:
"
50px
"
,
display
:
"
flex
"
,
"
align-items
"
:
"
center
"
,
"
justify-content
"
:
"
center
"
}},[
a
(
"
h1
"
,{
staticStyle
:{
color
:
"
#515A6E
"
},
attrs
:{
id
:
"
w
"
}},[
e
.
_v
(
e
.
_s
(
e
.
passwrodValue
))])])])],
1
)],
1
)},
i
=
[],
r
=
(
a
(
"
8e6e
"
),
a
(
"
456d
"
),
a
(
"
c5f6
"
),
a
(
"
ac6a
"
),
a
(
"
ade3
"
)),
o
=
(
a
(
"
7f7f
"
),
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Table
"
,{
staticClass
:
"
ivu-mt
"
,
attrs
:{
columns
:
e
.
tableColumns
,
data
:
e
.
tableData
,
loading
:
e
.
tableLoading
,
size
:
e
.
tableSize
,
"
span-method
"
:
e
.
spanMethod
,
border
:
""
},
scopedSlots
:
e
.
_u
([{
key
:
"
generalSwitch
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
,
i
=
t
.
index
;
return
[
a
(
"
i-switch
"
,{
attrs
:{
size
:
"
large
"
,
"
true-value
"
:
1
,
"
false-value
"
:
0
},
on
:{
"
on-change
"
:
function
(
t
){
return
e
.
switchChange
(
t
,
n
,
i
)}},
model
:{
value
:
n
.
is_enable
,
callback
:
function
(
t
){
e
.
$set
(
n
,
"
is_enable
"
,
t
)},
expression
:
"
row.is_enable
"
}},[
a
(
"
span
"
,{
attrs
:{
slot
:
"
open
"
,
type
:
"
md-checkmark
"
},
slot
:
"
open
"
},[
e
.
_v
(
"
启用
"
)]),
a
(
"
span
"
,{
attrs
:{
slot
:
"
close
"
,
type
:
"
md-close
"
},
slot
:
"
close
"
},[
e
.
_v
(
"
停用
"
)])])]}},{
key
:
"
action
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
Button
"
,{
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},{
key
:
"
actionAndDetails
"
,
fn
:
function
(
t
){
var
n
=
t
.
row
;
return
[
a
(
"
a
"
,{
on
:{
click
:
function
(
t
){
return
e
.
details
(
n
)}}},[
e
.
_v
(
"
详情
"
)]),
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
info
"
,
size
:
"
small
"
},
on
:{
click
:
function
(
t
){
return
e
.
edit
(
n
)}}},[
e
.
_v
(
"
编辑
"
)]),
a
(
"
Poptip
"
,{
attrs
:{
confirm
:
""
,
transfer
:
""
,
title
:
"
是否确认删除?
"
},
on
:{
"
on-ok
"
:
function
(
t
){
return
e
.
del
(
n
)}}},[
a
(
"
Button
"
,{
staticStyle
:{
"
margin-left
"
:
"
8px
"
},
attrs
:{
type
:
"
error
"
,
size
:
"
small
"
}},[
e
.
_v
(
"
删除
"
)])],
1
)]}},
e
.
_l
(
e
.
$scopedSlots
,(
function
(
t
,
a
){
return
{
key
:
a
,
fn
:
function
(
t
){
return
[
e
.
_t
(
a
,
null
,
null
,
t
)]}}}))],
null
,
!
0
)}),
a
(
"
div
"
,{
staticClass
:
"
ivu-text-center ivu-mt
"
},[
a
(
"
Page
"
,{
attrs
:{
total
:
e
.
dataCount
,
current
:
e
.
pageIndex
,
"
page-size
"
:
e
.
pageSize
,
"
page-size-opts
"
:
e
.
pageSizeOpts
,
"
show-total
"
:
""
,
"
show-sizer
"
:
""
},
on
:{
"
on-change
"
:
e
.
handleChangePage
,
"
on-page-size-change
"
:
e
.
handleChangePageSize
}})],
1
)],
1
)}),
l
=
[],
s
=
{
props
:{
spanIndexArray
:{
type
:
Array
,
default
:
!
1
},
spanMethodFlag
:{
type
:
Boolean
,
default
:
!
1
},
tableColumns
:{
type
:
Array
,
require
:
!
0
},
tableData
:{
type
:
Array
,
require
:
!
0
},
tableLoading
:{
type
:
Boolean
,
default
:
!
1
},
tableSize
:{
type
:
String
,
default
:
"
default
"
},
dataCount
:{
type
:
Number
,
require
:
!
0
},
pageIndex
:{
type
:
Number
,
require
:
!
0
},
pageSize
:{
type
:
Number
,
require
:
!
0
},
pageSizeOpts
:{
type
:
Array
,
default
:
function
(){
return
[
10
,
20
,
50
,
100
]}}},
data
:
function
(){
return
{}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
switchChange
:
function
(
e
,
t
,
a
){
this
.
$emit
(
"
switchChange
"
,
e
,
t
,
a
)},
details
:
function
(
e
){
this
.
$emit
(
"
rowDetails
"
,
e
)},
edit
:
function
(
e
){
this
.
$emit
(
"
rowEdit
"
,
e
)},
del
:
function
(
e
){
this
.
$emit
(
"
rowDelete
"
,
e
)},
handleChangePage
:
function
(
e
){
this
.
$emit
(
"
onPageChange
"
,
e
)},
handleChangePageSize
:
function
(
e
){
this
.
$emit
(
"
onPageSizeChange
"
,
e
)},
spanMethod
:
function
(
e
){
var
t
=
e
.
row
,
a
=
(
e
.
column
,
e
.
rowIndex
),
n
=
e
.
columnIndex
;
if
(
this
.
spanMethodFlag
){
if
(
a
===
t
.
startIndex
&&
n
<
6
)
return
[
t
.
endIndex
+
1
-
t
.
startIndex
,
1
];
if
(
a
>
t
.
startIndex
&&
a
<=
t
.
endIndex
&&
n
<
6
)
return
[
0
,
0
];
if
(
a
===
t
.
startIndex7Columns
&&
6
===
n
)
return
[
t
.
endIndex7Columns
+
1
-
t
.
startIndex7Columns
,
1
];
if
(
a
>=
t
.
startIndex7Columns
&&
a
<=
t
.
endIndex7Columns
&&
6
===
n
)
return
[
0
,
0
]}}}},
c
=
s
,
d
=
a
(
"
2877
"
),
u
=
Object
(
d
[
"
a
"
])(
c
,
o
,
l
,
!
1
,
null
,
"
7c63ebaf
"
,
null
),
f
=
u
.
exports
,
m
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Modal
"
,{
attrs
:{
title
:
e
.
modalTitle
,
width
:
e
.
width
,
"
mask-closable
"
:
e
.
maskClosable
,
transfer
:
!
1
,
"
before-close
"
:
e
.
beforeClose
},
scopedSlots
:
e
.
_u
([{
key
:
"
footer
"
,
fn
:
function
(){
return
[
e
.
isDetails
?
a
(
"
div
"
,[
a
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
关闭
"
)])],
1
):
a
(
"
div
"
,[
a
(
"
Button
"
,{
on
:{
click
:
e
.
onCancel
}},[
e
.
_v
(
"
取消
"
)]),
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
onSubmit
}},[
e
.
_v
(
"
提交
"
)])],
1
)]},
proxy
:
!
0
}]),
model
:{
value
:
e
.
show
,
callback
:
function
(
t
){
e
.
show
=
t
},
expression
:
"
show
"
}},[[
e
.
loading
?
a
(
"
Spin
"
,{
attrs
:{
size
:
"
large
"
,
fix
:
""
}}):
e
.
_e
(),
a
(
"
Form
"
,{
ref
:
"
form
"
,
attrs
:{
"
label-colon
"
:
""
,
model
:
e
.
formData
,
rules
:
e
.
formRule
,
"
label-width
"
:
e
.
formLabelWidth
}},[
e
.
isDetails
?
e
.
_e
():
a
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
id
}},[
"
input
"
==
t
.
type
?
a
(
"
Input
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}}):
e
.
_e
(),
"
textarea
"
==
t
.
type
?
a
(
"
Input
"
,{
attrs
:{
clearable
:
""
,
type
:
"
textarea
"
,
placeholder
:
"
请输入
"
+
t
.
name
,
rows
:
t
.
rows
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}}):
"
select
"
==
t
.
type
?
a
(
"
Select
"
,{
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
,
filterable
:
""
,
disabled
:
t
.
disabled
},
on
:{
"
on-query-change
"
:
e
.
onQueryChange
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
multipleselect
"
==
t
.
type
?
a
(
"
Select
"
,{
attrs
:{
clearable
:
""
,
multiple
:
""
,
filterable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
,
disabled
:
t
.
disabled
},
model
:{
value
:
e
.
formData
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
.
id
,
a
)},
expression
:
"
formData[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
switch
"
==
t
.
type
?
a
(
"
i-switch
"
,{
attrs
:{
"
true-value
"
:
1
,
"
false-value
"
:
0
},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
"
timerange
"
==
t
.
type
?
a
(
"
TimePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
format
:
"
HH:mm
"
,
type
:
"
timerange
"
,
placement
:
"
bottom-end
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
"
daterange
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
scopedSlots
:
e
.
_u
([{
key
:
"
prefix
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
e
.
formData
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
formData
,
t
[
"
id
"
],
a
)},
expression
:
"
formData[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
,
n
){
return
a
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
a
(
"
Upload
"
,{
attrs
:{
multiple
:
""
,
action
:
"
#
"
,
"
before-upload
"
:
function
(
a
){
return
e
.
uploadFile
(
a
,
t
.
id
,
n
)}}},[
a
(
"
Button
"
,{
attrs
:{
icon
:
"
ios-cloud-upload-outline
"
,
loading
:
e
.
uploadBtLoading
[
n
]}},[
e
.
_v
(
"
选择文件
"
)])],
1
),
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
n
){
return
a
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
a
(
"
a
"
,{
attrs
:{
target
:
"
_blank
"
,
href
:
n
.
path
}},[
e
.
_v
(
e
.
_s
(
n
.
file_name
))]),
a
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
a
){
return
e
.
fileDel
(
n
,
t
.
id
)}}})],
1
)}))],
2
)],
1
)}))],
2
),
e
.
isDetails
?
a
(
"
Row
"
,[
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
!=
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},[
"
input
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
e
.
formData
[
t
.
id
]))]):
e
.
_e
(),
"
select
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
optList
[
t
.
optList
.
findIndex
((
function
(
a
){
return
a
.
value
==
e
.
formData
[
t
.
id
]}))].
label
)
+
"
\n
"
)]):
e
.
_e
(),
"
switch
"
==
t
.
type
?
a
(
"
span
"
,[
e
.
_v
(
e
.
_s
(
1
==
e
.
formData
[
t
.
id
]?
"
是
"
:
"
否
"
))]):
e
.
_e
()])],
1
)})),
e
.
_l
(
e
.
formItem
.
filter
((
function
(
e
){
return
"
file
"
==
e
.
type
&&
(
!
e
.
hasOwnProperty
(
"
show
"
)
||
e
.
show
)})),(
function
(
t
){
return
a
(
"
Col
"
,{
key
:
t
.
id
,
attrs
:{
span
:
"
12
"
}},[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
,
prop
:
t
.
name
}},
e
.
_l
(
e
.
formData
[
t
.
id
],(
function
(
n
){
return
a
(
"
p
"
,{
key
:
n
.
path
,
staticClass
:
"
fileRow
"
},[
a
(
"
a
"
,{
attrs
:{
target
:
"
_blank
"
,
href
:
n
.
path
}},[
e
.
_v
(
e
.
_s
(
n
.
file_name
))]),
a
(
"
Icon
"
,{
staticClass
:
"
delIcon
"
,
attrs
:{
type
:
"
md-close
"
},
on
:{
click
:
function
(
a
){
return
e
.
fileDel
(
n
,
t
.
id
)}}})],
1
)})),
0
)],
1
)}))],
2
):
e
.
_e
()],
1
)]],
2
)],
1
)},
p
=
[],
h
=
(
a
(
"
28a5
"
),
a
(
"
20d6
"
),
a
(
"
2ef0
"
)),
b
=
{
props
:{
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
(
e
){
this
.
show
=
e
}},
data
:
function
(){
return
{
show
:
this
.
value
,
modalTitle
:
"
编辑
"
,
formData
:{},
grid
:{
xl
:
12
,
lg
:
12
,
md
:
24
,
sm
:
24
,
xs
:
24
},
uploadBtLoading
:[],
isDetails
:
!
1
,
peopleKey
:
""
}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
onQueryChange
:
function
(
e
){
this
.
peopleKey
=
e
,
this
.
$emit
(
"
getPeopleList
"
,
e
)},
modalInit
:
function
(){
var
e
=
this
,
t
=
arguments
.
length
>
0
&&
void
0
!==
arguments
[
0
]?
arguments
[
0
]:
"
add
"
,
a
=
arguments
.
length
>
1
?
arguments
[
1
]:
void
0
,
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
""
;
if
(
this
.
isDetails
=!
1
,
this
.
uploadBtLoading
=
[],
"
add
"
==
t
)
this
.
modalTitle
=
n
||
"
新增
"
,
this
.
formData
=
a
?
Object
(
h
[
"
cloneDeep
"
])(
a
):{};
else
if
(
"
edit
"
==
t
){
this
.
modalTitle
=
"
编辑
"
,
this
.
formData
=
Object
(
h
[
"
cloneDeep
"
])(
a
);
var
i
=
this
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
i
){
var
r
=
this
.
formItem
[
i
].
id
;
this
.
formData
[
r
]
=
this
.
formData
[
r
].
split
(
"
-
"
)}}
this
.
formItem
.
forEach
((
function
(
t
){
"
file
"
==
t
.
type
&&
e
.
uploadBtLoading
.
push
(
!
1
)}))},
modalDetailsInit
:
function
(
e
,
t
){
this
.
isDetails
=!
0
,
this
.
modalTitle
=
""
.
concat
(
e
[
t
],
"
- 详情
"
),
this
.
formData
=
Object
(
h
[
"
cloneDeep
"
])(
e
)},
uploadFile
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
uploadBtLoading
[
a
]
=!
0
,
this
.
$forceUpdate
();
var
i
=
new
FormData
;
return
i
.
append
(
"
file
"
,
e
),
this
.
asc
.
postApiCommonFileUpload
(
i
).
then
((
function
(
e
){
1
==
e
.
code
?(
n
.
formData
[
t
].
push
(
e
.
response
),
n
.
$Message
.
success
(
e
.
msg
)):
n
.
$Message
.
error
(
e
.
msg_detail
)})).
finally
((
function
(){
n
.
uploadBtLoading
[
a
]
=!
1
,
n
.
$forceUpdate
()})),
!
1
},
fileDel
:
function
(
e
,
t
){
var
a
=
this
.
formData
[
t
].
findIndex
((
function
(
t
){
return
t
.
id
==
e
.
id
}));
this
.
formData
[
t
].
splice
(
a
,
1
)},
beforeClose
:
function
(){
this
.
$emit
(
"
onClose
"
)},
onCancel
:
function
(){
this
.
$emit
(
"
onCancel
"
),
this
.
$emit
(
"
onClose
"
)},
onSubmit
:
function
(){
var
e
=
this
;
this
.
$refs
.
form
.
validate
((
function
(
t
){
if
(
t
){
var
a
=
Object
(
h
[
"
cloneDeep
"
])(
e
.
formData
),
n
=
e
.
formItem
.
findIndex
((
function
(
e
){
return
"
timerange
"
==
e
.
type
}));
if
(
-
1
!=
n
){
var
i
=
e
.
formItem
[
n
].
id
;
a
[
i
]
=
a
[
i
].
join
(
"
-
"
)}
e
.
$emit
(
"
onSubmit
"
,
a
)}
else
e
.
$Message
.
warning
(
"
请检查输入项
"
)}))},
resetForm
:
function
(){
this
.
$refs
.
form
.
resetFields
()}}},
g
=
b
,
y
=
(
a
(
"
0d80
"
),
Object
(
d
[
"
a
"
])(
g
,
m
,
p
,
!
1
,
null
,
"
41efa6cc
"
,
null
)),
_
=
y
.
exports
,
v
=
function
(){
var
e
=
this
,
t
=
e
.
$createElement
,
a
=
e
.
_self
.
_c
||
t
;
return
a
(
"
div
"
,[
a
(
"
Form
"
,{
staticClass
:
"
searchDiv
"
,
attrs
:{
model
:
e
.
searchCondObj
,
"
label-width
"
:
e
.
labelWidth
,
"
label-colon
"
:
e
.
labelColon
}},[
a
(
"
Row
"
,[
e
.
_l
(
e
.
searchCondList
.
filter
((
function
(
e
){
return
e
.
show
})),(
function
(
t
){
return
a
(
"
Col
"
,
e
.
_b
({
key
:
t
.
id
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
FormItem
"
,{
attrs
:{
label
:
t
.
name
}},[
"
input
"
==
t
.
type
?
a
(
"
Input
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请输入
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}}):
"
select
"
==
t
.
type
?
a
(
"
Select
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
clearable
:
""
,
placeholder
:
"
请选择
"
+
t
.
name
},
model
:{
value
:
e
.
searchCondObj
[
t
.
id
],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
.
id
,
a
)},
expression
:
"
searchCondObj[item.id]
"
}},
e
.
_l
(
t
.
optList
,(
function
(
t
){
return
a
(
"
Option
"
,{
key
:
t
.
value
,
attrs
:{
value
:
t
.
value
}},[
e
.
_v
(
e
.
_s
(
t
.
label
))])})),
1
):
"
daterange
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
staticStyle
:{
width
:
"
100%
"
},
attrs
:{
type
:
"
daterange
"
,
format
:
"
yyyy-MM-dd
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
daterangeChange
(
a
,
n
,
t
.
id
)}},
scopedSlots
:
e
.
_u
([{
key
:
"
prefix
"
,
fn
:
function
(){
return
[
a
(
"
div
"
,[
e
.
_v
(
"
\n
"
+
e
.
_s
(
t
.
name
)
+
"
\n
"
)])]},
proxy
:
!
0
}],
null
,
!
0
),
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
"
datetime
"
==
t
.
type
?
a
(
"
DatePicker
"
,{
attrs
:{
type
:
"
datetime
"
,
format
:
"
yyyy-MM-dd HH:mm
"
,
placeholder
:
"
请选择
"
+
t
.
name
},
on
:{
"
on-change
"
:
function
(
a
,
n
){
return
e
.
datetimeChange
(
a
,
n
,
t
.
id
)}},
model
:{
value
:
e
.
searchCondObj
[
t
[
"
id
"
]],
callback
:
function
(
a
){
e
.
$set
(
e
.
searchCondObj
,
t
[
"
id
"
],
a
)},
expression
:
"
searchCondObj[item['id']]
"
}}):
e
.
_e
()],
1
)],
1
)})),
a
(
"
Col
"
,
e
.
_b
({
staticClass
:
"
buttonCol
"
},
"
Col
"
,
e
.
grid
,
!
1
),[
a
(
"
Button
"
,{
attrs
:{
type
:
"
primary
"
},
on
:{
click
:
e
.
searchBt
}},[
e
.
_v
(
"
查询
"
)]),
a
(
"
Button
"
,{
on
:{
click
:
e
.
resetBt
}},[
e
.
_v
(
"
重置
"
)])],
1
)],
2
)],
1
)],
1
)},
w
=
[],
k
=
{
props
:{
searchCondList
:{
type
:
Array
,
require
:
!
0
},
labelWidth
:{
type
:
Number
,
default
:
100
},
labelColon
:{
type
:
Boolean
,
default
:
!
0
}},
data
:
function
(){
return
{
grid
:{
sm
:
12
,
md
:
12
,
lg
:
8
,
xl
:
6
},
searchCondObj
:{}}},
computed
:{},
created
:
function
(){},
mounted
:
function
(){},
methods
:{
searchBt
:
function
(){
this
.
$emit
(
"
onSubmit
"
,
this
.
searchCondObj
)},
resetBt
:
function
(){
this
.
searchCondObj
=
{},
this
.
$emit
(
"
onReset
"
)},
datetimeChange
:
function
(
e
,
t
,
a
){
this
.
searchCondObj
[
a
]
=
e
},
daterangeChange
:
function
(
e
,
t
,
a
){
this
.
searchCondObj
[
a
]
=
e
}}},
D
=
k
,
C
=
(
a
(
"
3cee
"
),
Object
(
d
[
"
a
"
])(
D
,
v
,
w
,
!
1
,
null
,
"
7648d8d8
"
,
null
)),
x
=
C
.
exports
,
I
=
a
(
"
5a0c
"
),
S
=
a
.
n
(
I
),
O
=
a
(
"
b6bd
"
);
function
E
(
e
){
return
Object
(
O
[
"
a
"
])({
url
:
"
/api/Enterpriseclock/GetEnterpriseclockFileExport?user_id=
"
.
concat
(
e
.
user_id
,
"
&form_id=
"
).
concat
(
e
.
form_id
),
method
:
"
post
"
,
data
:
e
})}
var
F
=
a
(
"
a78e
"
),
M
=
a
.
n
(
F
);
function
$
(
e
,
t
){
var
a
=
Object
.
keys
(
e
);
if
(
Object
.
getOwnPropertySymbols
){
var
n
=
Object
.
getOwnPropertySymbols
(
e
);
t
&&
(
n
=
n
.
filter
((
function
(
t
){
return
Object
.
getOwnPropertyDescriptor
(
e
,
t
).
enumerable
}))),
a
.
push
.
apply
(
a
,
n
)}
return
a
}
function
j
(
e
){
for
(
var
t
=
1
;
t
<
arguments
.
length
;
t
++
){
var
a
=
null
!=
arguments
[
t
]?
arguments
[
t
]:{};
t
%
2
?
$
(
Object
(
a
),
!
0
).
forEach
((
function
(
t
){
Object
(
r
[
"
a
"
])(
e
,
t
,
a
[
t
])})):
Object
.
getOwnPropertyDescriptors
?
Object
.
defineProperties
(
e
,
Object
.
getOwnPropertyDescriptors
(
a
)):
$
(
Object
(
a
)).
forEach
((
function
(
t
){
Object
.
defineProperty
(
e
,
t
,
Object
.
getOwnPropertyDescriptor
(
a
,
t
))}))}
return
e
}
var
A
=
{
name
:
"
list
"
,
components
:{
CTable
:
f
,
CEditModal
:
_
,
SearchCondForm
:
x
},
data
:
function
(){
return
{
btl1
:
!
1
,
btl
:
!
1
,
passwrodValue
:
""
,
passwordModal
:
!
1
,
tk
:
1
,
title
:
""
,
spanMethodObject
:{
show
:
!
1
,
indexArray
:[]},
searchCondList
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
show
:
!
0
,
optList
:[]},{
id
:
"
dateRange
"
,
name
:
"
提交时间范围
"
,
type
:
"
daterange
"
,
show
:
!
0
,
optList
:[]}],
params
:{
dateRange
:[],
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
page_index
:
1
,
page_size
:
10
},
tableColumns
:[{
key
:
"
name
"
,
title
:
"
姓名
"
,
align
:
"
center
"
,
width
:
80
,
show
:
!
0
},{
key
:
"
card
"
,
title
:
"
工号
"
,
align
:
"
center
"
,
width
:
100
,
show
:
!
0
},{
key
:
"
day
"
,
title
:
"
天数
"
,
align
:
"
center
"
,
minWidth
:
120
,
show
:
!
0
},{
key
:
"
dept_name
"
,
title
:
"
行政部门
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
ssbm
"
,
title
:
"
所属教学部
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
phone
"
,
title
:
"
联系电话
"
,
align
:
"
center
"
,
minWidth
:
130
,
show
:
!
0
},{
key
:
"
type
"
,
title
:
"
申请类型
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
location
"
,
title
:
"
定位
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
date
"
,
title
:
"
日期
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
key
:
"
scope
"
,
title
:
"
申请打卡范围
"
,
align
:
"
center
"
,
minWidth
:
240
,
show
:
!
0
},{
slot
:
"
file
"
,
title
:
"
附件
"
,
align
:
"
center
"
,
minWidth
:
240
,
show
:
!
0
},{
key
:
"
createtime
"
,
title
:
"
实际打卡时间
"
,
align
:
"
center
"
,
minWidth
:
300
,
show
:
!
0
},{
key
:
"
week
"
,
title
:
"
星期
"
,
align
:
"
center
"
,
minWidth
:
150
,
show
:
!
0
},{
slot
:
"
remark
"
,
title
:
"
备注
"
,
align
:
"
center
"
,
minWidth
:
120
,
show
:
!
0
}],
tableLoading
:
!
1
,
approvalStateIndexArray
:[],
tableData
:[],
tableSize
:
"
default
"
,
tableFullscreen
:
!
1
,
dataCount
:
0
,
collapse
:
!
1
,
editModalshow
:
!
1
,
editModalLoading
:
!
1
,
formItem
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
file_name
"
,
name
:
"
附件字段
"
,
type
:
"
multipleselect
"
,
show
:
!
0
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[{
value
:
"
name
"
,
label
:
"
姓名
"
},{
value
:
"
card
"
,
label
:
"
工号
"
},{
value
:
"
day
"
,
label
:
"
天数
"
},{
value
:
"
dept_name
"
,
label
:
"
行政部门
"
},{
value
:
"
ssbm
"
,
label
:
"
所属教学部
"
},{
value
:
"
phone
"
,
label
:
"
联系电话
"
},{
value
:
"
type
"
,
label
:
"
申请类型
"
},{
value
:
"
location
"
,
label
:
"
定位
"
},{
value
:
"
date
"
,
label
:
"
日期
"
},{
value
:
"
scope
"
,
label
:
"
申请打卡范围
"
},{
value
:
"
file
"
,
label
:
"
附件
"
},{
value
:
"
createtime
"
,
label
:
"
实际打卡时间
"
},{
value
:
"
week
"
,
label
:
"
星期
"
}]},{
id
:
"
daterange
"
,
name
:
"
时间范围
"
,
type
:
"
daterange
"
,
disabled
:
!
1
,
require
:
!
0
,
optList
:[]}],
formRule
:{
daterange
:[{
required
:
!
0
,
type
:
"
array
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}]},
defaultFormData
:{
daterange
:[],
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
file_name
:[]},
fileEditModalshow
:
!
1
,
fileEditModalLoading
:
!
1
,
fileFormItem
:[{
id
:
"
card_name
"
,
name
:
"
姓名/工号
"
,
type
:
"
input
"
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[]},{
id
:
"
file_name
"
,
name
:
"
附件字段
"
,
type
:
"
multipleselect
"
,
show
:
!
0
,
disabled
:
!
1
,
require
:
!
1
,
optList
:[{
value
:
"
name
"
,
label
:
"
姓名
"
},{
value
:
"
card
"
,
label
:
"
工号
"
},{
value
:
"
day
"
,
label
:
"
天数
"
},{
value
:
"
dept_name
"
,
label
:
"
行政部门
"
},{
value
:
"
ssbm
"
,
label
:
"
所属教学部
"
},{
value
:
"
phone
"
,
label
:
"
联系电话
"
},{
value
:
"
type
"
,
label
:
"
申请类型
"
},{
value
:
"
location
"
,
label
:
"
定位
"
},{
value
:
"
date
"
,
label
:
"
日期
"
},{
value
:
"
scope
"
,
label
:
"
申请打卡范围
"
},{
value
:
"
file
"
,
label
:
"
附件
"
},{
value
:
"
createtime
"
,
label
:
"
实际打卡时间
"
},{
value
:
"
week
"
,
label
:
"
星期
"
}]},{
id
:
"
daterange
"
,
name
:
"
时间范围
"
,
type
:
"
daterange
"
,
disabled
:
!
1
,
require
:
!
0
,
optList
:[]}],
fileFormRule
:{
item_id
:[{
required
:
!
0
,
type
:
"
string
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}],
rule_type
:[{
required
:
!
0
,
type
:
"
number
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}],
file_name_rule
:[{
required
:
!
0
,
type
:
"
array
"
,
message
:
"
该项不能为空
"
,
trigger
:
"
change
"
}]},
fileDefaultFormData
:{
form_id
:
""
,
user_id
:
""
,
role
:
"
Admin
"
,
audit_status
:
0
,
key_word
:
""
,
submit_time_start
:
""
,
submit_time_end
:
""
,
show_title
:[],
sort
:
""
,
rule_type
:
0
,
item_id
:
""
,
file_name_rule
:[]},
teamIdArray
:[],
fileNameRuleArray
:[]}},
created
:
function
(){},
mounted
:
function
(){
this
.
getData
(),
this
.
GetFromId
(),
this
.
GetFormSelect
()},
methods
:{
copy
:
function
(){
var
e
=
this
;
navigator
.
clipboard
.
writeText
(
this
.
passwrodValue
).
then
((
function
(){
e
.
$Message
.
success
(
"
复制成功
"
)}))},
GetFromId
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetFromId
().
then
((
function
(
t
){
e
.
fileDefaultFormData
.
form_id
=
t
.
response
}))},
GetFormSelect
:
function
(){
var
e
=
this
;
this
.
asc
.
getApiCommonGetFormSelect
().
then
((
function
(
t
){
e
.
teamIdArray
=
t
.
response
.
attr
.
map
((
function
(
e
){
return
{
label
:
e
.
name
,
value
:
e
.
id
}})),
e
.
fileNameRuleArray
=
t
.
response
.
selectlist
.
map
((
function
(
e
){
return
{
label
:
e
.
name
,
value
:
e
.
id
}}))}))},
datePickerChange
:
function
(
e
){
this
.
params
=
j
(
j
({},
this
.
params
),{},{
dateRange
:
e
,
begin_time
:
e
[
0
],
end_time
:
e
[
1
],
page_index
:
1
}),
this
.
getData
()},
fileImport
:
function
(){
var
e
=
this
;
this
.
$refs
.
formValidate
.
validate
((
function
(
t
){
t
&&
(
e
.
fileDefaultFormData
=
j
(
j
({},
e
.
fileDefaultFormData
),{},{
user_id
:
JSON
.
parse
(
M
.
a
.
get
(
"
admin-teacher-go2-corporation-userinfo
"
)).
user_id
,
submit_time_start
:
e
.
params
.
begin_time
,
submit_time_end
:
e
.
params
.
end_time
,
key_word
:
e
.
params
.
card_name
}),
e
.
hooks
.
myEncapsulationFunction
((
function
(){
return
e
.
btl
=!
0
,
E
(
e
.
fileDefaultFormData
).
then
((
function
(
t
){
return
1
===
t
.
code
&&
(
e
.
fileEditModalshow
=!
1
,
e
.
passwrodValue
=
t
.
response
.
password
,
e
.
passwordModal
=!
0
,
window
.
location
.
href
=
t
.
response
.
file_path
),
e
.
btl
=!
1
,
t
})).
catch
((
function
(){
e
.
btl
=!
1
}))})))}))},
ImportFile
:
function
(
e
){
var
t
=
this
,
a
=
{
list
:
function
(){
t
.
hooks
.
myEncapsulationFunction
((
function
(){
return
t
.
btl1
=!
0
,
t
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
t
.
params
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
window
.
location
.
href
=
e
.
response
),
t
.
btl1
=!
1
,
e
})).
catch
((
function
(){
t
.
btl1
=!
1
}))}))},
file
:
function
(){
t
.
$refs
.
formValidate
.
resetFields
(),
t
.
fileEditModalshow
=!
0
}};
a
[
e
]()},
getRangeOfElements
:
function
(
e
){
for
(
var
t
=
[],
a
=
0
;
a
<
e
.
length
;){
for
(
var
n
=
a
,
i
=
a
,
r
=
a
+
1
;
r
<
e
.
length
;
r
++
){
if
(
e
[
a
].
card
!==
e
[
r
].
card
||
e
[
a
].
type
!==
e
[
r
].
type
)
break
;
i
=
r
}
t
.
push
({
card
:
e
[
a
].
card
,
type
:
e
[
a
].
type
,
startIndex7Columns
:
n
,
endIndex7Columns
:
i
}),
a
=
i
+
1
}
return
t
},
findStartAndEndIndex
:
function
(
e
){
for
(
var
t
=
[],
a
=
e
[
0
],
n
=
0
,
i
=
1
;
i
<=
e
.
length
;
i
++
)
if
(
e
[
i
]
!==
a
||
i
===
e
.
length
){
var
r
=
i
-
1
;
t
.
push
({
element
:
a
,
startIndex
:
n
,
endIndex
:
r
}),
i
<
e
.
length
&&
(
a
=
e
[
i
],
n
=
i
)}
return
t
},
filtrationData
:
function
(
e
){
var
t
=
this
.
findStartAndEndIndex
(
e
.
map
((
function
(
e
,
t
){
return
e
.
card
})));
return
this
.
spanMethodObject
.
indexArray
=
t
,
e
.
forEach
((
function
(
e
,
a
){
t
.
forEach
((
function
(
t
){
e
.
card
===
t
.
element
&&
(
e
.
startIndex
=
t
.
startIndex
,
e
.
endIndex
=
t
.
endIndex
)}))})),
e
},
handleSpan
:
function
(
e
,
t
,
a
,
n
){
return
this
.
$refs
.
CTable
.
spanMethod
(),[
1
,
2
]},
search
:
function
(
e
){
this
.
params
=
j
(
j
({
card_nam
:
this
.
params
.
card_name
},
this
.
params
),{},{
begin_time
:
this
.
params
.
dateRange
[
0
],
end_time
:
this
.
params
.
dateRange
[
1
]}),
this
.
onPageChange
(
1
)},
reset
:
function
(){
this
.
params
=
{
card_name
:
""
,
begin_time
:
""
,
end_time
:
""
,
page_index
:
1
,
page_size
:
10
},
this
.
onPageChange
(
1
)},
getData
:
function
(){
var
e
=
this
;
this
.
tableLoading
=!
0
,
this
.
asc
.
postApiEnterpriseclockGetEnterpriseclockList
(
this
.
params
).
then
((
function
(
t
){
if
(
t
.
response
.
data
){
e
.
tableData
=
t
.
response
.
data
.
map
((
function
(
e
){
return
j
(
j
({},
e
),{},{
file
:
e
.
file
.
map
((
function
(
e
){
return
window
.
location
.
origin
+
e
}))})})),
e
.
dataCount
=
t
.
response
.
data_count
;
var
a
=
e
.
getRangeOfElements
(
e
.
tableData
);
e
.
tableData
=
e
.
tableData
.
map
((
function
(
e
){
return
a
.
forEach
((
function
(
t
){
e
.
card
===
t
.
card
&&
e
.
type
===
t
.
type
&&
(
e
=
j
(
j
({},
e
),
t
))})),
e
})),
e
.
$nextTick
((
function
(){
return
e
.
spanMethodObject
.
show
=!
0
})),
e
.
approvalStateIndexArray
=
e
.
getRangeOfElements
(
e
.
tableData
),
e
.
tableData
=
e
.
filtrationData
(
e
.
tableData
),
e
.
tk
++
}
else
e
.
tableData
=
[],
e
.
dataCount
=
0
,
e
.
tk
++
})).
finally
((
function
(){
e
.
tableLoading
=!
1
}))},
switchChange
:
function
(
e
,
t
,
a
){
var
n
=
this
;
this
.
tableData
[
a
].
is_enable
=
e
,
this
.
asc
.
getApiKeyKeyEnable
({
id
:
t
.
id
,
is_enable
:
e
}).
then
((
function
(
t
){
1
==
t
.
code
?
n
.
$Message
.
success
(
t
.
response
):(
n
.
tableData
[
a
].
is_enable
=
0
==
e
?
1
:
0
,
n
.
$Message
.
error
(
t
.
msg_detail
))}))},
rowEdit
:
function
(
e
){
var
t
=
this
;
this
.
editModalshow
=!
0
,
this
.
editModalLoading
=!
0
,
this
.
asc
.
getApiKeyGetKeyInfo
({
id
:
e
.
id
}).
then
((
function
(
e
){
t
.
$refs
.
ceditmodal
.
modalInit
(
"
edit
"
,
e
.
response
),
t
.
editModalLoading
=!
1
}))},
modalSubmit
:
function
(
e
){
var
t
=
this
;
this
.
hooks
.
myEncapsulationFunction
((
function
(){
var
a
=
[
"
postApiEnterpriseclockGetEnterpriseclockExport
"
,
"
postApiEnterpriseclockGetEnterpriseclockFileExport
"
][
"
list
"
!==
t
.
title
?
Number
(
!
0
):
Number
(
!
1
)];
return
t
.
asc
[
a
](
j
(
j
({},
e
),{},{
begin_time
:
S
()(
e
.
daterange
[
0
]).
format
(
"
YYYY-MM-DD
"
),
end_time
:
S
()(
e
.
daterange
[
1
]).
format
(
"
YYYY-MM-DD
"
)}))})).
then
((
function
(
e
){
return
1
===
e
.
code
&&
setTimeout
((
function
(){
return
window
.
location
.
href
=
e
.
response
}),
300
),
e
}))},
rowDelete
:
function
(
e
){
var
t
=
this
;
this
.
asc
.
getApiKeyKeyDel
({
id
:
e
.
id
,
is_del
:
1
}).
then
((
function
(
e
){
1
==
e
.
code
?(
t
.
$Message
.
success
(
e
.
msg
),
t
.
getData
()):
t
.
$Message
.
error
(
e
.
msg_detail
)}))},
onPageChange
:
function
(
e
){
this
.
params
.
page_index
=
e
,
this
.
getData
()},
onPageSizeChange
:
function
(
e
){
this
.
params
.
page_size
=
e
,
1
==
this
.
params
.
page_index
&&
this
.
onPageChange
(
1
)}}},
P
=
A
,
L
=
Object
(
d
[
"
a
"
])(
P
,
n
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
L
.
exports
},
"
3cee
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ab4f
"
)},
aa77
:
function
(
e
,
t
,
a
){
var
n
=
a
(
"
5ca1
"
),
i
=
a
(
"
be13
"
),
r
=
a
(
"
79e5
"
),
o
=
a
(
"
fdef
"
),
l
=
"
[
"
+
o
+
"
]
"
,
s
=
"
"
,
c
=
RegExp
(
"
^
"
+
l
+
l
+
"
*
"
),
d
=
RegExp
(
l
+
l
+
"
*$
"
),
u
=
function
(
e
,
t
,
a
){
var
i
=
{},
l
=
r
((
function
(){
return
!!
o
[
e
]()
||
s
[
e
]()
!=
s
})),
c
=
i
[
e
]
=
l
?
t
(
f
):
o
[
e
];
a
&&
(
i
[
a
]
=
c
),
n
(
n
.
P
+
n
.
F
*
l
,
"
String
"
,
i
)},
f
=
u
.
trim
=
function
(
e
,
t
){
return
e
=
String
(
i
(
e
)),
1
&
t
&&
(
e
=
e
.
replace
(
c
,
""
)),
2
&
t
&&
(
e
=
e
.
replace
(
d
,
""
)),
e
};
e
.
exports
=
u
},
ab4f
:
function
(
e
,
t
,
a
){},
c5f6
:
function
(
e
,
t
,
a
){
"
use strict
"
;
var
n
=
a
(
"
7726
"
),
i
=
a
(
"
69a8
"
),
r
=
a
(
"
2d95
"
),
o
=
a
(
"
5dbc
"
),
l
=
a
(
"
6a99
"
),
s
=
a
(
"
79e5
"
),
c
=
a
(
"
9093
"
).
f
,
d
=
a
(
"
11e9
"
).
f
,
u
=
a
(
"
86cc
"
).
f
,
f
=
a
(
"
aa77
"
).
trim
,
m
=
"
Number
"
,
p
=
n
[
m
],
h
=
p
,
b
=
p
.
prototype
,
g
=
r
(
a
(
"
2aeb
"
)(
b
))
==
m
,
y
=
"
trim
"
in
String
.
prototype
,
_
=
function
(
e
){
var
t
=
l
(
e
,
!
1
);
if
(
"
string
"
==
typeof
t
&&
t
.
length
>
2
){
t
=
y
?
t
.
trim
():
f
(
t
,
3
);
var
a
,
n
,
i
,
r
=
t
.
charCodeAt
(
0
);
if
(
43
===
r
||
45
===
r
){
if
(
a
=
t
.
charCodeAt
(
2
),
88
===
a
||
120
===
a
)
return
NaN
}
else
if
(
48
===
r
){
switch
(
t
.
charCodeAt
(
1
)){
case
66
:
case
98
:
n
=
2
,
i
=
49
;
break
;
case
79
:
case
111
:
n
=
8
,
i
=
55
;
break
;
default
:
return
+
t
}
for
(
var
o
,
s
=
t
.
slice
(
2
),
c
=
0
,
d
=
s
.
length
;
c
<
d
;
c
++
)
if
(
o
=
s
.
charCodeAt
(
c
),
o
<
48
||
o
>
i
)
return
NaN
;
return
parseInt
(
s
,
n
)}}
return
+
t
};
if
(
!
p
(
"
0o1
"
)
||!
p
(
"
0b1
"
)
||
p
(
"
+0x1
"
)){
p
=
function
(
e
){
var
t
=
arguments
.
length
<
1
?
0
:
e
,
a
=
this
;
return
a
instanceof
p
&&
(
g
?
s
((
function
(){
b
.
valueOf
.
call
(
a
)})):
r
(
a
)
!=
m
)?
o
(
new
h
(
_
(
t
)),
a
,
p
):
_
(
t
)};
for
(
var
v
,
w
=
a
(
"
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
(
"
,
"
),
k
=
0
;
w
.
length
>
k
;
k
++
)
i
(
h
,
v
=
w
[
k
])
&&!
i
(
p
,
v
)
&&
u
(
p
,
v
,
d
(
h
,
v
));
p
.
prototype
=
b
,
b
.
constructor
=
p
,
a
(
"
2aba
"
)(
n
,
m
,
p
)}},
e666
:
function
(
e
,
t
,
a
){},
fdef
:
function
(
e
,
t
){
e
.
exports
=
"
\t\n\
v
\
f
\r
\
u2028
\
u2029
\
ufeff
"
}}]);
\ No newline at end of file
\ No newline at end of file
src/pages/activityManagement/index.vue
浏览文件 @
322fba33
...
@@ -389,13 +389,13 @@ export default {
...
@@ -389,13 +389,13 @@ export default {
// vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
// vueCookies.remove('admin-teacher-go2-corporation-xxcjUrl')
if
(
res
.
code
===
1
)
{
if
(
res
.
code
===
1
)
{
this
.
fileEditModalshow
=
false
this
.
fileEditModalshow
=
false
this
.
btl
=
false
this
.
passwrodValue
=
res
.
response
.
password
this
.
passwrodValue
=
res
.
response
.
password
this
.
passwordModal
=
true
this
.
passwordModal
=
true
window
.
location
.
href
=
res
.
response
.
file_path
window
.
location
.
href
=
res
.
response
.
file_path
}
}
this
.
btl
=
false
return
res
return
res
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
btl
=
false
this
.
btl
=
false
...
@@ -425,9 +425,9 @@ export default {
...
@@ -425,9 +425,9 @@ export default {
this
.
btl1
=
true
this
.
btl1
=
true
return
this
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
this
.
params
).
then
(
res
=>
{
return
this
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
this
.
params
).
then
(
res
=>
{
if
(
res
.
code
===
1
){
if
(
res
.
code
===
1
){
this
.
btl1
=
false
window
.
location
.
href
=
res
.
response
window
.
location
.
href
=
res
.
response
}
}
this
.
btl1
=
false
return
res
return
res
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
btl1
=
false
this
.
btl1
=
false
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录