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
e360ca85
Commit
e360ca85
authored
May 15, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
题库管理暂存
parent
66577a3f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
538 additions
and
111 deletions
+538
-111
index.js
src/api/jobQuestionBank/index.js
+304
-0
index.vue
src/views/courseInformation/examinationCompany/index.vue
+52
-3
index.vue
src/views/courseInformation/jobQuestionBank/index.vue
+182
-108
No files found.
src/api/jobQuestionBank/index.js
0 → 100644
View file @
e360ca85
import
request
from
'@/utils/request'
import
Qs
from
'qs'
// 课程管理列表查询
export
function
queryBLessonsByPagination
(
query
)
{
return
request
({
url
:
'/post/blesson/queryBLessonByPagination
\
n'
,
method
:
'get'
,
params
:
query
})
}
// 查询企业信息
export
function
findAllUnitInfo
(
query
)
{
return
request
({
url
:
'/sysunit/findAllUnitInfo'
,
method
:
'get'
,
params
:
query
})
}
// 查询岗位题库下面的公司集合
export
function
getEnterpriseListById
(
id
)
{
return
request
({
url
:
'/post/blesson/enterprise/'
+
id
,
method
:
'get'
})
}
// 课程管理查询详细信息
export
function
detailBLesson
(
businessId
)
{
return
request
({
url
:
'/blesson/detail/'
+
businessId
,
method
:
'get'
})
}
// 修改课程管理
export
function
updateBLesson
(
data
)
{
const
businessId
=
data
.
businessId
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/update/'
+
businessId
,
method
:
'put'
,
data
})
}
// 课程管理目录查询
export
function
queryBChaptersWithoutAuth
(
query
)
{
return
request
({
url
:
'/bchapter/queryBChaptersWithoutAuth'
,
method
:
'get'
,
params
:
query
})
}
// 查询课程方向下拉
export
function
queryDirectionsList
(
query
)
{
return
request
({
url
:
'/bdirection/queryDirectionsList'
,
method
:
'get'
,
params
:
query
})
}
// 课程管理新增
export
function
blessonAdd
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/post/blesson/add'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理新增
export
function
blessonUpdate
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/post/blesson/update'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 添加企业
export
function
addEnterprise
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/post/blesson/addEnterprise'
,
method
:
'post'
,
data
})
}
// 课程管理删除
export
function
blessonRemove
(
data
)
{
return
request
({
url
:
'/post/blesson/deleteLogical/'
+
data
,
method
:
'DELETE'
})
}
// 课程管理导入
export
function
excelImport
(
data
)
{
return
request
({
url
:
'/blesson/excelImport'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 课程管理恢复封面
export
function
defaultUrl
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/blesson/defaultUrl'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理修改封面
export
function
picImport
(
data
)
{
return
request
({
url
:
'/blesson/picImport'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 课程管理-目录添加章
export
function
bchapterAdd
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/add'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-章节查询视频
export
function
findVideoUrl
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bfile/findVideoUrl'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录删除节
export
function
bchapterRemove
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/remove'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录章节上移
export
function
updateTopChapter
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/updateTopChapter'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-目录章节下移
export
function
updateDownChapter
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bchapter/updateDownChapter'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 6.导入
export
function
uploadVideo
(
data
)
{
return
request
({
url
:
'/bfile/uploadVideo'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 上传压缩包
export
function
uploadZip
(
data
)
{
return
request
({
url
:
'/bfile/uploadData'
,
method
:
'post'
,
headers
:
{
'Content-Type'
:
'multipart/form-data'
},
transformRequest
:
[(
data
)
=>
{
return
data
}],
data
})
}
// 课程管理-章节查询PDF信息
export
function
findPdfInfo
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bfile/findPdfInfo'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
export
function
findZIpInfo
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bfile/findDataUrl'
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-根据章id查询节
export
function
findSection
(
query
)
{
return
request
({
url
:
'/bchapter/querySections'
,
method
:
'get'
,
params
:
query
})
}
// 课程管理-章节查询PDF_url信息
export
function
findPdfUrl
(
data
)
{
data
=
Qs
.
stringify
(
data
)
return
request
({
url
:
'/bfile/findPdfUrl '
,
method
:
'post'
,
data
,
headers
:
{}
})
}
// 课程管理-视频/pdf删除
export
function
delData
(
query
)
{
return
request
({
url
:
'/bfile/deleteFile'
,
method
:
'delete'
,
params
:
query
})
}
export
function
delZip
(
query
)
{
return
request
({
url
:
'/bfile/deleteDataFile'
,
method
:
'delete'
,
params
:
query
})
}
// 课程管理 岗位分类查询
export
function
queryTeaLessonJobs
(
query
)
{
return
request
({
url
:
'/tealessonjob/queryTeaLessonJobs'
,
method
:
'get'
,
params
:
query
})
}
// 课程管理 技术分类查询
export
function
queryTeaLessonTecs
(
query
)
{
return
request
({
url
:
'/tealessontec/queryTeaLessonTec'
,
method
:
'get'
,
params
:
query
})
}
// 课程管理 修改状态
export
function
updateCourseStatus
(
data
)
{
return
request
({
url
:
`/post/blesson/updateStatus/
${
data
.
flag
}
/
${
data
.
businessId
}
`
,
method
:
'put'
})
}
// 下载zip文件
export
function
downloadZip
(
params
)
{
return
request
({
url
:
'/bfile/download/'
,
method
:
'post'
,
params
})
}
// 分页查询课程评分
export
function
queryPcLessonEvaluationByPagination
(
query
)
{
return
request
({
url
:
'/pclessonevaluation/evaluationList'
,
method
:
'get'
,
params
:
query
})
}
src/views/courseInformation/examinationCompany/index.vue
View file @
e360ca85
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<div
class=
"app-container"
>
<div
class=
"app-container"
>
<!-- 标题-->
<!-- 标题-->
<div
class=
"examinationTitle"
>
<div
class=
"examinationTitle"
>
<span>
岗位分类:
{{
n
ame
}}
</span>
<span>
岗位分类:
{{
getJobClassificationN
ame
}}
</span>
<span
class=
"title-right"
>
题库难度:
{{
name
}}
</span>
<span
class=
"title-right"
>
题库难度:
{{
getDifficultyLevelName
(
difficultyClassify
)
}}
</span>
</div>
</div>
<examination-paper
:bussiness-id=
"courseId"
/>
<examination-paper
:bussiness-id=
"courseId"
/>
</div>
</div>
...
@@ -13,6 +13,7 @@
...
@@ -13,6 +13,7 @@
import
ExaminationPaper
from
'@/views/courseInformation/examinationCompany/examinationPaper.vue'
import
ExaminationPaper
from
'@/views/courseInformation/examinationCompany/examinationPaper.vue'
import
{
updateBLesson
}
from
'@/api/courseManagement/indexApi'
import
{
updateBLesson
}
from
'@/api/courseManagement/indexApi'
import
{
getDict
}
from
"@/api/system/dict/data"
;
export
default
{
export
default
{
name
:
'ExaminationManagement'
,
name
:
'ExaminationManagement'
,
...
@@ -26,8 +27,14 @@ export default {
...
@@ -26,8 +27,14 @@ export default {
courseId
:
null
,
courseId
:
null
,
bussinessId
:
''
,
// 业务id
bussinessId
:
''
,
// 业务id
name
:
''
,
// 课程名称
name
:
''
,
// 课程名称
jobClassify
:
''
,
// 岗位分类
passingGrade
:
''
,
// 及格分数
passingGrade
:
''
,
// 及格分数
id
:
null
difficultyClassify
:
''
,
// 及格分数
id
:
null
,
valueOptions
:
[
],
difficultyOptions
:
[
]
}
}
},
},
// mounted() {
// mounted() {
...
@@ -36,6 +43,8 @@ export default {
...
@@ -36,6 +43,8 @@ export default {
// this.name = this.$route.query.name
// this.name = this.$route.query.name
// },
// },
created
()
{
created
()
{
this
.
getJobClassification
()
this
.
getDifficultyLevel
()
// 接受路由传递的参数
// 接受路由传递的参数
// this.courseId = this.$route.query.businessId
// this.courseId = this.$route.query.businessId
this
.
courseId
=
this
.
$route
.
query
.
courseId
this
.
courseId
=
this
.
$route
.
query
.
courseId
...
@@ -43,9 +52,49 @@ export default {
...
@@ -43,9 +52,49 @@ export default {
this
.
id
=
this
.
$route
.
query
.
courseId
this
.
id
=
this
.
$route
.
query
.
courseId
this
.
name
=
this
.
$route
.
query
.
name
this
.
name
=
this
.
$route
.
query
.
name
this
.
passingGrade
=
this
.
$route
.
query
.
passingGrade
this
.
passingGrade
=
this
.
$route
.
query
.
passingGrade
this
.
jobClassify
=
this
.
$route
.
query
.
jobClassify
this
.
difficultyClassify
=
this
.
$route
.
query
.
difficultyClassify
console
.
log
(
this
.
id
,
this
.
name
,
this
.
passingGrade
)
console
.
log
(
this
.
id
,
this
.
name
,
this
.
passingGrade
)
},
},
computed
:
{
// 根据岗位的id获取岗位的名称
getJobClassificationName
()
{
if
(
!
this
.
jobClassify
)
{
return
''
}
const
values
=
this
.
jobClassify
.
split
(
','
)
// 将逗号分隔的多个值分割成数组
const
names
=
[]
this
.
valueOptions
.
forEach
(
item
=>
{
if
(
values
.
includes
(
item
.
dictValue
))
{
names
.
push
(
item
.
dictLabel
)
// 将找到的名称添加到数组中
}
})
return
names
.
join
(
','
)
// 将名称数组拼接成逗号分隔的字符串
}
},
methods
:
{
methods
:
{
// 获取难度等级
getDifficultyLevel
()
{
getDict
(
'difficulty_grade'
).
then
(
res
=>
{
this
.
difficultyOptions
=
res
.
data
})
},
// 根据难度等级的id获取难度等级的名称
getDifficultyLevelName
(
dictValue
)
{
let
name
=
''
this
.
difficultyOptions
.
forEach
(
item
=>
{
if
(
item
.
dictValue
===
dictValue
)
{
name
=
item
.
dictLabel
}
})
return
name
},
// 获取岗位类型
getJobClassification
()
{
getDict
(
'job_classify'
).
then
(
res
=>
{
this
.
valueOptions
=
res
.
data
})
},
tabClick
()
{
tabClick
()
{
// 在tab切换时更新bussinessId
// 在tab切换时更新bussinessId
console
.
log
(
'name'
,
this
.
name
)
console
.
log
(
'name'
,
this
.
name
)
...
...
src/views/courseInformation/jobQuestionBank/index.vue
View file @
e360ca85
This diff is collapsed.
Click to expand it.
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