Commit a129511d by 和金晶

导入提示

parent 33251f51
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Modal, Button, Form, Radio, Tooltip } from 'antd'; import { Modal, Button, Form, Radio, Tooltip } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import ImportWord from './ImportWord'; import ImportWord from './ImportWord';
import ImportExcel from './ImportExcel'; import ImportExcel from './ImportExcel';
...@@ -28,7 +29,22 @@ const ImportModal = (props) => { ...@@ -28,7 +29,22 @@ const ImportModal = (props) => {
const [ form ] = Form.useForm(); const [ form ] = Form.useForm();
const onModeChange = (e) => { const onModeChange = (e) => {
setModeKey(e.target?.value); 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() => { const onOk = async() => {
......
import React, { useEffect, useState, useMemo } from 'react'; 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 { dispatch } from '../../../model';
import WordTemplate from './Component/WordTemplate'; import WordTemplate from './Component/WordTemplate';
...@@ -62,7 +63,22 @@ const ModelConfig = () => { ...@@ -62,7 +63,22 @@ const ModelConfig = () => {
} }
const onTabChange = (key) => { const onTabChange = (key) => {
setTabKey(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 ( return (
...@@ -72,9 +88,6 @@ const ModelConfig = () => { ...@@ -72,9 +88,6 @@ const ModelConfig = () => {
<div className='model-config'> <div className='model-config'>
<Spin spinning={loading}> <Spin spinning={loading}>
<Tabs activeKey={tabKey} onChange={onTabChange}> <Tabs activeKey={tabKey} onChange={onTabChange}>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
<TabPane tab='数据表类型配置' key='2'> <TabPane tab='数据表类型配置' key='2'>
<TemplateCURD /> <TemplateCURD />
</TabPane> </TabPane>
...@@ -91,6 +104,9 @@ const ModelConfig = () => { ...@@ -91,6 +104,9 @@ const ModelConfig = () => {
<TabPane tab='分区配置' key='5'> <TabPane tab='分区配置' key='5'>
<PartitionCURD /> <PartitionCURD />
</TabPane> </TabPane>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
{/* <TabPane tab='评审提示语设置' key='6'> {/* <TabPane tab='评审提示语设置' key='6'>
<ReviewTipConfig /> <ReviewTipConfig />
</TabPane> */} </TabPane> */}
......
import React, { useState } from 'react'; import React, { useState } from 'react';
import { Modal, Button, Form, Radio, Tooltip } from 'antd'; import { Modal, Button, Form, Radio, Tooltip } from 'antd';
import {InfoCircleFilled} from "@ant-design/icons"
import ImportWord from './ImportWord'; import ImportWord from './ImportWord';
import ImportExcel from './ImportExcel'; import ImportExcel from './ImportExcel';
...@@ -28,7 +29,22 @@ const ImportModal = (props) => { ...@@ -28,7 +29,22 @@ const ImportModal = (props) => {
const [ form ] = Form.useForm(); const [ form ] = Form.useForm();
const onModeChange = (e) => { const onModeChange = (e) => {
setModeKey(e.target?.value); 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() => { const onOk = async() => {
......
import React, { useEffect, useState, useMemo } from 'react'; 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 { dispatch } from '../../../model';
import WordTemplate from './Component/WordTemplate'; import WordTemplate from './Component/WordTemplate';
...@@ -62,7 +63,22 @@ const ModelConfig = () => { ...@@ -62,7 +63,22 @@ const ModelConfig = () => {
} }
const onTabChange = (key) => { const onTabChange = (key) => {
setTabKey(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 ( return (
...@@ -72,9 +88,7 @@ const ModelConfig = () => { ...@@ -72,9 +88,7 @@ const ModelConfig = () => {
<div className='model-config'> <div className='model-config'>
<Spin spinning={loading}> <Spin spinning={loading}>
<Tabs activeKey={tabKey} onChange={onTabChange}> <Tabs activeKey={tabKey} onChange={onTabChange}>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
<TabPane tab='数据表类型配置' key='2'> <TabPane tab='数据表类型配置' key='2'>
<TemplateCURD /> <TemplateCURD />
</TabPane> </TabPane>
...@@ -91,6 +105,9 @@ const ModelConfig = () => { ...@@ -91,6 +105,9 @@ const ModelConfig = () => {
<TabPane tab='分区配置' key='5'> <TabPane tab='分区配置' key='5'>
<PartitionCURD /> <PartitionCURD />
</TabPane> </TabPane>
<TabPane tab='Word模版配置' key='1'>
<WordTemplate />
</TabPane>
{/* <TabPane tab='评审提示语设置' key='6'> {/* <TabPane tab='评审提示语设置' key='6'>
<ReviewTipConfig /> <ReviewTipConfig />
</TabPane> */} </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