|
@@ -19,7 +19,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 内容 -->
|
|
|
- <view class="strategy" v-if="strategyIndex == 4">
|
|
|
+ <view class="strategy" v-if="strategyIndex >= 4">
|
|
|
<view class="tab-cont-two">
|
|
|
<block v-for="(item, index) in tabBarsTow" :key="item.CategoryId">
|
|
|
<view :id="'__' + index" class="scroll-tab-item" :class="{ active: tabAct_idTwo == item.CategoryId }" @click.stop="toggleTabTwo(item, index)">
|
|
@@ -244,7 +244,9 @@ export default {
|
|
|
},
|
|
|
//获取二级事件
|
|
|
getstrategyAll() {
|
|
|
- Reports.getstrategyAll().then((res) => {
|
|
|
+ Reports.getstrategyAll({
|
|
|
+ ChartPermissionId: this.tabAct_id,
|
|
|
+ }).then((res) => {
|
|
|
this.tabBarsTow = res.Data.List;
|
|
|
if (!this.tabAct_idTwo) {
|
|
|
this.tabAct_idTwo = res.Data.List[0].CategoryId;
|
|
@@ -255,8 +257,10 @@ export default {
|
|
|
//tabs切换事件
|
|
|
toggleTab(item, index) {
|
|
|
this.strategyIndex = index;
|
|
|
+ this.tabAct_idTwo = "";
|
|
|
this.deepCoverFocus = [];
|
|
|
this.labelListData = [];
|
|
|
+ this.tabBarsTow = [];
|
|
|
if (this.tabAct_id !== item.ChartPermissionId) {
|
|
|
this.tabAct_id = item.ChartPermissionId;
|
|
|
this.$store.dispatch("statistics", {
|
|
@@ -400,7 +404,7 @@ export default {
|
|
|
this.getIndustryList();
|
|
|
this.getTradeList();
|
|
|
}
|
|
|
- this.strategyIndex == 4 ? this.getstrategyAll() : (this.tabAct_idTwo = "");
|
|
|
+ this.strategyIndex >= 4 && this.getstrategyAll();
|
|
|
this.isNum = 1;
|
|
|
},
|
|
|
/* 页面加载 */
|
|
@@ -574,7 +578,7 @@ export default {
|
|
|
}
|
|
|
.second-tabs {
|
|
|
width: 100%;
|
|
|
- padding-left: 30rpx;
|
|
|
+ padding-left: 30rpx;
|
|
|
display: flex;
|
|
|
overflow-x: auto;
|
|
|
background-color: #fff;
|