Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
a129511d
Commit
a129511d
authored
Aug 28, 2025
by
和金晶
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入提示
parent
33251f51
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
12 deletions
+77
-12
ImportModal.jsx
src/view/Manage/Manual/Component/ImportModal.jsx
+17
-1
index.jsx
src/view/Manage/ManualModelConfig/index.jsx
+21
-5
ImportModal.jsx
src/view/Manage/Model/Component/ImportModal.jsx
+17
-1
index.jsx
src/view/Manage/ModelConfig/index.jsx
+22
-5
No files found.
src/view/Manage/Manual/Component/ImportModal.jsx
View file @
a129511d
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
()
=>
{
...
...
src/view/Manage/ManualModelConfig/index.jsx
View file @
a129511d
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> */
}
...
...
src/view/Manage/Model/Component/ImportModal.jsx
View file @
a129511d
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
()
=>
{
...
...
src/view/Manage/ModelConfig/index.jsx
View file @
a129511d
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> */
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment