Refactor rating display logic in RGangguan_RatingPerPosko.vue and RGangguan_RatingPerRegu.vue
This commit is contained in:
@ -464,7 +464,17 @@
|
|||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">Rating:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Rating:</h3>
|
||||||
<InputText :readonly="true" :value="dataSubSelected?.nilai_rating" class-name="flex-1" />
|
<InputText
|
||||||
|
:readonly="true"
|
||||||
|
:value="
|
||||||
|
parseInt(dataSubSelected?.nilai_rating)
|
||||||
|
? parseInt(dataSubSelected?.nilai_rating) > 0
|
||||||
|
? `${parseInt(dataSubSelected?.nilai_rating)} Bintang`
|
||||||
|
: `Tidak Ada Bintang`
|
||||||
|
: `Tidak Ada Bintang`
|
||||||
|
"
|
||||||
|
class-name="flex-1"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
@ -456,7 +456,17 @@
|
|||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
<h3 class="text-sm font-medium w-[135px] text-gray-800">Rating:</h3>
|
<h3 class="text-sm font-medium w-[135px] text-gray-800">Rating:</h3>
|
||||||
<InputText :readonly="true" :value="dataSubSelected?.nilai_rating" class-name="flex-1" />
|
<InputText
|
||||||
|
:readonly="true"
|
||||||
|
:value="
|
||||||
|
parseInt(dataSubSelected?.nilai_rating)
|
||||||
|
? parseInt(dataSubSelected?.nilai_rating) > 0
|
||||||
|
? `${parseInt(dataSubSelected?.nilai_rating)} Bintang`
|
||||||
|
: `Tidak Ada Bintang`
|
||||||
|
: `Tidak Ada Bintang`
|
||||||
|
"
|
||||||
|
class-name="flex-1"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex flex-row items-center justify-between w-full">
|
<div class="flex flex-row items-center justify-between w-full">
|
||||||
|
Reference in New Issue
Block a user