diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js index be64c8e8..86951bf0 100644 --- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js +++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataViewSlide.js @@ -41,7 +41,13 @@ class AttendanceDataViewSlide extends Component { const { columns, list: dataSource, pageNum: current, pageSize, total } = data.pageInfo; this.setState({ pageInfo: { ...pageInfo, current, pageSize, total }, dataSource, - columns: _.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : null })) + columns: [ + ..._.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : null })), + { + title: getLabel(111, "操作"), dataIndex: "operate", width: 80, + render: () => ({getLabel(111, "编辑")}) + } + ] }); } }).catch(() => this.setState({ loading: { ...loading, query: false } })); @@ -87,13 +93,12 @@ class AttendanceDataViewSlide extends Component { /> ]; return ( - } - iconBgcolor="#F14A2D" - buttons={showOperateBtn ? btns : btns.slice(1)}/> - } + } + iconBgcolor="#F14A2D" + buttons={showOperateBtn ? btns : btns.slice(1)}/> + } content={