Commit fcf9c54c authored by jingnan's avatar jingnan 👀

首页左侧任务默认展示单个页签

parent 5b0e892d
......@@ -107,8 +107,8 @@ export default {
computed: {
tabs() {
return this.activeTitle === '我的待办' ? [
{ id: '批量签审', name: '批量签审' },
{ id: this.activeTitle, name: '单个签审' }
{ id: this.activeTitle, name: '单个签审' },
{ id: '批量签审', name: '批量签审' }
] : [{ id: this.activeTitle, name: this.activeTitle }]
}
},
......@@ -117,9 +117,7 @@ export default {
// 初始化数据
},
mounted() {
// this.$nextTick(() => {
// this.$refs.myTask && this.$refs.myTask.getTasks(1, '我的待办')
// })
this.tabClick({ label: '单个签审' })
},
methods: {
tabClick(val) {
......@@ -136,6 +134,8 @@ export default {
this.$nextTick(() => {
if (title === '已办任务') {
this.$refs.myTask.getTasks(1, this.activeTitle)
} else {
this.tabClick({ label: '单个签审' })
}
})
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment