DmitrMakeev
commited on
Commit
•
1fdac1c
1
Parent(s):
b1ebde7
Update data_gc_tab.html
Browse files- data_gc_tab.html +18 -20
data_gc_tab.html
CHANGED
@@ -15,8 +15,11 @@
|
|
15 |
|
16 |
|
17 |
|
18 |
-
|
19 |
-
<
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
|
@@ -291,25 +294,20 @@ return link + `<img src="${imageUrl3}" alt="WhatsApp" style="width: 98px; height
|
|
291 |
|
292 |
{title:"Город", field:"b_city", width:95},
|
293 |
{title:"Email", field:"email", width:95},
|
294 |
-
{title:"Реплики", field:"b_mess", width:95, cellClick:function(e, cell){
|
295 |
var data = cell.getData();
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
title: 'title-custom',
|
309 |
-
content: 'content-custom'
|
310 |
-
}
|
311 |
-
});
|
312 |
-
}},
|
313 |
|
314 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
315 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|
|
|
15 |
|
16 |
|
17 |
|
18 |
+
<!-- Подключение стилей Notyf -->
|
19 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf/notyf.min.css">
|
20 |
+
|
21 |
+
<!-- Подключение скрипта Notyf -->
|
22 |
+
<script src="https://cdn.jsdelivr.net/npm/notyf/notyf.min.js"></script>
|
23 |
|
24 |
|
25 |
|
|
|
294 |
|
295 |
{title:"Город", field:"b_city", width:95},
|
296 |
{title:"Email", field:"email", width:95},
|
297 |
+
{title: "Реплики", field: "b_mess", width: 95, cellClick: function(e, cell) {
|
298 |
var data = cell.getData();
|
299 |
+
var notyf = new Notyf(); // Создаем новый экземпляр Notyf
|
300 |
+
|
301 |
+
// Формируем текст сообщения
|
302 |
+
var message = `
|
303 |
+
Имя: ${data.name}\n
|
304 |
+
WhatsApp: ${data.phone}\n
|
305 |
+
Реплики: ${data.b_mess}
|
306 |
+
`;
|
307 |
+
|
308 |
+
// Выводим сообщение в виде уведомления
|
309 |
+
notyf.success(message);
|
310 |
+
}},
|
|
|
|
|
|
|
|
|
|
|
311 |
|
312 |
{title:"Куратор", field:"curator", formatter: linkFormatter},
|
313 |
{title:"Статус покупки", field:"shop_st", formatter: function(cell, formatterParams, onRendered) {
|