1.排程管理功能更新,支持数据源配置以及自定义查询条件测试
2.应用管理增加Dify应用类型,支持不同类型下的连通性测试
This commit is contained in:
1 parent
72642b981e
commit
6ada6810c5
18 files changed
+2185
-535
No files matched your search
+941
-158
File diff suppressed because it is too large.
Load diff
@@ -1000,8 +1000,25 @@ const workspaceScheduleRuns = ref<ScheduleRun[]>([]);
|
||||
const workspaceScheduleLoading = ref(false);
|
||||
const wsScheduleStatusFilter = ref('all');
|
||||
const wsScheduleNameFilter = ref('');
|
||||
const wsScheduleStartedAfter = ref('');
|
||||
const wsScheduleStartedBefore = ref('');
|
||||
const toDateTimeLocalValue = (date: Date) => {
|
||||
const pad = (n: number) => String(n).padStart(2, '0');
|
||||
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
|
||||
};
|
||||
|
||||
const todayStartLocal = () => {
|
||||
const d = new Date();
|
||||
d.setHours(0, 0, 0, 0);
|
||||
return toDateTimeLocalValue(d);
|
||||
};
|
||||
|
||||
const todayEndLocal = () => {
|
||||
const d = new Date();
|
||||
d.setHours(23, 59, 59, 0);
|
||||
return toDateTimeLocalValue(d);
|
||||
};
|
||||
|
||||
const wsScheduleStartedAfter = ref(todayStartLocal());
|
||||
const wsScheduleStartedBefore = ref(todayEndLocal());
|
||||
|
||||
const wsScheduleStatusOptions = [
|
||||
{ value: 'all', label: '全部状态' },
|
||||
@@ -1030,18 +1047,6 @@ const formatDateTime = (iso?: string | null) => {
|
||||
return `${d.getFullYear()}-${pad(d.getMonth() + 1)}-${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`;
|
||||
};
|
||||
|
||||
const todayStart = () => {
|
||||
const d = new Date();
|
||||
d.setHours(0, 0, 0, 0);
|
||||
return d.toISOString();
|
||||
};
|
||||
|
||||
const todayEnd = () => {
|
||||
const d = new Date();
|
||||
d.setHours(23, 59, 59, 0);
|
||||
return d.toISOString();
|
||||
};
|
||||
|
||||
const loadWorkspaceScheduleRuns = async () => {
|
||||
workspaceScheduleLoading.value = true;
|
||||
try {
|
||||
@@ -1061,8 +1066,8 @@ const loadWorkspaceScheduleRuns = async () => {
|
||||
const resetWsScheduleFilters = () => {
|
||||
wsScheduleStatusFilter.value = 'all';
|
||||
wsScheduleNameFilter.value = '';
|
||||
wsScheduleStartedAfter.value = todayStart().slice(0, 16);
|
||||
wsScheduleStartedBefore.value = todayEnd().slice(0, 16);
|
||||
wsScheduleStartedAfter.value = todayStartLocal();
|
||||
wsScheduleStartedBefore.value = todayEndLocal();
|
||||
loadWorkspaceScheduleRuns();
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user