Commit c60b4974 by 前端

tab切换调整

1 parent c5f9601e
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
<el-tabs v-model="activeName" @tab-click="handleTabClick"> <el-tabs v-model="activeName" @tab-click="handleTabClick">
<el-tab-pane <el-tab-pane
:label="'全部' + '(' + listCount.totalCount + ')'" :label="'全部' + '(' + listCount.totalCount + ')'"
name="" name="first"
></el-tab-pane> ></el-tab-pane>
<el-tab-pane <el-tab-pane
:label="'未发布' + '(' + listCount.draftCount + ')'" :label="'未发布' + '(' + listCount.draftCount + ')'"
...@@ -167,6 +167,7 @@ const sceneOption = [ ...@@ -167,6 +167,7 @@ const sceneOption = [
}, },
] ]
const statusNum = { const statusNum = {
ALL: '',
UNPUBLISH: '1', UNPUBLISH: '1',
PUBLISHED: '2', PUBLISHED: '2',
FINISHIED: '3', FINISHIED: '3',
...@@ -259,7 +260,7 @@ export default { ...@@ -259,7 +260,7 @@ export default {
// 获取订单列表 // 获取订单列表
getListApi: taskApi.findMissionList, getListApi: taskApi.findMissionList,
status: false, status: false,
activeName: '', activeName: 'first',
} }
}, },
mounted() { mounted() {
...@@ -288,11 +289,12 @@ export default { ...@@ -288,11 +289,12 @@ export default {
} }
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskTable.refreshTable() this.$refs.taskTable.refreshTable()
this.activeName = 'first'
}) })
}, },
// tab切换 // tab切换
handleTabClick(tab, event) { handleTabClick(tab, event) {
this.searchForm.activityStatus = tab.name this.searchForm.activityStatus = tab.name == 'first' ? '' : tab.name
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.taskTable.refreshTable() 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!