Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
8418baa3
Commit
8418baa3
authored
Oct 28, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据字典界面修改
parent
a5cad1b7
Pipeline
#36757
skipped with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
index.js
src/pages/dataCenter/dictionary/index.js
+8
-2
WebDic.js
src/pages/dataCenter/dictionary1/WebDic.js
+4
-3
WebDic.less
src/pages/dataCenter/dictionary1/WebDic.less
+4
-0
No files found.
src/pages/dataCenter/dictionary/index.js
View file @
8418baa3
...
...
@@ -2,7 +2,7 @@
* @Description:
* @Author: leizhe
* @Date: 2021-05-27 16:31:05
* @LastEditTime: 2021-10-28 1
3:57:57
* @LastEditTime: 2021-10-28 1
4:35:23
* @LastEditors: leizhe
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -45,6 +45,7 @@ const dictionary = () => {
const
[
select
,
setSelect
]
=
useState
({});
// 当前选中条目,可以是一级/二级,修改/删除时设置
const
history
=
useHistory
();
const
[
editForm
]
=
Form
.
useForm
();
const
[
title
,
setTitle
]
=
useState
(
''
)
const
{
Search
}
=
Input
;
const
columns2
=
[
...
...
@@ -93,7 +94,7 @@ const dictionary = () => {
<
div
onClick
=
{
e
=>
e
.
stopPropagation
()}
>
<
Tooltip
title
=
"删除"
>
<
Popconfirm
title
=
"是否确认删除该数据?"
title
=
{
title
}
okText
=
"确认"
cancelText
=
"取消"
onConfirm
=
{
submitDelete
}
...
...
@@ -102,6 +103,11 @@ const dictionary = () => {
<
DeleteOutlined
onClick
=
{()
=>
{
setSelect
(
record
);
if
(
record
.
parentID
===
'-1'
||
record
.
parentID
===
null
)
{
setTitle
(
'确认删除一级目录数据,删除一级目录数据会将其二级目录子数据一起删除'
);
}
else
{
setTitle
(
'确认删除二级条目数据'
);
}
}
}
style
=
{{
...
...
src/pages/dataCenter/dictionary1/WebDic.js
View file @
8418baa3
...
...
@@ -652,8 +652,9 @@ const WebDic = () => {
key
=
''
columns
=
{
columns
}
dataSource
=
{
data
}
scroll
=
{{
x
:
'max-content'
,
y
:
'calc(100vh - 370px)'
}}
scroll
=
{{
y
:
'calc(100vh - 370px)'
}}
bordered
className
=
{
styles
.
pab
}
title
=
{()
=>
{
return
<
div
>
<
span
>
一级条目
<
/span
>
...
...
@@ -663,7 +664,7 @@ const WebDic = () => {
style
=
{{
color
:
'#1890FF'
,
fontSize
:
'25px'
,
verticalAlign
:
'middle
'
,
marginTop
:
'3px
'
,
float
:
'right'
,
}}
/
>
...
...
@@ -710,7 +711,7 @@ const WebDic = () => {
style
=
{{
color
:
'#1890FF'
,
fontSize
:
'25px'
,
verticalAlign
:
'middle
'
,
marginTop
:
'3px
'
,
float
:
'right'
,
}}
/
>
...
...
src/pages/dataCenter/dictionary1/WebDic.less
View file @
8418baa3
...
...
@@ -30,6 +30,7 @@
max-height: calc(100vh - 345px) !important;
min-height:calc(100vh - 345px);
margin-right: -6px;
width:100%;
}
.ant-table-pagination.ant-pagination {
margin: 10px 0 !important;
...
...
@@ -43,6 +44,9 @@
margin-right: -7px;
}
}
// .pad{
// overflow-x: hidden;
// }
.ant-table-wrapper {
max-width: 98%;
margin-left: 2%;
...
...
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