Commit 84f717bc by 胡悦

修复

1 parent 391c24ac
......@@ -280,7 +280,7 @@ export default {
&-value {
position: absolute;
left: 0;
top: toRpx(32);
top: toRpx(36);
height: toRpx(12);
border-radius: toRpx(8);
opacity: 1;
......
......@@ -22,7 +22,7 @@
<view class="item-info-label">当前状态</view>
<view :class="['item-info-value', item.status === 5 ? 'green' : 'orange']">
<view v-if="item.status !== 5" class="dot-value"></view>
{{ item.status !== 5 ? `${statusMap[item.status]}(${(item.progress * 100) || 0}%)` : '已完成' }}
{{ item.status !== 5 ? `${statusMap[item.status]}(${item.progress === 0 ? 0 : item.progress}%)` : '已完成' }}
</view>
</view>
<view class="item-info">
......
......@@ -69,7 +69,7 @@
<view class="item-info-label">当前状态</view>
<view :class="['item-info-value', item.status === 5 ? 'green' : 'orange']">
<view class="dot-value" :class="item.status === 5 ? 'green' : 'orange'"></view>
{{ item.status !== 5 ? `${statusMap[item.status]}(${(item.progress * 100) || 0}%)` : '已完成' }}
{{ item.status !== 5 ? `${statusMap[item.status]}(${item.progress === 0 ? 0 : item.progress}%)` : '已完成' }}
</view>
</view>
<view class="item-info">
......
......@@ -165,9 +165,9 @@
</template>
<template v-else>
<view
:class="['check-result-btn', item.tagName == '服务意识' ? 'disabled' : '']"
:class="['check-result-btn', item.examStatus == 0 ? 'disabled' : '']"
@click="handleExam(item)"
>{{item.tagName == '服务意识' ? '无需考核' : '去考核'}}</view>
>{{item.examStatus == 0 ? '无需考核' : '去考核'}}</view>
</template>
</view>
</view>
......@@ -450,7 +450,7 @@ export default {
},
async handleExam (item) {
console.log(item, '===')
if (item.tagName == '服务意识') {
if (item.examStatus == 0) {
return
}
const { checkDate } = this.rowData
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!