薪资项目管理页面的新建自定义薪资项目的页面选择sql的弹框新增页面切换外部数据源时添加确认询问框

This commit is contained in:
黎永顺 2022-11-16 15:44:59 +08:00
parent 0d04b38ab6
commit 7560e00afb
2 changed files with 31 additions and 8 deletions

View File

@ -146,8 +146,8 @@ export default class SalaryDetail extends React.Component {
<div className="tableWrapper">
<iframe
style={{ border: 0, width: "100%", height: "100%" }}
// src="http://localhost:7607/#/atdTable"
src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/atdTable"
src="http://localhost:7607/#/atdTable"
// src="/spa/hrmSalary/hrmSalaryCalculateDetail/index.html#/atdTable"
id="atdTable"
/>
</div>

View File

@ -1,5 +1,5 @@
import React from "react";
import { Button, Col, Icon, Row } from "antd";
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";
@ -284,12 +284,25 @@ export default class FormalFormModal extends React.Component {
options={formulaDatasourceList}
value={extendParam.datasource.datasourceId}
onChange={(datasourceId) => {
this.setState({ extendParam: { ...extendParam, datasource: { datasourceId } } });
if (datasourceId) {
Modal.confirm({
title: "信息确认",
content: "外部数据源指第三方数据库,连接第三方数据库会影响核算效率。",
onOk: () => {
this.setState({ extendParam: { ...extendParam, datasource: { datasourceId } } });
},
onCancel: () => {
this.setState({ extendParam: { ...extendParam, datasource: { datasourceId: "" } } });
}
});
} else {
this.setState({ extendParam: { ...extendParam, datasource: { datasourceId: "" } } });
}
}}
/>
<WeaHelpfulTip
width={196}
title="不设置,默认使用系统数据源"
title="不设置,默认使用系统数据源"
isCenter={true}
/>
</WeaFormItem>
@ -300,9 +313,19 @@ export default class FormalFormModal extends React.Component {
labelCol={{ span: 6 }}
wrapperCol={{ span: 18 }}
>
<WeaCheckbox display="switch" value={extendParam.openDecrypt} onChange={(openDecrypt) => {
this.setState({ extendParam: { ...extendParam, openDecrypt } });
}}/>
<WeaCheckbox
style={{ marginRight: 8 }}
display="switch"
value={extendParam.openDecrypt}
onChange={(openDecrypt) => {
this.setState({ extendParam: { ...extendParam, openDecrypt } });
}}
/>
<WeaHelpfulTip
width={196}
title="若需要获取薪酬加密数据,需开启解密。"
isCenter={true}
/>
</WeaFormItem>
</Col>
</Row>