diff --git a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
index 4a64fbfd..995e5eea 100644
--- a/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
+++ b/pc4mobx/hrmSalary/pages/dataAcquisition/attendance/components/attendanceDataEditSlide.js
@@ -29,6 +29,7 @@ class AttendanceDataEditSlide extends Component {
this.getAttendQuoteData(nextProps);
} else if (nextProps.visible !== this.props.visible && !nextProps.visible) {
form.resetForm();
+ this.setState({ conditions: [], loading: false });
}
}
@@ -92,7 +93,8 @@ class AttendanceDataEditSlide extends Component {
render() {
const { record } = this.props, { username } = record, { conditions, loading } = this.state;
const btns = [
-
+
];
return ( this.viewAttendQuote());
break;
+ case "EDIT":
+ this.setState({ attendanceSlide: { visible: true, record: params } });
+ break;
default:
break;
}
@@ -65,7 +68,13 @@ class AttendanceDataViewSlide extends Component {
pageInfo: { ...pageInfo, current, pageSize, total }, dataSource
}, () => this.postMessageToChild({
pageInfo: this.state.pageInfo, dataSource, showRowSelection: false, unitTableType: "attendanceView",
- columns: _.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : false }))
+ columns: [
+ ..._.map(columns, (o, i) => ({ ...o, width: 150, fixed: i === 0 ? "left" : false })),
+ {
+ title: getLabel(111, "操作"), dataIndex: "operate", fixed: "right",
+ operateType: [{ key: "EDIT", label: getLabel(111, "编辑") }]
+ }
+ ]
}));
}
}).catch(() => this.setState({ loading: { ...loading, query: false } }));