songxy 1 سال پیش
والد
کامیت
4a92b21bfb
3فایلهای تغییر یافته به همراه9 افزوده شده و 18 حذف شده
  1. 1 0
      client_h5/src/components/flowForm.vue
  2. 0 14
      client_h5/src/pages/leave/index.vue
  3. 8 4
      client_h5/src/pages/notice/details/index.vue

+ 1 - 0
client_h5/src/components/flowForm.vue

@@ -192,6 +192,7 @@ const submitHandle = async (): Promise<any> => {
         }
       });
     }
+    console.log("转件-----------------------")
     console.log(result);
     return result;
   });

+ 0 - 14
client_h5/src/pages/leave/index.vue

@@ -238,20 +238,6 @@ const submitNextActivity = async (NextActivity: ()=>Promise<any>) => {
     }
   });
 };
-const jsonToFormData = (json: any): FormData | null => {
-  const keys: string[] = Object.keys(json);
-  if (keys.length > 0) {
-    const formData = new FormData();
-    keys.forEach((key) => {
-      formData.append(
-        key,
-        json[key] instanceof Object ? JSON.stringify(json[key]) : json[key]
-      );
-    });
-    return formData;
-  }
-  return null;
-};
 
 /** 初始化表单数据 */
 const initFormData = async () => {

+ 8 - 4
client_h5/src/pages/notice/details/index.vue

@@ -1,12 +1,12 @@
 <template>
   <div class="notice_detail_box">
-    <h2 class="title">{{ detail?['title'] }}</h2>
+    <h2 class="title">{{ detail['title'] }}</h2>
     <div class="info">
       <div>
-        <span>发布时间:{{ detail?['createTime'] }}</span>
+        <span>发布时间:{{ detail['createTime'] }}</span>
       </div>
       <div>
-        <span>阅读次数:{{ detail?['readNum'] }}</span>
+        <span>阅读次数:{{ detail['readNum'] }}</span>
       </div>
     </div>
     <div class="file_box">
@@ -15,7 +15,7 @@
         <li v-for="(file, index) in fileUrls" @click="downloadFile(file['url'])"  :key="index">{{ file['name'] }}</li>
       </ul>
     </div>
-    <div class="content" v-html="detail?['content']"></div>
+    <div class="content" v-html="detail['content']"></div>
   </div>
 </template>
 
@@ -26,6 +26,10 @@ import { useFiles } from './mixins.ts'
 const { fileUrls, queryFiles, downloadFile } = useFiles(request)
 
 const detail = ref({
+  title: '',
+  createTime: '',
+  readNum: 0,
+  content: ''
 });
 /**
  * 获取详情