Browse Source

fix:初核时间状态显示

feature/tsjb-1.0
parent
commit
e954f4a49e
  1. 24
      src/components/negative/verify-sfss.vue

24
src/components/negative/verify-sfss.vue

@ -20,7 +20,8 @@
> >
</h5> </h5>
<el-form-item label="初核剩余时限" style="margin-top: 8px"> <el-form-item label="初核剩余时限" style="margin-top: 8px">
<countdown :time="initialRemainingDuration" /> <countdown :time="initialRemainingDuration" v-if="showInitialCountdown" />
<span v-else class="initial-status-text" :class="{ danger: gwf3 === '2' }">{{ initialStatusLabel }}</span>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="初核工作开展情况" label="初核工作开展情况"
@ -240,6 +241,7 @@ watchEffect(() => {
"businessType", "businessType",
"yesNo", "yesNo",
"handleMethodType", "handleMethodType",
"initialStatus",
]) || {}, ]) || {},
props.extraDict || {} props.extraDict || {}
); );
@ -291,6 +293,18 @@ const isInitialStage = computed(() => {
const initialRemainingDuration = computed(() => const initialRemainingDuration = computed(() =>
currentRow.value?.remainingDuration currentRow.value?.remainingDuration
); );
const gwf3 = computed(() => currentRow.value?.gwf3);
const showInitialCountdown = computed(() =>
!gwf3.value || gwf3.value === '0'
);
const initialStatusLabel = computed(() => {
if (!gwf3.value || gwf3.value === '0') return '';
const item = dict.initialStatus?.find(d => d.dictValue === gwf3.value);
return item?.dictLabel || '';
});
const showPetitionFields = computed(() => const showPetitionFields = computed(() =>
[ [
ProblemSources.GJXFPT, ProblemSources.GJXFPT,
@ -535,4 +549,12 @@ span {
.repeat-btn { .repeat-btn {
padding: 0; padding: 0;
} }
.initial-status-text {
color: var(--el-color-success);
}
.initial-status-text.danger {
color: var(--el-color-danger);
}
</style> </style>

Loading…
Cancel
Save