fix(richedit): 修复状态显示逻辑并优化删除状态处理

调整状态为1时的显示逻辑,增加对删除状态的判断
统一删除状态的显示位置,优化代码结构
This commit is contained in:
zzp 2025-09-28 14:21:43 +08:00
parent ce0fd7a792
commit d505686565
1 changed files with 6 additions and 4 deletions

View File

@ -161,13 +161,15 @@
<div class="r_point" :style="{ color: '#000' }">
<div class="point" :style="{ backgroundColor: scope.row.status == 2 ? '#52C41A' : '#D9D9D9' }"></div>
<text v-if="scope.row.status == 0" style="color: rgba(0, 0, 0, 0.65)">草稿</text>
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">未发布</text>
<text v-if="scope.row.status == 1" style="color: rgba(0, 0, 0, 0.65)">
{{ scope.row.deleted ? '已删除' : '未发布' }}
</text>
<text v-if="scope.row.status == 2" style="color: rgba(0, 0, 0, 0.65)">已发布</text>
<text v-if="scope.row.status == 3" style="color: rgba(0, 0, 0, 0.65)">审核中</text>
<text v-if="scope.row.status == 4" style="color: rgba(0, 0, 0, 0.65)">已二审</text>
<text v-if="scope.row.status == -1" style="color: red">
{{ scope.row.deleted ? '已删除' : '退改中' }}
</text>
<text v-if="scope.row.status == -1 && !scope.row.deleted" style="color: red"> 退改中 </text>
<text v-if="scope.row.status == -1 && scope.row.deleted"> 已删除 </text>
</div>
</template>
</el-table-column>