|
@@ -150,7 +150,10 @@
|
|
|
</van-tab>
|
|
|
<van-tab title="总结报告">
|
|
|
<div class="event_tab2">
|
|
|
- <template v-if="eventInfo.plan_name||'' === ''">
|
|
|
+ <div v-if="eventInfo.summary_file && eventInfo.summary_file.length > 0" class="file-list">
|
|
|
+ <div v-for="(item, index) in eventInfo.summary_file" :key="index" class="item" @click="handleDownload2(item)">{{item.file_name}}</div>
|
|
|
+ </div>
|
|
|
+ <template v-else>
|
|
|
<div class="emptyIcon2"/>
|
|
|
<div class="emptyText">暂未上传总结报告</div>
|
|
|
<van-button type="primary" size="small" @click="handleUploadCasualties">去上传</van-button>
|
|
@@ -170,8 +173,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<AssociationPlan v-model="associationShow" :eventId="eventId" @confirm="associationPlanConfirm" />
|
|
|
- <UploadEventCasualtiesDialog v-model="uploadCasualtiesState.show" :data="uploadCasualtiesState.form"
|
|
|
- @update:model-value="onUploadCasualtiesDialogClose"></UploadEventCasualtiesDialog>
|
|
|
+ <UploadEventCasualtiesDialog
|
|
|
+ v-model="uploadCasualtiesState.show"
|
|
|
+ :data="uploadCasualtiesState.form"
|
|
|
+ @update:model-value="onUploadCasualtiesDialogClose"
|
|
|
+ @confirm="onUploadCasualtiesDialogClose"
|
|
|
+ />
|
|
|
<StartEventDialog v-model="startEventState.show" :data="startEventState.form"
|
|
|
@update:model-value="onStartEventDialogClose"></StartEventDialog>
|
|
|
</div>
|
|
@@ -334,6 +341,14 @@ const associationPlanConfirm = (plan_id) => {
|
|
|
eventInfo.value.plan_id = plan_id;
|
|
|
getPlan();
|
|
|
}
|
|
|
+const baseUrl = import.meta.env.VITE_BASE_API;
|
|
|
+// 下载方法
|
|
|
+const handleDownload = (file: any) => {
|
|
|
+ download2(baseUrl + '/file/download/' + file.url, file.name);
|
|
|
+};
|
|
|
+const handleDownload2 = (file: any) => {
|
|
|
+ download2(baseUrl + '/file/download/' + file.url, file.file_name);
|
|
|
+};
|
|
|
onMounted(() => {
|
|
|
refreshData();
|
|
|
|
|
@@ -379,11 +394,6 @@ const refreshData = () => {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-const baseUrl = import.meta.env.VITE_BASE_API;
|
|
|
-// 下载方法
|
|
|
-const handleDownload = (file: any) => {
|
|
|
- download2(baseUrl + '/file/download/' + file.url, file.name);
|
|
|
-};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -638,4 +648,12 @@ const handleDownload = (file: any) => {
|
|
|
:deep(.van-tabs__wrap) {
|
|
|
border-bottom: 1px solid #F6F6F6;
|
|
|
}
|
|
|
+.file-list {
|
|
|
+ width: 100%;
|
|
|
+ .item {
|
|
|
+ width: 100%;
|
|
|
+ padding: 5px 0;
|
|
|
+ color: #2c81ff;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|