From e283152a89a2aff461d095f53a884ef7518a64d4 Mon Sep 17 00:00:00 2001 From: buvta <12312540+buvta@users.noreply.github.com> Date: Sat, 12 Dec 2020 22:51:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=A4=9A=E4=BD=99=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=8CWaterfall=E5=9C=A8=E6=95=B0=E6=8D=AE=E5=8F=8A?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=8F=98=E5=8A=A8=E6=97=B6=E4=BC=9A=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Film.vue | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/src/components/Film.vue b/src/components/Film.vue index 199337e..34e53de 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -511,16 +511,8 @@ export default { } if (this.showFind) { this.filteredSearchContents = filteredData - // 数据更新后,刷新页面 - if (this.setting.view === 'picture' && this.$refs.filmSearchWaterfall) { - this.$refs.filmSearchWaterfall.refresh() - } } else { this.filteredList = filteredData - // 数据更新后,刷新页面 - if (this.setting.view === 'picture' && this.$refs.filmWaterfall) { - this.$refs.filmWaterfall.refresh() - } } }, toggleViewMode () { @@ -555,7 +547,7 @@ export default { const otherColumns = this.$refs.searchResultTable.columns.filter(col => col.id !== this.currentColumn.id) otherColumns.forEach(col => { col.filterable = false }) } else { - const filterLabels = ['源站', '类型', '地区', '语言'] + const filterLabels = ['源站', '语言'] const columns = this.$refs.searchResultTable.columns.filter(col => filterLabels.includes(col.label)) columns.forEach(col => { col.filterable = true }) } @@ -756,11 +748,6 @@ export default { changeView () { if (this.view === 'Film') { this.getAllSites() - if (this.setting.view === 'picture') { - if (this.$refs.filmWaterfall) { - this.$refs.filmWaterfall.refresh() - } - } } }, querySearch (queryString, cb) { @@ -854,9 +841,6 @@ export default { if (!this.searchTxt.length) { this.searchContents = [] this.showFind = false - if (this.setting.view === 'picture' && this.$refs.filmWaterfall) { - this.$refs.filmWaterfall.refresh() - } } }, getAllSites () { @@ -888,13 +872,6 @@ export default { mounted () { window.addEventListener('resize', () => { setTimeout(() => { this.showTableLastColumn = window.outerWidth >= 1200 }, 100) - if (this.$refs.filmWaterfall && this.view === 'Film') { - this.$refs.filmWaterfall.resize() - this.$refs.filmWaterfall.refresh() - setTimeout(() => { - this.$refs.filmWaterfall.refresh() - }, 500) - } }, false) } }