template.ejs
10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>数据统计表格</title>
<style>
table {
border-collapse: collapse;
width: 100%;
max-width: 1200px;
margin: 20px 0;
}
th,
td {
border: 1px solid #ddd;
padding: 10px 15px;
text-align: center;
}
th {
font-weight: bold;
}
tr.highlight {
background-color: #e8f5e9;
}
/* .last-bg td:last-child {
background-color: #f1f4fe;
}
.last-bg tr td:last-child {
background-color: #f1f4fe;
} */
</style>
</head>
<body>
<div>
<p>各位领导、同事:</p>
<p style="text-indent: 2em;">以下是重点功能上线后的使用情况,邮件中仅展示 <%= locals.mentorship_page[0].formattedStart + ' 至 ' + locals.mentorship_page[0].formattedEnd %> 的数据。</p>
<p style="text-indent: 2em;">所有的数据汇总文档:<a
href="https://mcnywc2tcye7.feishu.cn/wiki/UiCSwaOqMigcDzkyy0tcPOvLnOe" target="_blank">所有数据汇总在线文档</a></p>
<h3>1、<span style="text-decoration: underline;">带教管理&填写带教任务&飞行督导工作日报&群推送</span></h3>
<h4>带教管理 上线时间(4.16)小程序(入口埋点)</h4>
<table>
<thead>
<tr>
<th>日期</th>
<th>总数(人)</th>
<th>有效点击人员数(人)</th>
<th>点击量(次)</th>
<th>最高点击日 / 次数(原因)</th>
</tr>
</thead>
<tbody>
<% locals.mentorship_page.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.totalPopulation %>
</td>
<td>
<%= row.uniqueAccounts %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.peakDay && row.peakDay.date && row.peakDay.count ? `${row.peakDay.date} / ${row.peakDay.count}` : '-' %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<h4>工作日报(督导) 上线时间(4.16)小程序(入口埋点)</h4>
<table>
<thead>
<tr>
<th>日期</th>
<th>总数(人)</th>
<th>有效点击人员数(人)</th>
<th>点击量(次)</th>
<th>精品升级入口(次)</th>
<th>会员权益入口(次)</th>
</tr>
</thead>
<tbody>
<% locals.supervisor_daily_page.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.totalPopulation %>
</td>
<td>
<%= row.uniqueAccounts %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.equityCount %>
</td>
<td>
<%= row.upgradeCount %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<% if (locals.reportData && locals.reportData.length > 0) { %>
<p>pc数据分析如下:</p>
<p>目前,建了三种日报模版(区域运营考核模版,督导培训日报模版,导师培训日报模版)。</p>
<table>
<thead>
<tr>
<th></th>
<th>模版内容</th>
<th>填写情况</th>
<th>填报人数</th>
<th>上线时间</th>
</tr>
</thead>
<tbody>
<% locals.reportData.forEach(row=> { %>
<tr>
<td>
<%= row.templateName %>
</td>
<td>
<%= row.templateContent %>
</td>
<td>
<%= row.total %>
</td>
<td>
<%= row.descript %>
</td>
<td>
<%= row.oinlineTime %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<% } %>
<% if (locals.template && locals.template.length > 0) { %>
<p>① 区域运营考核模版数据计算</p>
<table>
<thead>
<tr>
<th>日期</th>
<th>每日提交份数</th>
<th>填报人数(所有关联该模版的督导人数,包括当天请假或者休息的员工)</th>
<th>提交率</th>
</tr>
</thead>
<tbody>
<% locals.template.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.date %>
</td>
<td>
<%= row.finishCount %>
</td>
<td>
<%= row.totalCount %>
</td>
<td>
<%= row.rate %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<p>导师模版 上线时间(4.16) - 目前,业务端没开始用</p>
<br />
<% } %>
<h3>2、<span style="text-decoration: underline;">话术萃取 上线时间(4.16)</span></h3>
<p>数据库统计(浏览时长得是 60s以上 才会记录)</p>
<table>
<thead>
<tr>
<th>日期</th>
<th>总浏览次数(次)①</th>
<th>总浏览人数(人)②</th>
<th>总浏览批次(次)③</th>
</tr>
</thead>
<tbody>
<% locals.extraction.forEach(row=> { %>
<tr>
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.peopleTotal %>
</td>
<td>
<%= row.batchTotal %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<p>① 总浏览次数:在时间周期内,所有话术的总浏览次数。</p>
<p>② 总浏览人次:在时间周期内,浏览话术的所有人次。</p>
<p>③ 总浏览批次:在时间周期内,批量浏览话术的总次数,即一次性批量浏览多条话术。</p>
<p>话术萃取推送已关闭(4月21停止推送 )</p>
<br />
<h3>3、<span style="text-decoration: underline;">营销素材 上线时间(3.12)</span></h3>
<p>数据库统计(点击素材浏览算一次点击)</p>
<table>
<thead>
<tr>
<th>日期</th>
<th>有效点击(次)</th>
<th>点击人数(人)</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<% locals.sales_content.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.uniqueAccounts %>
</td>
<td>
<% if (row.remark && row.remark.length > 0) { %>
<% row.remark.forEach(i=> { %>
<div><%= i.name + ': ' + i.count %></div>
<% }); %>
<% } else { %>
-
<% } %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<h3>4、<span style="text-decoration: underline;">场景集市 上线时间(4.16)</span></h3>
<table>
<thead>
<tr>
<th>日期</th>
<th>有效点击(次)</th>
<th>点击人数(人)</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<% locals.scene_market.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.uniqueAccounts %>
</td>
<td>
<% if (row.remark && row.remark.length > 0) { %>
<% row.remark.forEach(i=> { %>
<div><%= i.name + ': ' + i.count %></div>
<% }); %>
<% } else { %>
-
<% } %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<h3>5、<span style="text-decoration: underline;">培训资料</span></h3>
<table>
<thead>
<tr>
<th>日期</th>
<th>有效点击(次)</th>
<th>点击人数(人)</th>
<th>备注</th>
</tr>
</thead>
<tbody>
<% locals.training_materials.forEach(row=> { %>
<tr class="highlight">
<td>
<%= row.formattedStart + ' 至 ' + row.formattedEnd %>
</td>
<td>
<%= row.count %>
</td>
<td>
<%= row.uniqueAccounts %>
</td>
<td>
<% if (row.remark && row.remark.length > 0) { %>
<% row.remark.forEach(i=> { %>
<div><%= i.name + ': ' + i.count %></div>
<% }); %>
<% } else { %>
-
<% } %>
</td>
</tr>
<% }); %>
</tbody>
</table>
<br />
<h3>6、<span style="text-decoration: underline;">AI助手 上线时间(5.16)</span></h3>
<h4>智能体使用情况</h4>
<ul>
<li>1、表格中统计的数据为:提问人数(人)、提问次数(次)</li>
<li>2、表格中底色的用于标识当天提问最高人次、当天提问最高次数</li>
<li>3、表格中空白处代表 0人、0次</li>
</ul>
<table class="last-bg">
<thead>
<tr>
<% locals.aiAgentColumns.forEach(column => { %>
<th><%= column.title %></th>
<% }); %>
</tr>
</thead>
<tbody>
<% locals.ai_agent.forEach(row => { %>
<tr>
<% locals.aiAgentColumns.forEach(column => { %>
<td>
<% if (column.dataIndex === 'date') { %>
<%= row.date %>
<% } else { %>
<%= row[column.dataIndex] || '-' %>
<% } %>
</td>
<% }); %>
</tr>
<% }); %>
</tbody>
</table>
</div>
</body>
</html>