|
|
|
@ -220,12 +220,13 @@ class Selectsetting extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
|
let attachmentId=this.props.match.params.attachmentId;
|
|
|
|
|
let attachmentId=this.props.attachmentId;
|
|
|
|
|
let url="/files/"+this.props.discussMessageid+".json";
|
|
|
|
|
//
|
|
|
|
|
axios.put(url,{
|
|
|
|
|
course_id:coursesId,
|
|
|
|
|
new_attachment_id:newfileList.length===0?undefined:newfileList,
|
|
|
|
|
course_second_category_id:this.props.coursesidtype===undefined||this.props.coursesidtype==="node"?0:attachmentId,
|
|
|
|
|
is_public:is_public,
|
|
|
|
|
is_unified_setting:unified_setting,
|
|
|
|
|
publish_time:unified_setting===true?datatime===undefined?moment(new Date()).format('YYYY-MM-DD HH'):datatime:undefined,
|
|
|
|
|