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

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

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