|
@@ -196,10 +196,12 @@ import { bannerupload, getchapterTypeList,editChapterType } from 'api/api.js';
|
|
|
export default {
|
|
|
components: { mDialog },
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
- if (to.query.reportType == 'day') {
|
|
|
+ if (to.query.reportType === 'day') {
|
|
|
to.matched[1].name = '晨报章节设置'
|
|
|
- } else {
|
|
|
+ } else if(to.query.reportType === 'week') {
|
|
|
to.matched[1].name = '周报章节设置'
|
|
|
+ }else {
|
|
|
+ to.matched[1].name = '章节设置'
|
|
|
}
|
|
|
next()
|
|
|
},
|
|
@@ -222,7 +224,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
async getList() {
|
|
|
- getchapterTypeList({ ReportType: this.$route.query.reportType == 'week' ? 'week' : 'day' }).then(res => {
|
|
|
+ getchapterTypeList({ ClassifyId:Number(this.$route.query.id) }).then(res => {
|
|
|
if (res.Ret === 200) {
|
|
|
this.list = res.Data.List || []
|
|
|
}
|