|
|
@@ -14,6 +14,7 @@ import {fetchPost} from "../../utils/fetchRequest";
|
|
|
import {connect} from 'react-redux'
|
|
|
|
|
|
const {TextArea} = Input
|
|
|
+
|
|
|
class PrincipalMailbox extends Component {
|
|
|
|
|
|
constructor() {
|
|
|
@@ -88,16 +89,19 @@ class PrincipalMailbox extends Component {
|
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
- mailboxTitle: "校长信箱",
|
|
|
- mailboxContext: suggest,
|
|
|
- mailboxFiles: JSON.stringify(fileUrls),
|
|
|
- mailboxCreator: this.props.userInfo.user.userFunId,
|
|
|
- isAnonymity: isAnonymous ? 2 : 1,
|
|
|
- mailboxStatus:1
|
|
|
+ mailboxTitle: "校长信箱",
|
|
|
+ mailboxContext: suggest,
|
|
|
+ mailboxFiles: JSON.stringify(fileUrls),
|
|
|
+ mailboxCreator: this.props.userInfo.user.userFunId,
|
|
|
+ isAnonymity: isAnonymous ? 2 : 1,
|
|
|
+ mailboxStatus: 1,
|
|
|
+ mbStuid:this.props.userInfo.user.student.stuId,
|
|
|
+ mbStudent:this.props.userInfo.user.student.stuName,
|
|
|
+
|
|
|
}
|
|
|
- console.log("params",params)
|
|
|
+ console.log("params", params)
|
|
|
fetchPost(API.PRINCIPAL_MAILBOX, {
|
|
|
- mailboxString:JSON.stringify(params)
|
|
|
+ mailboxString: JSON.stringify(params)
|
|
|
}).then(response => {
|
|
|
Toast.hide()
|
|
|
Toast.success('提交成功,谢谢您的建议!')
|