Browse Source

运行监测关闭窗口修改

Reiskuchen 5 năm trước cách đây
mục cha
commit
e2ff9179c8
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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,