Browse Source

其他页面更新

yin_yu820 2 years ago
parent
commit
28906914d6

+ 1 - 4
src/views/activityMan/religiousConference/religiousConferenceInfo.vue

@@ -1,5 +1,4 @@
 <template>
-
     <van-loading size="16px" v-if="isLoading">加载中...</van-loading>
     <div class="main" v-if="!isLoading">
       <div class="banner">
@@ -13,8 +12,6 @@
         <p>会议时间:{{ info.meetingTime }}</p>
         <p>会议场所:{{ info.siteName.name }}</p>
         <p>参会人员:{{ info.participants.name }}</p>
-        <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
-        <!-- <p>会议议题:{{ info.meetingTopics }}</p> -->
         <p>会议议题:</p>
           <wang-editor
             ref="subjectContentEditor"
@@ -40,7 +37,7 @@
       let canAudit = ref(false);
       // 活动信息
       const info = ref({     
-        meetingTopics:"",   
+        meetingTopics:"",  
       });
       // 富文本
       let subjectContentEditor = ref(null);

+ 17 - 1
src/views/activityMan/securityFacilitiesErr/securityFacilitiesErrInfo.vue

@@ -14,7 +14,13 @@
         <p v-if="info.facilityType=='1'">场所消防点位:{{ info.siteFireProtection.name }}</p>
         <p v-if="info.facilityType=='0'">视频音频点位:{{ info.videoAudioPoint.name }}</p>
         <p>位&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;置:{{ info.position }}</p>
-        <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
+        <p>
+          附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:
+          <span v-if="fileList.length != 0" style="color: #6892ff">{{
+            fileList[0].name
+          }}</span>
+          <span v-else style="color: red">无</span>
+        </p>
         <p>异常内容:{{ info.abnormalContent }}</p>
       </div>
       <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
@@ -34,6 +40,7 @@
       // 活动信息
       const info = ref({        
       });
+      let fileList = ref([]);
       let route = useRoute();
       new securityFacilitiesErrService().queryById(route.query.id).then((data) => {
         info.value = data;
@@ -43,6 +50,14 @@
           canAudit.value = false;
         }      
 
+        info.value.enclosure.split("|").forEach((item) => {
+          if (item.trim().length > 0) {
+            fileList.value.push({
+              name: decodeURIComponent(item.substring(item.lastIndexOf("/") + 1)),
+              url: item,
+            });
+          }
+        });
         isLoading.value = false;
       });
       // 审核通过
@@ -62,6 +77,7 @@
         info,
         isLoading,
         update,
+        fileList,
         canAudit,
       };
     },

+ 18 - 3
src/views/activityMan/siteInspection/siteInspectionInfo.vue

@@ -12,7 +12,13 @@
         <p>地&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;点:{{ info.place }}</p>
         <p>详细地址:{{ info.placeDel }}</p>
         <p>督查时间:{{ info.supervisionTime }}</p>
-        <p>附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:<span style="color: #6892ff">活动申请书</span></p>
+        <p>
+          附&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;件:
+          <span v-if="fileList.length != 0" style="color: #6892ff">{{
+            fileList[0].name
+          }}</span>
+          <span v-else style="color: red">无</span>
+        </p>
         <p>督查内容:{{ info.supervisionContent }}</p>
       </div>
       <van-button v-if="canAudit" type="primary" class="btn-sub" @click="update">审核</van-button>
@@ -26,12 +32,13 @@
   import { useRoute } from "vue-router";
   export default {
     setup() {
-      window.xm.setNavigationBarTitle({ title: '场所检查详情'})
+      //window.xm.setNavigationBarTitle({ title: '场所检查详情'})
       let isLoading = ref(true);
       let canAudit = ref(false);
       // 活动信息
       const info = ref({        
       });
+      let fileList = ref([]);
       let route = useRoute();
       new siteInspectionService().queryById(route.query.id).then((data) => {
         info.value = data;
@@ -41,7 +48,14 @@
           canAudit.value = false;
         }
         
-
+        info.value.enclosure.split("|").forEach((item) => {
+          if (item.trim().length > 0) {
+            fileList.value.push({
+              name: decodeURIComponent(item.substring(item.lastIndexOf("/") + 1)),
+              url: item,
+            });
+          }
+        });
         isLoading.value = false;
       });
       // 审核通过
@@ -61,6 +75,7 @@
         info,
         isLoading,
         update,
+        fileList,
         canAudit,
       };
     },