diff --git a/newPages/examinationAdd/index.vue b/newPages/examinationAdd/index.vue
index 58eb555..345405b 100644
--- a/newPages/examinationAdd/index.vue
+++ b/newPages/examinationAdd/index.vue
@@ -122,6 +122,8 @@ export default {
opTenantId: null,
opCourseType: null,
examId:null,
+ batchId:null,
+ batchItemId: null,
process: {
id:null,
userName: null,
@@ -154,8 +156,13 @@ export default {
this.process.courseId = options.courseId
this.process.batchId = options.batchId
this.examId = options.id
+ this.batchId = options.batchId
+ this.batchItemId = options.id
+ this.process.id = options.id
this.process.coachId = options.coachId
+ this.process.userId = this.userInfo.id
console.log('options',options)
+ console.log('batchItemId',this.batchItemId)
},
computed: {
displayFileList() {
@@ -321,8 +328,12 @@ export default {
console.log('courseCompleteStatusList', this.courseCompleteStatusList)
const subject2 = this.courseCompleteStatusList.find(item => item.subject === 2)
const subject3 = this.courseCompleteStatusList.find(item => item.subject === 3)
+ console.log('subject2', subject2)
+ console.log('subject3', subject3)
+ console.log(subject2?.status === '2' && subject3?.status === '2')
- if (subject2?.status === 2 && subject3?.status === 2) {
+ if (subject2?.status === '2' && subject3?.status === '2') {
+ console.log(subject2?.status === 2 && subject3?.status === 2)
this.subjectColumns = [['科目一', '科目四']]
}
}
@@ -351,9 +362,6 @@ export default {
}
console.log('courseCompleteStatusList', this.courseCompleteStatusList.length)
-
- this.process.userId = this.userInfo.id
- this.process.tenantId = this.orderList.tenantId
this.process.images = this.fileList?.map(item => item.url).join(',') || '';
console.log('process', this.process)
@@ -383,11 +391,21 @@ export default {
})
},
saveDataTwo(){
- this.process.userId = this.userInfo.id
+ /* const postData = {
+ ...this.process, // 先拷贝 process 原有数据
+ tenantId: this.opTenantId,
+ fraction: this.process.examScore,
+ ifPass: this.process.examStatus,
+ id: this.batchItemId,
+ remark: this.process.remark
+ images: this.fileList?.map(item => item.url).join(',') || '',
+ } */
+
+ // console.log('提交数据是:', postData)
+ this.process.userId = this.userInfo.id
this.process.tenantId = this.opTenantId
this.process.fraction = this.process.examScore
this.process.ifPass = this.process.examStatus
- this.process.id = this.examId
this.process.images = this.fileList?.map(item => item.url).join(',') || '';
if (!this.process.userId || !this.process.subject || !this.process.examScore || !this.process.examStatus || !this.process.examTime) {
uni.showToast({ title: '信息填写不完整', icon: 'none' });
@@ -396,7 +414,8 @@ export default {
request({
url: '/app-api/examBatch/update',
method: 'PUT',
- data: this.process,
+ // data: postData,
+ data: this.process,
}).then(res => {
if(res.code === 0){
uni.showToast({
diff --git a/newPages/examinationList/index.vue b/newPages/examinationList/index.vue
index 593193a..aa90399 100644
--- a/newPages/examinationList/index.vue
+++ b/newPages/examinationList/index.vue
@@ -20,6 +20,7 @@
class="scroll-view"
scroll-y
:style="{ height: scrollHeight + 'px' }"
+ refresher-enabled @refresherrefresh="onRefresherrefresh" :refresher-triggered="isTriggered"
>
- {{ formatDate(item.examTime) }}
+ {{ formatDate(item.examTime) }}
+ {{ formatDate(item.startTime) }}
{{ item.courseName }}
@@ -46,7 +48,7 @@
{{ item.courseType }}
-
+
考试地址:
{{ item.addr }}
@@ -95,11 +97,20 @@
-
+
+
笔试成绩录入
+
+