DmitrMakeev commited on
Commit
baa844b
1 Parent(s): abe4ca5

Update data_gc_tab.html

Browse files
Files changed (1) hide show
  1. data_gc_tab.html +24 -22
data_gc_tab.html CHANGED
@@ -1,3 +1,5 @@
 
 
1
  <!DOCTYPE html>
2
  <html lang="en">
3
  <head>
@@ -105,12 +107,12 @@
105
  pagination: "local", // enable local pagination
106
  paginationSize: 50, // number of rows per page
107
  columns: [
108
- {title:"Номер в списке", field:"id"},
109
- {title:"Имя", field:"name", width:120},
110
- {title:"Телефон", field:"phone", width:100},
111
- {title:"Email", field:"email", width:150},
112
- {title:"Куратор", field:"curator"},
113
- {title:"Заказ", field:"shop_statys_full", formatter: function(cell, formatterParams, onRendered) {
114
  var status = cell.getValue();
115
  var color;
116
  switch (status) {
@@ -124,38 +126,38 @@
124
  color = 'yellow';
125
  break;
126
  default:
127
- color = '#f2f2f2';
128
  }
129
- return `<div style="width: 60px; height: 20px; background-color: ${color};"></div>`;
130
- }, width:100},
131
  {title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
132
  var ad_url = cell.getValue();
133
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
134
- }},
135
  {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
136
  var vk_id = cell.getValue();
137
  return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
138
- }},
139
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
140
  var chatId = cell.getValue();
141
  if (chatId.startsWith('@')) {
142
  chatId = chatId.substring(1); // Удаление символа @ в начале
143
  }
144
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
145
- }},
146
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
147
  var phone = cell.getValue();
148
  return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
149
- }},
150
- {title:"Статус WhatsApp", field:"ws_statys"},
151
- {title:"Стутус подписки", field:"ws_stop"},
152
- {title:"Вебинары", field:"web_statys", formatter:"star", formatterParams:{stars:7}, hozAlign:"center", width:120},
153
- {title:"Прогрес по воронке", field:"fin_progress", formatter:"progress", formatterParams:{color:["rgb(255,0,0)", "orange", "#00dd00"]}, sorter:"number", width:100},
154
- {title:"utm_source", field:"pr1"},
155
- {title:"utm_medium", field:"pr2"},
156
- {title:"utm_campaign", field:"pr3"},
157
- {title:"utm_term", field:"pr4"},
158
- {title:"utm_content", field:"pr5"}
159
  ],
160
  });
161
  })
 
1
+
2
+
3
  <!DOCTYPE html>
4
  <html lang="en">
5
  <head>
 
107
  pagination: "local", // enable local pagination
108
  paginationSize: 50, // number of rows per page
109
  columns: [
110
+ {title:"Номер в списке", field:"id", width:100},
111
+ {title:"Имя", field:"name", width:150},
112
+ {title:"Телефон", field:"phone", width:150},
113
+ {title:"Email", field:"email", width:200},
114
+ {title:"Куратор", field:"curator", width:150},
115
+ {title:"Статус покупки", field:"shop_statys_full", formatter: function(cell, formatterParams, onRendered) {
116
  var status = cell.getValue();
117
  var color;
118
  switch (status) {
 
126
  color = 'yellow';
127
  break;
128
  default:
129
+ color = 'gray';
130
  }
131
+ return `<div style="width: 20px; height: 20px; background-color: ${color};"></div>`;
132
+ }, width:120},
133
  {title:"Ссылка на пользователя в GC", field:"ad_url", formatter: function(cell, formatterParams, onRendered) {
134
  var ad_url = cell.getValue();
135
  return `<a href="${ad_url}" target="_blank">${ad_url}</a>`;
136
+ }, width:200},
137
  {title:"Ссылка на VK", field:"vk_id", formatter: function(cell, formatterParams, onRendered) {
138
  var vk_id = cell.getValue();
139
  return `<a href="https://vk.com/id${vk_id}" target="_blank">${vk_id}</a>`;
140
+ }, width:150},
141
  {title:"Ссылка на Tg", field:"chat_id", formatter: function(cell, formatterParams, onRendered) {
142
  var chatId = cell.getValue();
143
  if (chatId.startsWith('@')) {
144
  chatId = chatId.substring(1); // Удаление символа @ в начале
145
  }
146
  return `<a href="https://t.me/${chatId}" target="_blank">${chatId}</a>`;
147
+ }, width:150},
148
  {title:"Ссылка на WhatsApp", field:"phone", formatter: function(cell, formatterParams, onRendered) {
149
  var phone = cell.getValue();
150
  return `<a href="https://web.whatsapp.com/send?phone=${phone}" target="_blank">${phone}</a>`;
151
+ }, width:150},
152
+ {title:"Статус WhatsApp", field:"ws_statys", width:150},
153
+ {title:"Стутус подписки", field:"ws_stop", width:150},
154
+ {title:"Вебинары", field:"web_statys", formatter:"star", formatterParams:{stars:6}, hozAlign:"center", width:120},
155
+ {title:"Прогрес по воронке", field:"fin_progress", width:150},
156
+ {title:"utm_source", field:"pr1", width:150},
157
+ {title:"utm_medium", field:"pr2", width:150},
158
+ {title:"utm_campaign", field:"pr3", width:150},
159
+ {title:"utm_term", field:"pr4", width:150},
160
+ {title:"utm_content", field:"pr5", width:150}
161
  ],
162
  });
163
  })