1、底层修改 分页下拉选择 如果有配置过滤 搜索会没有过滤 Parameter22 做特殊优化 减少对框架的影响
2、人员组织调整 重写控件 使onBlue 可用
This commit is contained in:
parent
145f4ae077
commit
06d4710877
@ -259,6 +259,12 @@ class DropDownPagination extends React.Component {
|
||||
labelField = 'NAME';
|
||||
}
|
||||
!autoLoadParam && extendRule(loadParam, labelField, 1, this.state.autoChangeValue)
|
||||
if (this.state.loadParam.FilterGroup.Rules.length > 0) {
|
||||
var par22 = this.state.loadParam.FilterGroup.Rules.find(rule => rule.Field === 'Parameter22');
|
||||
if (par22 && par22.value && par22.value.length > 20) {
|
||||
loadParam.FilterGroup.Rules.push(par22)
|
||||
}
|
||||
}
|
||||
dispatch({
|
||||
type: 'editPage/getAutoCompleteData',
|
||||
payload: loadParam,
|
||||
|
||||
62
src/files/edit/FM212.js
Normal file
62
src/files/edit/FM212.js
Normal file
@ -0,0 +1,62 @@
|
||||
import { message } from "antd/lib/index";
|
||||
import { Form, Col, Input } from 'antd'
|
||||
import DropDownPagination from '../../components/common/DropDownPagination';
|
||||
import { getPropertyData, extendInclude, extendRule, getDataFieldValue, setDataFieldValue, initFilter, guid } from "../../utils/common";
|
||||
import BraftEditor from 'braft-editor';
|
||||
/**
|
||||
* @return {string}
|
||||
*/
|
||||
|
||||
export default {
|
||||
handleRenderHeadControl(params) {
|
||||
if (params.colConfig.field == 'CODE') {
|
||||
const onBlur = (e) => {
|
||||
let json = initFilter(params.login.OrgId, e.target.value);
|
||||
params.dispatch({
|
||||
type: 'app/getDataByPost',
|
||||
url: 'FM/FMUserTransfer/GetUserInfoByCode',
|
||||
payload: json,
|
||||
onComplete: (ret) => {
|
||||
let temps = [];
|
||||
if (ret) {
|
||||
temps.push({ field: 'NAME', value: ret.NAME })
|
||||
temps.push({ field: 'CODE', value: ret.CODE })
|
||||
temps.push({ field: 'COMPANYNAME_OLD', value: ret.COMPANYNAME_OLD })
|
||||
temps.push({ field: 'DEPARTMENTNAME_OLD', value: ret.DEPARTMENTNAME_OLD })
|
||||
temps.push({ field: 'DEPARTMENT_ID_OLD', value: ret.DEPARTMENT_ID_OLD })
|
||||
temps.push({ field: 'POSTNAME_OLD', value: ret.POSTNAME_OLD })
|
||||
temps.push({ field: 'POST_ID_OLD', value: ret.POST_ID_OLD })
|
||||
temps.push({ field: 'ORG_ID_OLD', value: ret.ORG_ID_OLD })
|
||||
temps.push({ field: 'USER_ID_OLD', value: ret.USER_ID_OLD })
|
||||
} else {
|
||||
temps.push({ field: 'NAME', value: '' })
|
||||
// temps.push({ field: 'CODE', value: ret.CODE })
|
||||
temps.push({ field: 'COMPANYNAME_OLD', value: '' })
|
||||
temps.push({ field: 'DEPARTMENTNAME_OLD', value: '' })
|
||||
temps.push({ field: 'DEPARTMENT_ID_OLD', value: null })
|
||||
temps.push({ field: 'POSTNAME_OLD', value: '' })
|
||||
temps.push({ field: 'POST_ID_OLD', value: null })
|
||||
temps.push({ field: 'ORG_ID_OLD', value: null })
|
||||
temps.push({ field: 'USER_ID_OLD', value: null })
|
||||
}
|
||||
params.setFieldValueByBatch(temps);
|
||||
}
|
||||
});
|
||||
};
|
||||
const formItemLayout = {
|
||||
labelCol: { span: 24 },
|
||||
wrapperCol: { span: 18 }
|
||||
};
|
||||
const customOrResponse = {
|
||||
lg: 12, xxl: 8
|
||||
}
|
||||
return <>
|
||||
<Col key={params.colConfig.field} {...customOrResponse}>
|
||||
<Form.Item {...formItemLayout} label={params.colConfig.label} >
|
||||
<Input defaultValue={params.record.CODE} style={{ border: "1px solid #d9d9d9" }} onBlur={onBlur} />
|
||||
</Form.Item>
|
||||
</Col>
|
||||
</>
|
||||
}
|
||||
},
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user