|
@@ -1,6 +1,8 @@
|
|
|
import React from 'react'
|
|
import React from 'react'
|
|
|
-import { Tabs, List, Row, Col } from 'antd'
|
|
|
|
|
|
|
+import { Tabs, List, Row, Col, Table } from 'antd'
|
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
|
|
|
+import consts from '@/consts'
|
|
|
|
|
+import { isDevMode } from '@/utils/env'
|
|
|
import { servicelogEnum } from '@/pages/Customer/Client/components/ClientDetail/LowerList'
|
|
import { servicelogEnum } from '@/pages/Customer/Client/components/ClientDetail/LowerList'
|
|
|
|
|
|
|
|
const RoadpricingLowerList = props => {
|
|
const RoadpricingLowerList = props => {
|
|
@@ -9,6 +11,44 @@ const RoadpricingLowerList = props => {
|
|
|
serviceLog
|
|
serviceLog
|
|
|
} = props
|
|
} = props
|
|
|
const { TabPane } = Tabs
|
|
const { TabPane } = Tabs
|
|
|
|
|
+ const columns = [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '日期',
|
|
|
|
|
+ dataIndex: 'create_time',
|
|
|
|
|
+ key: 'create_time',
|
|
|
|
|
+ width: 100
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '操作人',
|
|
|
|
|
+ dataIndex: 'operatorName',
|
|
|
|
|
+ key: 'operatorName',
|
|
|
|
|
+ width: 115,
|
|
|
|
|
+ render: (_, record) => (
|
|
|
|
|
+ <div className="flex items-center flex-row ml-2">
|
|
|
|
|
+ <img
|
|
|
|
|
+ className="w-full max-w-30px h-30px border rounded-30px"
|
|
|
|
|
+ src={
|
|
|
|
|
+ (isDevMode() ? 'http://cld2qa.com' : 'http://zhcld.com') +
|
|
|
|
|
+ (record?.avatar ?? consts.DEFAULT_AVATAR)
|
|
|
|
|
+ }
|
|
|
|
|
+ />
|
|
|
|
|
+ <span className="ml-1">{record.operatorName}</span>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ )
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '操作',
|
|
|
|
|
+ dataIndex: 'operationType',
|
|
|
|
|
+ key: 'operationType',
|
|
|
|
|
+ width: 75
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '操作内容',
|
|
|
|
|
+ dataIndex: 'content',
|
|
|
|
|
+ key: 'content',
|
|
|
|
|
+ width: 150
|
|
|
|
|
+ }
|
|
|
|
|
+ ]
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
<div className="pl-4">
|
|
<div className="pl-4">
|
|
@@ -41,16 +81,7 @@ const RoadpricingLowerList = props => {
|
|
|
</TabPane>
|
|
</TabPane>
|
|
|
<TabPane tab="日志" key="日志">
|
|
<TabPane tab="日志" key="日志">
|
|
|
<div className="sheet-panel-record">
|
|
<div className="sheet-panel-record">
|
|
|
- <List
|
|
|
|
|
- dataSource={log}
|
|
|
|
|
- split={false}
|
|
|
|
|
- renderItem={item => (
|
|
|
|
|
- <List.Item>
|
|
|
|
|
- <a>@{item.operatorName}</a> {item.content}
|
|
|
|
|
- <List.Item.Meta description={dayjsFormat(item.create_time)} />
|
|
|
|
|
- </List.Item>
|
|
|
|
|
- )}
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <Table rowKey="id" columns={columns} dataSource={log} pagination={false} />
|
|
|
</div>
|
|
</div>
|
|
|
</TabPane>
|
|
</TabPane>
|
|
|
</Tabs>
|
|
</Tabs>
|