feat: 修改首页赋值逻辑
This commit is contained in:
@@ -47,10 +47,10 @@
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
flowList: {
|
||||
type: Array,
|
||||
default: () => []
|
||||
},
|
||||
// flowList: {
|
||||
// type: Array,
|
||||
// default: () => []
|
||||
// },
|
||||
showAdd: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -94,20 +94,19 @@
|
||||
menuList: {
|
||||
handler(val) {
|
||||
console.log(this.current,'this.current---')
|
||||
console.log(this.flowList,'this.flowList---')
|
||||
if (this.current != 0) this.cardData = this.flowList
|
||||
},
|
||||
immediate: true
|
||||
},
|
||||
flowList: {
|
||||
handler(val) {
|
||||
console.log(this.current,'this.current---')
|
||||
console.log(this.menuList,'this.menuList---')
|
||||
// if (this.current == 0) this.cardData = this.menuList
|
||||
this.cardData = this.menuList
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
// flowList: {
|
||||
// handler(val) {
|
||||
// console.log(this.current,'this.current---')
|
||||
// console.log(this.menuList,'this.menuList---')
|
||||
// // if (this.current == 0) this.cardData = this.menuList
|
||||
// this.cardData = this.menuList
|
||||
// },
|
||||
// immediate: true
|
||||
// }
|
||||
},
|
||||
created() {
|
||||
this.userInfo = uni.getStorageSync('userInfo') || {}
|
||||
@@ -124,8 +123,9 @@
|
||||
},
|
||||
tabChange(index) {
|
||||
this.current = index;
|
||||
if (this.tabType === 'menu') this.cardData = this.menuList
|
||||
if (this.tabType === 'flow') this.cardData = this.flowList
|
||||
// if (this.tabType === 'menu')
|
||||
this.cardData = this.menuList
|
||||
// if (this.tabType === 'flow') this.cardData = this.flowList
|
||||
},
|
||||
clickItem(item) {
|
||||
this.$emit('launch', {
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
:menuList="homeData.commonUseMenuList || []" @launch="launch" v-if="homeData.commonUseEnable"
|
||||
@openPage="openPage" :flowEnabled="homeData.flowEnabled" /> -->
|
||||
|
||||
<CommonPaneSys title="应用功能" :flowList="[]" type="common"
|
||||
<CommonPaneSys title="应用功能" type="common"
|
||||
:menuList="homeData || []" @launch="launch" v-if="homeData"
|
||||
@openPage="openPage" />
|
||||
<view class="todo-list-wrap">
|
||||
@@ -100,12 +100,12 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="empty-container" v-else>
|
||||
<!-- <view>
|
||||
<view>
|
||||
<image
|
||||
class="empty-icon"
|
||||
src="https://app.cdn.jnpfsoft.com/image/message/nodata.png"
|
||||
mode="widthFix"
|
||||
/></view> -->
|
||||
/></view>
|
||||
<text class="empty-tip">暂无数据</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user