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