|
|
@@ -72,11 +72,7 @@ |
|
|
|
</template> |
|
|
|
<span |
|
|
|
class="pointer" |
|
|
|
v-if=" |
|
|
|
!canEdit && |
|
|
|
companyInfo.claimState.text === '未认领' && |
|
|
|
!(currentAccount && currentAccount.claimCompany) |
|
|
|
" |
|
|
|
v-if="isShowSetClaim()" |
|
|
|
@click="setClaimDialog" |
|
|
|
> |
|
|
|
<img src="@assets/image/company/icon_claim.png" alt="认领" /> |
|
|
@@ -256,7 +252,16 @@ export default { |
|
|
|
}); |
|
|
|
// location.href = `#content${this.activeTab}`; |
|
|
|
}, |
|
|
|
|
|
|
|
// 是否显示认领按钮 |
|
|
|
isShowSetClaim(){ |
|
|
|
// 默认不显示 |
|
|
|
let flag = false; |
|
|
|
// console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
if(this.companyInfo && this.companyInfo.claimState && this.companyInfo.claimState.text == '未认领'){ |
|
|
|
flag = true; |
|
|
|
} |
|
|
|
return flag; |
|
|
|
}, |
|
|
|
getData() { |
|
|
|
let params = { |
|
|
|
companyId: this.companyId, |
|
|
@@ -282,7 +287,7 @@ export default { |
|
|
|
}, |
|
|
|
setClaimDialog() { |
|
|
|
// 是否登录 |
|
|
|
console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
// console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
if (!this.currentAccount) { |
|
|
|
this.$router.push("/login"); |
|
|
|
} |
|
|
@@ -324,7 +329,7 @@ export default { |
|
|
|
}, |
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素) |
|
|
|
mounted() { |
|
|
|
console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
// console.log(this.currentAccount, "this.currentAccount"); |
|
|
|
}, |
|
|
|
}; |
|
|
|
</script> |