From b360f5985258da84c58a6afcb4c02a4bcb11a3e1 Mon Sep 17 00:00:00 2001 From: dhj Date: Fri, 12 Jun 2020 15:37:10 +0800 Subject: [PATCH] [Version] V.3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [Adds] 1.工作链面包屑换行 --- src/views/main_web/workspace.vue | 91 +++++++++++++++++--------------- static/css/main.css | 6 ++- 2 files changed, 54 insertions(+), 43 deletions(-) diff --git a/src/views/main_web/workspace.vue b/src/views/main_web/workspace.vue index 7069417a..7298c82d 100644 --- a/src/views/main_web/workspace.vue +++ b/src/views/main_web/workspace.vue @@ -224,9 +224,9 @@
-
+
@@ -286,7 +286,7 @@
工作文件 @@ -327,11 +327,11 @@
-
+
公共文件
-
+
- -
下载中
+ + +
下载中
+
@@ -3762,58 +3764,63 @@ export default { /** * 客户端下载方法 */ - clientDownLoad: function(file,type) { - var thisApp=this; + clientDownLoad: function(file, type) { + var thisApp = this; if (this.isClient) { this.$axios({ - method: "put", - url: encodeURI(process.env.API_HOST + "projects/download/" + file.archID +"/" +sessionStorage.userId + "/" + type) + 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 - }); + .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; + var folderName = + thisApp.listUserFolders[thisApp.nowFolderIndex].folderName; + var projID = file.projID; back.downloadFile( - archid,- - filename, + archid, + -filename, folderID, sessionStorage.projName, folderName ); - } - else - { + } else { + this.$notify({ + title: "温馨提示", + message: response.data.message, + type: "error", + offset: 30, + duration: 2000 + }); + } + }) + .catch(error => { this.$notify({ - title: "温馨提示", - message: response.data.message, - type: "error", - offset: 30, - duration: 2000 - }); - } - - }) - .catch(error => { - this.$notify({ title: "温馨提示", message: "下载失败", type: "error", - offset: 30, + offset: 30, duration: 2000 }); - }); + }); } }, /** diff --git a/static/css/main.css b/static/css/main.css index b6304e60..ad8fc41d 100644 --- a/static/css/main.css +++ b/static/css/main.css @@ -539,7 +539,7 @@ ul { .section_item_aside_fl { /* min-height: 85px; */ - min-width: 203px; + width: 80%; /* border: 1px solid #000;*/ } @@ -8696,4 +8696,8 @@ h5.dulilabel{ .largeicon{ color: #000; font-size: 22px +} +.titlebar_head{ + display: flex; + justify-content: space-between; } \ No newline at end of file