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
32559d08
Commit
32559d08
authored
Nov 28, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
进度问题
parent
f589b46d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
src/components/common/bigfileUpload.vue
src/components/common/bigfileUpload.vue
+4
-1
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+0
-1
No files found.
src/components/common/bigfileUpload.vue
View file @
32559d08
...
@@ -120,6 +120,7 @@ export default {
...
@@ -120,6 +120,7 @@ export default {
if
(
file
.
pass
)
{
//文件已经存在
if
(
file
.
pass
)
{
//文件已经存在
_self
.
$emit
(
"
Completed
"
,
param
);
_self
.
$emit
(
"
Completed
"
,
param
);
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
2
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
2
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
percentage
=
100
;
}
else
{
//如果所有分块上传成功,则通知后台合并分块
}
else
{
//如果所有分块上传成功,则通知后台合并分块
$
.
ajax
({
$
.
ajax
({
type
:
"
POST
"
,
type
:
"
POST
"
,
...
@@ -131,6 +132,7 @@ export default {
...
@@ -131,6 +132,7 @@ export default {
},
},
success
:
function
(
data
)
{
success
:
function
(
data
)
{
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
2
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
state
=
2
;
_self
.
fileList
.
filter
(
e
=>
e
.
id
==
file
.
id
)[
0
].
percentage
=
100
;
param
.
success
=
data
.
code
==
9000
;
param
.
success
=
data
.
code
==
9000
;
_self
.
$emit
(
"
Completed
"
,
param
);
_self
.
$emit
(
"
Completed
"
,
param
);
},
},
...
@@ -208,7 +210,8 @@ export default {
...
@@ -208,7 +210,8 @@ export default {
},
},
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
);
item
&&
(
item
.
percentage
=
Math
.
floor
(
percentage
*
100
*
100
)
/
100
);
//在分片合并之后在设置进度百分之百
item
&&
(
item
.
percentage
=
percentage
==
1
?
99.9
:
Math
.
floor
(
percentage
*
100
*
100
)
/
100
);
}
}
},
},
};
};
...
...
src/view/sjgl/wxk_public.vue
View file @
32559d08
...
@@ -495,7 +495,6 @@ export default {
...
@@ -495,7 +495,6 @@ export default {
//table数据预览
//table数据预览
handleView
(
index
,
row
)
{
handleView
(
index
,
row
)
{
console
.
log
(
1121212121212
);
let
_this
=
this
;
let
_this
=
this
;
//用户判断此格式是否是视频格式
//用户判断此格式是否是视频格式
let
video_type
=
false
;
let
video_type
=
false
;
...
...
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