zhangchuang 3 months ago
parent
commit
304aee3465
2 changed files with 9 additions and 0 deletions
  1. 4 0
      src/views/FileManagement/database.vue
  2. 5 0
      src/views/FileManagement/offline.vue

+ 4 - 0
src/views/FileManagement/database.vue

@@ -235,6 +235,7 @@ const onCancel = () => {
  * 上传或编辑文件
  */
 const submitData = async () => {
+  // @ts-ignore
   proxy.$loading.start();
   if (isBatch.value) {
     const res = (await uploadBatch({
@@ -244,6 +245,7 @@ const submitData = async () => {
     if (res.code === 1) {
       isVisible.value = false;
       pageInit();
+      // @ts-ignore
       proxy.$loading.stop();
       ElMessage({
         message: "融合数据上传成功",
@@ -259,6 +261,7 @@ const submitData = async () => {
       if (res.code === 1) {
         isVisible.value = false;
         pageInit();
+        // @ts-ignore
         proxy.$loading.stop();
         ElMessage({
           message: "编辑成功",
@@ -270,6 +273,7 @@ const submitData = async () => {
         shipTag: form.value.shipTag,
       })) as unknown as any;
       if (res.code === 1) {
+        // @ts-ignore
         proxy.$loading.stop();
         pageInit();
         ElMessage({

+ 5 - 0
src/views/FileManagement/offline.vue

@@ -242,6 +242,7 @@ const onCancel = () => {
  * 上传或编辑文件
  */
 const submitData = async () => {
+  // @ts-ignore
   proxy.$loading.start();
   const formData = JSON.parse(JSON.stringify({ ...form.value, file: [] }));
 
@@ -250,6 +251,7 @@ const submitData = async () => {
     if (res.code === 200) {
       isVisible.value = false;
       pageInit();
+      // @ts-ignore
       proxy.$loading.stop();
       ElMessage({
         message: "编辑成功",
@@ -265,6 +267,7 @@ const submitData = async () => {
       };
       const fileRes = (await uploadFile(data)) as unknown as any;
       if (fileRes.code === 1) {
+        // @ts-ignore
         proxy.$loading.stop();
         pageInit();
         ElMessage({
@@ -298,8 +301,10 @@ const viewDetails = (data: any) => {
  * @param data 传递的数据
  */
 const toRpc = async (row: any) => {
+  // @ts-ignore
   proxy.$loading.start();
   await recordAssessmentResult({ source: 2, fileId: row.id });
+  // @ts-ignore
   proxy.$loading.stop();
   router.push({
     path: "/OperationalReliabilityPrediction",