This commit is contained in:
何美荣 2025-11-30 02:16:58 +08:00
commit 7e3de4bd37

View File

@ -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) {