outaozhen 5 éve
szülő
commit
92a4c77dbb

+ 26 - 11
src/components/PopContactForm/index.jsx

@@ -10,7 +10,7 @@ import {
   Select,
   Tag,
   List,
-  Typography
+  Table
 } from 'antd'
 import React, { useState, useEffect } from 'react'
 import { connect } from 'dva'
@@ -82,13 +82,25 @@ const Popcontactform = (props) => {
       ]
     }
   ]
-  const servicedata = [
-    '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
-    '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
-    '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
-    '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。'
-    // '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。'
+  const servicecolumns = [
+    {
+      title: '类型/时间',
+      dataIndex: 'typedate',
+      key: 'typedate'
+    },
+    {
+      title: '服务内容',
+      dataIndex: 'servicecont',
+      key: 'servicecont'
+    }
   ]
+  // const servicedata = [
+  //   '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
+  //   '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
+  //   '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。',
+  //   '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。'
+  //   // '1-给彭工更新了软件程序,安装演示了软。2-单位彭工要考甲乙级考试,给他带了资料过去。3-表示论文发表评职称也可以随时联系我。'
+  // ]
   // const journallist = [
   //   'Racing car sprays burning fuel into crowd.',
   //   'Japanese princess to wed commoner.',
@@ -310,8 +322,12 @@ const Popcontactform = (props) => {
               <div className="sheet-panel-record pl-4">
                 <Tabs type="card">
                   <TabPane tab="服务记录" key="服务记录">
-                    <List
-                      dataSource={servicedata}
+                    <Table
+                      columns={servicecolumns}
+                      // dataSource={data}
+                    />
+                    {/* <List
+                      // dataSource={servicedata}
                       split={false}
                       renderItem={item => (
                         <List.Item>
@@ -319,11 +335,10 @@ const Popcontactform = (props) => {
                           {item}
                         </List.Item>
                       )}
-                    />
+                    /> */}
                   </TabPane>
                   <TabPane tab="日志" key="日志">
                     <List
-                      // dataSource={listdata}
                       dataSource={journallist}
                       split={false}
                       renderItem={item => (

+ 0 - 5
src/pages/Customer/Contact/index.jsx

@@ -1,14 +1,9 @@
 import PopContactForm from '@/components/PopContactForm'
-// import { PlusOutlined } from '@ant-design/icons'
-// import ProTable, { TableDropdown } from '@ant-design/pro-table';
 import ProTable from '@ant-design/pro-table'
 // import { PageHeaderWrapper } from '@ant-design/pro-layout';
 import { Button, Card, Tag } from 'antd'
 import { connect } from 'dva'
 import React, { useEffect, useState } from 'react'
-// import styles from './customer.less';
-// import request from 'umi-request';
-// import { queryContact } from '@/services/contact';
 import SvgIcon from '@/components/SvgIcon'
 
 const Contact = props => {