Commit c60b4974 by 前端

tab切换调整

1 parent c5f9601e
......@@ -53,7 +53,7 @@
<el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane
:label="'全部' + '(' + listCount.totalCount + ')'"
name=""
name="first"
></el-tab-pane>
<el-tab-pane
:label="'未发布' + '(' + listCount.draftCount + ')'"
......@@ -167,6 +167,7 @@ const sceneOption = [
},
]
const statusNum = {
ALL: '',
UNPUBLISH: '1',
PUBLISHED: '2',
FINISHIED: '3',
......@@ -259,7 +260,7 @@ export default {
// 获取订单列表
getListApi: taskApi.findMissionList,
status: false,
activeName: '',
activeName: 'first',
}
},
mounted() {
......@@ -288,11 +289,12 @@ export default {
}
this.$nextTick(() => {
this.$refs.taskTable.refreshTable()
this.activeName = 'first'
})
},
// tab切换
handleTabClick(tab, event) {
this.searchForm.activityStatus = tab.name
this.searchForm.activityStatus = tab.name == 'first' ? '' : tab.name
this.$nextTick(() => {
this.$refs.taskTable.refreshTable()
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!