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') if (typeof this.props.data.onCancel != "undefined" && typeof this.props.data.onCancel == 'function')
this.props.data.onCancel(); this.props.data.onCancel();
} }
getUsers = () => { getUsers = (dataid) => {
debugger
let json = initFilter(this.props.login.OrgId); let json = initFilter(this.props.login.OrgId);
json.OrgType = 2; 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'); extendInclude(json, 'Nav_User');
this.state.loading = true; this.state.loading = true;
this.props.dispatch({ this.props.dispatch({
@ -88,6 +90,12 @@ class SE061PaperPage extends React.Component {
message.warn("当前用户没有问卷"); message.warn("当前用户没有问卷");
} }
} }
} else {
this.setState({
SelUsrID: '',
papers: []
})
} }
} }
}); });
@ -142,10 +150,10 @@ class SE061PaperPage extends React.Component {
} }
}); });
} }
loadData = () => { loadData = (dataid) => {
if (this.props.data.id == "") if (this.props.data.id == "")
return; return;
this.getUsers(); this.getUsers(dataid);
} }
onSave = () => { onSave = () => {
if (this.state.readonly) { if (this.state.readonly) {