Commit fcf9c54c authored by jingnan's avatar jingnan 👀

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

parent 5b0e892d
...@@ -107,8 +107,8 @@ export default { ...@@ -107,8 +107,8 @@ export default {
computed: { computed: {
tabs() { tabs() {
return this.activeTitle === '我的待办' ? [ return this.activeTitle === '我的待办' ? [
{ id: '批量签审', name: '批量签审' }, { id: this.activeTitle, name: '单个签审' },
{ id: this.activeTitle, name: '单个签审' } { id: '批量签审', name: '批量签审' }
] : [{ id: this.activeTitle, name: this.activeTitle }] ] : [{ id: this.activeTitle, name: this.activeTitle }]
} }
}, },
...@@ -117,9 +117,7 @@ export default { ...@@ -117,9 +117,7 @@ export default {
// 初始化数据 // 初始化数据
}, },
mounted() { mounted() {
// this.$nextTick(() => { this.tabClick({ label: '单个签审' })
// this.$refs.myTask && this.$refs.myTask.getTasks(1, '我的待办')
// })
}, },
methods: { methods: {
tabClick(val) { tabClick(val) {
...@@ -136,6 +134,8 @@ export default { ...@@ -136,6 +134,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
if (title === '已办任务') { if (title === '已办任务') {
this.$refs.myTask.getTasks(1, this.activeTitle) 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