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