release/2.19.1.2501.01
This commit is contained in:
parent
e01ee211d8
commit
8109230b3e
|
|
@ -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 = [
|
||||
<Button type="primary" onClick={this.save} loading={loading}>{getLabel(111, "保存")}</Button>
|
||||
<Button type="primary" disabled={_.isEmpty(conditions)} onClick={this.save}
|
||||
loading={loading}>{getLabel(111, "保存")}</Button>
|
||||
];
|
||||
return (<WeaSlideModal {...this.props} className="editAttendanceSlide" top={0} height={100} width={1000}
|
||||
measureX="px" measureT="%" measureY="%" direction="right"
|
||||
|
|
|
|||
|
|
@ -37,6 +37,9 @@ class AttendanceDataViewSlide extends Component {
|
|||
case "PAGEINFO":
|
||||
this.setState({ pageInfo: { ...this.state.pageInfo, ...params } }, () => 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 } }));
|
||||
|
|
|
|||
Loading…
Reference in New Issue