|
@@ -246,9 +246,10 @@ export default {
|
|
|
// 分类列表
|
|
|
tabs: [],
|
|
|
// 选中分类
|
|
|
- activeTab: '77',
|
|
|
+ activeTab: '1',
|
|
|
// 分类排序
|
|
|
tabIndex: 1,
|
|
|
+ categoryId: '77',
|
|
|
// 模板列表
|
|
|
module: [],
|
|
|
// 模板图
|
|
@@ -424,7 +425,7 @@ export default {
|
|
|
listAll().then(res => {
|
|
|
if (res.code === 0) {
|
|
|
this.tabs = res.data
|
|
|
- this.getModule(this.activeTab)
|
|
|
+ this.getModule(this.categoryId)
|
|
|
this.getTimeList()
|
|
|
}
|
|
|
})
|
|
@@ -432,12 +433,13 @@ export default {
|
|
|
|
|
|
// 切换分类
|
|
|
handleClick(e) {
|
|
|
- this.activeTab = this.tabs[e.index].id.toString()
|
|
|
- this.tabIndex = e.name
|
|
|
+ this.activeTab = e.name
|
|
|
+ this.tabIndex = Number(e.name)
|
|
|
+ this.categoryId = this.tabs[e.index].id
|
|
|
this.img = this.imgOptions[e.name]
|
|
|
this.active = 0
|
|
|
this.list = []
|
|
|
- this.getModule(this.activeTab)
|
|
|
+ this.getModule(this.categoryId)
|
|
|
},
|
|
|
|
|
|
// 模块列表
|
|
@@ -703,7 +705,8 @@ export default {
|
|
|
getAdd() {
|
|
|
this.list.push({
|
|
|
moduleId: this.module[this.active].id,
|
|
|
- childList: []
|
|
|
+ childList: [],
|
|
|
+ forwardType: null
|
|
|
})
|
|
|
},
|
|
|
|
|
@@ -918,6 +921,7 @@ export default {
|
|
|
|
|
|
// 列表
|
|
|
isList() {
|
|
|
+ console.log(this.tabIndex, this.active);
|
|
|
return this.tabIndex === 2 && this.active === 1
|
|
|
},
|
|
|
|