|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import { Modal,Checkbox,Select,Input,Upload,Button,Icon,message,DatePicker,Tooltip} from "antd";
|
|
|
|
|
import { Modal,Checkbox,Select,Input,Upload,Button,Icon,message,DatePicker,Tooltip,Radio} from "antd";
|
|
|
|
|
import axios from'axios';
|
|
|
|
|
import {getUrl,handleDateString,appendFileSizeToUploadFileAll} from 'educoder';
|
|
|
|
|
import locale from 'antd/lib/date-picker/locale/zh_CN';
|
|
|
|
@ -36,9 +36,10 @@ class Selectsetting extends Component{
|
|
|
|
|
course_groups:undefined,
|
|
|
|
|
attachment_histories:undefined,
|
|
|
|
|
datatime:undefined,
|
|
|
|
|
unified_setting:true,
|
|
|
|
|
fileList:[],
|
|
|
|
|
fileListtype:false
|
|
|
|
|
fileListtype:false,
|
|
|
|
|
is_public:false,
|
|
|
|
|
Radiovaluetype:false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -58,24 +59,6 @@ class Selectsetting extends Component{
|
|
|
|
|
let newcourse_groups=[];
|
|
|
|
|
let list =response.data.course_groups;
|
|
|
|
|
|
|
|
|
|
// let list=[
|
|
|
|
|
// {
|
|
|
|
|
// "course_group_id": 820,
|
|
|
|
|
// "course_group_name": "示例A班",
|
|
|
|
|
// "course_group_publish_time": "2019-04-18T17:00:00.000+08:00"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "course_group_id": 821,
|
|
|
|
|
// "course_group_name": "示例B班",
|
|
|
|
|
// "course_group_publish_time": "2019-04-19T19:00:00.000+08:00"
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// "course_group_id": 822,
|
|
|
|
|
// "course_group_name": "示例C班",
|
|
|
|
|
// "course_group_publish_time": "2019-04-10T19:00:00.000+08:00"
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
|
|
|
|
|
if(list.length!=0){
|
|
|
|
|
list.forEach((item,key)=>{
|
|
|
|
|
newcourse_groups.push ({
|
|
|
|
@ -96,7 +79,6 @@ class Selectsetting extends Component{
|
|
|
|
|
datalist:response.data,
|
|
|
|
|
description: response.data.description,
|
|
|
|
|
is_public: response.data.is_public,
|
|
|
|
|
unified_setting: response.data.unified_setting,
|
|
|
|
|
datatime:response.data.publish_time,
|
|
|
|
|
// is_public:response.data.course_groups,
|
|
|
|
|
//attachment_histories:response.data.attachment_histories
|
|
|
|
@ -145,21 +127,6 @@ class Selectsetting extends Component{
|
|
|
|
|
this.getalldata()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
onChangepublics=(e)=>{
|
|
|
|
|
console.log(e.target.checked)
|
|
|
|
|
this.setState({
|
|
|
|
|
is_public:e.target.checked
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onChangesettings=(e)=>{
|
|
|
|
|
console.log(e.target.checked)
|
|
|
|
|
this.setState({
|
|
|
|
|
unified_setting:e.target.checked
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
settextarea=(e)=>{
|
|
|
|
@ -180,13 +147,26 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
savecouseShixunModal=()=>{
|
|
|
|
|
let {fileList,is_public,unified_setting,description,datatime,course_groups}=this.state;
|
|
|
|
|
let {fileList,is_public,description,datatime,course_groups}=this.state;
|
|
|
|
|
|
|
|
|
|
let newfileList=[];
|
|
|
|
|
for(var list of fileList){
|
|
|
|
|
newfileList.push(list.response.id)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(this.state.Radiovalue===1){
|
|
|
|
|
if(datatime===undefined||datatime===null||datatime=== ""){
|
|
|
|
|
this.setState({
|
|
|
|
|
Radiovaluetype:true
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
Radiovaluetype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(description===undefined||description===null){
|
|
|
|
|
|
|
|
|
|
}else if(description.length>100){
|
|
|
|
@ -196,29 +176,6 @@ class Selectsetting extends Component{
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// course_groups.forEach((item,key)=>{
|
|
|
|
|
// if(item.course_group_id===undefined||item.publish_time===undefined){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// course_group_publish_timestype:true
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
|
|
// if(unified_setting===false){
|
|
|
|
|
//
|
|
|
|
|
// course_groups.forEach((item,key)=>{
|
|
|
|
|
// if(item.course_group_id===undefined){
|
|
|
|
|
// this.setState({
|
|
|
|
|
// course_group_idtypes:true
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let coursesId=this.props.match.params.coursesId;
|
|
|
|
|
let attachmentId=this.props.attachmentId;
|
|
|
|
|
let url="/files/"+this.props.discussMessageid+".json";
|
|
|
|
@ -228,7 +185,6 @@ class Selectsetting extends Component{
|
|
|
|
|
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,
|
|
|
|
|
description:description,
|
|
|
|
|
course_group_publish_times:unified_setting===false?course_groups:undefined
|
|
|
|
@ -244,7 +200,6 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
onChangeTimepublish= (date, dateString) => {
|
|
|
|
|
|
|
|
|
|
// console.log('startValue', dateString);
|
|
|
|
|
this.setState({
|
|
|
|
|
datatime:handleDateString(dateString),
|
|
|
|
|
})
|
|
|
|
@ -268,31 +223,6 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// onAttachmentRemove = (file) => {
|
|
|
|
|
// // confirm({
|
|
|
|
|
// // title: '确定要删除这个附件吗?',
|
|
|
|
|
// // okText: '确定',
|
|
|
|
|
// // cancelText: '取消',
|
|
|
|
|
// // // content: 'Some descriptions',
|
|
|
|
|
// // onOk: () => {
|
|
|
|
|
// // this.deleteAttachment(file)
|
|
|
|
|
// // },
|
|
|
|
|
// // onCancel() {
|
|
|
|
|
// // console.log('Cancel');
|
|
|
|
|
// // },
|
|
|
|
|
// // });
|
|
|
|
|
// // return false;
|
|
|
|
|
//
|
|
|
|
|
// // this.setState({
|
|
|
|
|
// // Modalstype:true,
|
|
|
|
|
// // Modalstopval:'确定要删除这个附件吗?',
|
|
|
|
|
// // ModalSave: ()=>this.deleteAttachment(file),
|
|
|
|
|
// // ModalCancel:this.cancelAttachment
|
|
|
|
|
// // })
|
|
|
|
|
// // return false;
|
|
|
|
|
//
|
|
|
|
|
// this.deleteAttachment(file);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onAttachmentRemove = (file) => {
|
|
|
|
@ -309,14 +239,7 @@ class Selectsetting extends Component{
|
|
|
|
|
fileListtype:false,
|
|
|
|
|
fileList:[]
|
|
|
|
|
})
|
|
|
|
|
// this.setState((state) => {
|
|
|
|
|
// const index = state.fileList.indexOf(file);
|
|
|
|
|
// const newFileList = state.fileList.slice();
|
|
|
|
|
// newFileList.splice(index, 1);
|
|
|
|
|
// return {
|
|
|
|
|
// fileList: newFileList,
|
|
|
|
|
// };
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -332,63 +255,23 @@ class Selectsetting extends Component{
|
|
|
|
|
fileList:[]
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// const url = `/attachments/${file.response ? file.response.id : file.uid}.json`
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onChangeTimepublishs= (date, dateString,key) => {
|
|
|
|
|
let {course_groups}=this.state;
|
|
|
|
|
let newgroup_publish=course_groups;
|
|
|
|
|
for(var i=0; i<newgroup_publish.length; i++){
|
|
|
|
|
if(i===parseInt(key)){
|
|
|
|
|
newgroup_publish[i].publish_time=handleDateString(dateString);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onChangepublic=(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups:newgroup_publish,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
selectassigngroups=(e,index,key)=>{
|
|
|
|
|
let {course_groups}=this.state;
|
|
|
|
|
let newgroup_publish=course_groups;
|
|
|
|
|
for(var i=0; i<newgroup_publish.length; i++){
|
|
|
|
|
if(i===parseInt(key)){
|
|
|
|
|
newgroup_publish[i].course_group_id=index.props.value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups:newgroup_publish,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
deletegrouppublish=(key)=>{
|
|
|
|
|
let newlist=this.state.course_groups;
|
|
|
|
|
newlist.splice(key,1);
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups:newlist
|
|
|
|
|
is_public:e.target.checked
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addgrouppublish=()=>{
|
|
|
|
|
let newlist=this.state.course_groups;
|
|
|
|
|
newlist.push( {
|
|
|
|
|
course_group_id : undefined,
|
|
|
|
|
publish_time :""
|
|
|
|
|
// moment(new Date()).format('YYYY-MM-DD HH:mm')
|
|
|
|
|
})
|
|
|
|
|
RadioonChange=(e)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
course_groups:newlist
|
|
|
|
|
})
|
|
|
|
|
Radiovalue: e.target.value,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
render(){
|
|
|
|
|
let {is_public,unified_setting,course_groups,datatime,description,datalist,course_group_publish_timestype}=this.state;
|
|
|
|
|
let {datatime,description,datalist}=this.state;
|
|
|
|
|
|
|
|
|
|
const uploadProps = {
|
|
|
|
|
width: 600,
|
|
|
|
|
// https://github.com/ant-design/ant-design/issues/15505
|
|
|
|
|
// showUploadList={false},然后外部拿到 fileList 数组自行渲染列表。
|
|
|
|
|
// showUploadList: false,
|
|
|
|
|
action: `${getUrl()}/api/attachments.json`,
|
|
|
|
|
onChange: this.handleChange,
|
|
|
|
|
onRemove: this.onAttachmentRemove,
|
|
|
|
@ -401,9 +284,11 @@ class Selectsetting extends Component{
|
|
|
|
|
return isLt150M;
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(this.props.has_course_groups)
|
|
|
|
|
const radioStyle = {
|
|
|
|
|
display: 'block',
|
|
|
|
|
height: '30px',
|
|
|
|
|
lineHeight: '30px',
|
|
|
|
|
};
|
|
|
|
|
return(
|
|
|
|
|
<div>
|
|
|
|
|
<style>
|
|
|
|
@ -607,37 +492,6 @@ class Selectsetting extends Component{
|
|
|
|
|
</Upload>
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
{/*<style>*/}
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/*`*/}
|
|
|
|
|
{/*.maxwidth400{*/}
|
|
|
|
|
{/*max-width: 400px;*/}
|
|
|
|
|
{/*overflow: hidden;*/}
|
|
|
|
|
{/*text-overflow: ellipsis;*/}
|
|
|
|
|
{/*white-space: nowrap;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*`*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*</style>*/}
|
|
|
|
|
{/*{this.state.fileList.length===0?"":this.state.fileList.map((item,key)=>{*/}
|
|
|
|
|
{/*return(*/}
|
|
|
|
|
{/*<p className="color-grey mt10" key={key} >*/}
|
|
|
|
|
{/*<a className="color-grey fl">*/}
|
|
|
|
|
{/*<i className="font-14 color-green iconfont icon-fujian mr8" aria-hidden="true"></i>*/}
|
|
|
|
|
{/*</a>*/}
|
|
|
|
|
{/*<span className="mr12 color9B9B maxwidth400 fl" length="58">*/}
|
|
|
|
|
{/*{item.name}*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<span className="color656565 mt2 color-grey-6 font-12 mr8">*/}
|
|
|
|
|
{/*{item.response===undefined?"":isNaN(bytesToSize(item.filesize))?"123":bytesToSize(item.filesize)}*/}
|
|
|
|
|
{/*</span>*/}
|
|
|
|
|
{/*<i className="font-14 iconfont icon-guanbi "*/}
|
|
|
|
|
{/*id={item.response===undefined?"":item.response.id}*/}
|
|
|
|
|
{/*aria-hidden="true" onClick={()=>this.onAttachmentRemove(item.response===undefined?"":item.response.id&&item.response.id)}></i>*/}
|
|
|
|
|
{/*</p>*/}
|
|
|
|
|
{/*)*/}
|
|
|
|
|
{/*})}*/}
|
|
|
|
|
|
|
|
|
|
{this.state.newfileListtypes===true?<p className={"color-red"}>请先上传资源</p>:""}
|
|
|
|
|
|
|
|
|
|
<p className={this.state.fileListtype===true?"mt15":""}>
|
|
|
|
@ -647,21 +501,6 @@ class Selectsetting extends Component{
|
|
|
|
|
margin-top:10px;
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
{/*<div className={this.state.fileListtype===true?"mt30":""}>*/}
|
|
|
|
|
{/*<Checkbox*/}
|
|
|
|
|
{/*checked={is_public}*/}
|
|
|
|
|
{/*onChange={this.onChangepublics}>*/}
|
|
|
|
|
{/*<span className={"font-14"}>勾选后所有用户可见,否则仅课堂成员可见</span>*/}
|
|
|
|
|
{/*</Checkbox>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*{this.props.has_course_groups&&this.props.has_course_groups===true?:""}*/}
|
|
|
|
|
{this.state.course_groupss&&this.state.course_groupss.length>0?<Checkbox
|
|
|
|
|
checked={unified_setting}
|
|
|
|
|
onChange={this.onChangesettings}>
|
|
|
|
|
<span>统一设置</span><span className={"font-14 color-grey-9"}>(选中则所有分班使用相同的发布设置,否则各个单独设置)</span>
|
|
|
|
|
</Checkbox>:""}
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
|
.Selectleft20{
|
|
|
|
@ -675,53 +514,11 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*this.props.has_course_groups&&this.props.has_course_groups===true?:""*/}
|
|
|
|
|
<div className={"resourcebox"}>
|
|
|
|
|
{unified_setting===false?
|
|
|
|
|
this.state.course_groups&&this.state.course_groups.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<div className={"mt10 "} key={key}>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Select placeholder="请选择分班名称"
|
|
|
|
|
value={item.course_group_id}
|
|
|
|
|
style={{ width: 200 }}
|
|
|
|
|
onChange={(e,index)=>this.selectassigngroups(e,index,key)}
|
|
|
|
|
>
|
|
|
|
|
{ this.state.course_groupss&&this.state.course_groupss.map((item,key)=>{
|
|
|
|
|
return(
|
|
|
|
|
<Option value={item.id} key={key}>{item.name}</Option>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
</Select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startimes"}
|
|
|
|
|
className={"Selectleft20"}
|
|
|
|
|
width={"200px"}
|
|
|
|
|
value={item.publish_time===undefined||item.publish_time===""?"":item.publish_time===null?"":moment(item.publish_time, dateFormat)}
|
|
|
|
|
onChange={(e,index)=>this.onChangeTimepublishs(e,index,key)}
|
|
|
|
|
// onChange={ this.onChangeTimepublish }
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
{key!=0?<i className="iconfont icon-shanchu color-grey-c font-14 font-n ml20" onClick={()=>this.deletegrouppublish(key)}></i>:""}
|
|
|
|
|
{key===course_groups.length-1?<i className="iconfont icon-tianjiafangda color-green ml15" onClick={this.addgrouppublish}></i>:""}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}):""}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{this.props.course_is_public===true?<div>
|
|
|
|
|
<span className={"color-ooo"}>公开:</span><Checkbox checked={this.state.is_public} onChange={this.onChangepublic}>
|
|
|
|
|
<span className={"font-14 color-ooo"}>选中,所有用户可见,否则课堂成员可见</span>
|
|
|
|
|
</Checkbox>
|
|
|
|
|
</div>:""}
|
|
|
|
|
</p>
|
|
|
|
|
<style>
|
|
|
|
|
{`
|
|
|
|
@ -730,28 +527,35 @@ class Selectsetting extends Component{
|
|
|
|
|
}
|
|
|
|
|
`}
|
|
|
|
|
</style>
|
|
|
|
|
{unified_setting===true?
|
|
|
|
|
<p className={"mt10"}>
|
|
|
|
|
<span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startime"}
|
|
|
|
|
width={"210px"}
|
|
|
|
|
value={datatime===undefined||datatime===""?"":moment(datatime, dateFormat)}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
/>
|
|
|
|
|
</span>
|
|
|
|
|
</p>:""}
|
|
|
|
|
{/*{this.state.course_group_idtypes===true?<p className={"color-red"}>请选择分班</p>:""}*/}
|
|
|
|
|
|
|
|
|
|
{/*{course_group_publish_timestype===true?<p className={"color-red mt10"}>请填写完整</p>:""}*/}
|
|
|
|
|
|
|
|
|
|
<div className={this.props.course_is_public===true?"mt10":""}>
|
|
|
|
|
<span className={"color-ooo fl mt6"}>发布设置:</span>
|
|
|
|
|
<Radio.Group onChange={this.RadioonChange} value={this.state.Radiovalue} style={{'width': '460px'}}>
|
|
|
|
|
<Radio style={radioStyle} value={0}>
|
|
|
|
|
立即发布
|
|
|
|
|
</Radio>
|
|
|
|
|
<Radio style={radioStyle} value={1} className={"fl"}>
|
|
|
|
|
<span className={"mr5"}>延迟发布</span>
|
|
|
|
|
<DatePicker
|
|
|
|
|
showToday={false}
|
|
|
|
|
dropdownClassName="hideDisable"
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
locale={locale}
|
|
|
|
|
placeholder="请选择发布时间"
|
|
|
|
|
id={"startime"}
|
|
|
|
|
width={"210px"}
|
|
|
|
|
value={datatime===undefined||datatime===""?"":moment(datatime, dateFormat)}
|
|
|
|
|
onChange={this.onChangeTimepublish}
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
disabledDate={disabledDate}
|
|
|
|
|
disabled={this.state.Radiovalue===1?false:true}
|
|
|
|
|
/>
|
|
|
|
|
</Radio>
|
|
|
|
|
<span className={"fl mt5 color-grey-c"}>(按照设置的时间定时发布)</span>
|
|
|
|
|
</Radio.Group>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<textarea placeholder="请输入资源描述,最大限制100个字符" className={"mt10"} value={description} onInput={this.settextarea} style={{
|
|
|
|
|
width: '100%',
|
|
|
|
@ -760,6 +564,7 @@ class Selectsetting extends Component{
|
|
|
|
|
padding: '10px'
|
|
|
|
|
}}></textarea>
|
|
|
|
|
{this.state.descriptiontypes===true?<p className={"color-red"}>描述不能超过最大限制:100个字符</p>:""}
|
|
|
|
|
{this.state.Radiovaluetype===true?<p className={"color-red"}>发布时间不能为空</p>:""}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
|