like hai 7 meses
pai
achega
79850f59e0
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      snowy-admin-web/src/views/motoring/report/list.vue

+ 6 - 5
snowy-admin-web/src/views/motoring/report/list.vue

@@ -37,15 +37,16 @@
 			<template #bodyCell="{ column, record }">
 				<template v-if="column.dataIndex === 'clzt'">
 					<span style="cursor: pointer">
-						<a-tag
-							:color="record.clzt == '1' ? '#cd201f' : record.clzt == '2' ? '#2db7f5' : '#87d068'"
-							@click="formRef.onOpen(record)"
-						>
+						<a-tag color="#cd201f" v-if="record.clzt == '1'" @click="formRef.onOpen(record)">
 							<template #icon>
-								<form-outlined v-if="record.clzt == '1'" />
+								<form-outlined />
 							</template>
 							{{ record.clztValue }}
 						</a-tag>
+
+						<a-tag v-else-if="record.clzt == '2'" color="#2db7f5">
+							{{ record.clztValue }}
+						</a-tag>
 					</span>
 				</template>
 			</template>