diff --git a/src/main/java/io/v/nutz/zhgh/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java b/src/main/java/io/v/nutz/zhgh/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java index 16ff7f8..99d6ca5 100644 --- a/src/main/java/io/v/nutz/zhgh/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java +++ b/src/main/java/io/v/nutz/zhgh/therapyRecuperation/service/impl/TheRapyRecuperationEnrollServiceImpl.java @@ -691,7 +691,8 @@ public class TheRapyRecuperationEnrollServiceImpl extends ViServiceImpl [1,2,3].includes(this.resolvingShowByFileName(o.filename))) const viewFileParent = $(e.target).closest(".viewFile") @@ -796,6 +804,10 @@ module.exports = { handlePreview(file) { if (file.data) { const {filename, id} = file.data + if (this.downloadOnly) { + this.downLoadFile(file.data) + return + } preview(filename, id) } }, diff --git a/src/main/resources/views/mobile/therapyRecuperation/index.html b/src/main/resources/views/mobile/therapyRecuperation/index.html index 7a25e2f..ebc6b8d 100644 --- a/src/main/resources/views/mobile/therapyRecuperation/index.html +++ b/src/main/resources/views/mobile/therapyRecuperation/index.html @@ -145,7 +145,10 @@ layout("/mobile/platform.html"){ pjaxReplace('/platform/mobile/theRapyRecuperation/mobileLineListPage') }, async getConfigData() { - const resp = await $.get('/platform/theRapyRecuperation/TheRapyConfig/findOne') + // 首页按当前年度读取配置,避免未重新提交的存量配置因 latestConfig 未标记而取不到服务须知文件。 + const resp = await $.get('/platform/theRapyRecuperation/TheRapyConfig/findOne', { + year: new Date().getFullYear().toString() + }) this.$set(this, 'configData', resp.data || {}) }, downloadNoticeFile(file) { diff --git a/src/main/resources/views/platform/theRapyRecuperation/theRapyConfig/TheRapyConfig.html b/src/main/resources/views/platform/theRapyRecuperation/theRapyConfig/TheRapyConfig.html index 18243d0..91d141b 100644 --- a/src/main/resources/views/platform/theRapyRecuperation/theRapyConfig/TheRapyConfig.html +++ b/src/main/resources/views/platform/theRapyRecuperation/theRapyConfig/TheRapyConfig.html @@ -294,6 +294,7 @@ layout("/layouts/platform.html"){