38 lines
1.3 KiB
JavaScript
38 lines
1.3 KiB
JavaScript
import React, { Component } from "react";
|
|
import { inject, observer } from "mobx-react";
|
|
import { WeaLocaleProvider } from "ecCom";
|
|
import { getSearchs } from "../../../../../util";
|
|
import { Button } from "antd";
|
|
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
|
|
@inject("payrollStore")
|
|
@observer
|
|
class Index extends Component {
|
|
render() {
|
|
const { payrollStore: { detailListConditionForm }, conditions } = this.props;
|
|
return (
|
|
<React.Fragment>
|
|
<div className="wea-advanced-searchsAd">
|
|
{getSearchs(detailListConditionForm, conditions, 2, false)}
|
|
</div>
|
|
<div className="wea-search-buttons">
|
|
<div style={{ textAlign: "center" }}>
|
|
<span style={{ marginLeft: 15 }}>
|
|
<Button type="primary" onClick={this.props.onAdSearch}>{getLabel(388113, "搜索")}</Button>
|
|
</span>
|
|
<span style={{ marginLeft: 15 }}>
|
|
<Button type="ghost" onClick={() => detailListConditionForm.resetForm()}>{getLabel(2022, "重置")}</Button>
|
|
</span>
|
|
<span style={{ marginLeft: 15 }}>
|
|
<Button type="ghost" onClick={this.props.onCancel}>{getLabel(31129, "取消")}</Button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</React.Fragment>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Index;
|