Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
admin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
baihong
admin
Commits
85e6e325
Commit
85e6e325
authored
Apr 26, 2021
by
baihong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出照片
parent
39e070bb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
19 deletions
+49
-19
activityClocks.js
src/api/clock/activityClocks.js
+4
-0
photoReview.vue
src/view/clockEarly/photoReview.vue
+22
-9
photoReview.vue
src/view/signIn/photoReview.vue
+23
-10
No files found.
src/api/clock/activityClocks.js
View file @
85e6e325
...
...
@@ -5,9 +5,13 @@ export const activityClocks = (data) => {
export
const
getActivityConfigByPay
=
(
data
)
=>
{
return
$http
.
get
(
'/cms/configs/getActivityConfigByPay'
,
data
)
}
//导出
export
const
exportList
=
(
data
)
=>
{
return
$http
.
getExport
(
'/cms/activityClocks/exportList'
,
data
)
}
export
const
exportListImg
=
(
data
)
=>
{
return
$http
.
getExport
(
'/cms/activityFiles/exportList'
,
data
)
}
//奖励列表
export
const
configAwards
=
(
data
)
=>
{
return
$http
.
get
(
'/cms/configs/configAwards?type='
+
data
)
...
...
src/view/clockEarly/photoReview.vue
View file @
85e6e325
...
...
@@ -28,16 +28,13 @@
<Button
type=
"primary"
ghost
>
重 置
</Button>
</div>
<div
class=
"right"
>
<Button
type=
"primary"
>
导 出
</Button>
<Button
type=
"primary"
@
click=
"exportlist"
>
导 出
</Button>
</div>
</div>
<Row
style=
"margin:-10px 0 20px 0"
>
<Col
span=
"24"
><Button
type=
"primary"
@
click=
"confirm"
>
批量通过
</Button
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"modal1 = true;"
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"modal1 = true"
>
批量拒绝
</Button
></Col
>
...
...
@@ -125,7 +122,8 @@
<
script
>
import
{
activityFilesQueryList
,
checkActivityFile
checkActivityFile
,
exportListImg
}
from
"@/api/clock/activityClocks"
;
import
Pager
from
"@/view/common/Pager.vue"
;
import
{
formatDate
}
from
"@/libs/util"
;
...
...
@@ -208,10 +206,25 @@ export default {
title
:
"批量通过"
,
content
:
"您确认要批量通过吗?"
,
onOk
:
()
=>
{
this
.
checkActivity
(
1
)
this
.
checkActivity
(
1
);
},
onCancel
:
()
=>
{
onCancel
:
()
=>
{}
});
},
exportlist
()
{
exportListImg
({
objectType
:
1
}).
then
(
res
=>
{
if
(
res
)
{
const
xlsx
=
"application/vnd.ms-excel"
;
const
blob
=
new
Blob
([
res
],
{
type
:
xlsx
});
const
a
=
document
.
createElement
(
"a"
);
// 转换完成,创建一个a标签用于下载
a
.
download
=
"签到照片.xls"
;
a
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
a
.
click
();
a
.
remove
();
}
else
{
this
.
$message
.
error
(
"导出失败"
);
}
});
},
...
...
src/view/signIn/photoReview.vue
View file @
85e6e325
...
...
@@ -28,16 +28,13 @@
<Button
type=
"primary"
ghost
>
重 置
</Button>
</div>
<div
class=
"right"
>
<Button
type=
"primary"
>
导 出
</Button>
<Button
type=
"primary"
@
click=
"exportlist"
>
导 出
</Button>
</div>
</div>
<Row
style=
"margin:-10px 0 20px 0"
>
<Col
span=
"24"
><Button
type=
"primary"
@
click=
"confirm"
>
批量通过
</Button
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"modal1 = true;"
><Button
style=
"margin-left:20px"
type=
"primary"
@
click=
"modal1 = true"
>
批量拒绝
</Button
></Col
>
...
...
@@ -73,7 +70,7 @@
<a
@
click=
"
id = row.id;
confirm
confirm
;
"
>
通过
</a
>
...
...
@@ -125,7 +122,8 @@
<
script
>
import
{
activityFilesQueryList
,
checkActivityFile
checkActivityFile
,
exportListImg
}
from
"@/api/clock/activityClocks"
;
import
Pager
from
"@/view/common/Pager.vue"
;
import
{
formatDate
}
from
"@/libs/util"
;
...
...
@@ -208,10 +206,25 @@ export default {
title
:
"通过"
,
content
:
"您确认要批量通过吗?"
,
onOk
:
()
=>
{
this
.
checkActivity
(
1
)
this
.
checkActivity
(
1
);
},
onCancel
:
()
=>
{
onCancel
:
()
=>
{}
});
},
exportlist
()
{
exportListImg
({
objectType
:
2
}).
then
(
res
=>
{
if
(
res
)
{
const
xlsx
=
"application/vnd.ms-excel"
;
const
blob
=
new
Blob
([
res
],
{
type
:
xlsx
});
const
a
=
document
.
createElement
(
"a"
);
// 转换完成,创建一个a标签用于下载
a
.
download
=
"签到照片.xls"
;
a
.
href
=
window
.
URL
.
createObjectURL
(
blob
);
a
.
click
();
a
.
remove
();
}
else
{
this
.
$message
.
error
(
"导出失败"
);
}
});
},
...
...
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