Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setup-project-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
setup-project-manager-ui
Commits
190231bd
Commit
190231bd
authored
Dec 12, 2024
by
王晓旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改提示
parent
46a1ec6a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
admin/src/views/Step.vue
admin/src/views/Step.vue
+20
-4
No files found.
admin/src/views/Step.vue
View file @
190231bd
...
...
@@ -13,7 +13,7 @@
<div
class=
"line"
></div>
<div
class=
"upload"
>
<el-upload
ref=
"upload"
ref=
"
now
upload"
:limit=
"1"
accept=
".zip,.tar.gz"
:headers=
"upload.headers"
...
...
@@ -22,6 +22,7 @@
:on-progress=
"handleFileUploadProgress"
:on-success=
"handleFileSuccess"
:auto-upload=
"false"
:file-list=
"fileList"
drag
>
<i
class=
"el-icon-upload"
></i>
...
...
@@ -132,7 +133,17 @@ export default {
"
2、创建站点
"
,
"
3、完成
"
],
loading
:
false
loading
:
false
,
fileList
:[]
}
},
watch
:{
fileList
:{
handler
(
newval
){
console
.
log
(
123
,
newval
);
},
immediate
:
true
,
deep
:
true
}
},
methods
:{
...
...
@@ -187,8 +198,13 @@ export default {
// 以下第一部分
/** 提交上传文件 */
submitFileForm
()
{
console
.
log
(
111
,
this
.
fileList
,
this
.
$refs
.
nowupload
.
uploadFiles
);
if
(
this
.
$refs
.
nowupload
.
uploadFiles
.
length
){
this
.
loading
=
true
this
.
$refs
.
upload
.
submit
();
}
else
{
this
.
$message
.
error
(
"
请上传文件!
"
);
}
},
/** 文件上传中处理 */
handleFileUploadProgress
(
event
,
file
,
fileList
)
{
...
...
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