diff --git a/src/views/InformationQuery.vue b/src/views/InformationQuery.vue index adb255c..da9efec 100644 --- a/src/views/InformationQuery.vue +++ b/src/views/InformationQuery.vue @@ -6,7 +6,7 @@
是否确认申报项目
+- + 下载 + | 预览 @@ -242,7 +247,8 @@ export default { ], zData: [], zDate: [], - id: Number + id: Number, + fileName:null }; }, computed: {}, @@ -260,6 +266,21 @@ export default { } }, methods: { + // downloadTxt(content, filename) { + // var eleLink = document.createElement('a'); + // eleLink.download = filename; + // eleLink.style.display = 'none'; + // // 字符内容转变成blob地址 + // var blob = new Blob([content]); + // eleLink.href = URL.createObjectURL(blob); + // // 触发点击 + // document.body.appendChild(eleLink); + // eleLink.click(); + // // 然后移除 + // document.body.removeChild(eleLink); + // window.location.href = o; // 本窗口打开下载 + // window.open(centent, '_blank'); // 新开窗口下载 + // }, download() { this.getPdf('pdfDom', '项目申请书') }, @@ -283,6 +304,8 @@ export default { if (res.data.data.code === 200) { _this.zData = res.data.data.data.ProjectDetails _this.zDate = res.data.data.data.ProjectReview + let index = _this.zData.proimages.lastIndexOf("\/") + _this.fileName = _this.zData.proimages.substring(index+1,_this.zData.proimages.length) } else { alert('请求失败!') } @@ -376,7 +399,7 @@ export default { margin-bottom: 60px; p { - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 18px; font-weight: normal; font-stretch: normal; @@ -386,7 +409,7 @@ export default { } span { - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 18px; font-weight: normal; font-stretch: normal; @@ -413,7 +436,7 @@ export default { box-sizing: border-box; li { - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 18px; font-weight: normal; font-stretch: normal; @@ -424,7 +447,7 @@ export default { } } h3 { - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 20px; font-weight: normal; font-stretch: normal; @@ -433,7 +456,7 @@ export default { } h4 { margin-top: 38px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 20px; font-weight: normal; font-stretch: normal; @@ -442,7 +465,7 @@ export default { } h5 { margin-top: 38px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 20px; font-weight: normal; font-stretch: normal; @@ -481,7 +504,7 @@ export default { display: inline-block; width: 119px; height: 18px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 22px; font-weight: normal; font-stretch: normal; @@ -569,7 +592,7 @@ export default { font-weight: normal; font-stretch: normal; letter-spacing: 0px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; position: absolute; left: -8%; bottom: -100%; @@ -583,7 +606,7 @@ export default { height: 22px; text-align: center; line-height: 22px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 22px; font-weight: normal; font-stretch: normal; @@ -605,7 +628,7 @@ export default { margin-top: 48px; li { - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 18px; font-weight: normal; font-stretch: normal; @@ -618,7 +641,7 @@ export default { p { text-align: center; width: 100%; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 24px; font-weight: normal; font-stretch: normal; @@ -664,7 +687,7 @@ export default { linear-gradient(#e60012, #e60012); background-blend-mode: normal, normal; border-radius: 4px; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 16px; font-weight: normal; font-stretch: normal; @@ -681,7 +704,7 @@ export default { width: 120px; height: 38px; text-align: center; - font-family: "MicrosoftYaHei"; + font-family: 'MicrosoftYaHei'; font-size: 20px; font-weight: normal; font-stretch: normal; @@ -693,7 +716,7 @@ export default { color: #e60012; position: relative; &::after { - content: ""; + content: ''; width: 120px; height: 2px; background-color: #e60012; diff --git a/static/img/loading.gif b/static/img/loading.gif deleted file mode 100644 index a259724..0000000 Binary files a/static/img/loading.gif and /dev/null differ diff --git a/static/img/registered.png b/static/img/registered.png index 05b2b7d..499d8a3 100644 Binary files a/static/img/registered.png and b/static/img/registered.png differ