|
|
@@ -64,7 +64,7 @@ class SendMeet extends Component {
|
|
|
title: `全体老师`,
|
|
|
value: `0`,
|
|
|
key: `0`,
|
|
|
- selectable:false,
|
|
|
+ selectable: false,
|
|
|
children: teacherData,
|
|
|
})
|
|
|
}
|
|
|
@@ -138,12 +138,13 @@ class SendMeet extends Component {
|
|
|
onTargetFocus: this.onTargetFocus.bind(this)
|
|
|
}
|
|
|
return (
|
|
|
- <div onChange={this.handelValueCom} style={{fontFamily: "PingFangSC-Regular", letterSpacing: 2.5}} className='common-column-layout'>
|
|
|
+ <div onChange={this.handelValueCom} style={{fontFamily: "PingFangSC-Regular", letterSpacing: 2.5}}
|
|
|
+ className='common-column-layout'>
|
|
|
{/*<p>{new Date().getTime()}</p>*/}
|
|
|
<textarea autoFocus="autoFocus" ref='meetTitle' className="form-control textarea_sty" rows="2"
|
|
|
- placeholder="请填写会议主题…" maxLength={20}></textarea>
|
|
|
+ placeholder="请填写会议主题…" maxLength={20}></textarea>
|
|
|
<textarea ref='meetAddress' className="form-control textarea_sty" rows="3"
|
|
|
- placeholder="请填写会议地址…" maxLength={50}></textarea>
|
|
|
+ placeholder="请填写会议地址…" maxLength={50}></textarea>
|
|
|
<div className="comhline_sty"></div>
|
|
|
<div className="common-column-layout" style={{fontSize: 15}}>
|
|
|
<DatePicker
|
|
|
@@ -179,7 +180,7 @@ class SendMeet extends Component {
|
|
|
{this.state.targetData.length > 0 ? <TargetSelect {...targetProps}/>
|
|
|
: <TargetSelect {...defaultTargetProps}/>}
|
|
|
{/*<center><Button type="button" className="btn btn-primary comBtn_sty"*/}
|
|
|
- {/*onClick={this.doSaveClick}>创建</Button></center>*/}
|
|
|
+ {/*onClick={this.doSaveClick}>创建</Button></center>*/}
|
|
|
|
|
|
<Button className='commonButton' type='primary' style={{margin: '35px'}}
|
|
|
onClick={this.doSaveClick}>创建</Button>
|
|
|
@@ -188,7 +189,7 @@ class SendMeet extends Component {
|
|
|
}
|
|
|
|
|
|
doSaveClick = (event) => {
|
|
|
- if(this.isRequesting == true){
|
|
|
+ if (this.isRequesting == true) {
|
|
|
return
|
|
|
}
|
|
|
console.log('state', this.state)
|
|
|
@@ -200,15 +201,15 @@ class SendMeet extends Component {
|
|
|
Toast.fail('请填写会议地址...')
|
|
|
return
|
|
|
}
|
|
|
- if (this.state.startValue == null ) {
|
|
|
+ if (this.state.startValue == null) {
|
|
|
Toast.fail('请选择开始时间...')
|
|
|
return
|
|
|
}
|
|
|
- if (this.state.endValue == null ) {
|
|
|
+ if (this.state.endValue == null) {
|
|
|
Toast.fail('请选择结束时间...')
|
|
|
return
|
|
|
}
|
|
|
- if (this.state.earlyTime == null ){
|
|
|
+ if (this.state.earlyTime == null) {
|
|
|
Toast.fail('请选择提醒时间...')
|
|
|
return
|
|
|
}
|
|
|
@@ -221,6 +222,10 @@ class SendMeet extends Component {
|
|
|
this.checkNodes.forEach((node, index) => {
|
|
|
userList.push(node.userId)
|
|
|
})
|
|
|
+
|
|
|
+ if (!isObjEmpty(this.props.userInfo.user.userFunId) && userList.indexOf(this.props.userInfo.user.userFunId) === -1) {
|
|
|
+ userList.push(this.props.userInfo.user.userFunId)
|
|
|
+ }
|
|
|
}
|
|
|
var nowT = new Date().getTime()
|
|
|
var startT = new Date(this.state.startValue).getTime()
|
|
|
@@ -245,7 +250,7 @@ class SendMeet extends Component {
|
|
|
console.log('noticeT', new Date(noticeT))
|
|
|
|
|
|
let params = {
|
|
|
- meetingCreator:this.props.userInfo.user.userFunId,
|
|
|
+ meetingCreator: this.props.userInfo.user.userFunId,
|
|
|
meetingStatus: 1,
|
|
|
meetingName: this.state.titleValue,
|
|
|
meetingAddress: this.state.meetAddress,
|
|
|
@@ -254,7 +259,7 @@ class SendMeet extends Component {
|
|
|
reminderDate: moment(new Date(noticeT)).format('YYYY-MM-DD HH:mm:ss'),
|
|
|
meetingNotifier: JSON.stringify(userList),
|
|
|
meetingRemarks: "会议备注",
|
|
|
- meetingFiles:"[]",
|
|
|
+ meetingFiles: "[]",
|
|
|
meetingDetails: "一定要参加",
|
|
|
}
|
|
|
|
|
|
@@ -263,7 +268,7 @@ class SendMeet extends Component {
|
|
|
Toast.loading("会议创建中...", 0)
|
|
|
this.isRequesting = true
|
|
|
fetchPost(API.createMeeting, {
|
|
|
- jsonMeeting:JSON.stringify(params)
|
|
|
+ jsonMeeting: JSON.stringify(params)
|
|
|
}, {})
|
|
|
.then((response) => {
|
|
|
this.isRequesting = false
|