Browse Source

homework publish update

hare8999@163.com 2 years ago
parent
commit
07051a7b5f

+ 1 - 1
src/components/UploadDialog/index.vue

@@ -234,7 +234,7 @@ export default {
     },
 
     handleStudentAllChange(val) {
-      this.checkedStudent = val ? this.forClassStudent(this.studentData, 'code') : []
+      this.checkedStudent = val ? this.forClassStudent(this.studentData, 'code') : [...this.defaultSelected]
     },
     handleStudentChange(value) {
       let checkedCount = value.length

+ 2 - 0
src/views/questioncenter/components/generate-tabs/paper-work-publish.vue

@@ -32,6 +32,7 @@
       :isZdy="false"
       :selectType="uploadOption.selectType"
       :dialogVisible="uploadOption.dialogVisible"
+      :default-selected="uploadOption.defaultSelected"
       @handleClose="handleUploadReady"
       @dialogVisibleClose="uploadOption.dialogVisible=false"
     ></upload-dialog>
@@ -130,6 +131,7 @@ export default {
       await publicStudentHomework(commit)
       this.uploadOption.dialogVisible = false
       this.msgSuccess('发布成功')
+      await this.getList()
     }
   }
 }