feat: 修改接口报错登出问题,优化切换数据刷新问题
This commit is contained in:
@@ -511,7 +511,13 @@
|
||||
modelId,
|
||||
isPreview = '0',
|
||||
id = '',
|
||||
current,
|
||||
tabCurrent
|
||||
} = config
|
||||
console.log(tabCurrent !== undefined,'判断11111111')
|
||||
if(tabCurrent !== undefined){
|
||||
uni.setStorageSync('fromNonTabBar', tabCurrent);
|
||||
}
|
||||
const formPermissionList =[]
|
||||
Object.assign(this, {
|
||||
userInfo: uni.getStorageSync('userInfo') || {},
|
||||
|
||||
@@ -66,6 +66,10 @@
|
||||
type: [String, Number],
|
||||
default: '0'
|
||||
},
|
||||
current: {
|
||||
type: [String, Number],
|
||||
default: '0'
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@@ -100,7 +104,8 @@
|
||||
id: businessId,
|
||||
name: name,
|
||||
btnType: 'btn_process',
|
||||
current: this.category
|
||||
current: this.category,
|
||||
tabCurrent: this.current
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: '/pages/apply/dynamicModelList/form?config=' +
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</view>
|
||||
<mescroll-body ref="mescrollRef" @init="mescrollInit" @down="downCallback" @up="upCallback" :down="downOption"
|
||||
:up="upOption" :top="mescrollTop">
|
||||
<flowlist :list='list' :swipeAction='current != 3' :category='category' />
|
||||
<flowlist :list='list' :swipeAction='current != 3' :category='category' :current='current' />
|
||||
</mescroll-body>
|
||||
</view>
|
||||
</template>
|
||||
@@ -76,12 +76,18 @@
|
||||
onShow() {
|
||||
const fromNonTabBar = uni.getStorageSync('fromNonTabBar');
|
||||
console.log(fromNonTabBar,'fromNonTabBar---')
|
||||
this.current = fromNonTabBar && Number(fromNonTabBar)
|
||||
// if(!fromNonTabBar){
|
||||
// this.current = 1
|
||||
// }else {
|
||||
// this.current = 0
|
||||
// }
|
||||
if(fromNonTabBar == ''){
|
||||
this.current = 1
|
||||
this.category = '2'
|
||||
}else {
|
||||
this.current = Number(fromNonTabBar)
|
||||
this.category = Number(fromNonTabBar) + 1+''
|
||||
}
|
||||
const page = {
|
||||
num : 1,
|
||||
size: 20
|
||||
}
|
||||
this.upCallback(page)
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
uni.$off('operate')
|
||||
uni.$on('refresh', () => {
|
||||
@@ -91,6 +97,10 @@
|
||||
},
|
||||
onUnload() {
|
||||
uni.$off('refresh')
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
},
|
||||
onHide() {
|
||||
uni.removeStorageSync('fromNonTabBar');
|
||||
},
|
||||
methods: {
|
||||
getFlowStatus(status) {
|
||||
|
||||
Reference in New Issue
Block a user