From 234aeaa28312723cdf10696bd77b56c1b47a5886 Mon Sep 17 00:00:00 2001 From: "MY-SH\\lenovo" <1312913002@qq.com> Date: Fri, 8 Dec 2023 17:38:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/ehs/ehsNoticeMessage/index.vue | 37 +++++++++++++++++-- 1 file changed, 34 insertions(+), 3 deletions(-) diff --git a/ruoyi-ui/src/views/ehs/ehsNoticeMessage/index.vue b/ruoyi-ui/src/views/ehs/ehsNoticeMessage/index.vue index 0360982..deacf1c 100644 --- a/ruoyi-ui/src/views/ehs/ehsNoticeMessage/index.vue +++ b/ruoyi-ui/src/views/ehs/ehsNoticeMessage/index.vue @@ -153,7 +153,7 @@ - + + + + + @@ -232,7 +242,11 @@ export default { form: {}, // 表单校验 rules: { - } + }, + // 弹框分页 + total1:2, + pageNum: 1, + pageSize: 6, }; }, created() { @@ -240,6 +254,11 @@ export default { this.getListAllDept(); }, methods: { + // 下载 + dload(row){ + if(!row.fileName)return + this.$download.saveAs(`${process.env.VUE_APP_BASE_API}${row.fileName}`,`${row.originalName}`) + }, /** 查询内部公告列表 */ getList() { this.loading = true; @@ -384,8 +403,20 @@ export default { this.totalFileList = response.total; this.loading = false; }) - } + }, + // 查询弹框内部分页 + handleListFile(row){ + this.loading = true; + this.openFile = true; + let data = { pageNum : this.pageNum, pageSize: this.pageSize, "noticeMessageId":row.noticeMessageId} + listFileEhsNoticeMessageFile(data).then(response => { + this.ehsNoticeMessageFileList = response.rows; + this.totalFileList = response.total; + this.total = response.total; + this.loading = false; + }) + }, } };