Selaa lähdekoodia

feat: 去除通讯录、部门与员工 toobar上空白的Select

lanjianrong 4 vuotta sitten
vanhempi
commit
9fb54dafc5
2 muutettua tiedostoa jossa 2 lisäystä ja 11 poistoa
  1. 1 8
      src/pages/Hr/Contacts/index.tsx
  2. 1 3
      src/pages/Hr/Employee/index.jsx

+ 1 - 8
src/pages/Hr/Contacts/index.tsx

@@ -91,14 +91,7 @@ const Contacts: React.FC<ContactsProps> = props => {
         <div style={{ width: 'calc(100% - 12rem)' }}>
           <div className="ml-6 shadow-hex-3e2c5a">
             {allStaffList.length ? (
-              <BasicTable
-                mainMenuType="hr"
-                columnStateType="ADDRESSBOOK"
-                rowKey={'id'}
-                columns={columns}
-                dataSource={dataSource}
-                search={false}
-              />
+              <BasicTable rowKey="id" columns={columns} dataSource={dataSource} search={false} />
             ) : null}
           </div>
         </div>

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

@@ -88,10 +88,8 @@ const Employee = props => {
           <div className="ml-6 shadow-hex-3e2c5a">
             {state.params.id && (
               <BasicTable
-                mainMenuType="hr"
-                columnStateType="EMPLOYEE"
                 params={{ departmentId: state.params.id }}
-                rowKey={record => record.id}
+                rowKey="id"
                 columns={columns}
                 request={async params => {
                   const { code = -1, data: { list = [], total = 0 } = { list: [], total: 0 } } =