|
|
@@ -1,9 +1,95 @@
|
|
|
-import React from 'react'
|
|
|
+import { Button, Tabs, Tag } from 'antd'
|
|
|
+import React, { useRef } from 'react'
|
|
|
+import ProTable from '@ant-design/pro-table'
|
|
|
|
|
|
const EnterpriseTabList = () => {
|
|
|
+ const { TabPane } = Tabs
|
|
|
+ const tRef = useRef(null)
|
|
|
+ const columns = [
|
|
|
+ {
|
|
|
+ title: '产品',
|
|
|
+ dataIndex: 'name',
|
|
|
+ width: '30%',
|
|
|
+ render: (_, record) => <Tag color="purple">{record.name}</Tag>
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '状态',
|
|
|
+ dataIndex: 'isUpgrade',
|
|
|
+ width: '8%'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '限期',
|
|
|
+ dataIndex: 'deadline',
|
|
|
+ width: '10%'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '责任人',
|
|
|
+ dataIndex: 'a1',
|
|
|
+ width: '10%'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ // const columnOnline = [
|
|
|
+ // {
|
|
|
+ // title: '产品',
|
|
|
+ // dataIndex: 'name',
|
|
|
+ // width: '30%',
|
|
|
+ // render: (_, record) => <Tag color="purple">{record.name}</Tag>
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '状态',
|
|
|
+ // dataIndex: 'isUpgrade',
|
|
|
+ // width: '8%'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '限期',
|
|
|
+ // dataIndex: 'deadline',
|
|
|
+ // width: '10%'
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: '责任人',
|
|
|
+ // dataIndex: 'a1',
|
|
|
+ // width: '10%'
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
return (
|
|
|
<div>
|
|
|
- <span>授权定额</span>
|
|
|
+ <div className="pl-15px">
|
|
|
+ <Tabs>
|
|
|
+ <TabPane tab={<span>授权定额</span>} key="1">
|
|
|
+ <div className="sheet-right-panel" ref={tRef}>
|
|
|
+ <ProTable
|
|
|
+ size="small"
|
|
|
+ columns={columns}
|
|
|
+ search={false}
|
|
|
+ toolBarRender={false}
|
|
|
+ // eslint-disable-next-line no-underscore-dangle
|
|
|
+ // rowKey={record => record._id}
|
|
|
+ // dataSource={compilationList}
|
|
|
+ pagination={false}
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ <TabPane tab={<span>授权用户</span>} key="2">
|
|
|
+ <div className="sheet-right-panel">
|
|
|
+ {/* <ProTable
|
|
|
+ size="small"
|
|
|
+ columns={columnOnline}
|
|
|
+ search={false}
|
|
|
+ toolBarRender={false}
|
|
|
+ // eslint-disable-next-line no-underscore-dangle
|
|
|
+ // rowKey={record => record._id}
|
|
|
+ // dataSource={online_list}
|
|
|
+ pagination={false}
|
|
|
+ /> */}
|
|
|
+ </div>
|
|
|
+ </TabPane>
|
|
|
+ </Tabs>
|
|
|
+ </div>
|
|
|
+ <div className="sheet-btns pl-15px pt-15px flex items-center">
|
|
|
+ <Button type="primary" className="mr-1" size="small" ghost>
|
|
|
+ 企业版管理
|
|
|
+ </Button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
)
|
|
|
}
|