|
@@ -53,7 +53,7 @@
|
|
<div class="j-main havefomain" ref="jList">
|
|
<div class="j-main havefomain" ref="jList">
|
|
<div class="claim-main" style="width:100%;background: #fff;">
|
|
<div class="claim-main" style="width:100%;background: #fff;">
|
|
<div class="claim-scree">
|
|
<div class="claim-scree">
|
|
- <van-tabs @change="getProjectList" v-model="active" color="#2ABED1">
|
|
|
|
|
|
+ <van-tabs v-model="active" color="#2ABED1">
|
|
<van-tab title="全部">
|
|
<van-tab title="全部">
|
|
<van-list
|
|
<van-list
|
|
v-model="loading"
|
|
v-model="loading"
|
|
@@ -353,10 +353,10 @@
|
|
if(res.data.names.length !== listcopy.length) {
|
|
if(res.data.names.length !== listcopy.length) {
|
|
_this.noClaimList = newarr
|
|
_this.noClaimList = newarr
|
|
} else {
|
|
} else {
|
|
- _this.noClaimList = []
|
|
|
|
|
|
+ _this.noClaimList = _this.list
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
- _this.noClaimList = []
|
|
|
|
|
|
+ _this.noClaimList = _this.list
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -373,6 +373,7 @@
|
|
},
|
|
},
|
|
// 关注、认领
|
|
// 关注、认领
|
|
changeFollowState (data, str, taglid, tag) {
|
|
changeFollowState (data, str, taglid, tag) {
|
|
|
|
+ this.loading = true
|
|
let params = {
|
|
let params = {
|
|
"name": data.name, //采购单位名称
|
|
"name": data.name, //采购单位名称
|
|
"province": data.province || data.wProvince, //省份
|
|
"province": data.province || data.wProvince, //省份
|
|
@@ -398,11 +399,11 @@
|
|
if(data.claim) {
|
|
if(data.claim) {
|
|
this.ajaxClaim(params)
|
|
this.ajaxClaim(params)
|
|
} else {
|
|
} else {
|
|
- this.ajaxClaim(params)
|
|
|
|
- // if (vKeepComponent) {
|
|
|
|
- // vKeepComponent.changeBid(data.name, !data.claim)
|
|
|
|
- // // vKeepComponent.changeKeepStatus(!data.claim, this)
|
|
|
|
- // }
|
|
|
|
|
|
+ // this.ajaxClaim(params)
|
|
|
|
+ if (vKeepComponent) {
|
|
|
|
+ vKeepComponent.changeBid(data.name, !data.claim)
|
|
|
|
+ // vKeepComponent.changeKeepStatus(!data.claim, this)
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -415,12 +416,16 @@
|
|
contentType: 'application/json',
|
|
contentType: 'application/json',
|
|
data: JSON.stringify(params),
|
|
data: JSON.stringify(params),
|
|
success: (res) => {
|
|
success: (res) => {
|
|
|
|
+ _this.loading = false
|
|
console.log(res)
|
|
console.log(res)
|
|
if(res.data) {
|
|
if(res.data) {
|
|
_this.getProjectList()
|
|
_this.getProjectList()
|
|
} else {
|
|
} else {
|
|
_this.$toast('取消认领失败')
|
|
_this.$toast('取消认领失败')
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ error: function(err) {
|
|
|
|
+ _this.loading = false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|