Kaynağa Gözat

feat: 修改人资抽屉详情手机、座机字段

lanjianrong 5 yıl önce
ebeveyn
işleme
6a1d42f0e4
1 değiştirilmiş dosya ile 1 ekleme ve 22 silme
  1. 1 22
      src/pages/Hr/Employee/index.jsx

+ 1 - 22
src/pages/Hr/Employee/index.jsx

@@ -39,22 +39,17 @@ const Employee = props => {
     {
       title: '工号',
       dataIndex: 'jobNumber',
-      key: 'jobNumber',
       search: false,
       width: 50
     },
     {
       title: '姓名',
       dataIndex: 'username',
-      key: 'username',
       search: false,
       width: 50,
       render: (username, record) => (
         <span
           onClick={() => showDrawer(record.id)}
-          // onClick={() => {
-          //   console.log(record.id)
-          // }}
           className="text-primary cursor-pointer hover:text-[#967bbd]">
           {username}
         </span>
@@ -62,50 +57,43 @@ const Employee = props => {
     },
     {
       title: '手机',
-      dataIndex: 'phone',
-      key: 'phone',
+      dataIndex: 'telephone',
       search: false,
       width: 50
     },
     {
       title: 'QQ',
       dataIndex: 'qq',
-      key: 'qq',
       search: false,
       width: 50
     },
     {
       title: '部门',
       dataIndex: 'departmentName',
-      key: 'departmentName',
       search: false,
       width: 50
     },
     {
       title: '岗位',
       dataIndex: 'position',
-      key: 'position',
       search: false,
       width: 50
     },
     {
       title: '聘用状态',
       dataIndex: 'nature',
-      key: 'nature',
       search: false,
       width: 50
     },
     {
       title: '入职时间',
       dataIndex: 'hiredate',
-      key: 'hiredate',
       search: false,
       width: 50
     },
     {
       title: '离职时间',
       dataIndex: 'dimissionDate',
-      key: 'dimissionDate',
       search: false,
       width: 50
     }
@@ -159,15 +147,6 @@ const Employee = props => {
               }}
               scroll={getScrollRef}
               search={{ filterType: 'light' }}
-              // toolbar={{
-              //   actions: [
-              //     <Popconfirm title="确认删除吗?">
-              //       <Button danger size="small">
-              //         删除
-              //       </Button>
-              //     </Popconfirm>
-              //   ]
-              // }}
             />
           )}
         </div>