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
dd6d3359
Commit
dd6d3359
authored
Dec 01, 2023
by
高飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.168.218/xiaminwei/xxx_phase2_web
parents
8de7ed17
7397d806
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
146 additions
and
86 deletions
+146
-86
src/components/common/bigfileUpload.vue
src/components/common/bigfileUpload.vue
+133
-66
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+13
-20
No files found.
src/components/common/bigfileUpload.vue
View file @
dd6d3359
This diff is collapsed.
Click to expand it.
src/view/sjgl/wxk_public.vue
View file @
dd6d3359
...
@@ -265,7 +265,8 @@
...
@@ -265,7 +265,8 @@
</el-dialog>
</el-dialog>
<el-dialog
title=
"大文件上传"
:visible.sync=
"centerDialogVisible_bigFile"
width=
"30%"
center
class=
"xzwd"
>
<el-dialog
title=
"大文件上传"
:visible.sync=
"centerDialogVisible_bigFile"
width=
"30%"
center
class=
"xzwd"
>
<BigfileUpload
@
Completed=
"completeUploadBigFile"
></BigfileUpload>
<BigfileUpload
:checkFileExist=
"checkFileExist"
:addFileInfo=
"addFileInfo"
@
Finished=
"bigFileUploadFinished"
>
</BigfileUpload>
</el-dialog>
</el-dialog>
<el-dialog
:title=
"title"
:visible.sync=
"centerDialogVisible_video"
center
width=
"800px"
>
<el-dialog
:title=
"title"
:visible.sync=
"centerDialogVisible_video"
center
width=
"800px"
>
...
@@ -636,7 +637,7 @@ export default {
...
@@ -636,7 +637,7 @@ export default {
},
200
)
},
200
)
},
},
bigFileUploadAdd
()
{
bigFileUploadAdd
()
{
//弹出
if
(
this
.
clientDetails_type
[
0
]
==
1
||
this
.
clientDetails_type
[
0
]
==
2
||
this
.
clientDetails_type
[
0
]
==
3
||
this
.
clientDetails_type
[
0
]
==
4
)
{
if
(
this
.
clientDetails_type
[
0
]
==
1
||
this
.
clientDetails_type
[
0
]
==
2
||
this
.
clientDetails_type
[
0
]
==
3
||
this
.
clientDetails_type
[
0
]
==
4
)
{
this
.
$message
({
this
.
$message
({
type
:
"
warning
"
,
type
:
"
warning
"
,
...
@@ -648,13 +649,11 @@ export default {
...
@@ -648,13 +649,11 @@ export default {
_this
.
centerDialogVisible_bigFile
=
true
;
_this
.
centerDialogVisible_bigFile
=
true
;
},
},
completeUploadBigFile
(
evt
)
{
bigFileUploadFinished
(
evt
)
{
//所有文件上传完成,不一定都成功
if
(
!
evt
.
success
)
{
this
.
handleCurrentChange_lb
(
1
);
this
.
$message
({
},
type
:
"
warning
"
,
message
:
"
上传失败!
"
,
addFileInfo
(
evt
)
{
//文件信息的上传,在文件上传后执行
});
}
let
fd
=
new
FormData
();
let
fd
=
new
FormData
();
let
fileInfo
=
{
let
fileInfo
=
{
createId
:
this
.
$store
.
getters
.
userInfo
.
account
,
createId
:
this
.
$store
.
getters
.
userInfo
.
account
,
...
@@ -668,17 +667,11 @@ export default {
...
@@ -668,17 +667,11 @@ export default {
fd
.
append
(
"
info
"
,
JSON
.
stringify
(
fileInfo
));
fd
.
append
(
"
info
"
,
JSON
.
stringify
(
fileInfo
));
fd
.
append
(
"
destFilename
"
,
evt
.
file
.
uuid
);
fd
.
append
(
"
destFilename
"
,
evt
.
file
.
uuid
);
fd
.
append
(
"
md5
"
,
evt
.
md5
);
fd
.
append
(
"
md5
"
,
evt
.
md5
);
fileUpload_PUT
(
"
api/rest/3z/document/upload
"
,
fd
).
then
((
data
)
=>
{
return
fileUpload_PUT
(
"
api/rest/3z/document/upload
"
,
fd
);
this
.
$message
({
},
type
:
"
success
"
,
message
:
"
文件上传成功!
"
,
checkFileExist
(
md5
)
{
});
return
get
(
`api/rest/3z/document/checkFileInfoExist?md5=
${
md5
}
&bucket=Document`
);
this
.
centerDialogVisible_add
=
false
;
this
.
handleCurrentChange_lb
(
1
);
})
.
catch
((
err
)
=>
{
this
.
$message
.
warning
(
err
.
message
);
})
},
},
//编辑弹出框确定
//编辑弹出框确定
...
...
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