Commit a129511d by 和金晶

导入提示

parent 33251f51
import React, { useState } from 'react';
import { Modal, Button, Form, Radio, Tooltip } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import ImportWord from './ImportWord';
import ImportExcel from './ImportExcel';
......@@ -28,8 +29,23 @@ const ImportModal = (props) => {
const [ form ] = Form.useForm();
const onModeChange = (e) => {
if (e.target?.value === 'excel' || e.target?.value === 'word' ) {
Modal.info({
title: <span style={{ color: "#1d82b8",fontWeight:"bold" }}>注意</span>,
okText: '本人已确认',
content: <span style={{ color: "#ff4d4f" }}><InfoCircleFilled style={{ color: "#1d82b8" }} /> 严禁在本互联网非涉密平台处理、传输国家秘密,请确认扫描、传输的文件资料不涉及国家秘密。
</span>,
okButtonProps: {
color: '#f40'
},
onOk: () => {
setModeKey(e.target?.value);
}
});
} else{
setModeKey(e.target?.value);
}
}
const onOk = async() => {
try {
......
import React, { useEffect, useState, useMemo } from 'react';
import { Tabs, Spin } from 'antd';
import { Tabs, Spin, Modal } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import { dispatch } from '../../../model';
import WordTemplate from './Component/WordTemplate';
......@@ -62,8 +63,23 @@ const ModelConfig = () => {
}
const onTabChange = (key) => {
if (key == 1) {
Modal.info({
title: <span style={{ color: "#1d82b8",fontWeight:"bold" }}>注意</span>,
okText: '本人已确认',
content: <span style={{ color: "#ff4d4f" }}><InfoCircleFilled style={{ color: "#1d82b8" }} /> 严禁在本互联网非涉密平台处理、传输国家秘密,请确认扫描、传输的文件资料不涉及国家秘密。
</span>,
okButtonProps: {
color: '#f40'
},
onOk: () => {
setTabKey(key);
}
});
} else{
setTabKey(key);
}
}
return (
<ModelConfigContext.Provider value={{
......@@ -72,9 +88,6 @@ const ModelConfig = () => {
<div className='model-config'>
<Spin spinning={loading}>
<Tabs activeKey={tabKey} onChange={onTabChange}>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
<TabPane tab='数据表类型配置' key='2'>
<TemplateCURD />
</TabPane>
......@@ -91,6 +104,9 @@ const ModelConfig = () => {
<TabPane tab='分区配置' key='5'>
<PartitionCURD />
</TabPane>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
{/* <TabPane tab='评审提示语设置' key='6'>
<ReviewTipConfig />
</TabPane> */}
......
import React, { useState } from 'react';
import { Modal, Button, Form, Radio, Tooltip } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import ImportWord from './ImportWord';
import ImportExcel from './ImportExcel';
......@@ -28,8 +29,23 @@ const ImportModal = (props) => {
const [ form ] = Form.useForm();
const onModeChange = (e) => {
if (e.target?.value === 'excel' || e.target?.value === 'word' ) {
Modal.info({
title: <span style={{ color: "#1d82b8",fontWeight:"bold" }}>注意</span>,
okText: '本人已确认',
content: <span style={{ color: "#ff4d4f" }}><InfoCircleFilled style={{ color: "#1d82b8" }} /> 严禁在本互联网非涉密平台处理、传输国家秘密,请确认扫描、传输的文件资料不涉及国家秘密。
</span>,
okButtonProps: {
color: '#f40'
},
onOk: () => {
setModeKey(e.target?.value);
}
});
} else{
setModeKey(e.target?.value);
}
}
const onOk = async() => {
try {
......
import React, { useEffect, useState, useMemo } from 'react';
import { Tabs, Spin } from 'antd';
import { Tabs, Spin, Modal } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import { dispatch } from '../../../model';
import WordTemplate from './Component/WordTemplate';
......@@ -62,8 +63,23 @@ const ModelConfig = () => {
}
const onTabChange = (key) => {
if (key == 1) {
Modal.info({
title: <span style={{ color: "#1d82b8",fontWeight:"bold" }}>注意</span>,
okText: '本人已确认',
content: <span style={{ color: "#ff4d4f" }}><InfoCircleFilled style={{ color: "#1d82b8" }} /> 严禁在本互联网非涉密平台处理、传输国家秘密,请确认扫描、传输的文件资料不涉及国家秘密。
</span>,
okButtonProps: {
color: '#f40'
},
onOk: () => {
setTabKey(key);
}
});
} else{
setTabKey(key);
}
}
return (
<ModelConfigContext.Provider value={{
......@@ -72,9 +88,7 @@ const ModelConfig = () => {
<div className='model-config'>
<Spin spinning={loading}>
<Tabs activeKey={tabKey} onChange={onTabChange}>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
<TabPane tab='数据表类型配置' key='2'>
<TemplateCURD />
</TabPane>
......@@ -91,6 +105,9 @@ const ModelConfig = () => {
<TabPane tab='分区配置' key='5'>
<PartitionCURD />
</TabPane>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
{/* <TabPane tab='评审提示语设置' key='6'>
<ReviewTipConfig />
</TabPane> */}
......
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