Browse Source

--增加交通气象监测规范文件下载

develop
mengff 3 weeks ago
parent
commit
deee1d94ca
  1. BIN
      ruoyi-ui/public/documents/规范文件.pdf
  2. 15
      ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue

BIN
ruoyi-ui/public/documents/规范文件.pdf

Binary file not shown.

15
ruoyi-ui/src/views/JiHeExpressway/pages/perception/noStakeWaning/index.vue

@ -9,6 +9,12 @@
</template>
刷新
</ButtonGradient>
<ButtonGradient @click="downloadPDF" class="refresh-btn">
<template #prefix>
<img src="@screen/images/export.svg" />
</template>
规范文件
</ButtonGradient>
</div>
<InputSearch ref="searchComp" style="width: 400px" :formList="searchFormList"
@ -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;

Loading…
Cancel
Save