|
|
@@ -1,6 +1,5 @@
|
|
|
import { Tabs, List, Row, Col } from 'antd'
|
|
|
import React from 'react'
|
|
|
-import useAutoTable from '@/hooks/useAutoTable'
|
|
|
import { dayjsFormat } from '@/utils/utils'
|
|
|
|
|
|
const ContanctLowerList = props => {
|
|
|
@@ -15,16 +14,12 @@ const ContanctLowerList = props => {
|
|
|
4: '在线服务'
|
|
|
}
|
|
|
const { TabPane } = Tabs
|
|
|
- const needSubtractHeight = 48 + 48 + 48 + 64 + 24 // 需要被裁掉的高度
|
|
|
- // const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
|
-
|
|
|
- const [x, y] = useAutoTable(needSubtractHeight)
|
|
|
return (
|
|
|
<div>
|
|
|
<div className="zh-pd-left-15">
|
|
|
<Tabs>
|
|
|
<TabPane tab="服务记录" key="服务记录">
|
|
|
- <div className="sheet-panel-record" style={{ height: y - 310, overflowY: 'auto' }}>
|
|
|
+ <div className="sheet-panel-record">
|
|
|
<Row>
|
|
|
<Col span="8">类型/时间</Col>
|
|
|
<Col span="16">服务内容</Col>
|
|
|
@@ -49,7 +44,7 @@ const ContanctLowerList = props => {
|
|
|
</div>
|
|
|
</TabPane>
|
|
|
<TabPane tab="日志" key="日志">
|
|
|
- <div className="sheet-panel-record" style={{ height: y - 310, overflowY: 'auto' }}>
|
|
|
+ <div className="sheet-panel-record">
|
|
|
<List
|
|
|
dataSource={logs}
|
|
|
split={false}
|