Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tea_resources_pc
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_pc
Commits
9c7f0684
Commit
9c7f0684
authored
May 16, 2024
by
刘怀志
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
岗位考核
parent
9893aef4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
73 additions
and
8 deletions
+73
-8
learnLession.js
src/api/learnLession.js
+7
-0
EduExercise.vue
src/components/EduExercise/EduExercise.vue
+19
-1
index.vue
src/views/courseResources/courseMall/index.vue
+27
-6
examCompany.vue
src/views/learningCenter/examCompany.vue
+20
-1
No files found.
src/api/learnLession.js
View file @
9c7f0684
...
@@ -128,6 +128,13 @@ export function queryBLessonByPagination(data) {
...
@@ -128,6 +128,13 @@ export function queryBLessonByPagination(data) {
data
data
})
})
}
}
// 用户删除答题记录接口
export
function
removeLogical
(
id
)
{
return
request
({
url
:
'/post/user/blesson/removeLogical/'
+
id
,
method
:
'DELETE'
})
}
// 用户查询试卷
// 用户查询试卷
export
function
findByLessonIdExam
(
data
)
{
export
function
findByLessonIdExam
(
data
)
{
data
=
Qs
.
stringify
(
data
)
data
=
Qs
.
stringify
(
data
)
...
...
src/components/EduExercise/EduExercise.vue
View file @
9c7f0684
...
@@ -187,7 +187,8 @@ export default {
...
@@ -187,7 +187,8 @@ export default {
'score'
,
'score'
,
'isFalse'
,
'isFalse'
,
'getscore'
,
'getscore'
,
'black'
'black'
,
'sbumitFinish'
],
],
data
()
{
data
()
{
return
{
return
{
...
@@ -229,6 +230,23 @@ export default {
...
@@ -229,6 +230,23 @@ export default {
if
(
val
!=
''
)
{
if
(
val
!=
''
)
{
this
.
$emit
(
'selectedClick'
,
val
)
this
.
$emit
(
'selectedClick'
,
val
)
}
}
},
sbumitFinish
(
val
,
oldVal
)
{
console
.
log
(
'KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKK'
,
this
.
exeUAnswer
)
if
(
this
.
exeUAnswer
&&
this
.
exeUAnswer
!=
''
)
{
if
(
this
.
exeType
==
'multipleSelect'
)
{
this
.
msAnswer
=
this
.
exeUAnswer
.
split
(
','
)
}
if
(
this
.
exeType
==
'singleSelect'
)
{
this
.
ssAnswer
=
this
.
exeUAnswer
}
if
(
this
.
exeType
==
'judge'
)
{
this
.
juAnswer
=
this
.
exeUAnswer
}
if
(
this
.
exeType
==
'text'
)
{
this
.
textAnswer
=
this
.
exeUAnswer
}
}
}
}
},
},
mounted
()
{
mounted
()
{
...
...
src/views/courseResources/courseMall/index.vue
View file @
9c7f0684
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
/>
/>
<div
v-show=
"showExamBtns"
class=
"exam-area"
>
<div
v-show=
"showExamBtns"
class=
"exam-area"
>
<el-link
type=
"primary"
@
click=
"showExamRecord"
>
考核记录
</el-link>
<el-link
type=
"primary"
@
click=
"showExamRecord"
>
考核记录
</el-link>
<el-button
type=
"warning"
plain
@
click=
"startExam"
>
{{
this
.
examData
.
status
===
'1'
?
'继续岗位考核'
:
(
this
.
examData
.
status
===
'2'
?
'重新岗位考核'
:
'开始岗位考核'
)
}}
</el-button>
<el-button
type=
"warning"
plain
@
click=
"startExam
('todo')
"
>
{{
this
.
examData
.
status
===
'1'
?
'继续岗位考核'
:
(
this
.
examData
.
status
===
'2'
?
'重新岗位考核'
:
'开始岗位考核'
)
}}
</el-button>
</div>
</div>
</div>
</div>
...
@@ -182,7 +182,7 @@
...
@@ -182,7 +182,7 @@
width=
"180"
width=
"180"
/>
/>
<el-table-column
<el-table-column
prop=
"
submit
Time"
prop=
"
end
Time"
label=
"提交时间"
label=
"提交时间"
width=
"180"
width=
"180"
/>
/>
...
@@ -219,7 +219,7 @@ import NavList from '@/views/homePage/components/NavList/index'
...
@@ -219,7 +219,7 @@ import NavList from '@/views/homePage/components/NavList/index'
import
{
queryBLessonsByPagination
}
from
'@/api/bLesson/courseResources'
import
{
queryBLessonsByPagination
}
from
'@/api/bLesson/courseResources'
import
{
selectDictLabel
}
from
'@/utils/common'
import
{
selectDictLabel
}
from
'@/utils/common'
import
dictCons
from
'@/utils/dictCons'
import
dictCons
from
'@/utils/dictCons'
import
{
queryAllExamQuestionDto
,
queryBLessonByPagination
}
from
'@/api/learnLession'
import
{
queryAllExamQuestionDto
,
queryBLessonByPagination
,
removeLogical
}
from
'@/api/learnLession'
import
{
mapGetters
}
from
'vuex'
import
{
mapGetters
}
from
'vuex'
export
default
{
export
default
{
...
@@ -353,15 +353,36 @@ export default {
...
@@ -353,15 +353,36 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleDelete
(
index
,
row
)
{
const
id
=
row
.
businessId
this
.
$confirm
(
'是否确认操作?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(
function
()
{
return
removeLogical
(
id
)
}).
then
(()
=>
{
this
.
getExamTableData
()
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
}).
catch
(
function
()
{
})
},
handleEdit
(
index
,
row
)
{
handleEdit
(
index
,
row
)
{
// 1 继续答题
// 1 继续答题
// 2 重新答题
// 2 重新答题
// 什么值都没有是开始答题
// 什么值都没有是开始答题
if
(
row
.
status
==
'1'
)
{
if
(
row
.
status
==
'1'
)
{
this
.
startExam
()
this
.
startExam
(
'todo'
)
}
else
{
this
.
startExam
(
'done'
)
}
}
},
},
startExam
()
{
startExam
(
type
=
'todo'
)
{
console
.
log
(
'startExam'
,
this
.
jobClassifyOptions
,
this
.
difficultyGradeOptions
,
this
.
queryParams
)
console
.
log
(
'startExam'
,
this
.
jobClassifyOptions
,
this
.
difficultyGradeOptions
,
this
.
queryParams
)
let
jobClassifyText
=
''
let
jobClassifyText
=
''
let
difficultyClassifyText
=
''
let
difficultyClassifyText
=
''
...
@@ -383,7 +404,7 @@ export default {
...
@@ -383,7 +404,7 @@ export default {
businessId
:
this
.
examData
.
businessId
,
businessId
:
this
.
examData
.
businessId
,
questionId
:
this
.
examData
.
questionId
?
this
.
examData
.
questionId
:
''
,
questionId
:
this
.
examData
.
questionId
?
this
.
examData
.
questionId
:
''
,
title
:
jobClassifyText
+
difficultyClassifyText
+
'考核'
,
title
:
jobClassifyText
+
difficultyClassifyText
+
'考核'
,
type
:
'todo'
type
:
type
}
}
})
})
},
},
...
...
src/views/learningCenter/examCompany.vue
View file @
9c7f0684
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
</div>
</div>
</div>
</div>
<div
class=
"detail-header"
>
<div
class=
"detail-header"
>
共
{{
qsList
.
length
}}
道题,总分值:
{{
totalScore
}}
分
共
{{
qsList
.
length
}}
道题,总分值:
{{
totalScore
}}
分
| 及格分:
{{
priceScore
}}
分
</div>
</div>
<div
v-show=
"type !== 'todo'"
class=
"detail-header-total"
>
<div
v-show=
"type !== 'todo'"
class=
"detail-header-total"
>
<span
class=
"score-text"
>
本次考核成绩:
</span>
<span
class=
"score-text"
>
本次考核成绩:
</span>
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
<edu-exe
<edu-exe
:id=
"'s' + index"
:id=
"'s' + index"
:is-finish=
"type !== 'todo'"
:is-finish=
"type !== 'todo'"
:sbumit-finish=
"sbumitFinsh"
:exe-index=
"index + 1"
:exe-index=
"index + 1"
:exe-subject=
"item.questionStem"
:exe-subject=
"item.questionStem"
:exe-type=
"views[item.questionType - 1]"
:exe-type=
"views[item.questionType - 1]"
...
@@ -56,6 +57,7 @@ export default {
...
@@ -56,6 +57,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
sbumitFinsh
:
false
,
getTotalScore
:
null
,
// 得分总分
getTotalScore
:
null
,
// 得分总分
title
:
this
.
$route
.
query
.
title
,
title
:
this
.
$route
.
query
.
title
,
lessonId
:
this
.
$route
.
query
.
lessonId
,
lessonId
:
this
.
$route
.
query
.
lessonId
,
...
@@ -64,6 +66,7 @@ export default {
...
@@ -64,6 +66,7 @@ export default {
type
:
this
.
$route
.
query
.
type
,
type
:
this
.
$route
.
query
.
type
,
qsList
:
[],
qsList
:
[],
totalScore
:
0
,
totalScore
:
0
,
priceScore
:
0
,
questionsId
:
0
,
questionsId
:
0
,
views
:
[
'singleSelect'
,
'multipleSelect'
,
'judge'
,
'text'
]
views
:
[
'singleSelect'
,
'multipleSelect'
,
'judge'
,
'text'
]
}
}
...
@@ -85,17 +88,33 @@ export default {
...
@@ -85,17 +88,33 @@ export default {
this
.
type
=
'done'
this
.
type
=
'done'
this
.
qsList
=
res
.
data
.
qsList
this
.
qsList
=
res
.
data
.
qsList
this
.
getTotalScore
=
res
.
data
.
totalScore
this
.
getTotalScore
=
res
.
data
.
totalScore
this
.
$nextTick
(()
=>
{
this
.
sbumitFinsh
=
!
this
.
sbumitFinsh
})
})
})
}
}
},
},
// 考试初始化
// 考试初始化
examInit
()
{
examInit
()
{
// 根据课程id查询试卷
// 根据课程id查询试卷
console
.
log
(
'this.businessId'
,
this
.
businessId
)
findByLessonIdExam
({
userId
:
this
.
userId
,
lessonId
:
this
.
lessonId
,
businessId
:
this
.
businessId
}).
then
(
res
=>
{
findByLessonIdExam
({
userId
:
this
.
userId
,
lessonId
:
this
.
lessonId
,
businessId
:
this
.
businessId
}).
then
(
res
=>
{
console
.
log
(
'examFindByLessonId'
,
res
)
console
.
log
(
'examFindByLessonId'
,
res
)
this
.
qsList
=
res
.
data
.
qsList
this
.
qsList
=
res
.
data
.
qsList
this
.
totalScore
=
res
.
data
.
totalScore
this
.
totalScore
=
res
.
data
.
totalScore
this
.
priceScore
=
res
.
data
.
priceScore
this
.
questionsId
=
res
.
data
.
questionsId
this
.
questionsId
=
res
.
data
.
questionsId
if
(
this
.
type
===
'done'
)
{
blessonSubmit
(
this
.
businessId
).
then
(
resSubmit
=>
{
console
.
log
(
'blessonSubmit'
,
resSubmit
)
this
.
type
=
'done'
this
.
qsList
=
resSubmit
.
data
.
qsList
this
.
getTotalScore
=
resSubmit
.
data
.
totalScore
this
.
$nextTick
(()
=>
{
this
.
sbumitFinsh
=
!
this
.
sbumitFinsh
})
})
}
})
})
},
},
// 单选题点击选项
// 单选题点击选项
...
...
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