Merge pull request '岗位管理名称搜索BUG修复' (#36) from feature/dxfeng into dev

Reviewed-on: http://221.226.25.34:3000/liang.cheng/trunk/pulls/36
This commit is contained in:
dxfeng 2023-03-13 11:23:18 +08:00
commit 8e82c0e781
2 changed files with 6 additions and 6 deletions

View File

@ -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>}

View File

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