|
|
@@ -150,7 +150,7 @@ class ReleaseAssignmentPage extends React.Component {
|
|
|
|
|
|
Toast.loading('正在发布...', 0)
|
|
|
const params = {
|
|
|
- subjectId: courseValue[0],
|
|
|
+ /*subjectId: courseValue[0],
|
|
|
taskTitle: taskTitle,
|
|
|
taskContext: taskContent,
|
|
|
taskFiles: JSON.stringify(fileUrls),
|
|
|
@@ -158,7 +158,19 @@ class ReleaseAssignmentPage extends React.Component {
|
|
|
startDate: now.format('yyyy-MM-dd hh:mm:ss'),
|
|
|
endDate: moment(endDate).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
taskCreator: this.props.userInfo.user.userFunId,
|
|
|
- taskClassid: personArrays
|
|
|
+ taskClassid: personArrays*/
|
|
|
+
|
|
|
+ task_title:taskTitle,
|
|
|
+ task_context:taskContent,
|
|
|
+ creator:this.props.userInfo.user.userName,
|
|
|
+ task_files:JSON.stringify(fileUrls),
|
|
|
+ task_status:1,
|
|
|
+ create_date:now.format('yyyy-MM-dd hh:mm:ss'),
|
|
|
+ start_date:now.format('yyyy-MM-dd hh:mm:ss'),
|
|
|
+ end_date:moment(endDate).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
+ task_creator:this.props.userInfo.user.userFunId,
|
|
|
+ subject_id:courseValue[0]
|
|
|
+
|
|
|
}
|
|
|
fetchPost(API.homeWorkAdd, {
|
|
|
taskString: JSON.stringify(params)
|