Commit 2eb39a36 authored by 邓超's avatar 邓超

fix: 修改事件事件模型切工单提示

parent 278df086
Pipeline #67173 waiting for manual action with stages
......@@ -38,6 +38,7 @@ import {
Upload,
Image,
Switch,
message,
} from 'antd';
import {
GetCM_Event_LoadEventTypeTable,
......@@ -641,6 +642,7 @@ const AddModal = props => {
GetCM_Event_QueryEventType({ eventTypeId: formObj.ID }).then(res => {
if (res.data.root) {
setEditable(res.data.root.Editable);
setInitWay(res.data.root.CreateMode);
setReportFromMobile(res.data.root.ReportFromMobile);
setReportFromWeb(res.data.root.ReportFromWeb);
if (res.data.root.Reportable === false) {
......@@ -1120,6 +1122,9 @@ const AddModal = props => {
setEditable(e.target.checked);
};
const onChange2 = e => {
if (e.target.value === 1 && initWay === 0) {
message.warning('事件模型切换为工单模型流程会清空,请谨慎修改');
}
setValue(e.target.value);
};
const onChange3 = e => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment