导航、分切暂存清除、空木箱入库修改
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row relative jcflexstart tabs_wrap">
|
||||
<view class="zd-col-6 tab_active" :style="{'left': tab === 2 ? '25%' : '0'}">
|
||||
<view class="zd-col-6 tab_active" :style="{'left': (menuList1.length > 0 && menuList2.length > 0 && tab === 2) ? '25%' : '0'}">
|
||||
<view class="tab_line_active"></view>
|
||||
</view>
|
||||
<view class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 1}" @tap="changeTab(1)">一期</view>
|
||||
<view class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 2}" @tap="changeTab(2)">二期</view>
|
||||
<view v-if="menuList1.length > 0" class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 1}" @tap="changeTab(1)">一期</view>
|
||||
<view v-if="menuList2.length > 0" class="zd-col-6 tab_item" :class="{'tab_item_active': tab === 2}" @tap="changeTab(2)">二期</view>
|
||||
</view>
|
||||
<view class="zd_home_wrapper">
|
||||
<view class="menu-wrap">
|
||||
@@ -69,8 +69,16 @@
|
||||
async _authority () {
|
||||
let res = await authority()
|
||||
if (res.code === '1') {
|
||||
this.menuList1 = [...res.result.rf_menu0.sonTree]
|
||||
this.menuList2 = [...res.result.rf_menu1.sonTree]
|
||||
if (res.result.hasOwnProperty('rf_menu0')) {
|
||||
this.menuList1 = [...res.result.rf_menu0.sonTree]
|
||||
} else {
|
||||
this.tab = 2
|
||||
}
|
||||
if (res.result.hasOwnProperty('rf_menu1')) {
|
||||
this.menuList2 = [...res.result.rf_menu1.sonTree]
|
||||
} else {
|
||||
this.tab = 1
|
||||
}
|
||||
if (this.tab === 2) {
|
||||
this.menuList = [...this.menuList2]
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user