Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-manager-ui
Commits
3c2ce6e6
Commit
3c2ce6e6
authored
Nov 21, 2024
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:代码优化
parent
44037b97
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1354 additions
and
1283 deletions
+1354
-1283
src/views/attendance/class/list.vue
src/views/attendance/class/list.vue
+34
-32
src/views/attendance/group/list.vue
src/views/attendance/group/list.vue
+51
-48
src/views/attendance/leave/record/list.vue
src/views/attendance/leave/record/list.vue
+40
-38
src/views/attendance/record/error/list.vue
src/views/attendance/record/error/list.vue
+113
-107
src/views/attendance/record/hik/list.vue
src/views/attendance/record/hik/list.vue
+140
-128
src/views/attendance/record/list.vue
src/views/attendance/record/list.vue
+243
-223
src/views/attendance/staff/stat/list.vue
src/views/attendance/staff/stat/list.vue
+16
-15
src/views/attendance/stat/list.vue
src/views/attendance/stat/list.vue
+263
-252
src/views/attendance/vacation/balance/list.vue
src/views/attendance/vacation/balance/list.vue
+39
-38
src/views/check/attend/record/list.vue
src/views/check/attend/record/list.vue
+83
-80
src/views/check/complain/record/list.vue
src/views/check/complain/record/list.vue
+83
-81
src/views/check/effect/record/list.vue
src/views/check/effect/record/list.vue
+83
-80
src/views/check/gowork/record/list.vue
src/views/check/gowork/record/list.vue
+83
-81
src/views/check/other/record/list.vue
src/views/check/other/record/list.vue
+83
-80
No files found.
src/views/attendance/class/list.vue
View file @
3c2ce6e6
...
@@ -15,38 +15,6 @@ export default {
...
@@ -15,38 +15,6 @@ export default {
dialogShow
,
dialogShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
},
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
align
=
"
center
"
><
/el-table-column
>
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
dialogform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
/** 子表列元素 */
/** 子表列元素 */
...
@@ -143,5 +111,39 @@ export default {
...
@@ -143,5 +111,39 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 处理表格数据
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
},
// 处理表头
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
align
=
"
center
"
><
/el-table-column
>
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
dialogform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/attendance/group/list.vue
View file @
3c2ce6e6
...
@@ -20,56 +20,9 @@ export default {
...
@@ -20,56 +20,9 @@ export default {
groupTemplate
,
groupTemplate
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
},
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
><
/el-table-column
>
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
add
(
row
);
// this.$router.push(
// {
// path:'/attendance/group/view'
// }
// )
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
edit
(
row
);
// this.$router.push(
// {
// path:'/attendance/group/view'
// }
// )
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
view
(
row
);
},
okFn
(
val
)
{
this
.
getData
();
this
.
isshow
=
val
;
},
},
data
()
{
data
()
{
return
{
return
{
// 是否展示表格
isshow
:
true
,
isshow
:
true
,
/** 子表列元素 */
/** 子表列元素 */
columnSet
:
[
columnSet
:
[
...
@@ -160,6 +113,56 @@ export default {
...
@@ -160,6 +113,56 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 处理表格数据
renderTable
(
tableData
)
{
return
(
<
el
-
table
stripe
data
=
{
tableData
}
class
=
"
total-table
"
>
{
this
.
columnSet
.
map
((
item
)
=>
this
.
renderTableColumn
(
item
))}
<
/el-table
>
);
},
// 处理表头数据
renderTableColumn
(
options
)
{
return
(
<
el
-
table
-
column
prop
=
{
options
.
prop
}
label
=
{
options
.
label
}
width
=
{
options
.
width
}
><
/el-table-column
>
);
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
add
(
row
);
// this.$router.push(
// {
// path:'/attendance/group/view'
// }
// )
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
edit
(
row
);
// this.$router.push(
// {
// path:'/attendance/group/view'
// }
// )
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
isshow
=
false
;
this
.
$refs
.
groupTemplate
.
view
(
row
);
},
okFn
(
val
)
{
this
.
getData
();
this
.
isshow
=
val
;
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/views/attendance/leave/record/list.vue
View file @
3c2ce6e6
...
@@ -28,47 +28,11 @@ export default {
...
@@ -28,47 +28,11 @@ export default {
drawerAudit
,
drawerAudit
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
drawerform
.
view
(
row
);
},
audit
(
row
)
{
//todo 审核页面进行审核
this
.
$refs
.
drawerform
.
edit
(
row
);
// this.$refs.draweraudit.view(row);
},
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/attendance/leave/record/exportExcel
"
,
{
idList
:
this
.
selection
,
name
:
this
.
$route
.
query
[
"
name
"
],
startTimeEnd
:
this
.
query
.
startTimeEnd
,
startTimeStart
:
this
.
query
.
startTimeStart
,
},
{
type
:
"
excel
"
,
name
:
"
请假记录
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
},
data
()
{
data
()
{
return
{
return
{
// 导出按钮加载状态
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -231,5 +195,43 @@ export default {
...
@@ -231,5 +195,43 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
drawerform
.
view
(
row
);
},
audit
(
row
)
{
//todo 审核页面进行审核
this
.
$refs
.
drawerform
.
edit
(
row
);
// this.$refs.draweraudit.view(row);
},
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/attendance/leave/record/exportExcel
"
,
{
idList
:
this
.
selection
,
name
:
this
.
$route
.
query
[
"
name
"
],
startTimeEnd
:
this
.
query
.
startTimeEnd
,
startTimeStart
:
this
.
query
.
startTimeStart
,
},
{
type
:
"
excel
"
,
name
:
"
请假记录
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
},
};
};
</
script
>
</
script
>
src/views/attendance/record/error/list.vue
View file @
3c2ce6e6
...
@@ -54,118 +54,15 @@ export default {
...
@@ -54,118 +54,15 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{
this
.
query
.
errorDateTimeStart
=
getFirstDay
();
this
.
query
.
errorDateTimeEnd
=
getLastDay
();
},
methods
:
{
countDown
()
{
if
(
this
.
percent
==
95
)
{
let
params
=
{};
for
(
let
value
of
this
.
config
.
search
)
{
if
(
this
.
query
[
value
.
name
])
{
params
[
value
.
name
]
=
this
.
query
[
value
.
name
];
}
}
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
let
that
=
this
;
this
.
$download
(
"
/attendance/record/error/exportExcel
"
,
{
...
params
,
},
{
type
:
"
excel
"
,
name
:
"
异常处理
"
}
)
.
then
(()
=>
{
this
.
percent
=
100
;
this
.
progress
=
false
;
that
.
isExport
=
false
;
})
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
progress
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
return
;
}
else
{
this
.
percent
=
this
.
percent
+
1
;
let
that
=
this
;
setTimeout
(
function
()
{
that
.
countDown
();
},
100
);
}
},
/** 导出Excel */
doExport
()
{
if
(
this
.
isExport
==
true
)
{
this
.
$message
.
info
(
"
数据正在导出中,请勿重复点击!
"
);
return
false
;
}
this
.
isExport
=
true
;
this
.
progress
=
true
;
this
.
percent
=
0
;
this
.
countDown
();
},
/** 重写新增方法 */
// toAdd(row) {
// this.$refs.dialogform.add(row);
// },
// /** 重写编辑方法 */
// toEdit(row) {
// this.$refs.dialogform.edit(row);
// },
// /** 重写查看方法 */
// toView(row) {
// this.$refs.dialogform.view(row);
// },
morehandle
()
{
let
arr
=
this
.
tableData
.
data
.
filter
((
item
)
=>
{
if
(
this
.
selection
.
includes
(
item
.
id
)
&&
item
.
processStatus
==
0
)
{
return
item
;
}
});
this
.
$nextTick
(()
=>
{
this
.
selection
=
arr
.
map
((
item
)
=>
item
.
id
);
});
if
(
arr
.
length
<
1
)
{
this
.
$message
.
error
(
"
请至少选择一条处理
"
);
return
;
}
this
.
$refs
.
drawerShow
.
edit
(
arr
[
0
],
arr
);
},
// 处理
handle
(
err
)
{
console
.
log
(
err
);
this
.
$refs
.
drawerShow
.
edit
(
err
,
[]);
},
// 撤销
reCancle
(
err
)
{
console
.
log
(
err
);
this
.
currentParams
=
err
;
this
.
dialogVisible
=
true
;
},
resetError
()
{
this
.
$post
(
"
attendance/record/error/revokeError
"
,
{
id
:
this
.
currentParams
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
dialogVisible
=
false
;
this
.
getData
();
}
});
},
},
data
()
{
data
()
{
return
{
return
{
// 进度展示值
percent
:
0
,
percent
:
0
,
// 导出按钮加载状态
isExport
:
false
,
isExport
:
false
,
// 是否显示进度条
progress
:
false
,
progress
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -325,6 +222,115 @@ export default {
...
@@ -325,6 +222,115 @@ export default {
currentParams
:
{},
currentParams
:
{},
};
};
},
},
created
()
{
this
.
query
.
errorDateTimeStart
=
getFirstDay
();
this
.
query
.
errorDateTimeEnd
=
getLastDay
();
},
methods
:
{
// 倒计时
countDown
()
{
if
(
this
.
percent
==
95
)
{
let
params
=
{};
for
(
let
value
of
this
.
config
.
search
)
{
if
(
this
.
query
[
value
.
name
])
{
params
[
value
.
name
]
=
this
.
query
[
value
.
name
];
}
}
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
let
that
=
this
;
this
.
$download
(
"
/attendance/record/error/exportExcel
"
,
{
...
params
,
},
{
type
:
"
excel
"
,
name
:
"
异常处理
"
}
)
.
then
(()
=>
{
this
.
percent
=
100
;
this
.
progress
=
false
;
that
.
isExport
=
false
;
})
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
progress
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
return
;
}
else
{
this
.
percent
=
this
.
percent
+
1
;
let
that
=
this
;
setTimeout
(
function
()
{
that
.
countDown
();
},
100
);
}
},
/** 导出Excel */
doExport
()
{
if
(
this
.
isExport
==
true
)
{
this
.
$message
.
info
(
"
数据正在导出中,请勿重复点击!
"
);
return
false
;
}
this
.
isExport
=
true
;
this
.
progress
=
true
;
this
.
percent
=
0
;
this
.
countDown
();
},
/** 重写新增方法 */
// toAdd(row) {
// this.$refs.dialogform.add(row);
// },
// /** 重写编辑方法 */
// toEdit(row) {
// this.$refs.dialogform.edit(row);
// },
// /** 重写查看方法 */
// toView(row) {
// this.$refs.dialogform.view(row);
// },
// 处理选择项
morehandle
()
{
let
arr
=
this
.
tableData
.
data
.
filter
((
item
)
=>
{
if
(
this
.
selection
.
includes
(
item
.
id
)
&&
item
.
processStatus
==
0
)
{
return
item
;
}
});
this
.
$nextTick
(()
=>
{
this
.
selection
=
arr
.
map
((
item
)
=>
item
.
id
);
});
if
(
arr
.
length
<
1
)
{
this
.
$message
.
error
(
"
请至少选择一条处理
"
);
return
;
}
this
.
$refs
.
drawerShow
.
edit
(
arr
[
0
],
arr
);
},
// 处理
handle
(
err
)
{
console
.
log
(
err
);
this
.
$refs
.
drawerShow
.
edit
(
err
,
[]);
},
// 撤销
reCancle
(
err
)
{
console
.
log
(
err
);
this
.
currentParams
=
err
;
this
.
dialogVisible
=
true
;
},
// 重置
resetError
()
{
this
.
$post
(
"
attendance/record/error/revokeError
"
,
{
id
:
this
.
currentParams
.
id
,
}).
then
((
res
)
=>
{
if
(
res
.
code
==
1
)
{
this
.
dialogVisible
=
false
;
this
.
getData
();
}
});
},
},
};
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
...
src/views/attendance/record/hik/list.vue
View file @
3c2ce6e6
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
:show-close=
"false"
:show-close=
"false"
>
>
<div
class=
"fresh_box"
>
<div
class=
"fresh_box"
>
<div
class=
"title_box"
style=
"margin-bottom: 20px
;
"
>
<div
class=
"title_box"
style=
"margin-bottom: 20px"
>
仅支持手动更新近90天的打卡数据,请选择需要更新的时间段:
仅支持手动更新近90天的打卡数据,请选择需要更新的时间段:
</div>
</div>
<el-date-picker
<el-date-picker
...
@@ -185,6 +185,144 @@ export default {
...
@@ -185,6 +185,144 @@ export default {
dialogShow
,
dialogShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
data
()
{
return
{
// 日期筛选项
pickerOptions0
:
{
disabledDate
(
time
)
{
let
curDate
=
new
Date
().
getTime
();
let
three
=
90
*
24
*
3600
*
1000
;
let
threeMonths
=
curDate
-
three
;
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
threeMonths
;
},
},
// 日期绑定值
freshDate
:
""
,
// 提交加载状态
submitLoad
:
false
,
// 按钮加载状态
btnLoading
:
false
,
// 手动更新加载状态
btnFreshLoading
:
false
,
// 是否显示弹窗
dialogOpen
:
false
,
// 是否展示按钮
showBtn
:
false
,
// 是否展示进度
progress
:
false
,
// 导出按钮加载状态
isExport
:
false
,
// 导出进度绑定值
percent
:
0
,
// 上传接口配置
upload
:
{
headers
:
{
Authorization
:
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
,
},
// 是否显示弹出层(员工关怀信息导入)
open
:
false
,
// 弹出层标题(员工关怀信息导入)
title
:
"
导入员工关怀信息数据
"
,
// 是否禁用上传
isUploading
:
false
,
// 是否更新已经存在的数据
updateSupport
:
0
,
// 上传的地址
url
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/attendance/attendance/record/hik/importData
"
,
},
// 表格配置项
config
:
{
isshowTabPane
:
true
,
search
:
[
{
name
:
"
staffName
"
,
type
:
"
text
"
,
label
:
"
员工姓名
"
,
fuzzy
:
true
,
},
{
name
:
"
workNum
"
,
type
:
"
text
"
,
label
:
"
工号
"
,
fuzzy
:
false
,
},
// {
// name: "deptId",
// type: "select",
// label: "所属部门",
// fuzzy: false
// },
// {
// name: "attendanceGroupId",
// type: "select",
// label: "所属考勤组",
// fuzzy: false
// },
// {
// name: "shiftsId",
// type: "select",
// label: "班次",
// fuzzy: false
// },
{
name
:
"
attendanceDateStart
"
,
type
:
"
date
"
,
label
:
"
考勤开始时间
"
,
fuzzy
:
false
,
},
{
name
:
"
attendanceDateEnd
"
,
type
:
"
date
"
,
label
:
"
考勤结束时间
"
,
fuzzy
:
false
,
},
],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
员工姓名
"
,
prop
:
"
staffName
"
},
{
label
:
"
工号
"
,
prop
:
"
workNum
"
},
{
label
:
"
大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
// {label: "考勤组", prop: "attendanceGroupName"},
// {label: "职位", prop: "positionName"},
// {label: "班次", prop: "shiftsName"},
{
label
:
"
考勤时间
"
,
prop
:
"
attendanceDate
"
,
formatter
:
this
.
formatterDate
,
},
{
label
:
"
考勤点名称
"
,
prop
:
"
attendanceAddress
"
},
{
label
:
"
事件源
"
,
prop
:
"
eventSource
"
},
// {
// label: "操作",
// width: 240,
// formatter: row => {
// return (
//
<
table
-
buttons
noAdd
noDel
noEdit
noView
row
=
{
row
}
// onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
// )
// }
// }
],
},
drawerhistory
:
false
,
exportList
:
[],
baseUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
};
},
created
()
{
created
()
{
this
.
query
.
attendanceDateStart
=
timestampToTime
(
new
Date
(),
3
);
this
.
query
.
attendanceDateStart
=
timestampToTime
(
new
Date
(),
3
);
this
.
query
.
attendanceDateEnd
=
timestampToTime
(
new
Date
(),
3
);
this
.
query
.
attendanceDateEnd
=
timestampToTime
(
new
Date
(),
3
);
...
@@ -343,7 +481,7 @@ export default {
...
@@ -343,7 +481,7 @@ export default {
}
else
{
}
else
{
this
.
percent
=
this
.
percent
+
1
;
this
.
percent
=
this
.
percent
+
1
;
let
that
=
this
;
let
that
=
this
;
setTimeout
(
function
()
{
setTimeout
(
function
()
{
that
.
countDown
();
that
.
countDown
();
},
100
);
},
100
);
}
}
...
@@ -374,132 +512,6 @@ export default {
...
@@ -374,132 +512,6 @@ export default {
},
},
afterRender
(
data
)
{},
afterRender
(
data
)
{},
},
},
data
()
{
return
{
pickerOptions0
:
{
disabledDate
(
time
)
{
let
curDate
=
new
Date
().
getTime
();
let
three
=
90
*
24
*
3600
*
1000
;
let
threeMonths
=
curDate
-
three
;
return
time
.
getTime
()
>
Date
.
now
()
||
time
.
getTime
()
<
threeMonths
;
},
},
freshDate
:
""
,
submitLoad
:
false
,
btnLoading
:
false
,
btnFreshLoading
:
false
,
dialogOpen
:
false
,
showBtn
:
false
,
progress
:
false
,
isExport
:
false
,
percent
:
0
,
upload
:
{
headers
:
{
Authorization
:
window
.
sessionStorage
.
getItem
(
"
token
"
)
||
""
,
},
// 是否显示弹出层(员工关怀信息导入)
open
:
false
,
// 弹出层标题(员工关怀信息导入)
title
:
"
导入员工关怀信息数据
"
,
// 是否禁用上传
isUploading
:
false
,
// 是否更新已经存在的数据
updateSupport
:
0
,
// 上传的地址
url
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/attendance/attendance/record/hik/importData
"
,
},
config
:
{
isshowTabPane
:
true
,
search
:
[
{
name
:
"
staffName
"
,
type
:
"
text
"
,
label
:
"
员工姓名
"
,
fuzzy
:
true
,
},
{
name
:
"
workNum
"
,
type
:
"
text
"
,
label
:
"
工号
"
,
fuzzy
:
false
,
},
// {
// name: "deptId",
// type: "select",
// label: "所属部门",
// fuzzy: false
// },
// {
// name: "attendanceGroupId",
// type: "select",
// label: "所属考勤组",
// fuzzy: false
// },
// {
// name: "shiftsId",
// type: "select",
// label: "班次",
// fuzzy: false
// },
{
name
:
"
attendanceDateStart
"
,
type
:
"
date
"
,
label
:
"
考勤开始时间
"
,
fuzzy
:
false
,
},
{
name
:
"
attendanceDateEnd
"
,
type
:
"
date
"
,
label
:
"
考勤结束时间
"
,
fuzzy
:
false
,
},
],
columns
:
[
{
type
:
"
selection
"
,
width
:
60
},
{
type
:
"
index
"
,
label
:
"
序号
"
,
width
:
50
},
{
label
:
"
员工姓名
"
,
prop
:
"
staffName
"
},
{
label
:
"
工号
"
,
prop
:
"
workNum
"
},
{
label
:
"
大厅
"
,
prop
:
"
salaName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
{
label
:
"
部门
"
,
prop
:
"
deptName
"
,
formatter
:
this
.
formatter
,
show
:
true
,
},
// {label: "考勤组", prop: "attendanceGroupName"},
// {label: "职位", prop: "positionName"},
// {label: "班次", prop: "shiftsName"},
{
label
:
"
考勤时间
"
,
prop
:
"
attendanceDate
"
,
formatter
:
this
.
formatterDate
,
},
{
label
:
"
考勤点名称
"
,
prop
:
"
attendanceAddress
"
},
{
label
:
"
事件源
"
,
prop
:
"
eventSource
"
},
// {
// label: "操作",
// width: 240,
// formatter: row => {
// return (
//
<
table
-
buttons
noAdd
noDel
noEdit
noView
row
=
{
row
}
// onEdit={this.toEdit} onView={this.toView} onDel={this.toDel} />
// )
// }
// }
],
},
drawerhistory
:
false
,
exportList
:
[],
baseUrl
:
process
.
env
.
VUE_APP_API_BASE_URL
+
"
/
"
,
};
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
...
...
src/views/attendance/record/list.vue
View file @
3c2ce6e6
This diff is collapsed.
Click to expand it.
src/views/attendance/staff/stat/list.vue
View file @
3c2ce6e6
...
@@ -16,23 +16,9 @@ export default {
...
@@ -16,23 +16,9 @@ export default {
dialogShow
,
dialogShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
dialogform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -78,5 +64,20 @@ export default {
...
@@ -78,5 +64,20 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
dialogform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
this
.
$refs
.
dialogform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
this
.
$refs
.
dialogform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/attendance/stat/list.vue
View file @
3c2ce6e6
This diff is collapsed.
Click to expand it.
src/views/attendance/vacation/balance/list.vue
View file @
3c2ce6e6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
:disabled=
"isExport"
:disabled=
"isExport"
size=
"mini"
size=
"mini"
slot=
"table-head-left2"
slot=
"table-head-left2"
style=
"margin-left: 10px
;
"
style=
"margin-left: 10px"
>
导出
</el-button
>
导出
</el-button
>
>
</LayoutTable>
</LayoutTable>
...
@@ -25,45 +25,9 @@ export default {
...
@@ -25,45 +25,9 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
// 导出
doExport
()
{
this
.
isExport
=
true
;
let
params
=
{};
for
(
let
value
of
this
.
config
.
search
)
{
if
(
this
.
query
[
value
.
name
])
{
params
[
value
.
name
]
=
this
.
query
[
value
.
name
];
}
}
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
this
.
$download
(
"
/attendance/vacation/balance/exportExcel
"
,
{
...
params
,
},
{
type
:
"
excel
"
,
name
:
"
员工假期余额
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 查看不同类型假期记录 */
handleCountDays
(
row
,
column
,
val
)
{
this
.
$refs
.
drawerform
.
view
({
type
:
this
.
util_formatter
(
"
AllHolidays
"
,
column
.
property
),
staffId
:
row
.
staffId
,
id
:
row
.
id
,
val
,
});
},
},
data
()
{
data
()
{
return
{
return
{
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -153,5 +117,42 @@ export default {
...
@@ -153,5 +117,42 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 导出
doExport
()
{
this
.
isExport
=
true
;
let
params
=
{};
for
(
let
value
of
this
.
config
.
search
)
{
if
(
this
.
query
[
value
.
name
])
{
params
[
value
.
name
]
=
this
.
query
[
value
.
name
];
}
}
if
(
this
.
selection
.
length
>
0
)
{
params
[
"
idList
"
]
=
this
.
selection
;
}
this
.
$download
(
"
/attendance/vacation/balance/exportExcel
"
,
{
...
params
,
},
{
type
:
"
excel
"
,
name
:
"
员工假期余额
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 查看不同类型假期记录 */
handleCountDays
(
row
,
column
,
val
)
{
this
.
$refs
.
drawerform
.
view
({
type
:
this
.
util_formatter
(
"
AllHolidays
"
,
column
.
property
),
staffId
:
row
.
staffId
,
id
:
row
.
id
,
val
,
});
},
},
};
};
</
script
>
</
script
>
src/views/check/attend/record/list.vue
View file @
3c2ce6e6
...
@@ -71,86 +71,6 @@ export default {
...
@@ -71,86 +71,6 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
考勤绩效记录核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/attend/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/attend/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
考勤绩效记录核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 用户导入参数
// 用户导入参数
...
@@ -166,7 +86,9 @@ export default {
...
@@ -166,7 +86,9 @@ export default {
// 上传的地址
// 上传的地址
url
:
"
/attendance/check/attend/record/importData
"
,
url
:
"
/attendance/check/attend/record/importData
"
,
},
},
// 导出加载状态
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -346,5 +268,86 @@ export default {
...
@@ -346,5 +268,86 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 图片凭证点击操作
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
考勤绩效记录核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/attend/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/attend/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
考勤绩效记录核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/check/complain/record/list.vue
View file @
3c2ce6e6
...
@@ -71,86 +71,6 @@ export default {
...
@@ -71,86 +71,6 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
评价绩效投诉核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/complain/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/complain/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
评价绩效投诉核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 用户导入参数
// 用户导入参数
...
@@ -166,8 +86,9 @@ export default {
...
@@ -166,8 +86,9 @@ export default {
// 上传的地址
// 上传的地址
url
:
"
/m/check/complain/record/importData
"
,
url
:
"
/m/check/complain/record/importData
"
,
},
},
// 导出按钮加载项
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -358,5 +279,86 @@ export default {
...
@@ -358,5 +279,86 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 图片凭证点击事件
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
评价绩效投诉核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/complain/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/complain/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
评价绩效投诉核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/check/effect/record/list.vue
View file @
3c2ce6e6
...
@@ -72,86 +72,6 @@ export default {
...
@@ -72,86 +72,6 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
效能绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/effect/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/effect/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
效能绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 用户导入参数
// 用户导入参数
...
@@ -167,7 +87,9 @@ export default {
...
@@ -167,7 +87,9 @@ export default {
// 上传的地址
// 上传的地址
url
:
"
/m/check/effect/record/importData
"
,
url
:
"
/m/check/effect/record/importData
"
,
},
},
// 导出按钮加载状态
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -366,5 +288,86 @@ export default {
...
@@ -366,5 +288,86 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 图片凭证点击操作
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
效能绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/effect/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/effect/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
效能绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/check/gowork/record/list.vue
View file @
3c2ce6e6
...
@@ -71,86 +71,6 @@ export default {
...
@@ -71,86 +71,6 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
办件绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/gowork/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/gowork/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
办件绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 用户导入参数
// 用户导入参数
...
@@ -166,8 +86,9 @@ export default {
...
@@ -166,8 +86,9 @@ export default {
// 上传的地址
// 上传的地址
url
:
"
/m/check/gowork/record/importData
"
,
url
:
"
/m/check/gowork/record/importData
"
,
},
},
// 导出按钮加载状态
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -330,5 +251,86 @@ export default {
...
@@ -330,5 +251,86 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 图片凭证点击操作
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
办件绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/gowork/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/gowork/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
办件绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
src/views/check/other/record/list.vue
View file @
3c2ce6e6
...
@@ -71,86 +71,6 @@ export default {
...
@@ -71,86 +71,6 @@ export default {
drawerShow
,
drawerShow
,
},
},
mixins
:
[
table
],
mixins
:
[
table
],
created
()
{},
methods
:
{
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
其它绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/other/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/other/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
其他绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
data
()
{
data
()
{
return
{
return
{
// 用户导入参数
// 用户导入参数
...
@@ -166,7 +86,9 @@ export default {
...
@@ -166,7 +86,9 @@ export default {
// 上传的地址
// 上传的地址
url
:
"
/m/check/other/record/importData
"
,
url
:
"
/m/check/other/record/importData
"
,
},
},
// 导出按钮加载状态
isExport
:
false
,
isExport
:
false
,
// 表格配置项
config
:
{
config
:
{
isshowTabPane
:
true
,
isshowTabPane
:
true
,
search
:
[
search
:
[
...
@@ -339,5 +261,86 @@ export default {
...
@@ -339,5 +261,86 @@ export default {
},
},
};
};
},
},
created
()
{},
methods
:
{
// 图片凭证点击操作
handleCellClick
(
row
,
column
,
event
,
cell
)
{
if
(
column
.
label
==
"
图片凭证
"
)
{
const
suffix
=
`(bmp|jpg|png|tif|gif|pcx|tga|exif|fpx|svg|psd|cdr|pcd|dxf|ufo|eps|ai|raw|WMF|webp|jpeg)`
;
const
regular
=
new
RegExp
(
`.*\.
${
suffix
}
`
);
regular
.
test
(
row
.
filePaths
);
if
(
!
regular
.
test
(
row
.
filePaths
))
{
downloadFile
(
row
.
filePaths
,
row
.
fileName
);
}
}
},
/** 导入 */
handleImport
()
{
this
.
upload
.
title
=
"
其它绩效核查信息导入
"
;
this
.
upload
.
open
=
true
;
},
/** 下载模板操作 */
downloadTemplate
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/other/record/downloadTemplate
"
,
{},
{
type
:
"
excel
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
this
.
upload
.
isUploading
=
true
;
},
/** 文件上传成功处理 */
handleFileSuccess
(
response
,
file
,
fileList
)
{
this
.
upload
.
open
=
false
;
this
.
upload
.
isUploading
=
false
;
this
.
$refs
.
upload
.
clearFiles
();
this
.
$alert
(
response
.
msg
,
"
导入结果
"
,
{
dangerouslyUseHTMLString
:
true
});
this
.
getData
();
},
/** 提交上传文件 */
submitFileForm
()
{
this
.
$refs
.
upload
.
submit
();
},
/** 导出Excel */
doExport
()
{
this
.
isExport
=
true
;
this
.
$download
(
"
/check/other/record/exportExcel
"
,
{
...
this
.
query
,
page
:
1
,
size
:
-
1
,
},
{
type
:
"
excel
"
,
name
:
"
其他绩效核查信息
"
}
)
.
then
(()
=>
(
this
.
isExport
=
false
))
.
catch
((
error
)
=>
{
this
.
isExport
=
false
;
this
.
$message
.
error
(
error
.
message
);
});
},
/** 重写新增方法 */
toAdd
(
row
)
{
this
.
$refs
.
drawerform
.
add
(
row
);
},
/** 重写编辑方法 */
toEdit
(
row
)
{
row
.
view
=
"
核查
"
;
this
.
$refs
.
drawerform
.
edit
(
row
);
},
/** 重写查看方法 */
toView
(
row
)
{
row
.
view
=
"
查看
"
;
this
.
$refs
.
drawerform
.
view
(
row
);
},
},
};
};
</
script
>
</
script
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment