|
@@ -192,6 +192,7 @@ export default {
|
|
|
backToDetection() {
|
|
|
this.$router.go(-1);
|
|
|
},
|
|
|
+ //暂未用到的上传格式和大小限制
|
|
|
beforeUpload(file) {
|
|
|
const isJPG = file.type === "image/png";
|
|
|
const isLt2M = file.size / 1024 / 1024 < 2;
|
|
@@ -263,7 +264,6 @@ export default {
|
|
|
maintainConfirm() {
|
|
|
if (this.$refs.upload.uploadFiles.length == 1) {
|
|
|
this.$refs.upload.submit();
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: "必须上传照片",
|
|
@@ -292,6 +292,9 @@ export default {
|
|
|
message: "保养完成",
|
|
|
type: "success"
|
|
|
});
|
|
|
+ this.maintenanceFormVisible = false;
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ this.getList();
|
|
|
} else {
|
|
|
this.$message({
|
|
|
message: res.msg,
|