|
@@ -26,6 +26,10 @@ export default {
|
|
|
immediate: true
|
|
|
}
|
|
|
},
|
|
|
+ deactivated() {
|
|
|
+ this.enterpriseDetail = {}
|
|
|
+ this.active = 0
|
|
|
+ },
|
|
|
methods: {
|
|
|
/* 获取企业详情 */
|
|
|
async handleGetEnterpriseDetail() {
|
|
@@ -53,20 +57,21 @@ export default {
|
|
|
</view>
|
|
|
<view class="page-content">
|
|
|
<ScoreList :creditScore="enterpriseDetail.creditGoal" :commitmentNum="enterpriseDetail.promiseCount"
|
|
|
- :commitmentRemindNum="enterpriseDetail.creditGoal"></ScoreList>
|
|
|
+ :commitmentRemindNum="enterpriseDetail.warnCount"></ScoreList>
|
|
|
<van-tabs v-model="active">
|
|
|
- <van-tab title="全部承诺">
|
|
|
+ <van-tab title="全部承诺">
|
|
|
<PromiseList
|
|
|
+ v-if="active === 0"
|
|
|
class="promise-style"
|
|
|
:company-id="enterpriseDetail.uuid"
|
|
|
:show-status="true"
|
|
|
></PromiseList>
|
|
|
</van-tab>
|
|
|
<van-tab title="整改提醒">
|
|
|
- <RemindList v-if="enterpriseDetail.uuid" :type="0" :company-id="enterpriseDetail.uuid"></RemindList>
|
|
|
+ <RemindList v-if="enterpriseDetail.uuid && active === 1" :type="0" :company-id="enterpriseDetail.uuid"></RemindList>
|
|
|
</van-tab>
|
|
|
<van-tab title="系统提醒">
|
|
|
- <RemindList v-if="enterpriseDetail.uuid" :type="1" :company-id="enterpriseDetail.uuid"></RemindList>
|
|
|
+ <RemindList v-if="enterpriseDetail.uuid && active === 2" :type="1" :company-id="enterpriseDetail.uuid"></RemindList>
|
|
|
</van-tab>
|
|
|
</van-tabs>
|
|
|
</view>
|