diff --git a/pc4mobx/hrmSalary/components/twoColContent/index.js b/pc4mobx/hrmSalary/components/twoColContent/index.js index 2f673f22..07248da5 100644 --- a/pc4mobx/hrmSalary/components/twoColContent/index.js +++ b/pc4mobx/hrmSalary/components/twoColContent/index.js @@ -3,7 +3,7 @@ import { Row, Col } from 'antd' export default class TwoColContent extends React.Component { render() { - return + return {this.props.leftContent} diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/columns.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/columns.js index 8ea97c7e..338aa6a3 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/columns.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/columns.js @@ -1,3 +1,5 @@ +import { Switch } from 'antd' + export const columns = [ { title: "姓名", @@ -69,6 +71,35 @@ export const columns = [ } ] +export const tab2Columns = [ + { + title: "字段名称", + dataIndex: 'username', + key: 'username' + }, + { + title: "来源", + dataIndex: 'username', + key: 'username' + }, + { + title: "类型", + dataIndex: 'username', + key: 'username' + }, + { + title: "是否启用", + render: (text) => { + return + } + }, + { + title: "备注", + dataIndex: 'username', + key: 'username' + } +] + export const slideColumns = [ { title: "姓名", diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js index 9ecbcb2d..be664e4e 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/index.js @@ -10,7 +10,7 @@ import { renderNoright, getSearchs } from '../../../util'; // 渲染form数据 import CustomTab from '../../../components/customTab'; import ContentWrapper from '../../../components/contentWrapper'; -import { columns, dataSource } from './columns'; +import { columns, dataSource, tab2Columns, slideDataSource } from './columns'; import MonthRange from '../../../components/monthRange' import ImportModal from '../../../components/importModal' import HeaderSet from "../../../components/importModal/headerSet" @@ -19,6 +19,9 @@ import RefereAttendFormModal from './refereAttendFormModal' import SelectItemsWrapper from '../../../components/selectItemsModal/selectItemsWrapper' import SlideModalTitle from '../../../components/slideModalTitle' import EditSlideContent from './editSlideContent'; +import TwoColContent from '../../../components/twoColContent' +import TipLabel from '../../../components/TipLabel' +import ItemMangeFormModal from './itemMangeFormModal' const { MonthPicker } = DatePicker; @@ -37,6 +40,7 @@ export default class Attendance extends React.Component { selectItemVisible: false, refereAttendFormVisible: false, tabSelectedKey: "0", + itemMangeVisible: false, columns: [ { title: "姓名", @@ -151,11 +155,11 @@ export default class Attendance extends React.Component { ]; const topTab = [{ - title: "社保", + title: "考勤数据", viewcondition: "0" }, { - title: "公积金", + title: "字段管理", viewcondition: "1" }]; @@ -223,15 +227,20 @@ export default class Attendance extends React.Component { ) } + const renderRightOperation = () => { + return ( +
+ + +
+ ) + } const menu = ( 导出全部 ); - - - return (
@@ -248,40 +257,59 @@ export default class Attendance extends React.Component { dropMenuProps={{ collectParams }} // 收藏功能: 配置之后显示 收藏、帮助、显示页面地址 这3个功能 > - { - }} - /> - { - - }} - /> + + + { this.state.tabSelectedKey == 0 ? - +
+ { + this.setState({ + tabSelectedKey: v + }) + }} + /> + { + + }} + /> + +
: - - } - rightContent={ - - } - /> +
+ { + this.setState({ + tabSelectedKey: v + }) + }} + /> + + } + rightContent={ + + } + /> +
} @@ -312,7 +340,7 @@ export default class Attendance extends React.Component { this.setState({refereAttendFormVisible: false})}/> - + {this.setState({itemMangeVisible: false})}}/> { slideVisiable && 保存 + }> + + + 字段名称 + + + + + + + + 类型 + + + + + + + + 是否启用 + + + + + + + + 备注 + + + + + + + ) + } +} \ No newline at end of file