Browse Source

完善用户选择结构物样式

master
dengyinhuan 2 years ago
parent
commit
5b06763d39
  1. 1
      web/client/src/sections/organization/components/userModal.js
  2. 2
      web/client/src/sections/organization/containers/user.js

1
web/client/src/sections/organization/components/userModal.js

@ -143,7 +143,6 @@ const UserModal = (props) => {
// fieldProps={{//这里使用了select的onChange方法,必须使用这样的写法来进行调用onChange方法
// onChange:(val) => handleChange(val),
// }}
request={async () => {
console.log(tableList);
const opts = tableList?.map(i=>({label:i.name,value:i.id}))

2
web/client/src/sections/organization/containers/user.js

@ -315,7 +315,7 @@ console.log(tableList,'tableList')
onVisibleChange={setModalVisible}
modalType={modalType}
onConfirm={onConfirm}
editData={modalRecord}
editData={{...modalRecord,structure:modalRecord.structure||[]}}
tableList={tableList}
/>
: ''

Loading…
Cancel
Save