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
c43fa49d
Commit
c43fa49d
authored
Aug 09, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去除警告
parent
da5afbb9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
index.js
src/util/index.js
+1
-1
ImportDataDrawer.jsx
...w/Manage/DataMaster/Manage/Component/ImportDataDrawer.jsx
+4
-6
No files found.
src/util/index.js
View file @
c43fa49d
...
@@ -11,7 +11,7 @@ import { DataModelerRoleAdmin, DataModelerRoleUser, DataModelerRoleReader } from
...
@@ -11,7 +11,7 @@ import { DataModelerRoleAdmin, DataModelerRoleUser, DataModelerRoleReader } from
//内网深交所环境 isSzseEnv true
//内网深交所环境 isSzseEnv true
//元曜公网环境 isSzseEnv false
//元曜公网环境 isSzseEnv false
export
const
isSzseEnv
=
fals
e
;
export
const
isSzseEnv
=
tru
e
;
export
const
inputWidth
=
isSzseEnv
?
360
:
240
;
export
const
inputWidth
=
isSzseEnv
?
360
:
240
;
...
...
src/view/Manage/DataMaster/Manage/Component/ImportDataDrawer.jsx
View file @
c43fa49d
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Button
,
Upload
,
Drawer
,
Table
,
Pagination
,
Form
,
Tooltip
,
Typography
,
Space
,
Spin
}
from
'antd'
;
import
{
Button
,
Upload
,
Drawer
,
Pagination
,
Form
,
Spin
}
from
'antd'
;
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
{
UploadOutlined
,
DownloadOutlined
}
from
'@ant-design/icons'
;
import
ResizeableTable
from
'../../../ResizeableTable'
;
import
ResizeableTable
from
'../../../ResizeableTable'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../../model'
;
import
{
dispatch
,
dispatchLatest
}
from
'../../../../../model'
;
import
{
showMessage
,
formatDate
}
from
'../../../../../util'
;
import
{
showMessage
,
formatDate
}
from
'../../../../../util'
;
const
{
Text
}
=
Typography
;
const
ExpandedRow
=
(
props
)
=>
{
const
ExpandedRow
=
(
props
)
=>
{
const
{
data
}
=
props
;
const
{
data
}
=
props
;
...
@@ -16,6 +14,7 @@ const ExpandedRow = (props) => {
...
@@ -16,6 +14,7 @@ const ExpandedRow = (props) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
getLog
();
getLog
();
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
data
])
},
[
data
])
const
getLog
=
()
=>
{
const
getLog
=
()
=>
{
...
@@ -51,7 +50,7 @@ const ImportDataDrawer = (props) => {
...
@@ -51,7 +50,7 @@ const ImportDataDrawer = (props) => {
const
{
pageNum
,
pageSize
}
=
pagination
;
const
{
pageNum
,
pageSize
}
=
pagination
;
const
[
total
,
setTotal
]
=
useState
(
0
);
const
[
total
,
setTotal
]
=
useState
(
0
);
const
cols
=
[
const
col
umn
s
=
[
{
{
title
:
'序号'
,
title
:
'序号'
,
dataIndex
:
'key'
,
dataIndex
:
'key'
,
...
@@ -105,8 +104,6 @@ const ImportDataDrawer = (props) => {
...
@@ -105,8 +104,6 @@ const ImportDataDrawer = (props) => {
}
}
]
]
const
[
columns
,
setColumns
]
=
useState
(
cols
);
useEffect
(()
=>
{
useEffect
(()
=>
{
if
(
visible
)
{
if
(
visible
)
{
setPagination
({
pageNum
:
1
,
pageSize
:
20
});
setPagination
({
pageNum
:
1
,
pageSize
:
20
});
...
@@ -118,6 +115,7 @@ const ImportDataDrawer = (props) => {
...
@@ -118,6 +115,7 @@ const ImportDataDrawer = (props) => {
if
(
visible
)
{
if
(
visible
)
{
getLogs
();
getLogs
();
}
}
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
pagination
])
},
[
pagination
])
const
getLogs
=
()
=>
{
const
getLogs
=
()
=>
{
...
...
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