@@ -23,7 +24,7 @@
{{ getFileName(file.name) }}
- 删除
+ 删除
@@ -73,6 +74,11 @@ export default {
drag: {
type: Boolean,
default: false
+ },
+ // 自动上传
+ autoUpload: {
+ type: Boolean,
+ default: true
}
},
data() {
@@ -181,10 +187,6 @@ export default {
res.data
)
},
- // 上传进度
- uploadProcess(event, file, fileList) {
- // console.log("上传进度" + file.percentage);
- },
// 删除文件
handleDelete(index) {
this.fileList.splice(index, 1)
@@ -206,6 +208,11 @@ export default {
strs += list[i].url + separator
}
return strs != '' ? strs.substr(0, strs.length - 1) : ''
+ },
+ // 提交上传
+ submitUpload() {
+ console.log(this.fileList)
+ this.$refs.upload.submit()
}
}
}
@@ -228,7 +235,7 @@ export default {
margin-right: 10px;
}
::v-deep .el-upload-dragger {
- width: 270px;
- height: 150px;
+ width: 270px;
+ height: 150px;
}
\ No newline at end of file
diff --git a/ZR.Vue/src/views/login.vue b/ZR.Vue/src/views/login.vue
index 8d5cdea..5e3b75b 100644
--- a/ZR.Vue/src/views/login.vue
+++ b/ZR.Vue/src/views/login.vue
@@ -145,7 +145,7 @@ export default {
};
-