Merge branch 'release/3.0.1.2504.01-合并业务线' into custom/钱智

# Conflicts:
#	pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBook/columns.js
This commit is contained in:
lys 2025-07-24 16:58:54 +08:00
commit 41377704b1
3 changed files with 8 additions and 6 deletions

View File

@ -127,7 +127,7 @@ class AssociativeSearchMult extends Component {
}
let options = data.map(d => <Option key={d.id} title={d.name}>{d.name}</Option>);
!tags && selectedValues && selectedValues.map((v) => {
v && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
v && datas[v] && options.unshift(<Option key={v} title={datas[v].name}>{datas[v].name}</Option>);
});
const select = <Select
{...this.props}

View File

@ -91,11 +91,11 @@ class CustomBrowserDialog extends Component {
this.props.onCancel && this.props.onCancel();
};
getItemById = (id) => {
const { listDatas } = this.state;
const { listDatas } = this.state, dataSource = [...listDatas, ..._.values(this.props.datas)];
if (this.selectedData[id]) return this.selectedData[id];
if (!_.isEmpty(listDatas)) {
for (let i = 0; i < listDatas.length; i++) {
if (String(id) === String(listDatas[i].id)) return listDatas[i];
if (!_.isEmpty(dataSource)) {
for (let i = 0; i < dataSource.length; i++) {
if (String(id) === String(dataSource[i].id)) return dataSource[i];
}
}
};

View File

@ -22,7 +22,9 @@ export const socialAccountConditions = [
lanId: 537996,
labelcol: 6,
options: [],
multiple: true,
otherParams: {
showSearch: true, optionFilterProp: "children"
},
rules: "required|string",
viewAttr: 3
},