lanjianrong пре 5 година
родитељ
комит
a83d4ca819
1 измењених фајлова са 11 додато и 9 уклоњено
  1. 11 9
      src/components/PopContent/Contacts/ContanctLowerList.jsx

+ 11 - 9
src/components/PopContent/Contacts/ContanctLowerList.jsx

@@ -5,11 +5,15 @@ import useAutoTable from '@/hooks/useAutoTable'
 import { dayjsFormat } from '@/utils/utils'
 
 const ContanctLowerList = props => {
-  const { log, servicelist, collapsed } = props
+  const {
+    log: { log: logs = [], total = 0 },
+    servicelist,
+    collapsed
+  } = props
   useEffect(() => {
     // console.log(log)
   }, [])
-// console.log(servicelist)
+  // console.log(servicelist)
   const { TabPane } = Tabs
   const needSubtractHeight = 48 + 48 + 48 + 64 + 24 // 需要被裁掉的高度
   // const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
@@ -20,7 +24,7 @@ const ContanctLowerList = props => {
       <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" style={{ height: y - 310, overflowY: 'auto' }}>
               <Row>
                 <Col span="8">类型/时间</Col>
                 <Col span="16">服务内容</Col>
@@ -33,9 +37,7 @@ const ContanctLowerList = props => {
                     <Row className="zh-width-100P">
                       <Col span="8">
                         <a>@{item.staffName}</a> {item.status}上门服务
-                        <List.Item.Meta
-                          description={ dayjsFormat(item.date, 'MM-DD HH:mm:ss')}
-                        />
+                        <List.Item.Meta description={dayjsFormat(item.date, 'MM-DD HH:mm:ss')} />
                       </Col>
                       <Col span="16">{item.remarks}</Col>
                     </Row>
@@ -45,9 +47,9 @@ const ContanctLowerList = props => {
             </div>
           </TabPane>
           <TabPane tab="日志" key="日志">
-            <div className="sheet-panel-record" style={{ height:y-310,overflowY:'auto' }}>
+            <div className="sheet-panel-record" style={{ height: y - 310, overflowY: 'auto' }}>
               <List
-                dataSource={log}
+                dataSource={logs}
                 split={false}
                 renderItem={item => (
                   <List.Item>
@@ -56,7 +58,7 @@ const ContanctLowerList = props => {
                       // avatar=
                       // title=
                       // description={ dayjsFormat(item.createTime, 'YYYY-MM-DD')}
-                      description={ dayjsFormat(item.createTime)}
+                      description={dayjsFormat(item.createTime)}
                     />
                   </List.Item>
                 )}