| | |
| | | path: '/party', |
| | | // layout: false, |
| | | name: '党员管理', |
| | | // access: '/work_order_transaction_management', |
| | | access: '/party_member', |
| | | routes: [ |
| | | { |
| | | name: '党员管理', |
| | | path: '/party/manage', |
| | | component: './party/manage/index', |
| | | // access: '/work_order_transaction_management/work_order_item_configuration', |
| | | access: '/party_member/list', |
| | | }, |
| | | { |
| | | name: '添加党员', |
| | |
| | | name: '党员审核', |
| | | path: '/party/audit', |
| | | component: './party/audit/index', |
| | | // access: '/work_order_transaction_management/banner_management', |
| | | access: '/party_member_audit/list', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | path: '/appeal-management', |
| | | // layout: false, |
| | | name: '诉求管理', |
| | | // access: '/message_notification', |
| | | access: '/complaint', |
| | | routes: [ |
| | | { |
| | | name: '诉求管理', |
| | | path: '/appeal-management/list', |
| | | path: '/complaint/list', |
| | | component: './appeal-management/index', |
| | | access: '/message_notification', |
| | | }, |
| | |
| | | "/system_setting", |
| | | "/system_setting/people_management", |
| | | "/work_order_transaction_management/work_order_item_configuration/save", |
| | | "/party_member", |
| | | "/party_member/list", |
| | | "/party_member/edit", |
| | | "/party_member/del", |
| | | "/party_member/detail", |
| | | "/party_member/add", |
| | | "/party_member/freeze", |
| | | "/party_member/import", |
| | | "/party_member/export", |
| | | "/party_member_audit/list", |
| | | "/party_member_audit/audit", |
| | | "/complaint", |
| | | "/complaint/list", |
| | | "/complaint/detail", |
| | | "/complaint/community-problem-export", |
| | | "/complaint/problem-handle-export", |
| | | "/complaint/notice-export", |
| | | "/complaint/export", |
| | | ]; |
| | | let accessObj: any = {}; |
| | | permissionList.map((item) => { |
| | |
| | | return ( |
| | | <Space> |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Access accessible={access['/complaint/detail']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | </Access> |
| | | } |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Access accessible={access['/complaint/community-problem-export']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | </Access> |
| | | } |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Access accessible={access['/complaint/problem-handle-export']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | </Access> |
| | | } |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Access accessible={access['/complaint/notice-export']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | search={{ labelWidth: 'auto' }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | <Access accessible={access['/system_setting/position_management/add']}> |
| | | <Access accessible={access['/complaint/export']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | <Space> |
| | | {record.auditStatus == 0 && ( |
| | | <> |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | <Access accessible={access['/party_member_audit/audit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 通过 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member_audit/audit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 拒绝 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </> |
| | | )} |
| | | |
| | |
| | | render: (text, record) => { |
| | | return ( |
| | | <Space> |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/edit']}> */} |
| | | <Access accessible={access['/party_member/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 删除 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/detail']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 查看详情 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/freeze']}> |
| | | {record.freezeStatus == 0 && ( |
| | | <Button |
| | | type="link" |
| | |
| | | </Button> |
| | | )} |
| | | |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/del']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/freeze']}> |
| | | {record.freezeStatus == 1 && ( |
| | | <Button |
| | | type="link" |
| | |
| | | </Button> |
| | | )} |
| | | |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/add']}> */} |
| | | <Access accessible={access['/party_member/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 添加 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/add']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/export']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 导出 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access['/work_order_transaction_management/banner_management/add']}> */} |
| | | </Access> |
| | | <Access accessible={access['/party_member/import']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 导入 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space> |
| | | ]} |
| | | /> |