diff --git a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js
index 07be33f2..60826a09 100644
--- a/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js
+++ b/pc4mobx/hrmSalary/pages/calculateDetail/salaryDetail.js
@@ -146,8 +146,8 @@ export default class SalaryDetail extends React.Component {
diff --git a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
index 187629e0..f2d1e100 100644
--- a/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
+++ b/pc4mobx/hrmSalary/pages/salaryItem/formalFormModal.js
@@ -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: "" } } });
+ }
}}
/>
@@ -300,9 +313,19 @@ export default class FormalFormModal extends React.Component {
labelCol={{ span: 6 }}
wrapperCol={{ span: 18 }}
>
- {
- this.setState({ extendParam: { ...extendParam, openDecrypt } });
- }}/>
+ {
+ this.setState({ extendParam: { ...extendParam, openDecrypt } });
+ }}
+ />
+