|
|
@@ -1,9 +1,11 @@
|
|
|
import EditableForm from '@/components/EditableForm'
|
|
|
+import { dayjsFormat } from '@/utils/utils'
|
|
|
import { Col, Row } from 'antd'
|
|
|
import React from 'react'
|
|
|
|
|
|
const EnterpriseForm = props => {
|
|
|
const { company, updateKey } = props
|
|
|
+ console.log(company.members?.find(item => item.role === 'admin')?.memberName)
|
|
|
const columns = [
|
|
|
{
|
|
|
dataIndex: 'name',
|
|
|
@@ -12,19 +14,19 @@ const EnterpriseForm = props => {
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: 'managerName',
|
|
|
+ dataIndex: 'mobile',
|
|
|
label: '通行账号',
|
|
|
editable: false,
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: 'a1',
|
|
|
+ dataIndex: 'subdomain',
|
|
|
label: '项目数量',
|
|
|
editable: false,
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: 'a2',
|
|
|
+ dataIndex: 'licenceNum',
|
|
|
label: '授权账号',
|
|
|
editable: false,
|
|
|
span: 24
|
|
|
@@ -42,13 +44,13 @@ const EnterpriseForm = props => {
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: 'a5',
|
|
|
+ dataIndex: 'type',
|
|
|
label: '企业类型',
|
|
|
editable: false,
|
|
|
span: 24
|
|
|
},
|
|
|
{
|
|
|
- dataIndex: 'a6',
|
|
|
+ dataIndex: 'scale',
|
|
|
label: '企业规模',
|
|
|
editable: false,
|
|
|
span: 24
|
|
|
@@ -61,19 +63,14 @@ const EnterpriseForm = props => {
|
|
|
<h2 className="text-gray-500">企业信息</h2>
|
|
|
</Col>
|
|
|
<Col span={16} className="text-right text-gray-500">
|
|
|
- {company.client_name}创建于 {company.registerTime}
|
|
|
+ {company.client_name}创建于 {dayjsFormat(company.createTime, 'YYYY-MM-DD')}
|
|
|
</Col>
|
|
|
<Col span={22}>
|
|
|
<h2 className="text-2xl pb-4">{company.name}</h2>
|
|
|
</Col>
|
|
|
<Col span={2} />
|
|
|
</Row>
|
|
|
- <EditableForm
|
|
|
- dataSource={company}
|
|
|
- columns={columns}
|
|
|
- tartgetUrl="/cloud/update"
|
|
|
- type={updateKey}
|
|
|
- />
|
|
|
+ <EditableForm dataSource={company} columns={columns} tartgetUrl="/cloud/update" type={updateKey} />
|
|
|
</div>
|
|
|
)
|
|
|
}
|