From 3764384504fe6f7fae722ca898c6e7e790315898 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Mon, 14 Sep 2020 11:09:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A7=E8=81=94=E8=8F=9C=E5=8D=95BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/honest/newshonest-list.vue | 15 ++++++++++----- src/views/modules/honest/newshonest.vue | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/src/views/modules/honest/newshonest-list.vue b/src/views/modules/honest/newshonest-list.vue index 8d1dcdc..f28b7b5 100644 --- a/src/views/modules/honest/newshonest-list.vue +++ b/src/views/modules/honest/newshonest-list.vue @@ -33,7 +33,7 @@ placeholder="新闻栏目" @change="resetPage" clearable> @@ -115,8 +115,11 @@ export default { deleteIsBatch: true }, dataForm: { - id: '', - newsUpDownState: '' + newsTitle: '', + businessId: '', + newsCateroryId: '', + newsSubCateroryId: '', + newsApprovalState: '' }, approvalOptions: [ { @@ -149,6 +152,7 @@ export default { }, businessChange (item) { this.resetPage() + this.dataForm.newsCateroryId = '' // 类别 this.$http .get(`/news/newssection/options/` + item) @@ -165,15 +169,16 @@ export default { }, categoryChange (item) { this.resetPage() + this.dataForm.newsSubCateroryId = '' // 类别 this.$http - .get(`/news/newssection/options/` + item) + .get(`/news/newssection/suboptions/` + item) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } this.loading = false - this.newsCateroryIds = res.data + this.newsSubCateroryIds = res.data }) .catch(() => { this.loading = false diff --git a/src/views/modules/honest/newshonest.vue b/src/views/modules/honest/newshonest.vue index e1ee52e..abe100b 100644 --- a/src/views/modules/honest/newshonest.vue +++ b/src/views/modules/honest/newshonest.vue @@ -33,7 +33,7 @@ placeholder="新闻栏目" @change="resetPage" clearable> @@ -106,8 +106,11 @@ export default { deleteIsBatch: true }, dataForm: { - id: '', - newsUpDownState: '' + newsTitle: '', + businessId: '', + newsCateroryId: '', + newsSubCateroryId: '', + newsApprovalState: '' }, reviewVisible: false, newsCateroryIds: [], @@ -129,6 +132,7 @@ export default { }, businessChange (item) { this.resetPage() + this.dataForm.newsCateroryId = '' // 类别 this.$http .get(`/news/newssection/options/` + item) @@ -145,15 +149,16 @@ export default { }, categoryChange (item) { this.resetPage() + this.dataForm.newsSubCateroryId = '' // 类别 this.$http - .get(`/news/newssection/options/` + item) + .get(`/news/newssection/suboptions/` + item) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } this.loading = false - this.newsCateroryIds = res.data + this.newsSubCateroryIds = res.data }) .catch(() => { this.loading = false