|  | @@ -12,7 +12,13 @@
 | 
	
		
			
				|  |  |          <p>地        点:{{ info.place }}</p>
 | 
	
		
			
				|  |  |          <p>详细地址:{{ info.placeDel }}</p>
 | 
	
		
			
				|  |  |          <p>督查时间:{{ info.supervisionTime }}</p>
 | 
	
		
			
				|  |  | -        <p>附        件:<span style="color: #6892ff">活动申请书</span></p>
 | 
	
		
			
				|  |  | +        <p>
 | 
	
		
			
				|  |  | +          附        件:
 | 
	
		
			
				|  |  | +          <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,
 | 
	
		
			
				|  |  |        };
 | 
	
		
			
				|  |  |      },
 |