岗位管理名称搜索BUG修复
This commit is contained in:
parent
3eebf5cb54
commit
0fac5a03a4
|
|
@ -561,7 +561,7 @@ export default class Job extends React.Component {
|
|||
job
|
||||
} = this.props;
|
||||
const {
|
||||
isPanelShow, jobName, conditionNum, visible, condition, form,
|
||||
isPanelShow, jobTitleName, conditionNum, visible, condition, form,
|
||||
tableStore, dataSource, columns, loading, date, nEdialogTitle, dialogLoading,
|
||||
form1, isEdit, newVisible,selectedRowKeys, total, current, pageSize, init,
|
||||
defaultShowLeft,form2,hasRight
|
||||
|
|
@ -618,7 +618,7 @@ export default class Job extends React.Component {
|
|||
<WeaTab ecId={`${this && this.props && this.props.ecId || ''}_WeaTab@9c3zts`}
|
||||
searchType={['base', 'advanced']}
|
||||
showSearchAd={isPanelShow}
|
||||
searchsBaseValue={this.isEmptyObject(form.getFormParams()) ? jobName : form.getFormParams().jobName}
|
||||
searchsBaseValue={this.isEmptyObject(form.getFormParams()) ? jobTitleName : form.getFormParams().jobTitleName}
|
||||
setShowSearchAd={bool => job.setPanelStatus(bool)}
|
||||
hideSearchAd={() => job.setPanelStatus(false)}
|
||||
searchsAd={isPanelShow ? this.getPanelComponents() : <div></div>}
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@ export class JobStore {
|
|||
@observable form = new WeaForm();
|
||||
@observable form1 = new WeaForm(); //新增主表表单
|
||||
@observable form2 = new WeaForm(); //复制表单 合并表单
|
||||
@observable jobName = '';
|
||||
@observable jobTitleName = '';
|
||||
@observable conditionNum = 6;
|
||||
@observable ids = ''; //选择行id
|
||||
@observable id = ''; //页面跳转参数id
|
||||
|
|
@ -86,7 +86,7 @@ export class JobStore {
|
|||
if (this.isEmptyObject(this.form.getFormParams())) {
|
||||
params = {
|
||||
...params,
|
||||
jobName: this.jobName,
|
||||
jobTitleName: this.jobTitleName,
|
||||
};
|
||||
} else {
|
||||
params = {
|
||||
|
|
@ -325,7 +325,7 @@ export class JobStore {
|
|||
|
||||
updateFields(val) {
|
||||
this.form.updateFields({
|
||||
jobName: {
|
||||
jobTitleName: {
|
||||
value: val
|
||||
}
|
||||
});
|
||||
|
|
@ -348,7 +348,7 @@ export class JobStore {
|
|||
}
|
||||
|
||||
setJobName(val) {
|
||||
this.jobName = val;
|
||||
this.jobTitleName = val;
|
||||
}
|
||||
|
||||
isEmptyObject(obj) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue