From 9763a60eeda61500e560090ca098cd3c43e5e44a Mon Sep 17 00:00:00 2001 From: wyw <571921741@qq.com> Date: Fri, 10 Apr 2026 14:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=8F=B8=E7=BA=A7=20=E6=8E=A5?= =?UTF-8?q?=E6=94=B6=E8=A7=92=E8=89=B2=20=E8=B5=B0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CustomPages/SE/SEConfigPage.js | 84 ++++++++++++++++++- 1 file changed, 82 insertions(+), 2 deletions(-) diff --git a/src/components/CustomPages/SE/SEConfigPage.js b/src/components/CustomPages/SE/SEConfigPage.js index 8ae331e..308a3a2 100644 --- a/src/components/CustomPages/SE/SEConfigPage.js +++ b/src/components/CustomPages/SE/SEConfigPage.js @@ -7,6 +7,7 @@ import { connect } from 'dva'; import moment from 'moment'; class SEConfigPage extends React.Component { + constructor(props) { super(props); this.state = { @@ -26,12 +27,16 @@ class SEConfigPage extends React.Component { DEP_TRAIN_PLAN_START_TIME: null, DEP_TRAIN_PLAN_END_TIME: null, TRAIN_SURVEY_TRIGGER_TIME: null, + APPROVAL_ROLE_ID: null, + optionsSelect: null }, }; + }; componentDidMount() { - this.loadData(); + this.ini(); + // this.loadData(); } BtnClose = () => { if (typeof this.props.closeFn != "undefined") @@ -42,6 +47,25 @@ class SEConfigPage extends React.Component { this.props.onCancel(); } } + ini = () => { + let json = initFilter(this.props.login.OrgId); + json.Parameter22 = this.props.data.ORG_ID_HV; + var that = this + this.props.dispatch({ + type: 'app/getDataByPost', + payload: json, + url: 'PF/ApprovalRole/Entities', + onComplete: (ret) => { + if (ret && ret.length > 0) { + let data = this.state.data; + data.optionsSelect = ret; + this.setState(data) + this.loadData() + } + } + }); + + } loadData = () => { let json = initFilter(this.props.login.OrgId); json.Parameter22 = this.props.data.ORG_ID_HV; @@ -51,6 +75,7 @@ class SEConfigPage extends React.Component { url: 'SE/SEConfig/Entities', onComplete: (ret) => { if (ret && ret.length > 0) { + ret[0].optionsSelect = this.state.data.optionsSelect this.setState({ data: ret[0] }); } } @@ -91,9 +116,31 @@ class SEConfigPage extends React.Component { } }); } + + + onselectChange = (value) => { + debugger + let data = this.state.data; + data.APPROVAL_ROLE_ID = value; + this.setState(data) + } + + onBlur = () => { + console.log('blur'); + } + + onFocus = () => { + console.log('focus'); + } + + onSearch = (val) => { + console.log('search:', val); + } + render() { const { data } = this.state; const dateFormat = 'MM-DD'; + const { Option } = Select; return <>
@@ -260,7 +307,7 @@ class SEConfigPage extends React.Component { 公司培训计划触发时间 - + + 接收角色 + + + + {/* +render: (text, record, index) => { + return ; + + */} + + {/* 部门培训计划发起时间