update 项目管理、片区管理编辑读数据方式更改

This commit is contained in:
2021-07-06 17:25:22 +08:00
parent 6a97b9440b
commit da14389a47
9 changed files with 60 additions and 25 deletions

View File

@@ -80,7 +80,7 @@ export default class index extends Component {
render: (text, record) => (
<QueryTableActions>
<Auth auth="houseZone:edit">
<a onClick={() => this.onOpen(this.editForm, record)}>编辑</a>
<a onClick={() => this.onOpen(this.editForm, record.id)}>编辑</a>
</Auth>
<Auth auth="houseZone:delete">
<Popconfirm
@@ -180,10 +180,11 @@ export default class index extends Component {
* @param {*} modal
* @param {*} record
*/
onOpen(modal, record) {
onOpen(modal, id) {
modal.current.open({
orgId: this.selectId,
record,
// record,
id,
})
}