feat: 수뇌인 경우 하늘색

This commit is contained in:
2022-04-08 01:56:31 +09:00
parent aec4d7a3f3
commit d9cdd50f9f
+3
View File
@@ -578,6 +578,9 @@ const columnRawDefs = ref<Partial<Record<headerType, GenColDef | GenColGroupDef>
sortable: true,
comparator: (a, b, c, d) => c.data.officerLevel - d.data.officerLevel,
cellRenderer: ({ data }: GenValueParams) => {
if(data.officerLevel >= 5){
return `<span style="color:cyan;">${data.officerLevelText}</span>`;
}
if (data.st2 && 2 <= data.officerLevel && data.officerLevel <= 4) {
const cityName = gameConstStore.value.cityConst[data.officer_city].name;
return `${cityName}<br>${data.officerLevelText}`;