| | |
| | | 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', |
| | | }, |
| | | ], |
| | | }, |
| | |
| | | dataIndex: 'bannerName', |
| | | hideInSearch: true, |
| | | }, |
| | | |
| | | |
| | | { |
| | | title: '状态', |
| | | dataIndex: 'listingStatus', |
| | | hideInSearch: true, |
| | | valueEnum: { |
| | | '上架中': { text: '已读' }, |
| | | '已下架' : { text: '未读' }, |
| | | '已下架': { text: '未读' }, |
| | | } |
| | | }, |
| | | { |
| | |
| | | render: (text, record) => { |
| | | return ( |
| | | <Space> |
| | | |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(deleteBanner, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | },'确认标记已读所选信息吗?'); |
| | | }} |
| | | > |
| | | 标记已读 |
| | | </Button> |
| | | <Access accessible={access['/message_notification/mark_read']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(deleteBanner, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认标记已读所选信息吗?'); |
| | | }} |
| | | > |
| | | 标记已读 |
| | | </Button> |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | showQuickJumper: true, |
| | | defaultPageSize: 10, |
| | | }} |
| | | search={{labelWidth: 140}} |
| | | search={{ labelWidth: 140 }} |
| | | request={(params) => { |
| | | params.bannerType = Number(params.bannerType) |
| | | return buildProTableDataSource(getList, params) |
| | |
| | | <Space> |
| | | { |
| | | !record.admin && |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisible(true); |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | <Access accessible={access['/system_setting/position_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisible(true); |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | { |
| | | !record.admin && |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.deptId); |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | <Access accessible={access['/position_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.deptId); |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | </Space> |
| | | ); |
| | |
| | | return ( |
| | | <div> |
| | | <PageContainer header={{ |
| | | breadcrumb: {}, |
| | | }}> |
| | | breadcrumb: {}, |
| | | }}> |
| | | <ProTable |
| | | rowKey="id" |
| | | actionRef={actionRef} |
| | | columns={columns} |
| | | pagination={false} |
| | | request={async(params) => { |
| | | request={async (params) => { |
| | | return await buildProTableDataSource(getList, params); |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisible(true); |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space>, |
| | | <Access accessible={access['/system_setting/position_management/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisible(true); |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Access> |
| | | </Space> |
| | | ]} |
| | | /> |
| | | <AddAndEdit |
| | |
| | | <Space> |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_edit}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | // </Access> |
| | | <Access accessible={access['/system_setting/role_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | { |
| | | record.roleId != 1 && |
| | | // <Access accessible={access.settings_role_detele}> |
| | | <Access accessible={access['/system_setting/role_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | } |
| | | <Access accessible={access['/system_setting/role_management/detail'] || false}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(del, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | addViewRef.current.refreshData(record, true); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 删除 |
| | | 查看详情 |
| | | </Button> |
| | | // </Access> |
| | | } |
| | | {/* <Access accessible={access.settings_role_detail}> */} |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData(record, true); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 查看详情 |
| | | </Button> |
| | | {/* </Access> */} |
| | | </Access> |
| | | </Space > |
| | | ); |
| | | }, |
| | |
| | | }} |
| | | request={(params) => buildProTableDataSource(getList, params)} |
| | | toolBarRender={(action, selectRows) => [ |
| | | // <Access accessible={access.settings_role_add}> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | // </Access> |
| | | <Access accessible={access['/system_setting/role_management/add']}> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | | addViewRef.current.refreshData({}); |
| | | handleModalVisibles(true) |
| | | }} |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | </Access> |
| | | ]} |
| | | /> |
| | | <AddAndEdit |
| | |
| | | <div><span style={{ fontSize: '14px', fontWeight: 600 }}>*诉求处理时间配置: |
| | | </span><span style={{ marginLeft: 8, color: '#a5a5a5' }}>超过时间未处理诉求,系统自动对该事件承办者发送短信提醒,并知会至上一级管理层进行督办。 |
| | | </span></div> |
| | | <Space style={{ marginTop: 20,display:'flex',flexWrap:'wrap'}}> |
| | | <Space style={{ marginTop: 20, display: 'flex', flexWrap: 'wrap' }}> |
| | | <Form.Item label="市级账号" name="isAuctioneer" rules={ |
| | | [{ required: true, message: '请输入市级账号' }] |
| | | }> |
| | |
| | | <div><span style={{ fontSize: '14px', fontWeight: 600 }}>*时限临期提醒配置: |
| | | </span><span style={{ marginLeft: 8, color: '#a5a5a5' }}>超过时间未处理诉求,系统自动对该事件承办者发送短信提醒,并知会至上一级管理层进行督办。 |
| | | </span></div> |
| | | <Space style={{ marginTop: 20,display:'flex',flexWrap:'wrap'}}> |
| | | <Space style={{ marginTop: 20, display: 'flex', flexWrap: 'wrap' }}> |
| | | |
| | | <Form.Item label="市级账号" name="isAuctioneer" rules={ |
| | | [{ required: true, message: '请输入市级账号' }] |
| | | }> |
| | | <InputNumber precision={0} min={0} addonAfter="天内" controls={false}></InputNumber> |
| | | <InputNumber precision={0} min={0} addonAfter="天内" controls={false}></InputNumber> |
| | | </Form.Item> |
| | | |
| | | <Form.Item label="区县账号" name="isAuctioneer" rules={ |
| | |
| | | </Space> |
| | | </Card> |
| | | <Card> |
| | | <div style={{marginBottom:20}}><span style={{ fontSize: '14px', fontWeight: 600 }}>*诉求处理时间: |
| | | <div style={{ marginBottom: 20 }}><span style={{ fontSize: '14px', fontWeight: 600 }}>*诉求处理时间: |
| | | </span><span style={{ marginLeft: 8, color: '#a5a5a5' }}>超过时间未处理诉求,系统自动对该事件承办者发送短信提醒,并知会至上一级管理层进行督办。 |
| | | </span></div> |
| | | <Form.Item label="添加后处理时间" name="isAuctioneer" rules={ |
| | |
| | | <InputNumber precision={0} min={0} addonAfter="天内" controls={false}></InputNumber> |
| | | </Form.Item> |
| | | </Card> |
| | | |
| | | <div style={{ marginTop: 20,display:'flex',justifyContent:'center'}}> |
| | | <Button type="primary" htmlType="submit" style={{ marginRight: 20 }}> |
| | | 保存 |
| | | </Button> |
| | | </div> |
| | | <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> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | history.push(`/marketing/banner/add?id=${record.id}&edit=true`); |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(deleteBanner, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | },'确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/edit']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | history.push(`/marketing/banner/add?id=${record.id}&edit=true`); |
| | | }} |
| | | > |
| | | 编辑 |
| | | </Button> |
| | | </Access> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | | let status = await sendRequest(deleteBanner, record.id) |
| | | if (status) { |
| | | actionRef.current.reload(); |
| | | } |
| | | }, '确认删除所选信息吗?'); |
| | | }} |
| | | > |
| | | 删除 |
| | | </Button> |
| | | </Access> |
| | | {/* <Button |
| | | type="link" |
| | | onClick={() => { |
| | |
| | | return buildProTableDataSource(getList, params) |
| | | }} |
| | | toolBarRender={(action, selectRows) => [ |
| | | <Space> |
| | | <Space> |
| | | <Access accessible={access['/work_order_transaction_management/banner_management/add']}> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => { |
| | |
| | | > |
| | | 添加 |
| | | </Button> |
| | | </Space> |
| | | </Access> |
| | | </Space> |
| | | ]} |
| | | /> |
| | | </PageContainer> |
| | |
| | | import { PageContainer, ProTable } from '@ant-design/pro-components'; |
| | | import { Button, Space } from 'antd'; |
| | | import { useRef, useState } from 'react'; |
| | | import { useAccess,Access } from 'umi'; |
| | | import { useAccess, Access } from 'umi'; |
| | | import AddAndEdit from './components/addAndEdit'; |
| | | import { addAndEdit, del, getList } from './service'; |
| | | const Account = () => { |
| | |
| | | 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}> */} |
| | | <Button |
| | | </Access> |
| | | <Access accessible={access['/work_order_transaction_management/problem_type_management/del']}> |
| | | <Button |
| | | type="link" |
| | | onClick={() => { |
| | | showDelConfirm(async () => { |
| | |
| | | > |
| | | 删除 |
| | | </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>, |
| | | ]} |
| | | /> |