Przeglądaj źródła

feat: 排序字段处理

lanjianrong 5 lat temu
rodzic
commit
44626e7735

+ 2 - 2
src/pages/Customer/Client/components/ClientDetail/index.jsx

@@ -51,7 +51,7 @@ const ContactDetail = props => {
     <Spin spinning={state.loading}>
       <div className="sheet-box">
         <Row>
-          <Col span={12} className="sheet-box-left">
+          <Col span={10} className="sheet-box-left">
             {orderIds.length ? (
               <div className="mb-3">
                 <Tooltip title="上一条记录">
@@ -81,7 +81,7 @@ const ContactDetail = props => {
               <ContanctForm client={state.client} updateKey={updateKey} />
             </div>
           </Col>
-          <Col span={12} className="sheet-box-right">
+          <Col span={14} className="sheet-box-right">
             <ContanctTabList clientId={state.client.id} software={state.software} />
             <ContanctLowerList log={state.log} servicelist={state.serviceLog} />
           </Col>

+ 11 - 4
src/pages/Customer/Company/components/CompanyDetail/TabList.jsx

@@ -64,25 +64,32 @@ const CompanyTabList = ({ initData, customerId, client, software, customer }) =>
     {
       title: '姓名',
       dataIndex: 'clientName',
+      width: '30%',
       render: (clientName, record) => (
         <span
           onClick={() => showDrawer(record.id)}
-          className="text-primary cursor-pointer hover:text-[#967bbd]">
+          className="text-primary cursor-pointer hover:text-[#967bbd] line-clamp-1">
           {clientName}
         </span>
       )
     },
     {
       title: '昵称',
-      dataIndex: 'niceName'
+      dataIndex: 'niceName',
+      width: '15%',
+      ellipsis: true
     },
     {
       title: '手机',
-      dataIndex: 'telephone'
+      dataIndex: 'telephone',
+      width: '20%',
+      ellipsis: true
     },
     {
       title: 'QQ',
-      dataIndex: 'qq'
+      dataIndex: 'qq',
+      width: '15%',
+      ellipsis: true
     }
   ]
   const columnLongle = [

+ 2 - 2
src/pages/Customer/Company/components/CompanyDetail/index.jsx

@@ -47,7 +47,7 @@ const CompanyDetail = props => {
     <Spin spinning={state.loading}>
       <div className="sheet-box">
         <Row>
-          <Col span={12} className="sheet-box-left">
+          <Col span={10} className="sheet-box-left">
             {orderIds.length ? (
               <div className="mb-3">
                 <Tooltip title="上一条记录">
@@ -78,7 +78,7 @@ const CompanyDetail = props => {
               <CompanyForm customer={state.customer} updateKey={updateKey} />
             </div>
           </Col>
-          <Col span={12} flex={{ flexDirection: 'column' }} className="sheet-box-right">
+          <Col span={14} flex={{ flexDirection: 'column' }} className="sheet-box-right">
             <CompanyTabList
               initData={initData}
               customerId={flipConsts.curId}