WIP Набросала отображение данных

This commit is contained in:
Daria Golova
2023-05-15 18:44:43 +03:00
parent c480b016e3
commit 7d399645d7
4 changed files with 85 additions and 15 deletions

View File

@@ -611,7 +611,28 @@ export const protocolForms = [
2 — налет поражает до 2/3 зуба, отмечается поддесневой камень;
3 — налет покрывает более 2/3 поверхности, поддесневой камень поражает шейки зубов.`,
whitespace: true,
list: [0, 1, 2, 3],
list: [
{
label: "0",
value: 0,
},
{
label: "1",
value: 1,
},
{
label: "2",
value: 2,
icon: true,
color: "var(--bg-event-orange-color)",
},
{
label: "3",
value: 3,
icon: true,
color: "var(--border-red-color)",
},
],
},
},
{
@@ -627,6 +648,12 @@ export const protocolForms = [
whitespace: true,
},
rules: [(val) => val <= 10 && val >= 0],
checkRangeColor: (val) => {
let roundedVal = parseInt(val);
if (roundedVal >= 3 && roundedVal <= 5)
return "var(--bg-event-orange-color)";
if (roundedVal >= 6 && roundedVal <= 10) return "var(--border-red-color)";
},
},
{
title: "Данные обследования",