APPbug反馈修改
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
:fixed="true"
|
||||
status-bar
|
||||
left-icon="left"
|
||||
:rightIcon="userInfo.authorities == '2' ? '' : 'plusempty'"
|
||||
:rightIcon="
|
||||
userInfo.authorities === 'app_vip_user' || userInfo.authorities === 'engineering_user'
|
||||
? 'plusempty'
|
||||
: ''
|
||||
"
|
||||
background-color="#fff"
|
||||
color="#111"
|
||||
title="工程管理"
|
||||
@@ -50,17 +54,17 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
init() {
|
||||
this.userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
this.store = this.DataSource('/cs-device-boot/engineering/queryEngineeringPage')
|
||||
this.store.params.userId = uni.getStorageSync('userInfo').id
|
||||
this.store.reload()
|
||||
this.store.firstCallBack = (res) => {
|
||||
let engineering = uni.getStorageSync('engineering')
|
||||
if (!engineering) {
|
||||
uni.setStorageSync('engineering',this.store.data[0])
|
||||
}else{
|
||||
uni.setStorageSync('engineering', this.store.data[0])
|
||||
} else {
|
||||
this.store.data.forEach((item) => {
|
||||
if (item.id == engineering.id) {
|
||||
uni.setStorageSync('engineering',item)
|
||||
uni.setStorageSync('engineering', item)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user