diff --git a/pages/train_management/course_exam.vue b/pages/train_management/course_exam.vue
index 38cfe9a..6accb05 100644
--- a/pages/train_management/course_exam.vue
+++ b/pages/train_management/course_exam.vue
@@ -1,476 +1,428 @@
-
-
-
-
- 倒计时:
-
-
-
+
+
+
+
+ 考试科目:{{ info.examname }}
+
+
+ 当前试题{{ current + 1 }}/{{ options.length }}
+
+
+ 考试剩余时间:
+
+
+
-
-
-
-
- {{ handleCalcQuestType(options[current].QUESTIONTYPE) }}
-
- {{ current + 1 }}.{{ options[current].QUESTIONDRY }}
-
-
-
-
- A
- {{ options[current].OPTIONA }}
-
-
- B
- {{ options[current].OPTIONB }}
-
-
- C
- {{ options[current].OPTIONC }}
-
-
- D
- {{ options[current].OPTIOND }}
-
-
-
-
+
+
+
+ {{ handleCalcQuestType(options[current].questiontype) }}
+
+ {{ current + 1 }}.{{ options[current].questiondry }}
+
+
+
+
+ A
+ {{ options[current].optiona }}
+
+
+ B
+ {{ options[current].optionb }}
+
+
+ C
+ {{ options[current].optionc }}
+
+
+ D
+ {{ options[current].optiond }}
+
+
+
+
- A
- {{ options[current].OPTIONA }}
-
-
+ A
+ {{ options[current].optiona }}
+
+
- B
- {{ options[current].OPTIONB }}
-
-
+ B
+ {{ options[current].optionb }}
+
+
- C
- {{ options[current].OPTIONC }}
-
-
+ C
+ {{ options[current].optionc }}
+
+
- D
- {{ options[current].OPTIOND }}
-
-
-
-
- {{ options[current].OPTIONA }}
-
-
-
- {{ options[current].OPTIONB }}
-
-
-
-
-
-
-
-
-
-
+ @click="fnChooseTopic('multiple', 'D')"
+ >
+ D
+ {{ options[current].optiond }}
+
+
+
+
+ {{ options[current].optiona }}
+
+
+
+ {{ options[current].optionb }}
+
+
+
+
+
+
+
+
+
+
-
-
+
+
diff --git a/pages/train_management/exam_record.vue b/pages/train_management/exam_record.vue
index 9b9469e..20f6574 100644
--- a/pages/train_management/exam_record.vue
+++ b/pages/train_management/exam_record.vue
@@ -1,19 +1,20 @@
- 试卷名称-综合素质测评
- (满分: 100分)
+ 试卷名称:{{info.examname}}
+ (满分: {{info.paperexamscore}}分)
+ (合格分: {{info.passscore}}分)
- 姓名: 测试者
- 分数: 85分
- 考试时间: 2024-12-30
+ 姓名: {{info.username}}
+ 分数: {{info.examscore}}分
+ 考试时间: {{info.examtimeend}}
签字:
-
+
@@ -96,9 +97,7 @@ import { getTaskScoreInfo } from "@/api";
export default {
data() {
return {
- pageSize: 10,
- currentPage: 1,
- totalPage: 0,
+ info:{},
questionList: [],
current: 0, // 新增当前激活的题目索引
questionTypeMap: {
@@ -120,95 +119,21 @@ export default {
methods: {
async getData(stagestudentrelationId, classId) {
- // const resData = await getTaskScoreInfo({
- // stagestudentrelationId,
- // classId
- // })
- // this.questionList = resData.list
- this.questionList = [
- {
- stageexamrecordId: '7cea826c3c974cb69028dd0624b632ba',
- stageexampaperId: null,
- stageexamId: null,
- questionId: null,
- userId: null,
- answer: 'B',
- answerright: 'B',
- creator: null,
- createTime: null,
- operator: null,
- operatTime: null,
- isDelete: null,
- corpinfoId: null,
- studytaskId: null,
- paperId: null,
- classId: null,
- studentId: null,
- paperQuestionId: 'c413570fac8b49d8bd3ac27e223beb48',
- questionnumber: null,
- questiontype: '1',
- questiondry: '发生生产安全事故以后,单位负责人应当在( )小时内向当地县级应急管理部门和负有安全生产监督管理职责的有关部门报告。',
- optiona: '2',
- optionb: '1',
- optionc: '4',
- optiond: '半',
- descr: '17',
- score: '50.0',
- labelType: '6a8577ad5cf84e259f6a601a0c253726',
- coursewarename: '测试40秒',
- labelTypeName: '规范标准',
- checkList: null,
- count: null,
- videocoursewareId: null
- },
- {
- stageexamrecordId: '956a9175accc4c96b062eac68a5cdc28',
- stageexampaperId: null,
- stageexamId: null,
- questionId: null,
- userId: null,
- answer: 'C',
- answerright: 'C',
- creator: null,
- createTime: null,
- operator: null,
- operatTime: null,
- isDelete: null,
- corpinfoId: null,
- studytaskId: null,
- paperId: null,
- classId: null,
- studentId: null,
- paperQuestionId: 'b8203efc27c04afc8b692fc2c82095ca',
- questionnumber: null,
- questiontype: '2',
- questiondry: '发生生产安全事故以后,单位负责人应当在( )小时内向当地县级应急管理部门和负有安全生产监督管理职责的有关部门报告。',
- optiona: '2',
- optionb: '1',
- optionc: '4',
- optiond: '半',
- descr: '17',
- score: '50.0',
- labelType: '2c0f587e982641c7965182826f9c41ac',
- coursewarename: '测试40秒',
- labelTypeName: '法律法规',
- checkList: null,
- count: null,
- videocoursewareId: null
- }
- ]
- this.totalPage = 2
- this.totalCount = this.questionList.length
- },
- resetList() {
- this.pageSize = 10
- this.currentPage = 1
- this.questionList = []
- this.getData()
+ const resData = await getTaskScoreInfo({
+ stagestudentrelationId,
+ classId
+ })
+ this.questionList = resData.pd.questionList
+ this.info = resData.pd
},
handleCalcQuestType(type) {
return `(${this.questionTypeMap[type]})`
- }
+ },
+ previewImage(){
+ uni.previewImage({
+ urls: [this.$filePath + this.info.signaturePath],
+ })
+ }
}
}
@@ -233,10 +158,9 @@ export default {
.content__info {
font-size: 34rpx;
- margin-top: 36rpx;
- display: flex;
- justify-content: space-between;
- align-items: center;
+ view{
+ margin-top: 18rpx;
+ }
}
.content__sign {
@@ -257,7 +181,7 @@ export default {
.tag_title {
font-size: 28rpx;
- background-color: #94f0bd;
+ background-color: #fff;
color: #5ac725;
border-radius: 8rpx;
padding: 2rpx 8rpx;
diff --git a/pages/train_management/index.vue b/pages/train_management/index.vue
index 8add4b1..0a83f25 100644
--- a/pages/train_management/index.vue
+++ b/pages/train_management/index.vue
@@ -66,13 +66,14 @@ export default {
},
/* 监听页面显示,页面每次出现在屏幕上都触发,包括从下级页面点返回露出当前页面 */
- onShow() {
- // this.resetList();
+ async onShow() {
+ await this.getUserFaceCompleted()
+ await this.resetList()
},
async onLoad(query) {
- await this.getUserFaceCompleted()
- await this.resetList()
+ // await this.getUserFaceCompleted()
+ // await this.resetList()
},
methods: {
@@ -108,7 +109,7 @@ export default {
onlyFromCamera: false, // 是否只能从相机扫码,允许从相册选择图片
hideAlbum: false, // 显示相册,允许从相册选择图片
success: (response) => {
- const { stageexampaperinputId, classId, postId, studentId, numberofexams, type } = JSON.parse(response.result)
+ const { stageexampaperinputId, classId, type, } = JSON.parse(response.result)
const findClassId = this.trainList.some((item) => item.classId === classId)
if (type === '0') {
// 签到二维码方式进入
@@ -132,9 +133,6 @@ export default {
type: 'learning_certification',
stageexampaperinputId,
classId,
- postId,
- studentId,
- numberofexams
}
})
} else {
@@ -200,7 +198,7 @@ export default {
url: '/pages/train_management/exam_record',
params: {
classId,
- stagestudentrelationId
+ stagestudentrelationId
}
})
}
diff --git a/pages/train_management/realname_info_auth.vue b/pages/train_management/realname_info_auth.vue
index e4dc258..35b9ca9 100644
--- a/pages/train_management/realname_info_auth.vue
+++ b/pages/train_management/realname_info_auth.vue
@@ -71,6 +71,7 @@
import { getDataDictionary, joinClass } from '@/api';
import Sign from '@/components/sign/sign.vue'
import { validateFieldPhone, validateFieldIdCard } from '@/utils/formValidateField.js'
+import store from "@/store";
export default {
data() {
@@ -256,7 +257,7 @@ export default {
delete params.writeSign
await joinClass({
files,
- formData: { ...params, classId }
+ formData: { ...params, classId,USER_ID:this.$store.getters.getUserInfo.USER_ID }
})
.then(() => {
uni.$u.toast('保存成功')
diff --git a/pages/train_management/sign_information.vue b/pages/train_management/sign_information.vue
index e61ecb6..a958b3a 100644
--- a/pages/train_management/sign_information.vue
+++ b/pages/train_management/sign_information.vue
@@ -1,40 +1,18 @@
-
-
-
-
-
-
-
-
-
- {{ item.userName }}
-
-
- 班级名称:
- {{ item.name }}
-
-
- 签到时间:
- {{ item.studyStartTime }}
-
-
- 培训地点:
- {{ item.trainingLocation }}
-
-
- 签到状态:
- {{ studyStateMap[item.studystate].value }}
-
-
- 考试状态:
- {{ stageexamStateMap[item.stageexamstate].value }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -45,17 +23,14 @@ export default {
data() {
return {
routeQuery: {},
- pageSize: 10,
- currentPage: 1,
- totalPage: 0,
- signList: [],
+ signInfo: {},
// 签到状态枚举
studyStateMap: {
'0': {
value: '未签到',
color: 'tag__red'
},
- '1': {
+ '3': {
value: '已签到',
color: 'tag__green'
}
@@ -78,47 +53,21 @@ export default {
}
},
- onShow() {
- this.resetList()
- },
-
onLoad(query) {
this.routeQuery = query
+ this.getData()
},
methods: {
async getData() {
const { classId } = this.routeQuery
- // let resData = await getSignInfo({
- // showCount: this.pageSize,
- // currentPage: this.currentPage,
- // classId
- // });
- // this.signList = [...this.signList, ...resData.page.list]
- // this.totalPage = resData.page.totalPage
- this.signList = [
- {
- userName: '齐天大圣1',
- useravatarurl: 'https://img.alicdn.com/img/i1/131787161/O1CN01z67Qvv22lnCzgPob4_!!0-saturn_solar.jpg_.webp',
- name: '班级名称1班级名称1班级名称1班级名称1',
- studyStartTime: '2025-02-11 09:40',
- trainingLocation: '教三大教室',
- studystate: '0',
- stageexamstate: '0'
- },
- ]
- this.totalPage = 2
+ let resData = await getSignInfo({
+ showCount: 1,
+ currentPage: 1,
+ classId
+ });
+ this.signInfo = resData.page.list[0]
},
- resetList() {
- this.pageSize = 10
- this.currentPage = 1
- this.trainList = []
- this.getData()
- },
- scrolltolower() {
- this.currentPage++
- if (this.totalPage >= this.currentPage) this.getData()
- }
}
}
@@ -188,4 +137,4 @@ export default {
}
}
}
-
\ No newline at end of file
+
diff --git a/static/images/study/bgimg1.png b/static/images/study/bgimg1.png
new file mode 100644
index 0000000..004c26a
Binary files /dev/null and b/static/images/study/bgimg1.png differ