|
|
@@ -437,15 +437,16 @@ |
|
|
|
@click="setFileStatus(file, 0, '已开启文件协同',2)" |
|
|
|
></i> |
|
|
|
</div> |
|
|
|
<!-- 下载状态 v-if="file.extension!='map'&&file.extension!='svfzip'&&file.extension!='supermap'&& isClient && !file.isDownload && (file.status == 0 || file.status == 2)"--> |
|
|
|
<div |
|
|
|
@contextmenu.prevent.stop="rightShowMenu($event, file, 1)" |
|
|
|
class="downloadIcon" |
|
|
|
@click="clientDownLoad(file,1)" |
|
|
|
v-if="file.extension!='map'&&file.extension!='svfzip'&&file.extension!='supermap'&& isClient && !file.isDownload && (file.status == 0 || file.status == 2)" |
|
|
|
> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong"/> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong" /> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
@contextmenu.prevent.stop="rightShowMenu($event, file, 1)" |
|
|
|
class="downloadIcon" |
|
|
|
v-if="isClient && file.isDownload && file.downloadStatus == 1" |
|
|
|
> |
|
|
@@ -813,13 +814,12 @@ |
|
|
|
<i v-if="file.updateStatus == 0" class="yiyun_file_newlabel mr-10"></i> |
|
|
|
{{ file.archName }} |
|
|
|
</strong> |
|
|
|
<div class="eidtTip" v-if="file.status == 0 || file.status == 1">工作中</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
|
v-if="file.extension!='map'&&file.extension!='svfzip'&&file.extension!='supermap'&& isClient && !file.isDownload" |
|
|
|
@click="clientDownLoad(file,2)" |
|
|
|
> |
|
|
|
<img src="/static/img/download.svg" alt /> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong"/> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
@@ -858,27 +858,27 @@ |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickColl(file)" |
|
|
|
v-if="file.status == 2 && isClient && file.downloadStatus == 2" |
|
|
|
v-if=" isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickSelectColl(file)" |
|
|
|
v-if="file.status == 2 && isClient && file.downloadStatus == 2" |
|
|
|
v-if=" isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开方式</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
divided |
|
|
|
@click.native="openNativeFolder(file)" |
|
|
|
v-if="file.status == 2 && isClient" |
|
|
|
v-if="isClient" |
|
|
|
> |
|
|
|
<span>在文件夹中浏览</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
divided |
|
|
|
@click.native="downLoadMyFile(file)" |
|
|
|
v-if="file.status ==2 && file.extension !='map' && file.extension!='supermap'" |
|
|
|
v-if=" file.extension !='map' && file.extension!='supermap'" |
|
|
|
> |
|
|
|
<span>下载至本地</span> |
|
|
|
</el-dropdown-item> |
|
|
@@ -946,13 +946,12 @@ |
|
|
|
<img v-lazy="imgSrc + file.alias" alt class="file_Img" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="eidtTip" v-if="file.status == 0 || file.status == 1">工作中</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
|
v-if="file.extension!='map'&&file.extension!='svfzip'&&file.extension!='supermap'&&isClient && !file.isDownload" |
|
|
|
@click="clientDownLoad(file,2)" |
|
|
|
> |
|
|
|
<img src="/static/img/download.svg" alt /> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong" /> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
@@ -1009,20 +1008,20 @@ |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickColl(file)" |
|
|
|
v-if="isClient && file.status == 2 && file.downloadStatus == 2" |
|
|
|
v-if="isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickSelectColl(file)" |
|
|
|
v-if="isClient && file.status == 2 && file.downloadStatus == 2" |
|
|
|
v-if="isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开方式</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
divided |
|
|
|
@click.native="downLoadMyFile(file)" |
|
|
|
v-if="file.status == 2 && file.extension !='map' && file.extension!='supermap'" |
|
|
|
v-if=" file.extension !='map' && file.extension!='supermap'" |
|
|
|
> |
|
|
|
<span>下载至本地</span> |
|
|
|
</el-dropdown-item> |
|
|
@@ -1086,13 +1085,12 @@ |
|
|
|
<img v-lazy="imgSrc + file.alias" alt class="file_Img" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="eidtTip" v-if="file.status == 0 || file.status == 1">工作中</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
|
v-if="file.extension!='map'&&file.extension!='svfzip'&&file.extension!='supermap'&&isClient && !file.isDownload" |
|
|
|
@click="clientDownLoad(file,2)" |
|
|
|
> |
|
|
|
<img src="/static/img/download.svg" alt /> |
|
|
|
<img src="/static/img/download.svg" alt class="imgjuzhong"/> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="downloadIcon" |
|
|
@@ -1150,20 +1148,20 @@ |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickColl(file)" |
|
|
|
v-if="isClient && file.status == 2 && file.downloadStatus == 2" |
|
|
|
v-if="isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
@click.native="fileClickSelectColl(file)" |
|
|
|
v-if="isClient && file.status == 2 && file.downloadStatus == 2" |
|
|
|
v-if="isClient && file.downloadStatus == 2" |
|
|
|
> |
|
|
|
<span>打开方式</span> |
|
|
|
</el-dropdown-item> |
|
|
|
<el-dropdown-item |
|
|
|
divided |
|
|
|
@click.native="downLoadMyFile(file)" |
|
|
|
v-if="file.status == 2 && file.extension !='map' && file.extension!='supermap'" |
|
|
|
v-if="file.extension !='map' && file.extension!='supermap'" |
|
|
|
> |
|
|
|
<span>下载至本地</span> |
|
|
|
</el-dropdown-item> |
|
|
@@ -1356,20 +1354,20 @@ |
|
|
|
>在线查看</li> |
|
|
|
<li |
|
|
|
@click="fileClickColl(BtnRightFile)" |
|
|
|
v-if="isClient && BtnRightFile.status == 2 && BtnRightFile.downloadStatus == 2" |
|
|
|
v-if="isClient && BtnRightFile.downloadStatus == 2" |
|
|
|
>打开</li> |
|
|
|
<li |
|
|
|
@click="fileClickSelectColl(BtnRightFile)" |
|
|
|
v-if="isClient && BtnRightFile.status == 2 && BtnRightFile.downloadStatus == 2" |
|
|
|
v-if="isClient && BtnRightFile.downloadStatus == 2" |
|
|
|
>打开方式</li> |
|
|
|
<div class="line" v-if="BtnRightFile.status == 2"></div> |
|
|
|
<li |
|
|
|
@click="openNativeFolder(BtnRightFile)" |
|
|
|
v-if="isClient && BtnRightFile.status == 2" |
|
|
|
v-if="isClient" |
|
|
|
>在文件夹中浏览</li> |
|
|
|
<li |
|
|
|
@click="downLoadMyFile(BtnRightFile)" |
|
|
|
v-if="BtnRightFile.status == 2 && BtnRightFile.extension !='map' && BtnRightFile.extension!='supermap'" |
|
|
|
v-if=" BtnRightFile.extension !='map' && BtnRightFile.extension!='supermap'" |
|
|
|
>下载至本地</li> |
|
|
|
</ul> |
|
|
|
<!-- 公共文件 --> |
|
|
@@ -1389,16 +1387,16 @@ |
|
|
|
>在线查看</li> |
|
|
|
<li |
|
|
|
@click="fileClickColl(BtnRightFile)" |
|
|
|
v-if="isClient && BtnRightFile.status == 2 && BtnRightFile.downloadStatus == 2" |
|
|
|
v-if="isClient && BtnRightFile.downloadStatus == 2" |
|
|
|
>打开</li> |
|
|
|
<li |
|
|
|
@click="fileClickSelectColl(BtnRightFile)" |
|
|
|
v-if="isClient && BtnRightFile.status == 2 && BtnRightFile.downloadStatus == 2" |
|
|
|
v-if="isClient && BtnRightFile.downloadStatus == 2" |
|
|
|
>打开方式</li> |
|
|
|
<div class="line" v-if="BtnRightFile.status == 2"></div> |
|
|
|
<li |
|
|
|
@click="downLoadMyFile(BtnRightFile)" |
|
|
|
v-if="BtnRightFile.status == 2 && BtnRightFile.extension !='map' && BtnRightFile.extension!='supermap'" |
|
|
|
v-if=" BtnRightFile.extension !='map' && BtnRightFile.extension!='supermap'" |
|
|
|
>下载至本地</li> |
|
|
|
</ul> |
|
|
|
<!--新建文件分组--> |
|
|
@@ -2160,8 +2158,7 @@ export default { |
|
|
|
dialogNewSuperMapVisible: false, |
|
|
|
newSuperMap: { showName: "", description: "" }, |
|
|
|
mapAddress: "北京天安门", |
|
|
|
isClient: false, // 是否是客户端 |
|
|
|
// isClient: true, // 是否是客户端 |
|
|
|
isClient: process.env.IS_CLIENT, // 是否是客户端 |
|
|
|
/**新建文件分组 start*/ |
|
|
|
dialogNewFolderGroup: false, //新建文件分组组弹窗 |
|
|
|
//文件分组数据 |
|
|
@@ -3364,10 +3361,6 @@ export default { |
|
|
|
this.appInstanceTitle = "应用查看-" + file.archName; |
|
|
|
} else if (file.extension == "svfzip") { |
|
|
|
window.open(file.showUrl, file.archName); |
|
|
|
// this.showApp = true; |
|
|
|
// this.instanceType = 2; |
|
|
|
// this.forgeShowUrl = file.showUrl; |
|
|
|
// this.appInstanceTitle = "应用查看-" + file.archName; |
|
|
|
} else if (file.extension == "supermap") { |
|
|
|
this.instanceType = 3; |
|
|
|
this.showApp = true; |
|
|
@@ -3581,9 +3574,6 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.isClient) { |
|
|
|
if (file.status == 1 || file.status == 0) { |
|
|
|
// do nothing |
|
|
|
} else { |
|
|
|
if (file.extension == "map") { |
|
|
|
this.instanceType = 1; |
|
|
|
this.showApp = true; |
|
|
@@ -3613,8 +3603,7 @@ export default { |
|
|
|
var archid = file.archID; |
|
|
|
var filename = file.archName + "." + file.extension; |
|
|
|
var folderID = file.folderID; |
|
|
|
var folderName = this.listUserFolders[this.nowFolderIndex] |
|
|
|
.folderName; |
|
|
|
var folderName = this.listUserFolders[this.nowFolderIndex].folderName; |
|
|
|
var projID = file.projID; |
|
|
|
var type = "open"; |
|
|
|
back.openFile( |
|
|
@@ -3626,7 +3615,6 @@ export default { |
|
|
|
folderName |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
this.openOffice(file); |
|
|
|
} |
|
|
@@ -3640,17 +3628,6 @@ export default { |
|
|
|
return; |
|
|
|
} |
|
|
|
if (this.isClient) { |
|
|
|
if (file.status == 1 || file.status == 0) { |
|
|
|
this.$confirm("对方正在工作中,请稍后查看", "", { |
|
|
|
confirmButtonText: "确定", |
|
|
|
showClose: false, |
|
|
|
showCancelButton: false, |
|
|
|
type: "warning", |
|
|
|
center: true |
|
|
|
}) |
|
|
|
.then(() => {}) |
|
|
|
.catch(error => {}); |
|
|
|
} else { |
|
|
|
if (file.extension == "map") { |
|
|
|
this.instanceType = 1; |
|
|
|
this.showApp = true; |
|
|
@@ -3658,10 +3635,6 @@ export default { |
|
|
|
this.appInstanceTitle = "应用查看-" + file.archName; |
|
|
|
} else if (file.extension == "svfzip") { |
|
|
|
window.open(file.showUrl, file.archName); |
|
|
|
// this.showApp = true; |
|
|
|
// this.instanceType = 2; |
|
|
|
// this.forgeShowUrl = file.showUrl; |
|
|
|
// this.appInstanceTitle = "应用查看-" + file.archName; |
|
|
|
} else if (file.extension == "supermap") { |
|
|
|
this.instanceType = 3; |
|
|
|
this.showApp = true; |
|
|
@@ -3694,7 +3667,6 @@ export default { |
|
|
|
folderName |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.$axios({ |
|
|
|
method: "delete", |
|
|
|