From 9017297bc0de4c43f40ceb294283cf2bcd2b8a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Wed, 4 Jan 2023 09:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E9=A1=B9=E7=9B=AE=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/salaryItem/formalFormModal.js | 12 +++- pc4mobx/hrmSalary/pages/salaryItem/index.less | 31 +++++++++- .../hrmSalary/pages/salaryItem/testModal.js | 58 +++++++++++++++++++ 3 files changed, 95 insertions(+), 6 deletions(-) create mode 100644 pc4mobx/hrmSalary/pages/salaryItem/testModal.js diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js index a7e697af..e86155d5 100644 --- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js +++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js @@ -3,6 +3,7 @@ import { Button, Col, Icon, Modal, Row } from "antd"; import { WeaCheckbox, WeaDialog, WeaFormItem, WeaHelpfulTip, WeaInput, WeaSelect, WeaTextarea } from "ecCom"; import { inject, observer } from "mobx-react"; import "./index.less"; +import TestModal from "./testModal"; @inject("salaryItemStore") @observer @@ -21,7 +22,8 @@ export default class FormalFormModal extends React.Component { } }, returnValue: "", - formulaDatasourceList: [] + formulaDatasourceList: [], + testVisible: false }; this.group = {}; this.field = {}; @@ -256,10 +258,14 @@ export default class FormalFormModal extends React.Component { render() { const { salaryItemStore } = this.props; const { searchGroup, searchFields } = salaryItemStore; - const { value, formulaDatasourceList, extendParam } = this.state; + const { value, formulaDatasourceList, extendParam, testVisible } = this.state; const title =
{`${(this.props.valueType == 2 || this.props.valueType === "FORMULA") ? "函数" : "SQL"}公式`}
- + { + value && + } + {/*公式测试*/} + this.setState({ testVisible: false })}/>
; return (