feature/2.15.1.2407.01-薪资项目以及字段管理页面改造

This commit is contained in:
黎永顺 2024-08-20 11:25:09 +08:00
parent b932d4dd19
commit aaf2914e20
2 changed files with 25 additions and 3 deletions

View File

@ -2,11 +2,15 @@ import React from "react";
import { WeaLocaleProvider, WeaSlideModal } from "ecCom";
// import FormalFormModal from "./formalFormModal";
// import SalaryItemForm from "./salaryItemForm";
const getLabel = WeaLocaleProvider.getLabel;
export default class CustomSalaryItemSlide extends React.Component {
constructor(props) {
super(props);
this.state = {
loading: false,
showForm: false,
formalModalVisible: false,
salaryItemName: ""
@ -33,15 +37,30 @@ export default class CustomSalaryItemSlide extends React.Component {
});
};
renderTitle = () => {
const { loading } = this.state, { title, buttons } = this.props;
return <div className="titleDialog">
<div className="titleCol titleLeftBox">
<div className="titleIcon"><i className="icon-coms-fa"/></div>
<div className="title">{title}</div>
</div>
<div className="titleCol titleRightBox">
{
_.isEmpty(detail) &&
<Button type="primary" loading={loading} onClick={this.save}>{getLabel(537558, "保存")}</Button>
}
</div>
</div>;
};
render() {
const { request } = this.props;
const { valueType, dataType, formulaId } = request;
const { formalModalVisible, salaryItemName } = this.state;
return (<WeaSlideModal
className="customSalaryItemSlide" {...this.props}
top={0} width={800} height={100} measureT="%" measureX="px" measureY="%"
{...this.props} top={0} width={800} height={100} measureT="%" measureX="px" measureY="%"
direction="right" title={this.renderTitle()} onClose={this.handleClose}
content={<div className="salary-welfare-archive-edit-area">
content={<div className="form-dialog-layout">
</div>}/>
// <div className="customSalaryItemSlide">

View File

@ -11,6 +11,9 @@
}
.customSalaryItemSlide {
padding: 16px;