outaozhen 4 anni fa
parent
commit
d50df2502b

+ 3 - 3
src/pages/Business/Attendance/components/ShowTitleMenu.tsx

@@ -2,12 +2,12 @@ import React, { useState } from 'react'
 import '@/pages/Role/System/components/RoleMenu/index.less'
 
 interface ShowTitleMenuProps {
-  itemTitle: string
+  option: string[]
   onSelect?: (vaule: string) => void
   selectDefaultValue?: string
 }
 const showTitleMenu: React.FC<ShowTitleMenuProps> = ({
-  itemTitle,
+  option,
   onSelect,
   selectDefaultValue = ''
 }) => {
@@ -25,7 +25,7 @@ const showTitleMenu: React.FC<ShowTitleMenuProps> = ({
       </div>
       <div className="p-4 bg-white" style={{ height: 'calc(100% - 1rem*2 - 20px)' }}>
         <ul className="p-0 m-0 list-none text-primary flex flex-col flex-1">
-          {itemTitle.map(item => (
+          {option.map(item => (
             <li
               key={item.value}
               className={[

+ 3 - 3
src/pages/Business/Attendance/index.tsx

@@ -7,7 +7,7 @@ import { fetchAttendanceList, unlinkAttendance, deleteAttendance } from '@/servi
 import ConnectModal from '@/pages/role/System/components/ConnectModal'
 import ProForm, { ProFormText } from '@ant-design/pro-form'
 
-const itemTitleOptions = [
+const titleOptions = [
   { label: '加班申请人', value: '0' },
   { label: '销假参数', value: '1' }
 ]
@@ -126,7 +126,7 @@ const Attendance: React.FC = () => {
 
   return (
     <div className="h-full w-full flex flex-row">
-      <ShowTitleMenu onSelect={onSelect} itemTitle={itemTitleOptions} selectDefaultValue="0" />
+      <ShowTitleMenu onSelect={onSelect} option={titleOptions} selectDefaultValue="0" />
       <div className="w-max-3/4">
         <div className="ml-8 bg-white p-4 shadow-md shadow-hex-3e2c5a relative">
           {state.id === '0' ? (
@@ -174,7 +174,7 @@ const Attendance: React.FC = () => {
                   </div>
                   <ProForm.Group>
                     <span>每月</span>
-                    <ProFormText name="attendanceNum" label="" initialValue={5} />
+                    <ProFormText name="CLD_parameters" label="" initialValue={5} />
                     <span>号</span>
                   </ProForm.Group>
                 </ProForm>