|
@@ -183,14 +183,14 @@ export default {
|
|
...mapState(['hasLogin'])
|
|
...mapState(['hasLogin'])
|
|
},
|
|
},
|
|
onShow() {
|
|
onShow() {
|
|
- if(this.hasLogin){
|
|
|
|
|
|
+ // if(this.hasLogin){
|
|
this.userInfo = uni.getStorageSync('userInfo')
|
|
this.userInfo = uni.getStorageSync('userInfo')
|
|
this.pageInfo.userId = this.userInfo.userId
|
|
this.pageInfo.userId = this.userInfo.userId
|
|
this.participate.userId = this.userInfo.userId
|
|
this.participate.userId = this.userInfo.userId
|
|
this.procurementAllList()
|
|
this.procurementAllList()
|
|
- }else{
|
|
|
|
- this.$api.redirectTo('/pages/login/login')
|
|
|
|
- }
|
|
|
|
|
|
+ // }else{
|
|
|
|
+ // this.$api.redirectTo('/pages/login/login')
|
|
|
|
+ // }
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
uni.$on('refreshAddData', () => {
|
|
uni.$on('refreshAddData', () => {
|
|
@@ -206,6 +206,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onPullDownRefresh() {
|
|
onPullDownRefresh() {
|
|
|
|
+ this.isLastPage = false
|
|
this.procurementList = []
|
|
this.procurementList = []
|
|
this.procurementAllList()
|
|
this.procurementAllList()
|
|
uni.stopPullDownRefresh()
|
|
uni.stopPullDownRefresh()
|
|
@@ -354,7 +355,7 @@ export default {
|
|
// 删除 退出
|
|
// 删除 退出
|
|
async procurementUpdate(type, id) {
|
|
async procurementUpdate(type, id) {
|
|
const form = {
|
|
const form = {
|
|
- id: `${this.proDataInfo.sid}`,
|
|
|
|
|
|
+ id: `${type === 0 ? this.proDataInfo.id : this.proDataInfo.sid}`,
|
|
userId: this.userInfo.userId,
|
|
userId: this.userInfo.userId,
|
|
procurementType: type
|
|
procurementType: type
|
|
}
|
|
}
|