@@ -3773,20 +3762,58 @@ export default {
/**
* 客户端下载方法
*/
- clientDownLoad: function(file) {
+ clientDownLoad: function(file,type) {
+ var thisApp=this;
if (this.isClient) {
- var archid = file.archID;
- var filename = file.archName + "." + file.extension;
- var folderID = file.folderID;
- var folderName = this.listUserFolders[this.nowFolderIndex].folderName;
- var projID = file.projID;
- back.downloadFile(
- archid,
- filename,
- folderID,
- sessionStorage.projName,
- folderName
- );
+ this.$axios({
+ method: "put",
+ url: encodeURI(process.env.API_HOST + "projects/download/" + file.archID +"/" +sessionStorage.userId + "/" + type)
+ })
+ .then(response => {
+ console.log(response)
+ if(response.data.state == 1)
+ {
+ thisApp.$notify({
+ title: "温馨提示",
+ message:"文件已开始下载...",
+ type: "info",
+ offset: 30,
+ duration: 2000
+ });
+ var archid = file.archID;
+ var filename = file.archName + "." + file.extension;
+ var folderID = file.folderID;
+ var folderName = thisApp.listUserFolders[thisApp.nowFolderIndex].folderName;
+ var projID = file.projID;
+ back.downloadFile(
+ archid,-
+ filename,
+ folderID,
+ sessionStorage.projName,
+ folderName
+ );
+ }
+ else
+ {
+ this.$notify({
+ title: "温馨提示",
+ message: response.data.message,
+ type: "error",
+ offset: 30,
+ duration: 2000
+ });
+ }
+
+ })
+ .catch(error => {
+ this.$notify({
+ title: "温馨提示",
+ message: "下载失败",
+ type: "error",
+ offset: 30,
+ duration: 2000
+ });
+ });
}
},
/**
diff --git a/static/css/main.css b/static/css/main.css
index 01d83525..b6304e60 100644
--- a/static/css/main.css
+++ b/static/css/main.css
@@ -8678,7 +8678,22 @@ h5.dulilabel{
width: 48px;
height: 48px;
left: 50%;
- top: 33%;
+ top:33%;
margin-left: -24px;
margin-top: -24px;
+}
+.uploadText{
+ position: relative;
+ top: 40px;
+ left: 30px;
+ font-size: 13px
+}
+.minifont{
+ font-size: 11px;
+ color: #71717d;
+ margin-top: 2px
+}
+.largeicon{
+ color: #000;
+ font-size: 22px
}
\ No newline at end of file