Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
Support
提交反馈
为 GitLab 提交贡献
登录
切换导航
教
教师下企业考勤(前端)
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
刘英杰
教师下企业考勤(前端)
提交
8a90dbe0
提交
8a90dbe0
编写于
3月 08, 2024
作者:
刘英杰
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v20240308 保存
上级
886a3b2a
流水线
#24489
已通过 ,包含阶段
in 30 second
变更
6
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
5 行增加
和
5 行删除
+5
-5
index.html
dist/index.html
+1
-1
app.f9cadc21.js
dist/js/app.f9cadc21.js
+1
-1
chunk-18665222.09194610.js
dist/js/chunk-18665222.09194610.js
+0
-1
chunk-18665222.2ef59d9c.js
dist/js/chunk-18665222.2ef59d9c.js
+1
-0
index.js
src/api/xxcj/index.js
+1
-1
index.vue
src/pages/activityManagement/index.vue
+1
-1
未找到文件。
dist/index.html
浏览文件 @
8a90dbe0
<!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.f144d0e0.js
></script><script
src=
js/app.1cd18d10.js
></script></body></html>
\ No newline at end of file
<!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.f144d0e0.js
></script><script
src=
js/app.f9cadc21.js
></script></body></html>
\ No newline at end of file
dist/js/app.
1cd18d10
.js
→
dist/js/app.
f9cadc21
.js
浏览文件 @
8a90dbe0
因为 它太大了无法显示 源差异 。您可以改为
查看blob
。
dist/js/chunk-18665222.09194610.js
已删除
100644 → 0
浏览文件 @
886a3b2a
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-18665222
"
],{
"
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
"
,
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
:
"
附件导出
"
,
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
:{
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
)],
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
]}}}},
d
=
s
,
c
=
a
(
"
2877
"
),
u
=
Object
(
c
[
"
a
"
])(
d
,
o
,
l
,
!
1
,
null
,
"
7c63ebaf
"
,
null
),
m
=
u
.
exports
,
f
=
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
(
c
[
"
a
"
])(
g
,
f
,
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
=
[],
D
=
{
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
}}},
k
=
D
,
C
=
(
a
(
"
3cee
"
),
Object
(
c
[
"
a
"
])(
k
,
v
,
w
,
!
1
,
null
,
"
7648d8d8
"
,
null
)),
x
=
C
.
exports
,
I
=
a
(
"
5a0c
"
),
S
=
a
.
n
(
I
),
O
=
a
(
"
b6bd
"
);
function
F
(
e
){
return
Object
(
O
[
"
a
"
])({
url
:
"
/xxcj/api/data/file/export/
"
.
concat
(
e
.
form_id
,
"
&user_id=
"
).
concat
(
e
.
user_id
),
method
:
"
post
"
,
data
:
e
})}
var
j
=
a
(
"
a78e
"
),
M
=
a
.
n
(
j
);
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
E
(
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
P
=
{
name
:
"
list
"
,
components
:{
CTable
:
m
,
CEditModal
:
_
,
SearchCondForm
:
x
},
data
:
function
(){
return
{
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
:{
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
=
E
(
E
({},
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
&&
(
M
.
a
.
set
(
"
admin-teacher-go2-corporation-xxcjUrl
"
,
1
),
e
.
fileDefaultFormData
=
E
(
E
({},
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
F
(
e
.
fileDefaultFormData
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
window
.
location
.
href
=
e
.
response
),
e
})).
finally
((
function
(){
M
.
a
.
remove
(
"
admin-teacher-go2-corporation-xxcjUrl
"
)}))})))}))},
ImportFile
:
function
(
e
){
var
t
=
this
,
a
=
{
list
:
function
(){
t
.
hooks
.
myEncapsulationFunction
((
function
(){
return
t
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
t
.
params
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
window
.
location
.
href
=
e
.
response
),
e
}))}))},
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
=
E
(
E
({
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
E
(
E
({},
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
=
E
(
E
({},
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
](
E
(
E
({},
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
)}}},
L
=
P
,
A
=
Object
(
c
[
"
a
"
])(
L
,
n
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
A
.
exports
},
"
3cee
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ab4f
"
)},
ab4f
:
function
(
e
,
t
,
a
){},
e666
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
dist/js/chunk-18665222.2ef59d9c.js
0 → 100644
浏览文件 @
8a90dbe0
(
window
[
"
webpackJsonp
"
]
=
window
[
"
webpackJsonp
"
]
||
[]).
push
([[
"
chunk-18665222
"
],{
"
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
"
,
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
:{
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
)],
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
]}}}},
d
=
s
,
c
=
a
(
"
2877
"
),
u
=
Object
(
c
[
"
a
"
])(
d
,
o
,
l
,
!
1
,
null
,
"
7c63ebaf
"
,
null
),
m
=
u
.
exports
,
f
=
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
(
c
[
"
a
"
])(
g
,
f
,
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
=
[],
D
=
{
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
}}},
k
=
D
,
C
=
(
a
(
"
3cee
"
),
Object
(
c
[
"
a
"
])(
k
,
v
,
w
,
!
1
,
null
,
"
7648d8d8
"
,
null
)),
x
=
C
.
exports
,
I
=
a
(
"
5a0c
"
),
S
=
a
.
n
(
I
),
O
=
a
(
"
b6bd
"
);
function
F
(
e
){
return
Object
(
O
[
"
a
"
])({
url
:
"
/xxcj/api/data-sync/file/export/
"
.
concat
(
e
.
form_id
,
"
?user_id=
"
).
concat
(
e
.
user_id
),
method
:
"
post
"
,
data
:
e
})}
var
j
=
a
(
"
a78e
"
),
M
=
a
.
n
(
j
);
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
E
(
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
P
=
{
name
:
"
list
"
,
components
:{
CTable
:
m
,
CEditModal
:
_
,
SearchCondForm
:
x
},
data
:
function
(){
return
{
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
:{
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
=
E
(
E
({},
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
&&
(
M
.
a
.
set
(
"
admin-teacher-go2-corporation-xxcjUrl
"
,
1
),
e
.
fileDefaultFormData
=
E
(
E
({},
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
F
(
e
.
fileDefaultFormData
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
window
.
location
.
href
=
e
.
response
),
e
})).
finally
((
function
(){
M
.
a
.
remove
(
"
admin-teacher-go2-corporation-xxcjUrl
"
)}))})))}))},
ImportFile
:
function
(
e
){
var
t
=
this
,
a
=
{
list
:
function
(){
t
.
hooks
.
myEncapsulationFunction
((
function
(){
return
t
.
asc
.
postApiEnterpriseclockGetEnterpriseclockExport
(
t
.
params
).
then
((
function
(
e
){
return
1
===
e
.
code
&&
(
window
.
location
.
href
=
e
.
response
),
e
}))}))},
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
=
E
(
E
({
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
E
(
E
({},
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
=
E
(
E
({},
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
](
E
(
E
({},
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
)}}},
L
=
P
,
A
=
Object
(
c
[
"
a
"
])(
L
,
n
,
i
,
!
1
,
null
,
null
,
null
);
t
[
"
default
"
]
=
A
.
exports
},
"
3cee
"
:
function
(
e
,
t
,
a
){
"
use strict
"
;
a
(
"
ab4f
"
)},
ab4f
:
function
(
e
,
t
,
a
){},
e666
:
function
(
e
,
t
,
a
){}}]);
\ No newline at end of file
src/api/xxcj/index.js
浏览文件 @
8a90dbe0
...
...
@@ -2,7 +2,7 @@ import request from '@/plugins/request';
export
function
xxcjImportFile
(
data
)
{
return
request
({
url
:
`/xxcj/api/data
/file/export/
${
data
.
form_id
}
&
user_id=
${
data
.
user_id
}
`
,
url
:
`/xxcj/api/data
-sync/file/export/
${
data
.
form_id
}
?
user_id=
${
data
.
user_id
}
`
,
method
:
'
post
'
,
data
});
...
...
src/pages/activityManagement/index.vue
浏览文件 @
8a90dbe0
...
...
@@ -93,7 +93,7 @@
<Modal
v-model=
"fileEditModalshow"
title=
"附件导出"
width=
"25"
min-
width=
"25"
>
<Form
ref=
"formValidate"
:model=
"fileDefaultFormData"
:rules=
"fileFormRule"
>
<FormItem
label=
"附件字段:"
prop=
"item_id"
>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录