Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
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
sunyihao
bkunyun
Commits
53f3ef04
Commit
53f3ef04
authored
Jun 16, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 文件传输bug修改
parent
f8d48b43
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
tusUpload.ts
src/utils/Upload/tusUpload.ts
+1
-1
index.tsx
src/views/ConsoleLayout/components/FileItem/index.tsx
+16
-6
index.tsx
src/views/Project/ProjectSetting/ProjectMembers/index.tsx
+2
-2
No files found.
src/utils/Upload/tusUpload.ts
View file @
53f3ef04
...
...
@@ -25,7 +25,7 @@ const UseTusUpload = (uploadInfoStore: any) => {
let
json
=
{
name
:
file
.
name
,
bytesUploaded
:
0
,
bytesTotal
:
0
,
bytesTotal
:
file
?.
size
,
percentage
:
0
,
startTime
:
new
Date
().
getTime
(),
endTime
:
new
Date
().
getTime
()
+
1000
,
...
...
src/views/ConsoleLayout/components/FileItem/index.tsx
View file @
53f3ef04
...
...
@@ -29,6 +29,7 @@ const FileItem = observer((props: IProps) => {
const
itemInfo
=
toJS
(
fileItemInfo
)?.
info
;
const
{
statusMsg
=
""
}
=
itemInfo
||
{};
const
uploadInfoStore
=
toJS
(
useGlobalStore
(
"fileListStore"
));
const
currentProjectStore
=
toJS
(
useGlobalStore
(
"currentProjectStore"
));
const
Message
=
useMessage
();
const
navigate
=
useNavigate
();
...
...
@@ -98,17 +99,26 @@ const FileItem = observer((props: IProps) => {
</
span
>
)
}
</
div
>
<
LinearProgress
sx=
{
{
width
:
300
,
borderRadius
:
2
,
margin
:
"6px 0"
,
color
:
"red"
}
}
variant=
"determinate"
value=
{
itemInfo
?.
percentage
}
/>
{
statusMsg
!==
"上传成功"
?
(
<
LinearProgress
sx=
{
{
width
:
300
,
borderRadius
:
2
,
margin
:
"6px 0"
,
color
:
"red"
,
}
}
variant=
"determinate"
value=
{
itemInfo
?.
percentage
}
/>
)
:
null
}
<
div
style=
{
{
fontSize
:
12
}
}
>
{
statusMsg
===
"上传成功"
?
(
<>
<
span
style=
{
{
color
:
"#8A9099"
}
}
>
已上传至
</
span
>
<
span
style=
{
{
color
:
"#565C66"
,
marginLeft
:
12
}
}
>
{
fileItemInfo
?.
path
}
{
`CADD - ${
currentProjectStore?.currentProjectInfo?.name || ""
}`
}
</
span
>
</>
)
:
(
...
...
src/views/Project/ProjectSetting/ProjectMembers/index.tsx
View file @
53f3ef04
...
...
@@ -2,7 +2,7 @@
* @Author: 吴永生#A02208 yongsheng.wu@wholion.com
* @Date: 2022-05-31 10:18:13
* @LastEditors: 吴永生#A02208 yongsheng.wu@wholion.com
* @LastEditTime: 2022-06-16 1
7:26:40
* @LastEditTime: 2022-06-16 1
8:17:04
* @FilePath: /bkunyun/src/views/Project/ProjectSetting/index.tsx
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
...
...
@@ -65,7 +65,7 @@ const ProjectMembers = observer(() => {
label
:
"操作"
,
width
:
160
,
render
:
(
item
:
any
,
row
:
any
)
=>
{
return
item
.
projectRole
===
"OWNER"
?
null
:
(
return
item
?
.
projectRole
===
"OWNER"
?
null
:
(
<>
<
span
style=
{
{
color
:
"#1370FF"
,
cursor
:
"pointer"
}
}
...
...
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