Merge branch 'master' of http://121.41.2.71:3000/wyw/mh_jy_safe_web
This commit is contained in:
commit
7e3de4bd37
@ -54,10 +54,12 @@ class SE061PaperPage extends React.Component {
|
||||
if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
|
||||
this.props.data.onCancel();
|
||||
}
|
||||
getUsers = () => {
|
||||
getUsers = (dataid) => {
|
||||
debugger
|
||||
let json = initFilter(this.props.login.OrgId);
|
||||
json.OrgType = 2;
|
||||
extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
||||
// extendRule(json, 'RECORD_ID', 1, this.props.data.id);
|
||||
extendRule(json, 'RECORD_ID', 1, dataid);
|
||||
extendInclude(json, 'Nav_User');
|
||||
this.state.loading = true;
|
||||
this.props.dispatch({
|
||||
@ -88,6 +90,12 @@ class SE061PaperPage extends React.Component {
|
||||
message.warn("当前用户没有问卷");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
this.setState({
|
||||
SelUsrID: '',
|
||||
papers: []
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -142,10 +150,10 @@ class SE061PaperPage extends React.Component {
|
||||
}
|
||||
});
|
||||
}
|
||||
loadData = () => {
|
||||
loadData = (dataid) => {
|
||||
if (this.props.data.id == "")
|
||||
return;
|
||||
this.getUsers();
|
||||
this.getUsers(dataid);
|
||||
}
|
||||
onSave = () => {
|
||||
if (this.state.readonly) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user