Commit 528fe76e authored by 张伯涛's avatar 张伯涛

bug修改

parent 2f1e1b79
......@@ -154,9 +154,10 @@ export function answerByOneClick(data) {
})
}
// 提交和查看已结束答题记录详情
export function blessonSubmit(id) {
export function blessonSubmit(params) {
return request({
url: '/post/user/blesson/submit/' + id,
method: 'get'
url: '/post/user/blesson/submit/',
method: 'get',
params
})
}
......@@ -31,7 +31,7 @@
class="tabScreen"
title="课程分类"
:items="courseTypeOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
</el-tab-pane>
<el-tab-pane v-if="mallIdentityType === 'firm'" :label="postName" name="1">
......@@ -40,14 +40,14 @@
class="tabScreen"
title="岗位分类"
:items="jobClassifyOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
<screen
v-model="queryParams.enterpriseCourseDimensions"
class="tabScreen"
title="课程维度"
:items="courseDimensionsOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
</el-tab-pane>
<!-- <el-tab-pane v-if="mallIdentityType === 'firm'" label="通用能力培养" name="2">-->
......@@ -72,7 +72,7 @@
class="tabScreen"
title="课程分类"
:items="courseTypeOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
</el-tab-pane>
<el-tab-pane v-if="mallIdentityType === 'college'" :label="cultureName" name="1">
......@@ -81,7 +81,7 @@
class="tabScreen"
title="技术分类"
:items="tecClassifyOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
</el-tab-pane>
</el-tabs>
......@@ -94,7 +94,7 @@
title="难度等级"
:value="queryParams.difficultyClassify"
:items="difficultyGradeOptions"
@input="getCourseByPagination"
@input="handleQuery"
/>
<div v-show="showExamBtns" class="exam-area">
<el-link type="primary" @click="showExamRecord">考核记录</el-link>
......@@ -139,7 +139,7 @@
class="img"
:src="require('@/assets/image/kezi_icon_sousuo.png')"
fit="cover"
@click="getCourseByPagination"
@click="handleQuery"
/>
</template>
</el-input>
......@@ -632,6 +632,10 @@ export default {
this.onlyFree = false
this.getCourseByPagination()
},
handleQuery() {
this.queryParams.page = 1
this.getCourseByPagination()
},
// 分页查询课程列表
getCourseByPagination() {
this.queryExam()
......
......@@ -83,7 +83,10 @@ export default {
if (flag) {
this.$message.warning('您有题目未填写请填写完再提交')
} else {
blessonSubmit(this.businessId).then(res => {
const params = {
businessId: this.businessId
}
blessonSubmit(params).then(res => {
console.log('blessonSubmit', res)
this.type = 'done'
this.qsList = res.data.qsList
......@@ -98,14 +101,17 @@ export default {
examInit() {
// 根据课程id查询试卷
console.log('this.businessId', this.businessId)
findByLessonIdExam({status: this.answer, userId: this.userId, lessonId: this.lessonId, businessId: this.businessId }).then(res => {
findByLessonIdExam({ status: this.answer, userId: this.userId, lessonId: this.lessonId, businessId: this.businessId }).then(res => {
console.log('examFindByLessonId', res)
this.qsList = res.data.qsList
this.totalScore = res.data.totalScore
this.priceScore = res.data.priceScore
this.questionsId = res.data.questionsId
if (this.type === 'done') {
blessonSubmit(this.businessId).then(resSubmit => {
const params = {
businessId: this.businessId
}
blessonSubmit(params).then(resSubmit => {
console.log('blessonSubmit', resSubmit)
this.type = 'done'
this.qsList = resSubmit.data.qsList
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment