|
|
@@ -10,12 +10,11 @@ import {fetchPost, fetchGet, fetchGetNoSession} from '../../../utils/fetchReques
|
|
|
import {API, _baseURL} from '../../../configs/api.config';
|
|
|
import ImageGrid from "../../../components/image/ImageGrid";
|
|
|
import {Button, Icon, Input, List} from 'antd';
|
|
|
-import {isObjEmpty, getIntValue, getStrValue} from '../../../utils/common';
|
|
|
import {CSSTransition, TransitionGroup} from 'react-transition-group'
|
|
|
import LazyLoad from 'react-lazyload';
|
|
|
import ImagesViewer from '../../../components/imagesVIewer/index';
|
|
|
import {Toast} from 'antd-mobile';
|
|
|
-
|
|
|
+import {getIntValue, getStrValue, isObjEmpty,getSearchParams} from "../../../utils/common";
|
|
|
|
|
|
class LeaveDetail extends Component {
|
|
|
constructor(props) {
|
|
|
@@ -38,6 +37,13 @@ class LeaveDetail extends Component {
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
|
|
+ this.searchParams = getSearchParams(this.props.location.search)
|
|
|
+
|
|
|
+ this.teacherId = this.props.userInfo.user.userFunId
|
|
|
+ if (this.searchParams && this.searchParams.teacherId) {
|
|
|
+ this.teacherId = this.searchParams.teacherId
|
|
|
+ }
|
|
|
+
|
|
|
let lvId = this.props.match.params.lvId
|
|
|
let role = this.props.match.params.role
|
|
|
let isshowfoot = true
|
|
|
@@ -164,7 +170,7 @@ class LeaveDetail extends Component {
|
|
|
const params = {
|
|
|
replyTitle: '请假单回复',
|
|
|
replyContent: this.state.messageContent,
|
|
|
- teacherId: this.props.userInfo.user.userFunId,
|
|
|
+ teacherId: this.teacherId,
|
|
|
lvId: this.state.itemdetail.lvId,
|
|
|
|
|
|
}
|