ソースを参照

添加服务记录

outaozhen 5 年 前
コミット
6243bd5be6

+ 6 - 0
src/components/PopContent/Contacts/AddRecord.jsx

@@ -0,0 +1,6 @@
+const AddRecord = () =>{
+  return(
+    <div>aa</div>
+  )
+}
+export default AddRecord

+ 2 - 2
src/components/PopContent/Contacts/ContanctLowerList.jsx

@@ -39,7 +39,7 @@ const ContanctLowerList = props => {
       <div className="zh-pd-left-15">
         <Tabs type="card">
           <TabPane tab="服务记录" key="服务记录">
-            <div className="sheet-panel-record" style={{ height:y-230,overflowY:'auto' }}>
+            <div className="sheet-panel-record" style={{ height:y-250,overflowY:'auto' }}>
               <Table
               columns={servicecolumns}
               // dataSource={servicelist}
@@ -48,7 +48,7 @@ const ContanctLowerList = props => {
             </div>
           </TabPane>
           <TabPane tab="日志" key="日志">
-            <div className="sheet-panel-record" style={{ height:y-230,overflowY:'auto' }}>
+            <div className="sheet-panel-record" style={{ height:y-250,overflowY:'auto' }}>
               <List
                 dataSource={log}
                 split={false}

+ 25 - 21
src/components/PopContent/Contacts/ContanctTabList.jsx

@@ -13,22 +13,22 @@ const ContanctTabList = props => {
     // }
     // curinglisData()
   }, [])
-  const { curinglistName } = props
-  const curinglist = [...curinglistName.list]
+  // const { curinglistName } = props
+  // const curinglist = [...curinglistName.list]
   // console.log(curinglist)
   const { TabPane } = Tabs
-  const curingcolumns = [
-    {
-      title: '产品',
-      dataIndex: 'productname',
-      key: 'productname'
-    },
-    {
-      title: '专业版',
-      dataIndex: 'majorcont',
-      key: 'majorcont'
-    }
-  ]
+  // const curingcolumns = [
+  //   {
+  //     title: '产品',
+  //     dataIndex: 'productname',
+  //     key: 'productname'
+  //   },
+  //   {
+  //     title: '专业版',
+  //     dataIndex: 'majorcont',
+  //     key: 'majorcont'
+  //   }
+  // ]
   return (
     <div>
       <div className="zh-pd-left-15">
@@ -36,7 +36,8 @@ const ContanctTabList = props => {
         <Tabs type="card">
           <TabPane tab="养护云造价" key="养护云造价">
             <div className="sheet-right-panel">
-              <Table columns={curingcolumns} dataSource={curinglist} pagination={false} />
+              养护云造价
+              {/* <Table columns={curingcolumns} dataSource={curinglist} pagination={false} /> */}
             </div>
           </TabPane>
           <TabPane tab="大司空云计价" key="大司空云计价">
@@ -51,17 +52,20 @@ const ContanctTabList = props => {
         </Tabs>
       </div>
       <div className="sheet-btns zh-pd-left-15 zh-pd-top-15">
-        <Button type="primary" ghost>
+        {/* <Button type="primary" ghost>
           <SvgIcon type="icon-link" /> 绑定加密锁
+        </Button> */}
+        <Button type="primary" ghost>
+          <SvgIcon type="icon-plus" /> 添加服务记录
         </Button>
       </div>
     </div>
   )
 }
 
-// export default ContanctTabList
+export default ContanctTabList
 
-export default connect(({ curinglist, loading }) => ({
-  curinglistName: curinglist,
-  getlist: loading.effects['curinglist/fetch']
-}))(ContanctTabList)
+// export default connect(({ curinglist, loading }) => ({
+//   curinglistName: curinglist,
+//   getlist: loading.effects['curinglist/fetch']
+// }))(ContanctTabList)