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
3dc3762f
Commit
3dc3762f
authored
Jan 22, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 支持图片上传
parent
f0974e0c
Pipeline
#22886
skipped with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
index.tsx
src/components/Upload/index.tsx
+5
-4
AddModal.jsx
src/pages/database/databaseConfig/mongDB/AddModal.jsx
+0
-3
No files found.
src/components/Upload/index.tsx
View file @
3dc3762f
...
...
@@ -269,7 +269,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
<CheckCircleFilled />
</span>
</div>
<span>{fileName}</span>
<span
title={fileName}
>{fileName}</span>
</div>
);
}
...
...
@@ -393,9 +393,9 @@ class PicturesWall extends React.Component<PicturesWallType> {
>
<Tabs defaultActiveKey={imgBed[0]?.moduleName} tabPosition="left" style={{ height: 520 }}>
{imgBed.map((item, i) => {
if(item.moduleName
!==picType
){
return
}
if(item.moduleName
==picType || item.moduleName=='
CityTemp
'
){
const child = [...item.child] || [];
console.log(picType)
if(item.fileUrls.length > 0){
...
...
@@ -424,6 +424,7 @@ class PicturesWall extends React.Component<PicturesWallType> {
</div>
</TabPane>
);
}
})}
{/* <TabPane tab="更多" key="more">
<Result status="500" title="温馨提示" subTitle="更多素材, 正在筹备中..." />
...
...
src/pages/database/databaseConfig/mongDB/AddModal.jsx
View file @
3dc3762f
...
...
@@ -82,12 +82,9 @@ const AddModal = props => {
};
const
onFinish
=
value
=>
{};
const
handleSelect
=
e
=>
{
console
.
log
(
e
);
e
===
'复制集'
?
setShowReplicaSet
(
true
)
:
setShowReplicaSet
(
false
);
console
.
log
(
form
.
getFieldsValue
());
};
useEffect
(()
=>
{
console
.
log
(
type
);
switch
(
type
)
{
case
'add'
:
form
.
resetFields
();
...
...
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