zxm 4 år sedan
förälder
incheckning
611bee4b28
2 ändrade filer med 54 tillägg och 43 borttagningar
  1. +49
    -42
      src/views/main_web/workspace.vue
  2. +5
    -1
      static/css/main.css

+ 49
- 42
src/views/main_web/workspace.vue Visa fil

@@ -224,9 +224,9 @@
<!-- 文件大box --> <!-- 文件大box -->
<section class="yiyun_section_warp"> <section class="yiyun_section_warp">
<div class="yinyong_warpBox hidescollbar"> <div class="yinyong_warpBox hidescollbar">
<div class="yiyun_section_top" id="bignav">
<div class="yiyun_section_top titlebar_head" id="bignav">
<div <div
class="section_item fl section_item_aside_fl"
class="section_item section_item_aside_fl"
v-if="!isCommonPage && nowFolder.folderPerm != 0 " v-if="!isCommonPage && nowFolder.folderPerm != 0 "
> >
<!--我的文件 工作文件--> <!--我的文件 工作文件-->
@@ -286,7 +286,7 @@
</span> </span>
</div> </div>
<div <div
class="section_item fl section_item_aside_fl"
class="section_item section_item_aside_fl"
v-if="!isCommonPage && nowFolder.folderPerm == 0 " v-if="!isCommonPage && nowFolder.folderPerm == 0 "
> >
<span class="yywenjiantitle" :class="{yyactive:true}" v-if="isShowWorkt">工作文件</span> <span class="yywenjiantitle" :class="{yyactive:true}" v-if="isShowWorkt">工作文件</span>
@@ -327,11 +327,11 @@
</draggable> </draggable>
</span> </span>
</div> </div>
<div class="section_item fl section_item_aside_fl" v-if="isCommonPage">
<div class="section_item section_item_aside_fl" v-if="isCommonPage">
<span class="yywenjiantitle" :class="{yyactive:true}">公共文件</span> <span class="yywenjiantitle" :class="{yyactive:true}">公共文件</span>
</div> </div>
<!-- 右侧操作栏 --> <!-- 右侧操作栏 -->
<div class="section_item fr section_item_aside_fr width4">
<div class="section_item section_item_aside_fr">
<div class="fr ml-10"> <div class="fr ml-10">
<el-button <el-button
v-if="nowFolder.folderPerm == 0" v-if="nowFolder.folderPerm == 0"
@@ -659,8 +659,10 @@
class="downloadIcon" class="downloadIcon"
v-if="isClient && file.isDownload && file.downloadStatus == 1" v-if="isClient && file.isDownload && file.downloadStatus == 1"
> >
<span> <i class="el-icon-loading largeicon"></i>
<div class="minifont">下载中</div> </span>
<span>
<i class="el-icon-loading largeicon"></i>
<div class="minifont">下载中</div>
</span>
</div> </div>
<!-- 下拉列表 --> <!-- 下拉列表 -->
<div class="top_optionBar"> <div class="top_optionBar">
@@ -3762,58 +3764,63 @@ export default {
/** /**
* 客户端下载方法 * 客户端下载方法
*/ */
clientDownLoad: function(file,type) {
var thisApp=this;
clientDownLoad: function(file, type) {
var thisApp = this;
if (this.isClient) { if (this.isClient) {
this.$axios({ 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 archid = file.archID;
var filename = file.archName + "." + file.extension; var filename = file.archName + "." + file.extension;
var folderID = file.folderID; 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( back.downloadFile(
archid,-
filename,
archid,
-filename,
folderID, folderID,
sessionStorage.projName, sessionStorage.projName,
folderName folderName
); );
}
else
{
} else {
this.$notify({
title: "温馨提示",
message: response.data.message,
type: "error",
offset: 30,
duration: 2000
});
}
})
.catch(error => {
this.$notify({ this.$notify({
title: "温馨提示",
message: response.data.message,
type: "error",
offset: 30,
duration: 2000
});
}
})
.catch(error => {
this.$notify({
title: "温馨提示", title: "温馨提示",
message: "下载失败", message: "下载失败",
type: "error", type: "error",
offset: 30,
offset: 30,
duration: 2000 duration: 2000
}); });
});
});
} }
}, },
/** /**


+ 5
- 1
static/css/main.css Visa fil

@@ -539,7 +539,7 @@ ul {


.section_item_aside_fl { .section_item_aside_fl {
/* min-height: 85px; */ /* min-height: 85px; */
min-width: 203px;
width: 80%;
/* border: 1px solid #000;*/ /* border: 1px solid #000;*/
} }


@@ -8696,4 +8696,8 @@ h5.dulilabel{
.largeicon{ .largeicon{
color: #000; color: #000;
font-size: 22px font-size: 22px
}
.titlebar_head{
display: flex;
justify-content: space-between;
} }

Laddar…
Avbryt
Spara