Commit 190231bd authored by 王晓旭's avatar 王晓旭

修改提示

parent 46a1ec6a
......@@ -13,7 +13,7 @@
<div class="line"></div>
<div class="upload">
<el-upload
ref="upload"
ref="nowupload"
: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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment