|
|
@@ -107,13 +107,13 @@ class NotifyBoardDetail extends Component {
|
|
|
{/*<div className='notify-detail-modal-time'>{notifyDetail.noTime}</div>*/}
|
|
|
<div className='gray-line'></div>
|
|
|
<div className='common-flex-row-10 common-font-family'>
|
|
|
- <span style={{color: '#363636',fontSize:14}}>接收人</span>
|
|
|
- {/*<span style={{fontSize: '12px', color: '#CD1D1D'}}>未读:{notifyDetail.unRead}</span>*/}
|
|
|
- <span style={{
|
|
|
- fontSize: '12px',
|
|
|
- color: '#666666',
|
|
|
- marginLeft: '10px'
|
|
|
- }}>{getIntValue(notifyDetail.readed, 'length')}/{notifyDetail.allCount}</span>
|
|
|
+ <span style={{color: '#363636', fontSize: 14}}>接收人</span>
|
|
|
+ {/*<span style={{fontSize: '12px', color: '#CD1D1D'}}>未读:{notifyDetail.unRead}</span>*/}
|
|
|
+ <span style={{
|
|
|
+ fontSize: '12px',
|
|
|
+ color: '#666666',
|
|
|
+ marginLeft: '10px'
|
|
|
+ }}>{getIntValue(notifyDetail.readed, 'length')}/{notifyDetail.allCount}</span>
|
|
|
</div>
|
|
|
<div>
|
|
|
{receiveItems}
|
|
|
@@ -126,32 +126,19 @@ class NotifyBoardDetail extends Component {
|
|
|
|
|
|
obtainDetail = () => {
|
|
|
let url = '', params = {}
|
|
|
- if (this.role === 'teacher') {
|
|
|
- url = API.NOTIFY_DETAIL_TEACHER
|
|
|
- let id = this.props.userInfo.user.userFunId
|
|
|
- if (this.searchParams && this.searchParams.teacherId) {
|
|
|
- id = this.searchParams.teacherId
|
|
|
- }
|
|
|
- params = {
|
|
|
- notifyId: this.notifyId,
|
|
|
- teacherId: id
|
|
|
- }
|
|
|
- } else if (this.role === 'parent') {
|
|
|
- url = API.NOTIFY_DETAIL_PARENT
|
|
|
- let id = this.props.userInfo.user.student.stuId
|
|
|
- if (this.searchParams && this.searchParams.stuId) {
|
|
|
- id = this.searchParams.stuId
|
|
|
- }
|
|
|
- params = {
|
|
|
- notifyId: this.notifyId,
|
|
|
- stuId: id
|
|
|
- }
|
|
|
- } else {
|
|
|
- return
|
|
|
+ url = API.NOTIFY_DETAIL_TEACHER
|
|
|
+ let id = this.props.userInfo.user.userFunId
|
|
|
+ if (this.searchParams && this.searchParams.teacherId) {
|
|
|
+ id = this.searchParams.personId
|
|
|
+ }
|
|
|
+ params = {
|
|
|
+ notifyId: this.notifyId,
|
|
|
+ personId: id,
|
|
|
+ type:this.role=='parent' ? 0 :1
|
|
|
}
|
|
|
|
|
|
Toast.loading('', 0)
|
|
|
- fetchPost(url, params).then(response => {
|
|
|
+ fetchGet(url, params).then(response => {
|
|
|
Toast.hide()
|
|
|
if (response && response.data) {
|
|
|
let notifyBoBean = new NotifyBoBean()
|