tangning пре 19 часа
родитељ
комит
c7b1ef473f
2 измењених фајлова са 35 додато и 7 уклоњено
  1. 12 7
      src/api/operate/index.ts
  2. 23 0
      src/views/productOperation/modal/uploadModal.vue

+ 12 - 7
src/api/operate/index.ts

@@ -748,11 +748,16 @@ export const uploadSceneOrig = (params) =>
     },
   });
 export const uploadSceneCheck = (params) =>
-  defHttp.post<Result>({
-    url: Api.uploadSceneCheck,
-    params,
-    headers: {
-      // @ts-ignore
-      ignoreCancelToken: true,
+  defHttp.post<Result>(
+    {
+      url: Api.uploadSceneCheck,
+      params,
+      headers: {
+        // @ts-ignore
+        ignoreCancelToken: true,
+      },
     },
-  });
+    {
+      isTransformResponse: false,
+    },
+  );

+ 23 - 0
src/views/productOperation/modal/uploadModal.vue

@@ -213,6 +213,29 @@
               },
             });
           }
+          
+          if (resCheck.code == 60050) {
+            return createConfirm({
+              iconType: 'warning',
+              title: '提示',
+              okCancel: false,
+              content: resCheck.message,
+              onOk: async () => {
+                // Submit(filePath);
+              },
+            });
+          }
+          
+          if (resCheck.code == 60051) {
+            return createConfirm({
+              iconType: 'warning',
+              title: '提示',
+              content: resCheck.message,
+              onOk: async () => {
+                Submit(filePath);
+              },
+            });
+          }
           Submit(filePath);
         } catch (error) {
           console.log('not passing', error);