排程管理新增企微通知功能(消息以及文件推送)
This commit is contained in:
1 parent
88051db91e
commit
8da487aac6
13 files changed
+267
-112
No files matched your search
@@ -43,9 +43,9 @@ export interface ScheduleRun {
|
||||
error_message?: string | null;
|
||||
excel_file_name?: string | null;
|
||||
excel_file_size?: number | null;
|
||||
mail_sent: boolean;
|
||||
mail_sent_at?: string | null;
|
||||
mail_error?: string | null;
|
||||
wecom_notified: boolean;
|
||||
wecom_notified_at?: string | null;
|
||||
wecom_notify_error?: string | null;
|
||||
created_at?: string | null;
|
||||
}
|
||||
|
||||
|
||||
@@ -442,6 +442,7 @@ const scheduleRunColumnDefs = ref([
|
||||
{ key: 'total_count', label: '处理', width: 70, min: 40 },
|
||||
{ key: 'success_count', label: '成功', width: 70, min: 40 },
|
||||
{ key: 'failed_count', label: '失败', width: 70, min: 40 },
|
||||
{ key: 'wecom_notified', label: '企微通知', width: 90, min: 50 },
|
||||
{ key: 'detail', label: '明细', width: 90, min: 50 },
|
||||
{ key: 'log', label: '日志', width: 90, min: 50 },
|
||||
]);
|
||||
@@ -4528,10 +4529,10 @@ const handlePermissionImport = async (event: Event) => {
|
||||
</thead>
|
||||
<tbody class="divide-y divide-slate-100">
|
||||
<tr v-if="scheduleRunsLoading">
|
||||
<td colspan="9" class="px-4 py-8 text-center text-sm text-slate-400">正在查询记录...</td>
|
||||
<td colspan="10" class="px-4 py-8 text-center text-sm text-slate-400">正在查询记录...</td>
|
||||
</tr>
|
||||
<tr v-else-if="filteredScheduleRuns.length === 0">
|
||||
<td colspan="9" class="px-4 py-8 text-center text-sm text-slate-400">暂无执行记录。</td>
|
||||
<td colspan="10" class="px-4 py-8 text-center text-sm text-slate-400">暂无执行记录。</td>
|
||||
</tr>
|
||||
<tr
|
||||
v-else
|
||||
@@ -4552,6 +4553,14 @@ const handlePermissionImport = async (event: Event) => {
|
||||
<td class="truncate px-4 py-2.5">{{ r.total_count }}</td>
|
||||
<td class="truncate px-4 py-2.5">{{ r.success_count }}</td>
|
||||
<td class="truncate px-4 py-2.5">{{ r.failed_count }}</td>
|
||||
<td class="truncate px-4 py-2.5">
|
||||
<span v-if="r.wecom_notified" class="inline-flex items-center gap-1 text-xs text-emerald-600">
|
||||
<svg class="h-3.5 w-3.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" /></svg>
|
||||
已通知
|
||||
</span>
|
||||
<span v-else-if="r.wecom_notify_error" class="text-xs text-amber-500" :title="r.wecom_notify_error">异常</span>
|
||||
<span v-else class="text-xs text-slate-300">-</span>
|
||||
</td>
|
||||
<td class="px-4 py-2.5">
|
||||
<div class="flex items-center">
|
||||
<a
|
||||
@@ -4586,7 +4595,7 @@ const handlePermissionImport = async (event: Event) => {
|
||||
v-if="expandedScheduleRunId && filteredScheduleRuns.find(x => x.id === expandedScheduleRunId)"
|
||||
:key="'expanded-' + expandedScheduleRunId"
|
||||
>
|
||||
<td colspan="9" class="px-4 py-3 bg-slate-50/60">
|
||||
<td colspan="10" class="px-4 py-3 bg-slate-50/60">
|
||||
<div class="space-y-2">
|
||||
<div class="flex items-center justify-between mb-2">
|
||||
<h5 class="text-xs font-bold text-slate-600 uppercase">执行日志</h5>
|
||||
|
||||
Reference in new issue
Block a user