Compare commits
6 Commits
bdd8b948da
...
41377704b1
| Author | SHA1 | Date |
|---|---|---|
|
|
41377704b1 | |
|
|
32162c9cba | |
|
|
3d8b242889 | |
|
|
9121309221 | |
|
|
2871043810 | |
|
|
f3e2d878d0 |
|
|
@ -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}
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -22,7 +22,9 @@ export const socialAccountConditions = [
|
|||
lanId: 537996,
|
||||
labelcol: 6,
|
||||
options: [],
|
||||
multiple: true,
|
||||
otherParams: {
|
||||
showSearch: true, optionFilterProp: "children"
|
||||
},
|
||||
rules: "required|string",
|
||||
viewAttr: 3
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue