From 55d1740354d482fe3716d4f621280d1ab526a304 Mon Sep 17 00:00:00 2001 From: haiyangcui Date: Tue, 3 Nov 2020 12:53:36 +0100 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8"=E5=B1=8F=E8=94=BD=E7=A6=8F?= =?UTF-8?q?=E5=88=A9=E7=89=87"=E5=88=B0=E6=BA=90=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EditSites.vue | 19 +++++++++++++++++-- src/components/Film.vue | 19 ++++++++++++------- src/components/Setting.vue | 7 ------- src/lib/element/index.js | 3 ++- 4 files changed, 31 insertions(+), 17 deletions(-) diff --git a/src/components/EditSites.vue b/src/components/EditSites.vue index 6d5c37d..91d018c 100644 --- a/src/components/EditSites.vue +++ b/src/components/EditSites.vue @@ -2,6 +2,7 @@
> + 屏蔽福利片 新增 导出 导入 @@ -111,7 +112,7 @@ diff --git a/src/components/Film.vue b/src/components/Film.vue index 1f143f2..8a1a58b 100644 --- a/src/components/Film.vue +++ b/src/components/Film.vue @@ -252,6 +252,9 @@ export default { }, sitesList () { return this.$store.getters.getEditSites.sites // 需要监听的数据 + }, + filterSettings () { + return this.$store.getters.getSetting.excludeR18Films // 需要监听的数据 } }, filters: { @@ -269,6 +272,9 @@ export default { }, sitesList () { this.getAllsites() + }, + filterSettings () { + this.siteClick(this.site) } }, methods: { @@ -284,10 +290,9 @@ export default { this.classList = [] this.type = {} this.getClass().then(res => { - if (res) { - this.show.class = true - this.infiniteId += 1 - } + this.show.class = true + this.infiniteId += 1 + this.classClick(this.classList[0]) }) } }, @@ -464,10 +469,10 @@ export default { if (this.view === 'Film') { if (this.setting.view === 'picture') { this.$refs.filmWaterfall.refresh() + this.getPage().then(() => { + this.infiniteId += 1 + }) } - this.getPage().then(() => { - this.infiniteId += 1 - }) } }, getAllSearch () { diff --git a/src/components/Setting.vue b/src/components/Setting.vue index 2b77509..4c7b75b 100644 --- a/src/components/Setting.vue +++ b/src/components/Setting.vue @@ -87,9 +87,6 @@
屏蔽主分类
-
- 屏蔽福利片 -
@@ -270,10 +267,6 @@ export default { this.d.searchAllSites = !this.d.searchAllSites this.updateSettingEvent() }, - toggleExcludeR18Films () { - this.d.excludeR18Films = !this.d.excludeR18Films - this.updateSettingEvent() - }, toggleExcludeRootClasses () { this.d.excludeRootClasses = !this.d.excludeRootClasses this.updateSettingEvent() diff --git a/src/lib/element/index.js b/src/lib/element/index.js index ceacc31..8bf727b 100644 --- a/src/lib/element/index.js +++ b/src/lib/element/index.js @@ -1,5 +1,5 @@ import Vue from 'vue' -import { Message, Button, Table, TableColumn, Tag, Input, Dialog, Form, FormItem, Switch, Select, Option } from 'element-ui' +import { Message, Button, Table, TableColumn, Tag, Input, Dialog, Form, FormItem, Switch, Select, Option, Checkbox } from 'element-ui' import Plugin from 'v-fit-columns' Vue.use(Button) Vue.use(Table) @@ -13,4 +13,5 @@ Vue.use(Switch) Vue.use(Plugin) Vue.use(Select) Vue.use(Option) +Vue.use(Checkbox) Vue.prototype.$message = Message