| | |
| | | path: '/setting', |
| | | // layout: false, |
| | | name: '系统设置', |
| | | access: '/system_setting', |
| | | routes: [ |
| | | { |
| | | name: '职位管理', |
| | | path: '/setting/career', |
| | | component: './setting/career/index', |
| | | access: '/system_setting/position_management', |
| | | }, |
| | | { |
| | | name: '角色管理', |
| | | path: '/setting/role', |
| | | component: './setting/role', |
| | | access: '/system_setting/role_management', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | path: '/work-order', |
| | | // layout: false, |
| | | name: '工单事项管理', |
| | | access: '/work_order_transaction_management', |
| | | routes: [ |
| | | { |
| | | name: '工单事项配置', |
| | | path: '/work-order/configuration', |
| | | component: './work-order-setting/index', |
| | | access: '/work_order_transaction_management/work_order_item_configuration', |
| | | }, |
| | | { |
| | | name: '问题类型管理', |
| | | path: '/work-order/problemType', |
| | | component: './work-order/problem-type/index', |
| | | access: '/work_order_transaction_management/problem_type_management', |
| | | }, |
| | | { |
| | | name: 'banner管理', |
| | | path: '/work-order/banner', |
| | | component: './work-order/banner/index', |
| | | access: '/work_order_transaction_management/banner_management', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | path: '/message-notification', |
| | | // layout: false, |
| | | name: '消息通知', |
| | | access: '/message_notification', |
| | | routes: [ |
| | | { |
| | | name: '消息通知', |
| | | path: '/message-notification/list', |
| | | component: './message-notification/index', |
| | | access: '/message_notification', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | render: (text, record) => { |
| | | return ( |
| | | <Space> |
| | | |
| | | <Access accessible={access['/message_notification/mark_read']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 标记已读 |
| | | </Button> |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | <Space> |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | { |
| | | !record.admin && |
| | | <Access accessible={access['/position_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | </Space> |
| | | ); |
| | |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | <Access accessible={access['/system_setting/position_management/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space>, |
| | | </Access> |
| | | </Space> |
| | | ]} |
| | | /> |
| | | <AddAndEdit |
| | |
| | | <Space> |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_edit}> |
| | | <Access accessible={access['/system_setting/role_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | // </Access> |
| | | </Access> |
| | | } |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_detele}> |
| | | <Access accessible={access['/system_setting/role_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 删除 |
| | | </Button> |
| | | // </Access> |
| | | </Access> |
| | | } |
| | | {/* <Access accessible={access.settings_role_detail}> */} |
| | | <Access accessible={access['/system_setting/role_management/detail'] || false}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 查看详情 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | }} |
| | | request={(params) => buildProTableDataSource(getList, params)} |
| | | toolBarRender={(action, selectRows) => [ |
| | | // <Access accessible={access.settings_role_add}> |
| | | <Access accessible={access['/system_setting/role_management/add']}> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | // </Access> |
| | | </Access> |
| | | ]} |
| | | /> |
| | | <AddAndEdit |
| | |
| | | <InputNumber precision={0} min={0} addonAfter="天内" controls={false}></InputNumber> |
| | | </Form.Item> |
| | | </Card> |
| | | |
| | | <Access accessible={access['/work_order_transaction_management/work_order_item_configuration/save'] || false}> |
| | | <div style={{ marginTop: 20,display:'flex',justifyContent:'center'}}> |
| | | <Button type="primary" htmlType="submit" style={{ marginRight: 20 }}> |
| | | 保存 |
| | | </Button> |
| | | </div> |
| | | </Access> |
| | | </Form> |
| | | </Card> |
| | | </PageContainer> |
| | |
| | | render: (text, record) => { |
| | | return ( |
| | | <Space> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | {/* <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Access> |
| | | </Space> |
| | | ]} |
| | | /> |
| | |
| | | render: (text, record) => { |
| | | return ( |
| | | <Space> |
| | | {/* <Access accessible={access.pm5 || false}> */} |
| | | <Access accessible={access['/work_order_transaction_management/problem_type_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | {/* </Access> */} |
| | | {/* <Access accessible={access.pm5 || false}> */} |
| | | </Access> |
| | | <Access accessible={access['/work_order_transaction_management/problem_type_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | > |
| | | 删除 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space> |
| | | ); |
| | | }, |
| | |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | {/* <Access accessible={access.pm4 || false}> */} |
| | | <Access accessible={access['/work_order_transaction_management/problem_type_management/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 添加 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space>, |
| | | ]} |
| | | /> |