From 31026de22e8f1bbef5e3f38e20d6323094bd325c Mon Sep 17 00:00:00 2001 From: jmal Date: Tue, 6 Apr 2021 17:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9A=E5=88=86=E4=BA=AB?= =?UTF-8?q?=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/api/file-api.js | 8 +++ src/components/ShowFile/ShowFile.vue | 36 ----------- src/layout/components/Sidebar/Logo.vue | 2 +- src/styles/home-index.scss | 12 ++-- src/views/public/share/shareList.vue | 86 ++++++++++++++------------ 6 files changed, 61 insertions(+), 85 deletions(-) diff --git a/package.json b/package.json index dacb85f..d43a6d9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "jmal-cloud-view", "version": "2.1.9", - "description": "jmal cloud", + "description": "jmalcloud", "author": "Jmal ", "license": "MIT", "scripts": { diff --git a/src/api/file-api.js b/src/api/file-api.js index a14aee5..70229eb 100644 --- a/src/api/file-api.js +++ b/src/api/file-api.js @@ -188,6 +188,14 @@ export default { params }) }, + // 获取分享者信息 + getSharer: function(params) { + return request({ + url: 'public/get/sharer', + method: 'get', + params + }) + }, // 访问分享链接里的文件夹 accessShareOpenDir: function(params) { return request({ diff --git a/src/components/ShowFile/ShowFile.vue b/src/components/ShowFile/ShowFile.vue index 8bb2f3b..24da5e7 100644 --- a/src/components/ShowFile/ShowFile.vue +++ b/src/components/ShowFile/ShowFile.vue @@ -357,8 +357,6 @@ }" @click="gridItemClick(item)" @dblclick="fileClick(item)" - @mouseover="gridItemHover(item,index)" - @mouseout="gridItemOut(item,index)" @contextmenu.prevent="rowContextmenu(item)" >
@@ -761,8 +759,6 @@ export default { vmode: this.defaultGrid ? 'grid' : 'list', gridColumnNum: -1, gridColumnWidth: 120, - gridHoverItemIndex: -1, - gridHoverIntermediate: -1, allChecked: false, summaries: '', shareDialog: false, @@ -972,35 +968,6 @@ export default { load() { this.getFileList(true) }, - gridItemHover(item, index) { - this.gridHoverItemIndex = index; - this.gridHoverIntermediate = index; - }, - gridItemOut(item, index) { - this.gridHoverIntermediate = -1 - const _this = this - setTimeout(function () { - if (_this.gridHoverIntermediate !== _this.gridHoverItemIndex) { - _this.gridHoverItemIndex = -1; - } - }, 10) - }, - clickGridItemCheckBox(row, index) { - // 同步列表的checkbox - if (this.selectRowData.includes(row)) { - this.$refs.fileListTable.toggleRowSelection([{row: row, selected: false}]) - } else { - this.$refs.fileListTable.toggleRowSelection([{row: row, selected: true}]) - } - this.pinSelect(null, row) - }, - clickGridAllCheckBox() { - if (this.selectRowData.length !== this.fileList.length) { - this.$refs.fileListTable.toggleAllSelection() - } else { - this.$refs.fileListTable.clearSelection(); - } - }, gridItemClick(row) { if (this.isCmd) { this.pinSelect(null, row) @@ -1013,9 +980,6 @@ export default { this.$refs.fileListTable.clearSelection() this.$refs.fileListTable.toggleRowSelection([{row: row}]) this.pinSelect(null, row) - }, - containerClick() { - }, containerResize() { const container = document.querySelector(".dashboard-container") diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue index 372efd4..9494b35 100644 --- a/src/layout/components/Sidebar/Logo.vue +++ b/src/layout/components/Sidebar/Logo.vue @@ -26,7 +26,7 @@ export default { }, data() { return { - title: 'Jmal Cloud', + title: 'jmalcloud', } } } diff --git a/src/styles/home-index.scss b/src/styles/home-index.scss index 6fd917e..803ce44 100644 --- a/src/styles/home-index.scss +++ b/src/styles/home-index.scss @@ -310,16 +310,16 @@ top: 70%; color: #ffffff; } +/deep/ .grid-item-checkbox { + position: absolute; + top: 10px; + left: 10px; + z-index: 1; +} /deep/ .grid-time { border-radius: 5px; padding: 0 8px; border: solid 1px #ccc0; - .grid-item-checkbox { - position: absolute; - top: 10px; - left: 10px; - z-index: 1; - } .grid-item-icon{ text-align: center; position: absolute; diff --git a/src/views/public/share/shareList.vue b/src/views/public/share/shareList.vue index 19a473e..03d0a2c 100644 --- a/src/views/public/share/shareList.vue +++ b/src/views/public/share/shareList.vue @@ -3,14 +3,16 @@ -