Просмотр исходного кода

运行监测关闭窗口修改

Reiskuchen 5 лет назад
Родитель
Сommit
e2ff9179c8
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      ys_vue/src/views/detection/maintenance.vue

+ 4 - 1
ys_vue/src/views/detection/maintenance.vue

@@ -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,