DmitrMakeev
commited on
Commit
•
a5e5ba6
1
Parent(s):
0252396
Update data_gc_tab.html
Browse files- data_gc_tab.html +18 -1
data_gc_tab.html
CHANGED
@@ -106,6 +106,24 @@
|
|
106 |
{title:"Имя", field:"name"},
|
107 |
{title:"Телефон", field:"phone"},
|
108 |
{title:"Email", field:"email"},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
109 |
{title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
|
110 |
var ad_url = cell.getValue();
|
111 |
return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
|
@@ -129,7 +147,6 @@
|
|
129 |
{title:"Стутус подписки", field:"ws_stop"},
|
130 |
{title:"Вебинары", field:"web_statys"},
|
131 |
{title:"Прогрес по воронке", field:"fin_progress"},
|
132 |
-
{title:"Статус покупки", field:"shop_statys_full"},
|
133 |
{title:"utm_source", field:"pr1"},
|
134 |
{title:"utm_medium", field:"pr2"},
|
135 |
{title:"utm_campaign", field:"pr3"},
|
|
|
106 |
{title:"Имя", field:"name"},
|
107 |
{title:"Телефон", field:"phone"},
|
108 |
{title:"Email", field:"email"},
|
109 |
+
{title:"Статус покупки", field:"shop_statys_full", formatter: function(cell, formatterParams, onRendered) {
|
110 |
+
var status = cell.getValue();
|
111 |
+
var color;
|
112 |
+
switch (status) {
|
113 |
+
case 'green':
|
114 |
+
color = 'green';
|
115 |
+
break;
|
116 |
+
case 'red':
|
117 |
+
color = 'red';
|
118 |
+
break;
|
119 |
+
case 'yellow':
|
120 |
+
color = 'yellow';
|
121 |
+
break;
|
122 |
+
default:
|
123 |
+
color = 'gray';
|
124 |
+
}
|
125 |
+
return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
|
126 |
+
}},
|
127 |
{title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
|
128 |
var ad_url = cell.getValue();
|
129 |
return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
|
|
|
147 |
{title:"Стутус подписки", field:"ws_stop"},
|
148 |
{title:"Вебинары", field:"web_statys"},
|
149 |
{title:"Прогрес по воронке", field:"fin_progress"},
|
|
|
150 |
{title:"utm_source", field:"pr1"},
|
151 |
{title:"utm_medium", field:"pr2"},
|
152 |
{title:"utm_campaign", field:"pr3"},
|