Procházet zdrojové kódy

feat: 卡片增加创建人

outaozhen před 5 roky
rodič
revize
7bddd29b79

+ 35 - 15
src/pages/workbench/Dashboard/components/RatioPanels.jsx

@@ -73,8 +73,13 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
     },
     {
       dataIndex: 'mark',
-      width: '45%',
+      width: '32%',
       title: '服务内容'
+    },
+    {
+      dataIndex: 'staffName',
+      title: '创建人',
+      width: '7%'
     }
   ]
 
@@ -143,9 +148,9 @@ const ServiceRatioPanels = ({ staffIds, cyclical, dataPermission }) => {
 
 const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
   // const { toggleDrawer, setDrawerProps } = useModal()
-  // const [state, setState] = useState({
+  // const state = {
   //   orderIds: []
-  // })
+  // }
   // const showDrawer = id => {
   //   setDrawerProps({
   //     zIndex: '1200',
@@ -164,19 +169,19 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       {
         dataIndex: 'clientName',
         title: '联系人名称',
-        width: '13%',
-        render: (clientName, record) => (
-          <span
-            onClick={() => showDrawer(record.id)}
-            className="text-primary cursor-pointer hover:text-[#967bbd]">
-            {clientName}
-          </span>
-        )
+        width: '10%'
+        // render: (clientName, record) => (
+        //   <span
+        //     onClick={() => showDrawer(record.id)}
+        //     className="text-primary cursor-pointer hover:text-[#967bbd]">
+        //     {clientName}
+        //   </span>
+        // )
       },
       {
         dataIndex: 'companyName',
         title: '客户名称',
-        width: '20%'
+        width: '16%'
       },
       {
         dataIndex: 'districtName',
@@ -199,6 +204,11 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         width: '5%'
       },
       {
+        dataIndex: 'staffName',
+        title: '创建人',
+        width: '7%'
+      },
+      {
         dataIndex: 'createTime',
         title: '创建时间',
         width: '7%'
@@ -208,7 +218,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
       {
         dataIndex: 'companyName',
         title: '客户名称',
-        width: '20%'
+        width: '16%'
       },
       {
         dataIndex: 'districtName',
@@ -219,7 +229,7 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         dataIndex: 'nature',
         title: '客户性质',
         ellipsis: true,
-        width: '15%'
+        width: '14%'
       },
       {
         dataIndex: 'phone',
@@ -227,9 +237,14 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         width: '5%'
       },
       {
+        dataIndex: 'staffName',
+        title: '创建人',
+        width: '7%'
+      },
+      {
         dataIndex: 'createTime',
         title: '创建时间',
-        width: '10%'
+        width: '7%'
       }
     ],
     2: [
@@ -254,6 +269,11 @@ const RatioPanels = ({ dataType, staffIds, retioCyclical, dataPermission }) => {
         width: '5%'
       },
       {
+        dataIndex: 'staffName',
+        title: '创建人',
+        width: '7%'
+      },
+      {
         dataIndex: 'createTime',
         title: '创建时间',
         width: '7%'