gemercheung il y a 1 an
Parent
commit
cae1486d8c

+ 1 - 0
src/constant/caseFile.ts

@@ -13,3 +13,4 @@ export const OtherFormatDesc = "pdf、word、jpg、png等格式的文件";
 export const photoFormatDesc = "jpg、jpeg、png等格式的文件";
 
 export const maxFileSize = 100 * 1024 * 1024;
+export const maxAppFileSize = 300 * 1024 * 1024;

+ 3 - 3
src/view/cameraVersion/edit.vue

@@ -74,7 +74,7 @@ import { computed, ref, unref, watch, watchEffect } from "vue";
 import { QuiskExpose } from "@/helper/mount";
 import { CameraVersionEntity } from "@/store/cameraVersion";
 import { useUpload } from "@/hook/upload";
-import { maxFileSize } from "@/constant/caseFile";
+import { maxAppFileSize } from "@/constant/caseFile";
 import { CameraType } from "@/store/camera";
 import { cameraTypeDesc } from "@/constant/camera";
 import {
@@ -116,8 +116,8 @@ watchEffect(() => {
 });
 const { size, fileList, upload, removeFile, previewFile, file, accept } =
   useUpload({
-    maxSize: maxFileSize,
-    formats: [".apk"],
+    maxSize: maxAppFileSize,
+    formats: [".zip"],
   });
 defineExpose<QuiskExpose>({
   async submit() {

+ 2 - 2
src/view/cameraVersionApp/edit.vue

@@ -70,7 +70,7 @@ import { computed, ref, unref, watch, watchEffect } from "vue";
 import { QuiskExpose } from "@/helper/mount";
 import { CameraVersionAppEntity } from "@/store/cameraVersionApp";
 import { useUpload } from "@/hook/upload";
-import { maxFileSize } from "@/constant/caseFile";
+import { maxAppFileSize } from "@/constant/caseFile";
 import { UploadFile } from "element-plus";
 import {
   addCameraVersionApp,
@@ -115,7 +115,7 @@ watchEffect(() => {
 });
 const { size, fileList, upload, removeFile, previewFile, file, accept } =
   useUpload({
-    maxSize: maxFileSize,
+    maxSize: maxAppFileSize,
     formats: [".apk"],
   });
 defineExpose<QuiskExpose>({

+ 2 - 0
src/view/cameraVersionApp/index.vue

@@ -152,6 +152,8 @@ const codeHandler = async () => {
     const fireUrl =
       location.protocol + "//" + location.host + activeOne.fileUrl;
     await downCameraAppVersion({ url: fireUrl });
+  } else {
+    ElMessage.error("暂没启用状态状app,请启用");
   }
 };
 </script>