commit
984fdb03fe
@ -302,6 +302,9 @@ export default {
|
|||||||
},
|
},
|
||||||
// 切换分享形式
|
// 切换分享形式
|
||||||
shareFormChange() {
|
shareFormChange() {
|
||||||
|
if (!this.shareOption.isPrivacy) {
|
||||||
|
this.shareOption.operationPermissionList = []
|
||||||
|
}
|
||||||
this.createShare('shareFormChange')
|
this.createShare('shareFormChange')
|
||||||
},
|
},
|
||||||
// 取消分享
|
// 取消分享
|
||||||
@ -469,6 +472,7 @@ export default {
|
|||||||
.share-filename {
|
.share-filename {
|
||||||
margin: 25px 0 50px 0;
|
margin: 25px 0 50px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
word-break: break-word;
|
||||||
}
|
}
|
||||||
|
|
||||||
.share-option {
|
.share-option {
|
||||||
|
|||||||
@ -1546,8 +1546,12 @@ export default {
|
|||||||
let gridRowNum = Math.round(
|
let gridRowNum = Math.round(
|
||||||
this.clientHeight / (clientWidth / this.gridColumnNum)
|
this.clientHeight / (clientWidth / this.gridColumnNum)
|
||||||
)
|
)
|
||||||
this.pagination.pageSize =
|
const lastPageSize = this.pagination.pageSize
|
||||||
gridRowNum * this.gridColumnNum + this.gridColumnNum
|
const thisPageSize = gridRowNum * this.gridColumnNum + this.gridColumnNum
|
||||||
|
if (thisPageSize !== lastPageSize) {
|
||||||
|
this.pagination.pageSize = thisPageSize
|
||||||
|
this.getFileList()
|
||||||
|
}
|
||||||
|
|
||||||
// 使列表可拖拽
|
// 使列表可拖拽
|
||||||
this.rowDrop()
|
this.rowDrop()
|
||||||
@ -4061,7 +4065,6 @@ export default {
|
|||||||
if (row.isFolder) {
|
if (row.isFolder) {
|
||||||
url = fileConfig.packageDownloadUrl(row.id, row.name + '.zip')
|
url = fileConfig.packageDownloadUrl(row.id, row.name + '.zip')
|
||||||
}
|
}
|
||||||
console.log('url', url)
|
|
||||||
let clipboard = new Clipboard('.newFileMenu', {
|
let clipboard = new Clipboard('.newFileMenu', {
|
||||||
text: function() {
|
text: function() {
|
||||||
return url
|
return url
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<share-dialog :file.sync="shareDialogObject" :status.sync="shareDialogVisible" @onUpdateExpireData="onUpdateExpireData" @onUpdateShareForm="onUpdateShareForm"></share-dialog>
|
<share-dialog :file.sync="shareDialogObject" :status.sync="shareDialogVisible" @onUpdateExpireData="onUpdateExpireData" @onUpdateShareForm="onUpdateShareForm" @onCancelShare="onCancelShare"></share-dialog>
|
||||||
<!--list布局-->
|
<!--list布局-->
|
||||||
<div v-show="fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">
|
<div v-show="fileList.length > 0" :style="{'width':'100%','height': clientHeight+'px'}">
|
||||||
<pl-table
|
<pl-table
|
||||||
@ -474,6 +474,9 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onCancelShare() {
|
||||||
|
this.getFileList()
|
||||||
|
},
|
||||||
// 点击文件或文件夹
|
// 点击文件或文件夹
|
||||||
fileClick(row) {
|
fileClick(row) {
|
||||||
this.shareDialogObject = row
|
this.shareDialogObject = row
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user