diff --git a/ruoyi-ui/public/documents/规范文件.pdf b/ruoyi-ui/public/documents/规范文件.pdf new file mode 100644 index 00000000..07738b6e Binary files /dev/null and b/ruoyi-ui/public/documents/规范文件.pdf differ diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue index d997290d..42e9b9dd 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue @@ -9,22 +9,28 @@ 刷新 + + + 规范文件 + - +
- + - +
@@ -90,7 +96,7 @@ export default { mounted(){ }, methods: { - + onCellClick(row, column, cell, event) { if(row.warningType === '交通流预警'){ this.dialogWarningVisible = true; @@ -101,6 +107,15 @@ export default { this.searchData.pageNum = 1; this.$refs.searchComp.handleResetForm(); }, + downloadPDF() { + const filePath = '/documents/规范文件.pdf'; + const link = document.createElement('a'); + link.href = filePath; + link.download = '规范文件.pdf'; + document.body.appendChild(link); + link.click(); + document.body.removeChild(link); + }, handleSearch(data) { let startTime = null; let endTime = null; @@ -121,7 +136,7 @@ export default { }, // - + handleDelete(row){ const self = this; this.$confirm('是否确认删除?', "警告", { @@ -138,7 +153,7 @@ export default { }) }).catch(function() {}); }, - + initData() { request({ url: `/business/dcNoStakeWarningTable/list`,