From c7e9f402f5982346b6077800fa2235f4ae294f47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Mon, 11 Nov 2019 16:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=B5=84=E6=BA=90=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/Resource/index.js | 3 ++- .../react/src/modules/courses/coursesPublic/HomeworkModal.js | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/Resource/index.js b/public/react/src/modules/courses/Resource/index.js index be4195d1f..b74ca7a37 100644 --- a/public/react/src/modules/courses/Resource/index.js +++ b/public/react/src/modules/courses/Resource/index.js @@ -618,7 +618,7 @@ class Fileslists extends Component{ modalname:"立即发布", modaltype:response.data.course_groups===null||response.data.course_groups.length===0?2:1, visible:true, - typs:"start", + typs:"end", Topval:"学生将能立即收到资源", // Botvalleft:"暂不发布", // Botval:`本操作只对"未发布"的分班有效`, @@ -645,6 +645,7 @@ class Fileslists extends Component{ let url ="/files/bulk_publish.json"; axios.put(url, { course_id:coursesId, + group_ids:ds, ids :checkBoxValues, }).then((result)=>{ if(result.status===200){ diff --git a/public/react/src/modules/courses/coursesPublic/HomeworkModal.js b/public/react/src/modules/courses/coursesPublic/HomeworkModal.js index 69eb937ff..11b180eb5 100644 --- a/public/react/src/modules/courses/coursesPublic/HomeworkModal.js +++ b/public/react/src/modules/courses/coursesPublic/HomeworkModal.js @@ -91,7 +91,7 @@ class HomeworkModal extends Component{ //勾选实训 shixunhomeworkedit=(list)=>{ - +debugger this.setState({ group_ids:list }) @@ -108,7 +108,6 @@ class HomeworkModal extends Component{ } propsSaves=(ds,endtime)=>{ - if(ds.length ===0&&endtime === ""){ this.props.Saves() }else{