Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
dc2f0f1b
Commit
dc2f0f1b
authored
Dec 04, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
大文件增加手动重试
parent
3078b2e4
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
src/components/common/bigfile_upload.vue
src/components/common/bigfile_upload.vue
+8
-2
src/view/dfzy/dfwxk.vue
src/view/dfzy/dfwxk.vue
+2
-0
src/view/fzjc/znfx.vue
src/view/fzjc/znfx.vue
+2
-0
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+1
-1
No files found.
src/components/common/bigfile_upload.vue
View file @
dc2f0f1b
...
@@ -9,7 +9,9 @@
...
@@ -9,7 +9,9 @@
<a
@
click=
"removeFile(item, index)"
><span
title=
"点击移除"
>
{{
item
.
name
}}
</span></a>
<a
@
click=
"removeFile(item, index)"
><span
title=
"点击移除"
>
{{
item
.
name
}}
</span></a>
<span
<span
:class=
"[item.state == 1 ? 'el-icon-loading' : item.state == 2 ? 'el-icon-success' : item.state == 3 ? 'el-icon-warning' : '']"
>
{{
:class=
"[item.state == 1 ? 'el-icon-loading' : item.state == 2 ? 'el-icon-success' : item.state == 3 ? 'el-icon-warning' : '']"
>
{{
item
.
stateText
}}
</span>
item
.
description
}}
</span>
<a
@
click=
"retry(item, index)"
v-if=
"item.state == 3"
><span
title=
"点击重试"
class=
"el-icon-refresh-right"
></span></a>
<el-progress
:text-inside=
"true"
:stroke-width=
"14"
:percentage=
"item.percentage"
<el-progress
:text-inside=
"true"
:stroke-width=
"14"
:percentage=
"item.percentage"
status=
"success"
></el-progress>
status=
"success"
></el-progress>
</li>
</li>
...
@@ -214,7 +216,7 @@ export default {
...
@@ -214,7 +216,7 @@ export default {
*/
*/
uploader
.
on
(
"
uploadError
"
,
function
(
file
,
reason
)
{
uploader
.
on
(
"
uploadError
"
,
function
(
file
,
reason
)
{
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
3
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
3
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
stateText
=
reason
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
description
=
reason
;
console
.
log
(
"
uploadError
"
);
console
.
log
(
"
uploadError
"
);
});
});
/**
/**
...
@@ -242,6 +244,10 @@ export default {
...
@@ -242,6 +244,10 @@ export default {
this
.
uploader
.
removeFile
(
item
.
id
);
this
.
uploader
.
removeFile
(
item
.
id
);
this
.
fileList
.
splice
(
index
,
1
);
this
.
fileList
.
splice
(
index
,
1
);
},
},
retry
(
item
,
index
)
{
item
.
description
=
""
;
this
.
uploader
.
retry
(
this
.
fileList
.
filter
(
e
=>
e
.
id
==
item
.
id
)[
0
].
id
);
},
getProgressBar
(
file
,
percentage
)
{
getProgressBar
(
file
,
percentage
)
{
let
item
=
this
.
fileList
.
find
(
e
=>
e
.
id
==
file
.
id
);
let
item
=
this
.
fileList
.
find
(
e
=>
e
.
id
==
file
.
id
);
//在分片合并之后在设置进度百分之百
//在分片合并之后在设置进度百分之百
...
...
src/view/dfzy/dfwxk.vue
View file @
dc2f0f1b
...
@@ -472,6 +472,8 @@
...
@@ -472,6 +472,8 @@
controlslist=
"nodownload"
controlslist=
"nodownload"
:src=
"video_src"
:src=
"video_src"
disablePictureInPicture
disablePictureInPicture
autoplay
muted
></video>
></video>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/view/fzjc/znfx.vue
View file @
dc2f0f1b
...
@@ -543,6 +543,8 @@
...
@@ -543,6 +543,8 @@
controlslist=
"nodownload"
controlslist=
"nodownload"
:src=
"video_src"
:src=
"video_src"
disablePictureInPicture
disablePictureInPicture
autoplay
muted
></video>
></video>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
src/view/sjgl/wxk_public.vue
View file @
dc2f0f1b
...
@@ -272,7 +272,7 @@
...
@@ -272,7 +272,7 @@
<el-dialog
:title=
"title"
:visible.sync=
"centerDialogVisible_video"
center
width=
"800px"
>
<el-dialog
:title=
"title"
:visible.sync=
"centerDialogVisible_video"
center
width=
"800px"
>
<div
style=
"height: 400px; position: relative"
>
<div
style=
"height: 400px; position: relative"
>
<video
id=
"video"
class=
""
preload=
"meta"
controls
width=
"100%"
object-fit=
"fill"
height=
"100%"
<video
id=
"video"
class=
""
preload=
"meta"
controls
width=
"100%"
object-fit=
"fill"
height=
"100%"
controlslist=
"nodownload"
:src=
"video_src"
disablePictureInPicture
></video>
controlslist=
"nodownload"
:src=
"video_src"
disablePictureInPicture
muted
autoplay
></video>
</div>
</div>
</el-dialog>
</el-dialog>
...
...
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