Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea-resources-web
Project
Project
Details
Activity
Releases
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
张伯涛
tea-resources-web
Commits
5ae12ca0
Commit
5ae12ca0
authored
May 17, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
岗位题库导入
parent
4e5140f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
teaExamQuestionsCompany.js
src/api/examination/teaExamQuestionsCompany.js
+3
-4
examinationPaper.vue
...courseInformation/examinationCompany/examinationPaper.vue
+6
-2
No files found.
src/api/examination/teaExamQuestionsCompany.js
View file @
5ae12ca0
...
...
@@ -80,7 +80,7 @@ export function updateStatus(data) {
// 8.下载开课导入模板
export
function
importTemplateTrialCourse
(
params
)
{
return
request
({
url
:
'/
teaexamquestions
/importTemplate'
,
url
:
'/
post/blesson
/importTemplate'
,
method
:
'get'
,
responseType
:
'blob'
,
params
...
...
@@ -90,7 +90,7 @@ export function importTemplateTrialCourse(params) {
// 9.导入开课信息
export
function
importExcel
(
data
,
courseId
)
{
return
request
({
url
:
'/
teaexamquestions/importDictData'
,
url
:
'/
post/blesson/importDictData/'
+
courseId
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
...
...
@@ -98,7 +98,6 @@ export function importExcel(data, courseId) {
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
,
params
:
{
courseId
}
data
})
}
src/views/courseInformation/examinationCompany/examinationPaper.vue
View file @
5ae12ca0
...
...
@@ -924,7 +924,11 @@ export default {
importExcel
(
formData
,
courseId
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
res
.
data
)
if
(
res
.
data
.
length
===
0
)
{
this
.
$message
.
success
(
'导入成功'
)
}
else
{
this
.
$message
.
warning
(
`导入失败,失败行数为
${
res
.
data
.
join
(
','
)}
`
)
}
this
.
fileList
=
[]
// 导入成功后关闭弹出框
this
.
upload
.
open
=
false
...
...
@@ -933,7 +937,7 @@ export default {
}
this
.
importLoading
=
false
}).
catch
(
err
=>
{
this
.
$message
.
success
(
err
.
message
)
//
this.$message.success(err.message)
this
.
importLoading
=
false
})
}
...
...
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