1.返回聊天时,改为跳转至上次的聊天Agent
2.排程记录界面增加横纵向滚动
This commit is contained in:
1 parent
71dcfd8ca4
commit
3642ed8529
4 files changed
+95
-58
No files matched your search
@@ -467,9 +467,9 @@ 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 },
|
||||
{ key: 'wecom_notified', label: '', width: 100, min: 80 },
|
||||
{ key: 'detail', label: '', width: 100, min: 80 },
|
||||
{ key: 'log', label: '', width: 100, min: 80 },
|
||||
]);
|
||||
|
||||
const syncScheduleRunColumnLabels = () => {
|
||||
@@ -4587,8 +4587,8 @@ const handlePermissionImport = async (event: Event) => {
|
||||
{{ $t('admin.schedule.reset') }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="overflow-x-auto rounded-xl border border-slate-100">
|
||||
<table class="w-full min-w-[920px] table-fixed text-left text-xs">
|
||||
<div class="max-h-[calc(100vh-20rem)] overflow-auto rounded-xl border border-slate-100 scrollbar-thin">
|
||||
<table class="w-full min-w-[1270px] table-fixed text-left text-xs">
|
||||
<colgroup>
|
||||
<col
|
||||
v-for="col in scheduleRunColumnDefs"
|
||||
@@ -4596,21 +4596,19 @@ const handlePermissionImport = async (event: Event) => {
|
||||
:style="{ width: `${col.width}px` }"
|
||||
/>
|
||||
</colgroup>
|
||||
<thead class="bg-slate-50">
|
||||
<thead class="sticky top-0 z-10 bg-slate-50">
|
||||
<tr class="text-slate-500">
|
||||
<th
|
||||
v-for="(col, colIndex) in scheduleRunColumnDefs"
|
||||
:key="col.key"
|
||||
class="group relative px-4 py-3 text-xs font-semibold uppercase select-none"
|
||||
class="group relative whitespace-nowrap bg-slate-50 px-4 py-3 text-xs font-semibold uppercase select-none"
|
||||
>
|
||||
<span class="whitespace-nowrap">{{ col.label }}</span>
|
||||
<span
|
||||
class="absolute inset-y-0 -right-1 z-10 w-3 cursor-col-resize"
|
||||
class="absolute inset-y-0 -right-1 z-10 w-2 cursor-col-resize"
|
||||
@mousedown.prevent="startScheduleColResize(colIndex, $event)"
|
||||
:title="$t('admin.schedule.resizeColumn', { label: col.label })"
|
||||
>
|
||||
<span class="mx-auto block h-full w-px bg-slate-300"></span>
|
||||
</span>
|
||||
></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -4627,52 +4625,52 @@ const handlePermissionImport = async (event: Event) => {
|
||||
:key="r.id"
|
||||
class="text-slate-700 transition hover:bg-slate-50"
|
||||
>
|
||||
<td class="truncate px-4 py-2.5" :title="r.run_no">{{ r.run_no }}</td>
|
||||
<td class="truncate px-4 py-2.5" :title="formatDateTime(r.started_at)">{{ formatDateTime(r.started_at) }}</td>
|
||||
<td class="truncate px-4 py-2.5" :title="formatDateTime(r.finished_at)">{{ formatDateTime(r.finished_at) }}</td>
|
||||
<td class="truncate px-4 py-2.5">
|
||||
<td class="whitespace-nowrap px-4 py-2.5" :title="r.run_no">{{ r.run_no }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5" :title="formatDateTime(r.started_at)">{{ formatDateTime(r.started_at) }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5" :title="formatDateTime(r.finished_at)">{{ formatDateTime(r.finished_at) }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5">
|
||||
<span class="inline-flex shrink-0 items-center whitespace-nowrap rounded-full px-2.5 py-1 text-xs font-semibold"
|
||||
:class="getScheduleRunStatusBadge(r.status).cls">
|
||||
{{ getScheduleRunStatusBadge(r.status).label }}
|
||||
</span>
|
||||
<span v-if="r.error_message" class="ml-1 text-xs text-slate-400" :title="r.error_message">...</span>
|
||||
</td>
|
||||
<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>
|
||||
<td class="whitespace-nowrap px-4 py-2.5">{{ r.total_count }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5">{{ r.success_count }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5">{{ r.failed_count }}</td>
|
||||
<td class="whitespace-nowrap px-4 py-2.5">
|
||||
<span v-if="r.wecom_notified" class="inline-flex shrink-0 items-center gap-1 whitespace-nowrap text-xs text-emerald-600">
|
||||
<svg class="h-3.5 w-3.5 shrink-0" 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>
|
||||
{{ $t('admin.schedule.notified') }}
|
||||
</span>
|
||||
<span v-else-if="r.wecom_notify_error" class="text-xs text-amber-500" :title="r.wecom_notify_error">{{ $t('admin.schedule.notifyError') }}</span>
|
||||
<span v-else-if="r.wecom_notify_error" class="whitespace-nowrap text-xs text-amber-500" :title="r.wecom_notify_error">{{ $t('admin.schedule.notifyError') }}</span>
|
||||
<span v-else class="text-xs text-slate-300">-</span>
|
||||
</td>
|
||||
<td class="px-4 py-2.5">
|
||||
<td class="whitespace-nowrap px-4 py-2.5">
|
||||
<div class="flex items-center">
|
||||
<a
|
||||
v-if="r.total_count > 0"
|
||||
href="#"
|
||||
@click.prevent="downloadScheduleExcel(r.id)"
|
||||
class="inline-flex items-center gap-1 rounded-lg border border-slate-200 px-2 py-1 text-xs font-medium text-slate-600 transition-colors hover:bg-slate-50"
|
||||
class="inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-lg border border-slate-200 px-2 py-1 text-xs font-medium text-slate-600 transition-colors hover:bg-slate-50"
|
||||
>
|
||||
<Download class="h-3 w-3" />
|
||||
<Download class="h-3 w-3 shrink-0" />
|
||||
{{ $t('admin.schedule.download') }}
|
||||
</a>
|
||||
<span v-if="r.total_count === 0" class="text-slate-300">-</span>
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-2.5">
|
||||
<td class="whitespace-nowrap px-4 py-2.5">
|
||||
<div class="flex items-center">
|
||||
<button
|
||||
v-if="(r.step_logs && r.step_logs.length > 0) || r.dify_execution_snapshot"
|
||||
@click="expandedScheduleRunId = expandedScheduleRunId === r.id ? null : r.id"
|
||||
class="inline-flex items-center gap-1 rounded-lg border border-blue-200 px-2 py-1 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50"
|
||||
class="inline-flex shrink-0 items-center gap-1 whitespace-nowrap rounded-lg border border-blue-200 px-2 py-1 text-xs font-medium text-blue-600 transition-colors hover:bg-blue-50"
|
||||
>
|
||||
<Eye class="h-3 w-3" />
|
||||
<Eye class="h-3 w-3 shrink-0" />
|
||||
{{ $t('admin.schedule.log') }}
|
||||
<ChevronDown v-if="expandedScheduleRunId !== r.id" class="h-3 w-3" />
|
||||
<ChevronUp v-else class="h-3 w-3" />
|
||||
<ChevronDown v-if="expandedScheduleRunId !== r.id" class="h-3 w-3 shrink-0" />
|
||||
<ChevronUp v-else class="h-3 w-3 shrink-0" />
|
||||
</button>
|
||||
<span v-else class="text-slate-300">-</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user