Jelajahi Sumber

Merge branch 'dev' of ssh://10.10.100.21/source/smartschool-platform into dev

chenw 7 tahun lalu
induk
melakukan
024f01ebd2

+ 5 - 4
frontend/wechat-web/src/modules/homework/ReleaseAssignmentPage.js

@@ -133,11 +133,12 @@ class ReleaseAssignmentPage extends React.Component {
             Toast.fail("请选择抄送对象");
             Toast.fail("请选择抄送对象");
             return;
             return;
         }
         }
-        let personArrays = [];
+        let personArrays = ''
         if (!isObjEmpty(this.checkNodes)) {
         if (!isObjEmpty(this.checkNodes)) {
-            this.checkNodes.forEach((node) => {
+            /*this.checkNodes.forEach((node) => {
                 personArrays.push(node.classId)
                 personArrays.push(node.classId)
-            })
+            })*/
+            personArrays = this.checkNodes[0].classId
         }
         }
         const fileUrls = []
         const fileUrls = []
         if (fileList) {
         if (fileList) {
@@ -157,7 +158,7 @@ class ReleaseAssignmentPage extends React.Component {
             startDate: now.format('yyyy-MM-dd hh:mm:ss'),
             startDate: now.format('yyyy-MM-dd hh:mm:ss'),
             endDate: moment(endDate).format('YYYY-MM-DD HH:mm:ss'),
             endDate: moment(endDate).format('YYYY-MM-DD HH:mm:ss'),
             taskCreator: this.props.userInfo.user.userFunId,
             taskCreator: this.props.userInfo.user.userFunId,
-            taskNotifier: JSON.stringify(personArrays)
+            taskClassid: personArrays
         }
         }
         fetchPost(API.homeWorkAdd, {
         fetchPost(API.homeWorkAdd, {
             taskString: JSON.stringify(params)
             taskString: JSON.stringify(params)