Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
67bc3193
Commit
67bc3193
authored
Apr 16, 2024
by
taowenzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
退回修改添加修改意见
parent
d7019105
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
15 deletions
+31
-15
ruoyi-ui/src/api/smartSchool/openRecruitment/index.js
+5
-4
ruoyi-ui/src/views/smartSchool/openRecruitment/examManage/components/InfoReview.vue
+26
-11
No files found.
ruoyi-ui/src/api/smartSchool/openRecruitment/index.js
View file @
67bc3193
...
@@ -422,8 +422,7 @@ export function pass(examId, studentIds) {
...
@@ -422,8 +422,7 @@ export function pass(examId, studentIds) {
export
function
back
(
examId
,
studentIds
)
{
export
function
back
(
examId
,
studentIds
)
{
return
request
({
return
request
({
url
:
`/recruitExam/back/
${
examId
}
/
${
studentIds
}
`
,
url
:
`/recruitExam/back/
${
examId
}
/
${
studentIds
}
`
,
method
:
'put'
,
method
:
'put'
// data: file,
})
})
}
}
// 驳回
// 驳回
...
@@ -446,11 +445,13 @@ export function passOne(examId, studentIds) {
...
@@ -446,11 +445,13 @@ export function passOne(examId, studentIds) {
})
})
}
}
// 单个退回修改
// 单个退回修改
export
function
backOne
(
examId
,
studentIds
)
{
export
function
backOne
(
examId
,
studentIds
,
msg
)
{
return
request
({
return
request
({
url
:
`/recruitExam/backOne/
${
examId
}
/
${
studentIds
}
`
,
url
:
`/recruitExam/backOne/
${
examId
}
/
${
studentIds
}
`
,
method
:
'put'
,
method
:
'put'
,
// data: file,
data
:
{
message
:
msg
}
})
})
}
}
// 单个驳回
// 单个驳回
...
...
ruoyi-ui/src/views/smartSchool/openRecruitment/examManage/components/InfoReview.vue
View file @
67bc3193
...
@@ -209,9 +209,15 @@
...
@@ -209,9 +209,15 @@
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"资料"
:span=
"3"
>
<el-descriptions-item
label=
"资料"
:span=
"3"
>
<
template
v-for=
"item in form.fileList"
>
<
template
v-for=
"item in form.fileList"
>
<span
style=
"margin-right: 10px"
>
{{
item
.
fjmc
}}
</span>
<el-link
type=
"primary"
target=
"_blank"
:href=
"baseUrl + item.fjlj"
style=
"margin-right: 10px"
>
{{
item
.
fjmc
}}
</el-link>
</
template
>
</
template
>
<el-button
<el-button
v-if=
"form.fileList && form.fileList.length > 0"
type=
"text"
icon=
"el-icon-download"
type=
"text"
icon=
"el-icon-download"
@
click=
"downloadFile(form.fileList)"
@
click=
"downloadFile(form.fileList)"
>
下载
>
下载
...
@@ -459,14 +465,20 @@ export default {
...
@@ -459,14 +465,20 @@ export default {
downloadFile
(
files
)
{
downloadFile
(
files
)
{
const
info
=
this
.
form
const
info
=
this
.
form
const
zip
=
new
JSZip
()
const
zip
=
new
JSZip
()
const
names
=
files
.
map
(
item
=>
{
return
item
.
fjmc
})
const
names
=
files
.
map
(
item
=>
{
const
fileUrls
=
files
.
map
(
item
=>
{
return
this
.
baseUrl
+
item
.
fjlj
})
return
item
.
fjmc
const
buffers
=
fileUrls
.
map
(
item
=>
{
return
this
.
urlToBlob
(
item
)
})
})
const
fileUrls
=
files
.
map
(
item
=>
{
return
this
.
baseUrl
+
item
.
fjlj
})
const
buffers
=
fileUrls
.
map
(
item
=>
{
return
this
.
urlToBlob
(
item
)
})
Promise
.
all
(
buffers
).
then
((
res
)
=>
{
Promise
.
all
(
buffers
).
then
((
res
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
res
.
forEach
((
item
,
index
)
=>
{
zip
.
file
(
names
[
index
],
item
)
zip
.
file
(
names
[
index
],
item
)
})
})
zip
.
generateAsync
({
type
:
'blob'
}).
then
(
content
=>
{
zip
.
generateAsync
({
type
:
'blob'
}).
then
(
content
=>
{
FileSaver
.
saveAs
(
content
,
`
${
info
.
project
}
-
${
info
.
studentName
}
-
${
info
.
idCard
}
.zip`
)
FileSaver
.
saveAs
(
content
,
`
${
info
.
project
}
-
${
info
.
studentName
}
-
${
info
.
idCard
}
.zip`
)
})
})
})
})
...
@@ -483,10 +495,10 @@ export default {
...
@@ -483,10 +495,10 @@ export default {
const
dataURL
=
canvas
.
toDataURL
(
'image/jpeg'
,
0.9
);
// 0.9为图片质量,可以根据需要调整
const
dataURL
=
canvas
.
toDataURL
(
'image/jpeg'
,
0.9
);
// 0.9为图片质量,可以根据需要调整
// 将dataURL转换为Blob对象
// 将dataURL转换为Blob对象
fetch
(
dataURL
)
fetch
(
dataURL
)
.
then
(
res
=>
res
.
blob
())
.
then
(
res
=>
res
.
blob
())
.
then
(
blob
=>
{
.
then
(
blob
=>
{
resolve
(
blob
);
resolve
(
blob
);
});
});
};
};
img
.
onerror
=
(
error
)
=>
{
img
.
onerror
=
(
error
)
=>
{
reject
(
error
);
reject
(
error
);
...
@@ -675,8 +687,11 @@ export default {
...
@@ -675,8 +687,11 @@ export default {
const
examId
=
this
.
examId
const
examId
=
this
.
examId
const
id
=
row
.
studentId
||
this
.
ids
const
id
=
row
.
studentId
||
this
.
ids
this
.
$modal
.
confirm
(
'是否确认退回修改该数据?'
).
then
(
function
()
{
this
.
$prompt
(
'请输入退回原因'
,
'退回修改'
,
{
return
backOne
(
examId
,
id
)
confirmButtonText
:
'退回'
,
cancelButtonText
:
'取消'
}).
then
(({
value
})
=>
{
return
backOne
(
examId
,
id
,
value
)
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
getList
();
this
.
getList
();
this
.
$modal
.
msgSuccess
(
"退回修改成功"
);
this
.
$modal
.
msgSuccess
(
"退回修改成功"
);
...
...
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