Browse Source

资料库下载

zhengjinyi 4 years ago
parent
commit
3a9235a2a6

+ 1 - 1
src/main/resources/static/css/document/details.css

@@ -43,7 +43,7 @@ li{list-style:none}
     .document-list .list-item .list-item-top .main .p span{margin-right: 5px;}
     .document-list .list-item .list-item-top .main .p .name{width:49%;float: left;margin-right:10px;font-weight: normal;text-align: left;white-space: normal;word-break: break-all;overflow: hidden;text-overflow: ellipsis;-webkit-box-orient: vertical;-webkit-line-clamp: 1;display: -webkit-box;}
     .document-list .list-item .list-item-top .main .p .more{color: #E15616;cursor: pointer;}
-    .document-list .list-item .list-item-top .down{width: 72px;height: 30px;position: absolute;right: 24px;bottom: 24px;}
+    .document-list .list-item .list-item-top .down{width: 72px;height: 30px;position: absolute;right: 24px;bottom: 34px;}
     .document-list .list-item .list-item-top .down a{width: 72px;height: 30px;background: linear-gradient(90deg, #FF8B45, #E15616);border-radius: 5px;display: block;line-height: 30px;box-sizing: border-box;padding:0 12px;font-size: 14px;color: #FFFFFF;}
     .document-list .list-item .list-item-bot{width: 100%;min-height: 1185px;padding: 20px 0;border-top: 1px solid #F5F5F5;float: left;margin-bottom: 120px;}
     .document-list .list-item .list-item-bot .pdf-li{width: 100%;height: 30px;line-height: 30px;font-size: 14px;color: #999999;float: left;margin: 5px 0;}

+ 2 - 2
src/main/resources/static/js/document/details.js

@@ -49,8 +49,8 @@ var documentList = new Vue({
                 var url = window.URL.createObjectURL(BLOB);
                 var DownloadLink = document.createElement('a');
                 DownloadLink.style.display = 'none';
-                DownloadLink.href ='https://caimei-oss.oss-cn-shenzhen.aliyuncs.com/bb40705c864f47a5b99f8df6a4330b58.pdf?Expires=1609988547&OSSAccessKeyId=LTAI4GBL3o4YkWnbKYgf2Xia&Signature=%2B3mqH81JtbVl9shwqndxGL2Ivco%3D';
-                DownloadLink.setAttribute('download', 'bb40705c864f47a5b99f8df6a4330b58.pdf');
+                DownloadLink.href = _self.ossArchivePdf.url;
+                DownloadLink.setAttribute('download', _self.ossArchivePdf.name);
                 document.body.appendChild(DownloadLink);
                 DownloadLink.click();
                 document.body.removeChild(DownloadLink);