feat: 新增银行卡检查插件及相关依赖与配置文件
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
param([int]$X = 1611, [int]$Y = 460, [string]$Out = "C:\Users\admin\AppData\Local\Temp\37du-fc.png")
|
||||
Add-Type -AssemblyName System.Drawing
|
||||
Add-Type @"
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
public class WFC {
|
||||
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r);
|
||||
[DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr h);
|
||||
[DllImport("user32.dll")] public static extern IntPtr GetForegroundWindow();
|
||||
[DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
|
||||
[DllImport("user32.dll")] public static extern void mouse_event(uint f, uint dx, uint dy, uint d, int e);
|
||||
[DllImport("user32.dll")] public static extern bool ShowWindow(IntPtr h, int cmd);
|
||||
public struct RECT { public int Left; public int Top; public int Right; public int Bottom; }
|
||||
}
|
||||
"@
|
||||
$proc = Get-Process -Name electron -ErrorAction Stop | Where-Object { $_.MainWindowHandle -ne 0 } | Select-Object -First 1
|
||||
$hwnd = $proc.MainWindowHandle
|
||||
$shell = New-Object -ComObject WScript.Shell
|
||||
for ($i = 0; $i -lt 5; $i++) {
|
||||
$shell.AppActivate($proc.Id) | Out-Null
|
||||
[WFC]::ShowWindow($hwnd, 9) | Out-Null
|
||||
[WFC]::SetForegroundWindow($hwnd) | Out-Null
|
||||
Start-Sleep -Milliseconds 400
|
||||
if ([WFC]::GetForegroundWindow() -eq $hwnd) { break }
|
||||
}
|
||||
$fg = [WFC]::GetForegroundWindow()
|
||||
if ($fg -ne $hwnd) { Write-Output "focus-failed"; exit 2 }
|
||||
[WFC]::SetCursorPos($X, $Y) | Out-Null
|
||||
Start-Sleep -Milliseconds 250
|
||||
[WFC]::mouse_event(0x0002, 0, 0, 0, 0)
|
||||
[WFC]::mouse_event(0x0004, 0, 0, 0, 0)
|
||||
Start-Sleep -Milliseconds 900
|
||||
$rect = New-Object 'WFC+RECT'
|
||||
[WFC]::GetWindowRect($hwnd, [ref]$rect) | Out-Null
|
||||
$capW = $rect.Right - $rect.Left
|
||||
$capH = $rect.Bottom - $rect.Top
|
||||
$bmp = New-Object System.Drawing.Bitmap $capW, $capH
|
||||
$g = [System.Drawing.Graphics]::FromImage($bmp)
|
||||
$g.CopyFromScreen($rect.Left, $rect.Top, 0, 0, $bmp.Size)
|
||||
$g.Dispose()
|
||||
$bmp.Save($Out, [System.Drawing.Imaging.ImageFormat]::Png)
|
||||
$bmp.Dispose()
|
||||
Write-Output "ok clicked $X,$Y"
|
||||
@@ -0,0 +1,39 @@
|
||||
param([int]$RX = 110, [int]$RY = 220, [string]$Out = "C:\Users\admin\AppData\Local\Temp\37du-y.png")
|
||||
Add-Type -AssemblyName System.Drawing
|
||||
Add-Type @"
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
public class WShot {
|
||||
[DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr h, out RECT r);
|
||||
[DllImport("user32.dll")] public static extern bool SetForegroundWindow(IntPtr h);
|
||||
[DllImport("user32.dll")] public static extern bool SetCursorPos(int x, int y);
|
||||
[DllImport("user32.dll")] public static extern void mouse_event(uint f, uint dx, uint dy, uint d, int e);
|
||||
public struct RECT { public int Left; public int Top; public int Right; public int Bottom; }
|
||||
}
|
||||
"@
|
||||
$proc = Get-Process -Name electron -ErrorAction Stop | Where-Object { $_.MainWindowHandle -ne 0 } | Select-Object -First 1
|
||||
$hwnd = $proc.MainWindowHandle
|
||||
$shell = New-Object -ComObject WScript.Shell
|
||||
$shell.AppActivate($proc.Id) | Out-Null
|
||||
[WShot]::SetForegroundWindow($hwnd) | Out-Null
|
||||
Start-Sleep -Milliseconds 900
|
||||
$rect = New-Object 'WShot+RECT'
|
||||
[WShot]::GetWindowRect($hwnd, [ref]$rect) | Out-Null
|
||||
$px = $rect.Left + $RX
|
||||
$py = $rect.Top + $RY
|
||||
[WShot]::SetCursorPos($px, $py) | Out-Null
|
||||
Start-Sleep -Milliseconds 200
|
||||
[WShot]::mouse_event(0x0002, 0, 0, 0, 0)
|
||||
[WShot]::mouse_event(0x0004, 0, 0, 0, 0)
|
||||
Start-Sleep -Milliseconds 300
|
||||
[WShot]::SetCursorPos($rect.Left + 1200, $rect.Top + 900) | Out-Null
|
||||
Start-Sleep -Milliseconds 1200
|
||||
$capW = $rect.Right - $rect.Left
|
||||
$capH = $rect.Bottom - $rect.Top
|
||||
$bmp = New-Object System.Drawing.Bitmap $capW, $capH
|
||||
$g = [System.Drawing.Graphics]::FromImage($bmp)
|
||||
$g.CopyFromScreen($rect.Left, $rect.Top, 0, 0, $bmp.Size)
|
||||
$g.Dispose()
|
||||
$bmp.Save($Out, [System.Drawing.Imaging.ImageFormat]::Png)
|
||||
$bmp.Dispose()
|
||||
Write-Output "clicked $px,$py"
|
||||
@@ -0,0 +1,351 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>37du 自动化工作台 - 场景库</title>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<style>
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-[#f5f6f8] text-gray-800 h-screen overflow-hidden text-sm">
|
||||
|
||||
<div id="app" class="flex h-full w-full p-2 gap-2">
|
||||
|
||||
<!-- ================= 左侧导航栏 (保持原样) ================= -->
|
||||
<aside class="w-[220px] bg-white rounded-xl flex flex-col shadow-sm border border-gray-100 overflow-y-auto flex-shrink-0">
|
||||
<div class="p-4 flex items-center gap-2 border-b border-gray-50">
|
||||
<div class="w-6 h-6 bg-blue-600 rounded flex items-center justify-center text-white text-xs font-bold">37</div>
|
||||
<span class="font-bold text-gray-700">37du 自动化工作台</span>
|
||||
</div>
|
||||
<div class="p-3 space-y-1">
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
|
||||
<span>总览</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">12</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 bg-blue-50 text-blue-600 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path></svg>
|
||||
<span>场景库</span>
|
||||
</div>
|
||||
<span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full">18</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
|
||||
<span>计划</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">7</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
|
||||
<span>平台账号</span>
|
||||
</div>
|
||||
<span class="text-xs bg-green-100 text-green-600 px-2 py-0.5 rounded-full">2/3</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="px-3 pb-2 mt-2">
|
||||
<div class="relative">
|
||||
<svg class="w-3.5 h-3.5 absolute left-2.5 top-2.5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
|
||||
<input type="text" placeholder="搜索场景" class="w-full bg-gray-50 border border-gray-100 rounded-md py-1.5 pl-8 pr-3 text-xs focus:outline-none focus:ring-1 focus:ring-blue-500">
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-3 mt-1 flex-1">
|
||||
<div class="text-xs text-gray-400 mb-2 px-1">最近使用</div>
|
||||
<ul class="space-y-0.5">
|
||||
<li v-for="item in recentUses" :key="item.name" class="flex items-center justify-between px-2 py-2 hover:bg-gray-50 rounded-md cursor-pointer group">
|
||||
<div class="flex items-center gap-2 truncate">
|
||||
<span class="w-1.5 h-1.5 rounded-full shrink-0" :class="item.color"></span>
|
||||
<span class="text-gray-700 text-xs truncate">{{ item.name }}</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px] shrink-0">{{ item.time }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="p-3 border-t border-gray-100">
|
||||
<div class="flex items-center justify-between bg-gray-50 rounded-lg p-2">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 text-xs font-bold">李</div>
|
||||
<div>
|
||||
<div class="text-xs font-medium text-gray-700">李骁柠</div>
|
||||
<div class="text-[10px] text-gray-400">本机操作员</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="text-[10px] text-gray-500 hover:text-gray-700">退出</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ================= 中间主内容区 ================= -->
|
||||
<main class="flex-1 flex flex-col min-w-0 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden">
|
||||
|
||||
<!-- 头部与工具栏 -->
|
||||
<header class="px-6 pt-6 pb-2 flex-shrink-0">
|
||||
<div class="flex justify-between items-end mb-5">
|
||||
<div>
|
||||
<div class="flex items-center gap-2 text-xs text-gray-400 mb-2">
|
||||
<span>工作台</span>
|
||||
<span class="text-gray-300">/</span>
|
||||
<span>场景库</span>
|
||||
</div>
|
||||
<h1 class="text-2xl font-bold text-gray-800 mb-1">场景库</h1>
|
||||
<p class="text-xs text-gray-500">提供开箱即用的自动化场景模板,快速接入您的业务流</p>
|
||||
</div>
|
||||
<div class="flex gap-2 mb-1">
|
||||
<button class="px-4 py-1.5 bg-white border border-gray-200 text-gray-600 rounded-lg hover:bg-gray-50 text-xs font-medium shadow-sm flex items-center gap-1">
|
||||
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"></path></svg>
|
||||
导入场景
|
||||
</button>
|
||||
<button class="px-4 py-1.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-xs font-medium shadow-sm flex items-center gap-1">
|
||||
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"></path></svg>
|
||||
新建场景
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 工具栏 (Tab & 搜索) -->
|
||||
<div class="flex justify-between items-center">
|
||||
<div class="flex gap-2">
|
||||
<button v-for="tab in categories" :key="tab" @click="activeCategory = tab; currentPage = 1"
|
||||
class="px-4 py-1.5 text-xs font-medium rounded-full transition-all border"
|
||||
:class="activeCategory === tab ? 'bg-blue-50 border-blue-100 text-blue-600 shadow-sm' : 'border-transparent text-gray-500 hover:text-gray-800 hover:bg-gray-50'">
|
||||
{{ tab }}
|
||||
</button>
|
||||
</div>
|
||||
<div class="relative w-64">
|
||||
<svg class="w-4 h-4 absolute left-3 top-2.5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
|
||||
<input type="text" placeholder="在场景库中搜索..." class="w-full bg-gray-50 border border-gray-100 rounded-lg py-1.5 pl-9 pr-4 text-xs focus:outline-none focus:ring-2 focus:ring-blue-100 focus:bg-white transition-all">
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 场景卡片网格区域 -->
|
||||
<div class="flex-1 overflow-y-auto px-6 pt-4 pb-2 flex flex-col">
|
||||
<div class="grid grid-cols-3 gap-4 pb-4">
|
||||
<!-- 注意这里遍历的是 paginatedScenes -->
|
||||
<div v-for="scene in paginatedScenes" :key="scene.id"
|
||||
class="bg-white rounded-xl p-5 shadow-sm border border-gray-100 hover:shadow-md hover:border-blue-100 transition-all group flex flex-col cursor-pointer relative overflow-hidden h-[210px]">
|
||||
|
||||
<div class="flex justify-between items-start mb-3">
|
||||
<div class="w-10 h-10 rounded-lg flex items-center justify-center shrink-0" :class="scene.iconBg">
|
||||
<svg class="w-5 h-5" :class="scene.iconColor" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" :d="scene.iconPath"></path>
|
||||
</svg>
|
||||
</div>
|
||||
<span class="text-[10px] px-2 py-0.5 rounded-full border"
|
||||
:class="scene.isOfficial ? 'bg-orange-50 text-orange-600 border-orange-100' : 'bg-gray-50 text-gray-500 border-gray-200'">
|
||||
{{ scene.isOfficial ? '官方模板' : '自定义' }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<h3 class="text-sm font-bold text-gray-800 mb-1 group-hover:text-blue-600 transition-colors">{{ scene.title }}</h3>
|
||||
<p class="text-xs text-gray-500 line-clamp-2 leading-relaxed mb-4 flex-1">{{ scene.desc }}</p>
|
||||
|
||||
<div class="flex gap-2 mb-4">
|
||||
<span v-for="tag in scene.tags" :key="tag" class="text-[10px] bg-gray-50 text-gray-500 border border-gray-100 px-2 py-0.5 rounded">
|
||||
{{ tag }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-between pt-3 border-t border-gray-50 mt-auto">
|
||||
<div class="flex items-center gap-1.5 text-[11px] text-gray-400">
|
||||
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
||||
{{ scene.lastRun }}
|
||||
</div>
|
||||
<button class="text-xs text-blue-600 font-medium opacity-0 group-hover:opacity-100 transition-opacity flex items-center gap-1 hover:text-blue-700">
|
||||
配置运行
|
||||
<svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 新增:底部分页器 -->
|
||||
<div class="mt-auto pt-4 border-t border-gray-100 flex items-center justify-between">
|
||||
<div class="text-xs text-gray-500">
|
||||
共 <span class="font-medium text-gray-800">{{ filteredScenes.length }}</span> 个场景
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-1">
|
||||
<!-- 上一页 -->
|
||||
<button @click="prevPage" :disabled="currentPage === 1"
|
||||
class="px-3 py-1 text-xs border border-gray-200 rounded-md bg-white text-gray-600 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors">
|
||||
上一页
|
||||
</button>
|
||||
|
||||
<!-- 页码 -->
|
||||
<button v-for="page in totalPages" :key="page" @click="currentPage = page"
|
||||
class="w-7 h-7 flex items-center justify-center text-xs rounded-md border transition-colors"
|
||||
:class="currentPage === page ? 'bg-blue-600 border-blue-600 text-white shadow-sm' : 'bg-white border-gray-200 text-gray-600 hover:bg-gray-50'">
|
||||
{{ page }}
|
||||
</button>
|
||||
|
||||
<!-- 下一页 -->
|
||||
<button @click="nextPage" :disabled="currentPage === totalPages"
|
||||
class="px-3 py-1 text-xs border border-gray-200 rounded-md bg-white text-gray-600 hover:bg-gray-50 disabled:opacity-50 disabled:cursor-not-allowed transition-colors">
|
||||
下一页
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- ================= 右侧活动面板 (保持原样) ================= -->
|
||||
<aside class="w-[280px] bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col flex-shrink-0 overflow-y-auto hidden lg:flex">
|
||||
<div class="p-4">
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<h2 class="font-bold text-gray-800 text-sm">活动</h2>
|
||||
<span class="text-[10px] text-red-500 bg-red-50 px-2 py-0.5 rounded border border-red-100 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse"></span> 2 进行中
|
||||
</span>
|
||||
</div>
|
||||
<div class="bg-blue-50/50 border border-blue-100 rounded-lg p-3 mb-6">
|
||||
<div class="flex justify-between text-xs mb-2">
|
||||
<span class="font-medium text-gray-700 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span> 考勤数据采集
|
||||
</span>
|
||||
<span class="text-blue-600 font-mono">68%</span>
|
||||
</div>
|
||||
<div class="w-full bg-gray-200/60 rounded-full h-1.5 mb-2 overflow-hidden">
|
||||
<div class="bg-blue-500 h-1.5 rounded-full transition-all duration-500" style="width: 68%"></div>
|
||||
</div>
|
||||
<p class="text-[10px] text-gray-500">抽取第 3/12 页 · 已采 246 条</p>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<div class="text-[11px] text-gray-400 mb-3">最近运行</div>
|
||||
<ul class="space-y-3">
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">考勤数据采集</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">14:32 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">销售订单同步</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">11:08 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-gray-700">OA流程自动化</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">09:45 跳过</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex justify-between text-[11px] text-gray-400 mb-3">
|
||||
<span>平台账号</span>
|
||||
<span class="text-green-600">2 / 3</span>
|
||||
</div>
|
||||
<ul class="space-y-2">
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span>
|
||||
<span class="text-xs text-gray-700">HR 人力资源</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-gray-500">已登录</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-xs text-gray-700">OA办公</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-orange-500">待登录</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const { createApp, ref, computed } = Vue;
|
||||
|
||||
createApp({
|
||||
setup() {
|
||||
const recentUses = ref([
|
||||
{ name: '考勤数据采集', time: '12m', color: 'bg-blue-500' },
|
||||
{ name: 'OA流程自动化', time: '1h', color: 'bg-orange-400' },
|
||||
{ name: '钉钉通知推送', time: '3h', color: 'bg-purple-500' },
|
||||
]);
|
||||
|
||||
const categories = ref(['全部场景', '数据采集', '系统同步', '消息通知', '财务法务']);
|
||||
const activeCategory = ref('全部场景');
|
||||
|
||||
// 补充了更多数据以展示分页效果
|
||||
const scenes = ref([
|
||||
{ id: 1, title: '考勤数据采集', desc: '自动抓取 HR 系统内的员工考勤、请假、加班等数据,并结构化存储为 Excel 或直接入库。', tags: ['HR系统', '数据清洗'], isOfficial: true, lastRun: '今天 14:32', iconBg: 'bg-blue-50', iconColor: 'text-blue-600', iconPath: 'M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z', category: '数据采集' },
|
||||
{ id: 2, title: '销售订单同步', desc: '将电商平台或 CRM 系统中的新订单,定时同步至公司内部 ERP 系统,避免人工录入错漏。', tags: ['CRM', 'ERP', 'API'], isOfficial: true, lastRun: '今天 11:08', iconBg: 'bg-green-50', iconColor: 'text-green-600', iconPath: 'M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4', category: '系统同步' },
|
||||
{ id: 3, title: '仓库库存盘点', desc: '定时从 WMS 仓库管理系统抓取实时库存量,并生成对比报表发送给相关采购负责人。', tags: ['WMS', '报表'], isOfficial: true, lastRun: '昨天 18:20', iconBg: 'bg-indigo-50', iconColor: 'text-indigo-600', iconPath: 'M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4', category: '数据采集' },
|
||||
{ id: 4, title: '钉钉通知推送', desc: '当特定业务系统发生状态变更时,自动触发钉钉群机器人通知。', tags: ['钉钉', 'Webhook'], isOfficial: true, lastRun: '周一 09:00', iconBg: 'bg-purple-50', iconColor: 'text-purple-600', iconPath: 'M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9', category: '消息通知' },
|
||||
{ id: 5, title: 'OA流程自动化', desc: '模拟人工操作,自动登录 OA 系统发起常规审批流程,提高办公效率。', tags: ['OA', 'RPA'], isOfficial: false, lastRun: '今天 09:45', iconBg: 'bg-orange-50', iconColor: 'text-orange-600', iconPath: 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z', category: '系统同步' },
|
||||
{ id: 6, title: '财务对账单导出', desc: '每月初自动登录财务系统,导出上月明细账并发送至财务主管邮箱。', tags: ['财务', '邮件'], isOfficial: true, lastRun: '10-01 08:00', iconBg: 'bg-cyan-50', iconColor: 'text-cyan-600', iconPath: 'M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z', category: '财务法务' },
|
||||
// 以下是补充的数据,用于展示翻页
|
||||
{ id: 7, title: '企微消息群发', desc: '向企业微信指定群组或部门成员发送图文通知。', tags: ['企业微信', '通知'], isOfficial: true, lastRun: '昨天 15:00', iconBg: 'bg-blue-50', iconColor: 'text-blue-600', iconPath: 'M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z', category: '消息通知' },
|
||||
{ id: 8, title: '竞品价格监控', desc: '每天定时抓取竞品网站商品价格,发现降价自动生成报告。', tags: ['爬虫', '竞品'], isOfficial: false, lastRun: '昨天 20:00', iconBg: 'bg-red-50', iconColor: 'text-red-600', iconPath: 'M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z', category: '数据采集' },
|
||||
{ id: 9, title: '发票真伪查验', desc: '上传发票图片或录入代码,自动调用税务接口核验真伪。', tags: ['税务', 'OCR'], isOfficial: true, lastRun: '10-20 10:00', iconBg: 'bg-teal-50', iconColor: 'text-teal-600', iconPath: 'M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z', category: '财务法务' },
|
||||
]);
|
||||
|
||||
// --- 分页逻辑开始 ---
|
||||
const currentPage = ref(1);
|
||||
const pageSize = 6; // 每页显示6个
|
||||
|
||||
// 1. 先根据分类过滤
|
||||
const filteredScenes = computed(() => {
|
||||
if (activeCategory.value === '全部场景') return scenes.value;
|
||||
return scenes.value.filter(s => s.category === activeCategory.value);
|
||||
});
|
||||
|
||||
// 2. 计算总页数
|
||||
const totalPages = computed(() => {
|
||||
return Math.ceil(filteredScenes.value.length / pageSize) || 1;
|
||||
});
|
||||
|
||||
// 3. 截取当前页要展示的数据
|
||||
const paginatedScenes = computed(() => {
|
||||
const start = (currentPage.value - 1) * pageSize;
|
||||
const end = start + pageSize;
|
||||
return filteredScenes.value.slice(start, end);
|
||||
});
|
||||
|
||||
// 4. 翻页方法
|
||||
const prevPage = () => {
|
||||
if (currentPage.value > 1) currentPage.value--;
|
||||
};
|
||||
const nextPage = () => {
|
||||
if (currentPage.value < totalPages.value) currentPage.value++;
|
||||
};
|
||||
// --- 分页逻辑结束 ---
|
||||
|
||||
return {
|
||||
recentUses,
|
||||
categories,
|
||||
activeCategory,
|
||||
filteredScenes, // 用于显示总数
|
||||
paginatedScenes, // 用于渲染网格
|
||||
currentPage,
|
||||
totalPages,
|
||||
prevPage,
|
||||
nextPage
|
||||
};
|
||||
}
|
||||
}).mount('#app');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,338 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>37du 自动化工作台 - 总览 (统一版)</title>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<style>
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
|
||||
|
||||
.progress-gradient { background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%); }
|
||||
.table-row-hover:hover { background-color: #f8fafc; }
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-[#f5f6f8] text-gray-800 h-screen overflow-hidden text-sm">
|
||||
|
||||
<div id="app" class="flex h-full w-full p-2 gap-2">
|
||||
|
||||
<!-- ================= 左侧导航栏 ================= -->
|
||||
<aside class="w-[220px] bg-white rounded-xl flex flex-col shadow-sm border border-gray-100 overflow-y-auto flex-shrink-0">
|
||||
<div class="p-4 flex items-center gap-2 border-b border-gray-50">
|
||||
<div class="w-6 h-6 bg-blue-600 rounded flex items-center justify-center text-white text-xs font-bold">37</div>
|
||||
<span class="font-bold text-gray-700">37du 自动化工作台</span>
|
||||
</div>
|
||||
<div class="p-3 space-y-1">
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 bg-blue-50 text-blue-600 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
|
||||
<span>总览</span>
|
||||
</div>
|
||||
<span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full">12</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path></svg>
|
||||
<span>场景库</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">18</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
|
||||
<span>计划</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">7</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
|
||||
<span>平台账号</span>
|
||||
</div>
|
||||
<span class="text-xs bg-green-100 text-green-600 px-2 py-0.5 rounded-full">2/3</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="px-3 pb-2 mt-2">
|
||||
<div class="relative">
|
||||
<svg class="w-3.5 h-3.5 absolute left-2.5 top-2.5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
|
||||
<input type="text" placeholder="搜索场景" class="w-full bg-gray-50 border border-gray-100 rounded-md py-1.5 pl-8 pr-3 text-xs focus:outline-none focus:ring-1 focus:ring-blue-500">
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-3 mt-1 flex-1">
|
||||
<div class="text-xs text-gray-400 mb-2 px-1">最近使用</div>
|
||||
<ul class="space-y-0.5">
|
||||
<li v-for="item in recentUses" :key="item.name" class="flex items-center justify-between px-2 py-2 hover:bg-gray-50 rounded-md cursor-pointer group">
|
||||
<div class="flex items-center gap-2 truncate">
|
||||
<span class="w-1.5 h-1.5 rounded-full shrink-0" :class="item.color"></span>
|
||||
<span class="text-gray-700 text-xs truncate">{{ item.name }}</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px] shrink-0">{{ item.time }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="p-3 border-t border-gray-100">
|
||||
<div class="flex items-center justify-between bg-gray-50 rounded-lg p-2">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 text-xs font-bold">李</div>
|
||||
<div>
|
||||
<div class="text-xs font-medium text-gray-700">李骁柠</div>
|
||||
<div class="text-[10px] text-gray-400">本机操作员</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="text-[10px] text-gray-500 hover:text-gray-700">退出</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ================= 中间主内容区 (统一的大白卡包裹) ================= -->
|
||||
<main class="flex-1 flex flex-col min-w-0 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden">
|
||||
|
||||
<!-- 1. 头部区域 (去除了灰底,融为一体) -->
|
||||
<header class="px-6 py-5 border-b border-gray-100 flex justify-between items-end flex-shrink-0">
|
||||
<div>
|
||||
<div class="flex items-center gap-2 text-xs text-gray-400 mb-2">
|
||||
<span>总览</span>
|
||||
</div>
|
||||
<h1 class="text-2xl font-bold text-gray-800 mb-1">今日运行简报</h1>
|
||||
<p class="text-xs text-gray-500">2026.10.23 周五 · 3 个计划待执行 · 每 30 秒自动刷新</p>
|
||||
</div>
|
||||
<div class="flex gap-2 mb-1">
|
||||
<button class="px-4 py-1.5 bg-white border border-gray-200 text-gray-600 rounded-lg hover:bg-gray-50 text-xs font-medium shadow-sm">
|
||||
全部场景
|
||||
</button>
|
||||
<button class="px-4 py-1.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-xs font-medium shadow-sm">
|
||||
新建场景
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 内部滚动区 (包含 KPI、图表、表格) -->
|
||||
<div class="flex-1 overflow-y-auto p-6 flex flex-col gap-6 bg-white">
|
||||
|
||||
<!-- 2. KPI 数据卡片区 -->
|
||||
<!-- 注意:因为在白卡里,为了体现层级,给这些指标卡加了浅灰色的背景框 -->
|
||||
<section class="grid grid-cols-4 gap-4 flex-shrink-0">
|
||||
<div class="bg-gray-50 rounded-xl p-4 border border-gray-100 flex flex-col justify-center">
|
||||
<div class="text-xs text-gray-500 mb-1">可用场景</div>
|
||||
<div class="text-2xl font-bold text-gray-800 mb-1 flex items-baseline gap-1">1.8 <span class="text-xs font-normal text-gray-400">百</span></div>
|
||||
<div class="text-[10px] text-gray-400">其中 6 个常用场景</div>
|
||||
</div>
|
||||
<div class="bg-gray-50 rounded-xl p-4 border border-gray-100 flex flex-col justify-center">
|
||||
<div class="text-xs text-gray-500 mb-1">定时任务</div>
|
||||
<div class="text-2xl font-bold text-gray-800 mb-1">3 <span class="text-xs font-normal text-gray-400">个</span></div>
|
||||
<div class="text-[10px] text-gray-400">下次执行 明天 08:30</div>
|
||||
</div>
|
||||
<div class="bg-gray-50 rounded-xl p-4 border border-gray-100 flex flex-col justify-center">
|
||||
<div class="text-xs text-gray-500 mb-1">平台在线</div>
|
||||
<div class="text-2xl font-bold text-gray-800 mb-1">2<span class="text-lg text-gray-400">/3</span></div>
|
||||
<div class="text-[10px] text-orange-500">OA 办公待登录</div>
|
||||
</div>
|
||||
<div class="bg-gray-50 rounded-xl p-4 border border-gray-100 flex flex-col justify-center relative overflow-hidden">
|
||||
<div class="text-xs text-gray-500 mb-1">近 7 日成功率</div>
|
||||
<div class="text-2xl font-bold text-gray-800 mb-1">96.2<span class="text-lg">%</span></div>
|
||||
<div class="text-[10px] text-gray-400">共 41 次运行 · 2 次跳过</div>
|
||||
<svg class="absolute right-0 bottom-0 w-24 h-12 text-green-100 opacity-60 pointer-events-none" viewBox="0 0 100 50" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M0 40 Q 20 20, 40 30 T 80 10 T 100 20" />
|
||||
</svg>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 3. 运行状态 & 迷你图表 -->
|
||||
<section class="grid grid-cols-4 gap-4 flex-shrink-0">
|
||||
<!-- 大进度卡片 -->
|
||||
<div class="col-span-3 bg-gray-50 rounded-xl p-5 border border-gray-100 flex flex-col justify-center relative">
|
||||
<div class="flex justify-between items-start mb-5">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-2 h-2 rounded-full bg-red-500 animate-pulse"></span>
|
||||
<span class="text-xs font-medium text-gray-600 border border-gray-200 px-1.5 py-0.5 rounded bg-white">运行中</span>
|
||||
<span class="text-sm font-bold text-gray-800 ml-2">考勤数据采集</span>
|
||||
</div>
|
||||
<div class="text-sm font-bold text-blue-600">68% <span class="text-xs text-gray-400 font-normal ml-1">3 / 12 页</span></div>
|
||||
</div>
|
||||
<div class="w-full bg-gray-200 rounded-full h-2.5 mb-3 overflow-hidden">
|
||||
<div class="progress-gradient h-2.5 rounded-full relative" style="width: 68%"></div>
|
||||
</div>
|
||||
<div class="flex justify-between text-[11px] text-gray-400 mt-1">
|
||||
<span>14:31:24 · 已采 246 条 · 正在解析部门维度</span>
|
||||
<span>剩余约 40s</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 迷你柱状图 -->
|
||||
<div class="col-span-1 bg-gray-50 rounded-xl p-4 border border-gray-100 flex flex-col justify-between">
|
||||
<div class="flex justify-between items-center mb-2">
|
||||
<span class="text-xs text-gray-500">近 7 日运行</span>
|
||||
<span class="text-[10px] text-gray-400">41次</span>
|
||||
</div>
|
||||
<div class="flex items-end justify-between h-10 gap-1 mt-2">
|
||||
<div v-for="(bar, i) in miniChart" :key="i" class="w-full rounded-sm transition-all group relative cursor-pointer"
|
||||
:class="bar.isToday ? 'bg-blue-600' : 'bg-gray-200 hover:bg-gray-300'"
|
||||
:style="{ height: bar.height + '%' }">
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex justify-between text-[9px] text-gray-400 mt-2 px-0.5">
|
||||
<span>六</span><span>日</span><span>一</span><span>二</span><span>三</span><span>四</span><span class="text-blue-600 font-bold">五</span>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- 4. 最近运行场景表格 (去掉外边框,直接贴合在主卡片内) -->
|
||||
<section class="border border-gray-100 rounded-xl overflow-hidden flex-1 flex flex-col min-h-[300px]">
|
||||
<div class="px-5 py-4 flex justify-between items-center border-b border-gray-100 bg-gray-50/50 flex-shrink-0">
|
||||
<h2 class="font-bold text-gray-800 text-sm">最近运行场景</h2>
|
||||
<a href="#" class="text-xs text-blue-600 hover:underline">全部 18 个场景 →</a>
|
||||
</div>
|
||||
<div class="overflow-x-auto flex-1">
|
||||
<table class="w-full text-left border-collapse">
|
||||
<thead class="bg-white text-[11px] text-gray-500 sticky top-0 border-b border-gray-100">
|
||||
<tr>
|
||||
<th class="px-5 py-3 font-medium w-12 text-center">#</th>
|
||||
<th class="px-5 py-3 font-medium">场景名称</th>
|
||||
<th class="px-5 py-3 font-medium">平台 / 分类</th>
|
||||
<th class="px-5 py-3 font-medium">最近运行</th>
|
||||
<th class="px-5 py-3 font-medium text-right pr-6">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-50">
|
||||
<tr v-for="(task, index) in recentTasks" :key="task.id" class="table-row-hover transition-colors">
|
||||
<td class="px-5 py-3 text-xs text-gray-400 font-mono text-center">{{ String(index + 1).padStart(2, '0') }}</td>
|
||||
<td class="px-5 py-3 text-xs text-gray-800 font-medium">{{ task.name }}</td>
|
||||
<td class="px-5 py-3 text-xs text-gray-500">{{ task.platform }}</td>
|
||||
<td class="px-5 py-3 text-xs text-gray-500">{{ task.time }}</td>
|
||||
<td class="px-5 py-3 text-right pr-6">
|
||||
<span v-if="task.status === 'success'" class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-green-50 text-green-600 text-xs font-medium border border-green-100">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span> 成功
|
||||
</span>
|
||||
<span v-else-if="task.status === 'pending'" class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-md bg-orange-50 text-orange-500 text-xs font-medium border border-orange-100">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span> 待登录
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="px-5 py-3 border-t border-gray-100 flex justify-between items-center text-xs text-gray-400 bg-white flex-shrink-0">
|
||||
<span>显示 7 / 18 项 · 按最近运行排序</span>
|
||||
<button class="text-blue-600 hover:text-blue-700 font-medium">加载更多 →</button>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<!-- ================= 右侧活动面板 ================= -->
|
||||
<aside class="w-[280px] bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col flex-shrink-0 overflow-y-auto hidden lg:flex">
|
||||
<div class="p-4">
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<h2 class="font-bold text-gray-800 text-sm">活动</h2>
|
||||
<span class="text-[10px] text-red-500 bg-red-50 px-2 py-0.5 rounded border border-red-100 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse"></span> 2 进行中
|
||||
</span>
|
||||
</div>
|
||||
<div class="bg-blue-50/50 border border-blue-100 rounded-lg p-3 mb-6">
|
||||
<div class="flex justify-between text-xs mb-2">
|
||||
<span class="font-medium text-gray-700 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span> 考勤数据采集
|
||||
</span>
|
||||
<span class="text-blue-600 font-mono">68%</span>
|
||||
</div>
|
||||
<div class="w-full bg-gray-200/60 rounded-full h-1.5 mb-2 overflow-hidden">
|
||||
<div class="bg-blue-500 h-1.5 rounded-full transition-all duration-500" style="width: 68%"></div>
|
||||
</div>
|
||||
<p class="text-[10px] text-gray-500">抽取第 3/12 页 · 已采 246 条</p>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<div class="text-[11px] text-gray-400 mb-3">最近运行</div>
|
||||
<ul class="space-y-3">
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">考勤数据采集</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">14:32 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">销售订单同步</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">11:08 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-gray-700">OA流程自动化</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">09:45 跳过</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex justify-between text-[11px] text-gray-400 mb-3">
|
||||
<span>平台账号</span>
|
||||
<span class="text-green-600">2 / 3</span>
|
||||
</div>
|
||||
<ul class="space-y-2">
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span>
|
||||
<span class="text-xs text-gray-700">HR 人力资源</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-gray-500">已登录</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-xs text-gray-700">OA办公</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-orange-500">待登录</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const { createApp, ref } = Vue;
|
||||
|
||||
createApp({
|
||||
setup() {
|
||||
const recentUses = ref([
|
||||
{ name: '考勤数据采集', time: '12m', color: 'bg-blue-500' },
|
||||
{ name: 'OA流程自动化', time: '1h', color: 'bg-orange-400' },
|
||||
{ name: '钉钉通知推送', time: '3h', color: 'bg-purple-500' },
|
||||
{ name: '销售订单同步', time: '昨天', color: 'bg-green-500' },
|
||||
]);
|
||||
|
||||
const miniChart = ref([
|
||||
{ height: 30 }, { height: 50 }, { height: 20 },
|
||||
{ height: 40 }, { height: 60 }, { height: 45 },
|
||||
{ height: 90, isToday: true }
|
||||
]);
|
||||
|
||||
const recentTasks = ref([
|
||||
{ id: 1, name: '考勤数据采集', platform: 'HR · 数据采集', time: '今天 14:32', status: 'success' },
|
||||
{ id: 2, name: '销售订单同步', platform: 'CRM · 同步', time: '今天 11:08', status: 'success' },
|
||||
{ id: 3, name: '仓库库存盘点', platform: 'WMS · 采集', time: '昨天 18:20', status: 'success' },
|
||||
{ id: 4, name: '钉钉通知推送', platform: '钉钉 · 通知', time: '周一 09:00', status: 'success' },
|
||||
{ id: 5, name: 'OA流程自动化', platform: 'OA · 流程', time: '今天 09:45', status: 'pending' },
|
||||
{ id: 6, name: '财务对账单导出', platform: '金蝶 · 财务', time: '10-01 08:00', status: 'success' },
|
||||
{ id: 7, name: '合同归档同步', platform: '法务盘 · 归档', time: '周一 15:20', status: 'success' },
|
||||
]);
|
||||
|
||||
return {
|
||||
recentUses,
|
||||
miniChart,
|
||||
recentTasks
|
||||
};
|
||||
}
|
||||
}).mount('#app');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,288 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>现代化工作流配置面板</title>
|
||||
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
|
||||
<!-- 引入 Inter 字体,提升数字和英文的质感 -->
|
||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">
|
||||
|
||||
<style>
|
||||
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
|
||||
|
||||
/* 隐藏原生的 summary 箭头 */
|
||||
details > summary { list-style: none; }
|
||||
details > summary::-webkit-details-marker { display: none; }
|
||||
|
||||
/* 自定义滚动条 */
|
||||
::-webkit-scrollbar { width: 5px; height: 5px; }
|
||||
::-webkit-scrollbar-thumb { background-color: #d1d5db; border-radius: 10px; }
|
||||
::-webkit-scrollbar-track { background-color: transparent; }
|
||||
|
||||
/* 页面切换动画 */
|
||||
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
|
||||
.fade-enter-from, .fade-leave-to { opacity: 0; }
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-[#f9fafb] text-gray-900 antialiased overflow-hidden">
|
||||
|
||||
<div id="app" class="flex h-screen w-screen">
|
||||
|
||||
<!-- ================= 侧边栏:极简深色/浅色导航 ================= -->
|
||||
<aside class="w-64 bg-white border-r border-gray-200 flex flex-col hidden md:flex">
|
||||
<!-- Logo & Workspace -->
|
||||
<div class="h-16 flex items-center px-6 border-b border-gray-100">
|
||||
<div class="w-6 h-6 bg-indigo-600 rounded-md flex items-center justify-center text-white font-bold text-xs mr-3">37</div>
|
||||
<span class="font-semibold text-sm text-gray-800">自动化工作台</span>
|
||||
</div>
|
||||
|
||||
<!-- 导航菜单 -->
|
||||
<div class="flex-1 overflow-y-auto py-4 px-3 space-y-1">
|
||||
<div class="text-xs font-semibold text-gray-400 px-3 py-2 uppercase tracking-wider">工作区</div>
|
||||
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium text-gray-700 bg-gray-100 rounded-md">
|
||||
<svg class="w-4 h-4 mr-3 text-gray-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg>
|
||||
场景库
|
||||
</a>
|
||||
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium text-gray-600 hover:bg-gray-50 rounded-md transition-colors">
|
||||
<svg class="w-4 h-4 mr-3 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
||||
执行计划
|
||||
</a>
|
||||
|
||||
<div class="text-xs font-semibold text-gray-400 px-3 py-2 mt-6 uppercase tracking-wider">最近使用</div>
|
||||
<!-- 当前活跃任务 -->
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-sm font-medium text-indigo-600 bg-indigo-50/50 rounded-md border border-indigo-100">
|
||||
<div class="flex items-center">
|
||||
<div class="w-1.5 h-1.5 bg-indigo-600 rounded-full mr-2.5"></div>
|
||||
续签电子签
|
||||
</div>
|
||||
<span class="text-[10px] bg-white px-1.5 py-0.5 rounded border border-indigo-100">v1.0.23</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center px-3 py-2 text-sm font-medium text-gray-600 hover:bg-gray-50 rounded-md transition-colors">
|
||||
<div class="w-1.5 h-1.5 bg-gray-300 rounded-full mr-2.5"></div>
|
||||
EHR系统请假流程
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<!-- 底部用户 -->
|
||||
<div class="p-4 border-t border-gray-100 flex items-center gap-3">
|
||||
<div class="w-8 h-8 rounded-full bg-gradient-to-tr from-indigo-500 to-purple-500 text-white flex items-center justify-center text-xs font-bold shadow-sm">人</div>
|
||||
<div class="flex-1">
|
||||
<p class="text-sm font-medium text-gray-700">人资专用号</p>
|
||||
<p class="text-xs text-gray-400">授权剩余 7 天</p>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ================= 主内容区 ================= -->
|
||||
<main class="flex-1 flex flex-col h-full bg-white relative">
|
||||
|
||||
<!-- 顶部 Header:极简,无边框 -->
|
||||
<header class="h-16 flex items-center justify-between px-8 shrink-0">
|
||||
<div class="flex items-center gap-3">
|
||||
<h1 class="text-lg font-semibold text-gray-900">续签电子签</h1>
|
||||
<!-- 状态徽章 -->
|
||||
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-emerald-50 text-emerald-700 text-xs font-medium border border-emerald-200/50">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-emerald-500"></span>
|
||||
已保存
|
||||
</span>
|
||||
<!-- 联调状态 -->
|
||||
<span class="inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full bg-amber-50 text-amber-700 text-xs font-medium border border-amber-200/50">
|
||||
HR系统未登录
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-3">
|
||||
<details class="relative group">
|
||||
<summary class="cursor-pointer text-sm text-gray-500 hover:text-gray-900 flex items-center gap-1 transition-colors">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
||||
流程说明
|
||||
</summary>
|
||||
<!-- 悬浮气泡,不再占据页面空间 -->
|
||||
<div class="absolute right-0 top-8 w-80 p-4 bg-gray-900 text-gray-300 text-xs leading-relaxed rounded-xl shadow-xl z-50">
|
||||
驱动来自钉钉AI表格。全流程包含:回填否续签 + 推送续签 + 签署核验。如果 HR 未登录,部分回写动作将被拦截。
|
||||
</div>
|
||||
</details>
|
||||
|
||||
<button class="text-sm font-medium text-gray-500 hover:text-gray-900 px-3 py-1.5 rounded-md hover:bg-gray-100 transition-colors">回退 v1.0.22</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 配置区(可滚动) -->
|
||||
<div class="flex-1 overflow-y-auto px-8 pb-32">
|
||||
|
||||
<div class="max-w-3xl">
|
||||
<!-- 选项卡 (极简下划线风格) -->
|
||||
<div class="flex items-center gap-6 border-b border-gray-100 mb-8 mt-2">
|
||||
<button class="pb-3 text-sm font-medium text-gray-900 border-b-2 border-gray-900">插件界面</button>
|
||||
<button class="pb-3 text-sm font-medium text-gray-400 hover:text-gray-700 transition-colors">运行日志</button>
|
||||
<button class="pb-3 text-sm font-medium text-gray-400 hover:text-gray-700 transition-colors">历史运行</button>
|
||||
</div>
|
||||
|
||||
<!-- 步骤 1:路径选择 -->
|
||||
<div class="flex gap-6 mb-10 relative">
|
||||
<!-- 左侧时间线连线 -->
|
||||
<div class="absolute left-[15px] top-10 bottom-[-40px] w-px bg-gray-200"></div>
|
||||
|
||||
<div class="w-8 h-8 rounded-full bg-gray-900 text-white flex items-center justify-center text-xs font-bold shrink-0 mt-0.5 z-10 ring-4 ring-white">
|
||||
1
|
||||
</div>
|
||||
|
||||
<div class="flex-1">
|
||||
<h2 class="text-base font-semibold text-gray-900 mb-1">选择执行路径</h2>
|
||||
<p class="text-sm text-gray-500 mb-4">决定本次自动化任务执行的深度和范围。</p>
|
||||
|
||||
<!-- 卡片式单选器 -->
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-3 mb-4">
|
||||
<label v-for="item in steps" :key="item.id"
|
||||
:class="['relative flex flex-col p-4 cursor-pointer rounded-xl border-2 transition-all duration-200', stepType === item.id ? 'border-indigo-600 bg-indigo-50/30' : 'border-gray-200 hover:border-gray-300 bg-white']">
|
||||
<input type="radio" :value="item.id" v-model="stepType" class="sr-only">
|
||||
<span class="text-sm font-semibold mb-1" :class="stepType === item.id ? 'text-indigo-700' : 'text-gray-900'">{{ item.title }}</span>
|
||||
<span class="text-xs text-gray-500 leading-relaxed">{{ item.desc }}</span>
|
||||
|
||||
<!-- 选中图标 -->
|
||||
<div v-if="stepType === item.id" class="absolute top-3 right-3 text-indigo-600">
|
||||
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd"></path></svg>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 步骤 2:参数设置 -->
|
||||
<div class="flex gap-6 relative">
|
||||
<!-- 左侧时间线连线 -->
|
||||
<div class="absolute left-[15px] top-10 bottom-0 w-px bg-gray-200"></div>
|
||||
|
||||
<div class="w-8 h-8 rounded-full bg-white border-2 border-gray-300 text-gray-500 flex items-center justify-center text-xs font-bold shrink-0 mt-0.5 z-10 ring-4 ring-white">
|
||||
2
|
||||
</div>
|
||||
|
||||
<div class="flex-1">
|
||||
<h2 class="text-base font-semibold text-gray-900 mb-1">配置执行参数</h2>
|
||||
<p class="text-sm text-gray-500 mb-6">设置运行时的环境变量与通知方式。</p>
|
||||
|
||||
<!-- 列表式表单 -->
|
||||
<div class="bg-gray-50 rounded-2xl p-2 border border-gray-100">
|
||||
|
||||
<!-- 设置项 1 -->
|
||||
<div class="flex items-center justify-between p-4 bg-white rounded-xl mb-1 shadow-sm">
|
||||
<div>
|
||||
<h3 class="text-sm font-medium text-gray-900">试算模式</h3>
|
||||
<p class="text-xs text-gray-500 mt-0.5">开启后只检查不写入,用于手动验证流程是否通畅。</p>
|
||||
</div>
|
||||
<!-- 现代 Switch -->
|
||||
<button @click="testMode = !testMode" :class="[testMode ? 'bg-indigo-600' : 'bg-gray-200', 'relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none']">
|
||||
<span :class="[testMode ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out']"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 设置项 2 -->
|
||||
<div class="flex items-center justify-between p-4 bg-white rounded-xl mb-1 shadow-sm">
|
||||
<div>
|
||||
<h3 class="text-sm font-medium text-gray-900">钉钉群通知</h3>
|
||||
<p class="text-xs text-gray-500 mt-0.5">执行完成或失败后,将结果推送到指定群聊。</p>
|
||||
</div>
|
||||
<button @click="notifyMode = !notifyMode" :class="[notifyMode ? 'bg-indigo-600' : 'bg-gray-200', 'relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none']">
|
||||
<span :class="[notifyMode ? 'translate-x-5' : 'translate-x-0', 'pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out']"></span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- 设置项 3 (联动显示) -->
|
||||
<transition name="fade">
|
||||
<div v-if="notifyMode" class="flex items-center justify-between p-4 bg-white rounded-xl shadow-sm">
|
||||
<div>
|
||||
<h3 class="text-sm font-medium text-gray-900">通知对象</h3>
|
||||
<p class="text-xs text-gray-500 mt-0.5">选择接收执行结果的钉钉群。</p>
|
||||
</div>
|
||||
<!-- 现代化下拉框 -->
|
||||
<div class="relative">
|
||||
<select class="appearance-none bg-gray-50 border border-gray-200 text-gray-700 text-sm rounded-lg focus:ring-indigo-500 focus:border-indigo-500 block w-40 p-2.5 pr-8 cursor-pointer hover:bg-gray-100 transition-colors">
|
||||
<option>测试群</option>
|
||||
<option>HR 业务群</option>
|
||||
</select>
|
||||
<div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-400">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</transition>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 底部折叠备注区 -->
|
||||
<div class="mt-4">
|
||||
<details class="group bg-gray-50 rounded-xl border border-gray-100 overflow-hidden">
|
||||
<summary class="flex items-center justify-between p-4 cursor-pointer hover:bg-gray-100 transition-colors">
|
||||
<span class="text-sm font-medium text-gray-700">运行备注 (选填)</span>
|
||||
<svg class="w-4 h-4 text-gray-400 transition-transform group-open:rotate-180" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path></svg>
|
||||
</summary>
|
||||
<div class="p-4 pt-0">
|
||||
<textarea rows="2" placeholder="给本次配置写点备注..." class="w-full bg-white border border-gray-200 rounded-lg p-3 text-sm focus:outline-none focus:ring-2 focus:ring-indigo-500/20 focus:border-indigo-500 transition-all resize-none"></textarea>
|
||||
</div>
|
||||
</details>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- ================= 底部悬浮控制台 ================= -->
|
||||
<!-- 使用毛玻璃和阴影,永远吸附在视口底部 -->
|
||||
<div class="absolute bottom-0 left-0 right-0 p-6 bg-gradient-to-t from-white via-white/90 to-transparent pointer-events-none">
|
||||
<div class="max-w-3xl bg-white/80 backdrop-blur-xl border border-gray-200/60 shadow-[0_8px_30px_rgb(0,0,0,0.06)] rounded-2xl p-3 flex items-center justify-between pointer-events-auto">
|
||||
|
||||
<!-- 左侧:历史状态 -->
|
||||
<div class="flex items-center gap-3 pl-2">
|
||||
<div class="flex items-center gap-1.5 text-xs text-gray-500">
|
||||
<div class="w-1.5 h-1.5 bg-emerald-500 rounded-full"></div>
|
||||
自动保存于 12:19
|
||||
</div>
|
||||
<button class="text-xs text-gray-500 hover:text-gray-900 transition-colors">恢复默认</button>
|
||||
</div>
|
||||
|
||||
<!-- 右侧:核心操作 -->
|
||||
<div class="flex items-center gap-2">
|
||||
<button class="px-4 py-2 text-sm font-medium text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-xl transition-colors">保存草稿</button>
|
||||
<button class="px-5 py-2.5 bg-indigo-600 hover:bg-indigo-700 text-white text-sm font-medium rounded-xl shadow-sm shadow-indigo-600/20 transition-all active:scale-95 flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
|
||||
一键执行
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const { createApp, ref } = Vue;
|
||||
|
||||
createApp({
|
||||
setup() {
|
||||
const testMode = ref(true);
|
||||
const notifyMode = ref(true);
|
||||
const stepType = ref('full');
|
||||
|
||||
const steps = [
|
||||
{ id: 'full', title: '① 全流程', desc: '回填否续签 + 推送续签 + 签署核验,默认选择。' },
|
||||
{ id: 'push', title: '② 仅推送', desc: '只做回填、手机校验及 HR 系统提交推送。' },
|
||||
{ id: 'verify', title: '③ 仅核验', desc: '只检查已推送的电子签是否已完成签署。' }
|
||||
];
|
||||
|
||||
return {
|
||||
testMode,
|
||||
notifyMode,
|
||||
stepType,
|
||||
steps
|
||||
}
|
||||
}
|
||||
}).mount('#app');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,330 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>37du 自动化工作台 - 计划任务</title>
|
||||
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<style>
|
||||
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
|
||||
::-webkit-scrollbar { width: 6px; height: 6px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 3px; }
|
||||
::-webkit-scrollbar-thumb:hover { background: #d1d5db; }
|
||||
|
||||
/* 表格行的悬浮微效 */
|
||||
.table-row-hover:hover {
|
||||
background-color: #f8fafc;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-[#f5f6f8] text-gray-800 h-screen overflow-hidden text-sm">
|
||||
|
||||
<div id="app" class="flex h-full w-full p-2 gap-2">
|
||||
|
||||
<!-- ================= 左侧导航栏 (高亮“计划”) ================= -->
|
||||
<aside class="w-[220px] bg-white rounded-xl flex flex-col shadow-sm border border-gray-100 overflow-y-auto flex-shrink-0">
|
||||
<div class="p-4 flex items-center gap-2 border-b border-gray-50">
|
||||
<div class="w-6 h-6 bg-blue-600 rounded flex items-center justify-center text-white text-xs font-bold">37</div>
|
||||
<span class="font-bold text-gray-700">37du 自动化工作台</span>
|
||||
</div>
|
||||
<div class="p-3 space-y-1">
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
|
||||
<span>总览</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">12</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2V6zM14 6a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V6zM4 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2H6a2 2 0 01-2-2v-2zM14 16a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"></path></svg>
|
||||
<span>场景库</span>
|
||||
</div>
|
||||
<span class="text-xs text-gray-400">18</span>
|
||||
</a>
|
||||
<!-- 高亮计划 -->
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 bg-blue-50 text-blue-600 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg>
|
||||
<span>计划</span>
|
||||
</div>
|
||||
<span class="text-xs bg-blue-100 text-blue-600 px-2 py-0.5 rounded-full">7</span>
|
||||
</a>
|
||||
<a href="#" class="flex items-center justify-between px-3 py-2 text-gray-600 hover:bg-gray-50 rounded-lg">
|
||||
<div class="flex items-center gap-2">
|
||||
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
|
||||
<span>平台账号</span>
|
||||
</div>
|
||||
<span class="text-xs bg-green-100 text-green-600 px-2 py-0.5 rounded-full">2/3</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="px-3 pb-2 mt-2">
|
||||
<div class="relative">
|
||||
<svg class="w-3.5 h-3.5 absolute left-2.5 top-2.5 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
|
||||
<input type="text" placeholder="搜索场景" class="w-full bg-gray-50 border border-gray-100 rounded-md py-1.5 pl-8 pr-3 text-xs focus:outline-none focus:ring-1 focus:ring-blue-500">
|
||||
</div>
|
||||
</div>
|
||||
<div class="p-3 mt-1 flex-1">
|
||||
<div class="text-xs text-gray-400 mb-2 px-1">最近使用</div>
|
||||
<ul class="space-y-0.5">
|
||||
<li v-for="item in recentUses" :key="item.name" class="flex items-center justify-between px-2 py-2 hover:bg-gray-50 rounded-md cursor-pointer group">
|
||||
<div class="flex items-center gap-2 truncate">
|
||||
<span class="w-1.5 h-1.5 rounded-full shrink-0" :class="item.color"></span>
|
||||
<span class="text-gray-700 text-xs truncate">{{ item.name }}</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px] shrink-0">{{ item.time }}</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="p-3 border-t border-gray-100">
|
||||
<div class="flex items-center justify-between bg-gray-50 rounded-lg p-2">
|
||||
<div class="flex items-center gap-2">
|
||||
<div class="w-6 h-6 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 text-xs font-bold">李</div>
|
||||
<div>
|
||||
<div class="text-xs font-medium text-gray-700">李骁柠</div>
|
||||
<div class="text-[10px] text-gray-400">本机操作员</div>
|
||||
</div>
|
||||
</div>
|
||||
<button class="text-[10px] text-gray-500 hover:text-gray-700">退出</button>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<!-- ================= 中间主内容区 ================= -->
|
||||
<main class="flex-1 flex flex-col min-w-0 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden">
|
||||
|
||||
<!-- 1. 头部区域 -->
|
||||
<header class="px-6 py-5 border-b border-gray-100 flex justify-between items-end flex-shrink-0">
|
||||
<div>
|
||||
<div class="flex items-center gap-2 text-xs text-gray-400 mb-2">
|
||||
<span>计划</span>
|
||||
<span class="text-gray-300">/</span>
|
||||
<span>工作台</span>
|
||||
</div>
|
||||
<h1 class="text-2xl font-bold text-gray-800 mb-1">计划任务</h1>
|
||||
<p class="text-xs text-gray-500">
|
||||
<span class="text-blue-600 font-medium">{{ stats.active }}</span> 个启用 ·
|
||||
<span class="text-gray-700 font-medium">{{ stats.paused }}</span> 个暂停 ·
|
||||
下次执行 {{ stats.nextRun }} ·
|
||||
平均用时 {{ stats.avgTime }}
|
||||
</p>
|
||||
</div>
|
||||
<div class="flex gap-2 mb-1">
|
||||
<button class="px-4 py-1.5 bg-white border border-gray-200 text-gray-600 rounded-lg hover:bg-gray-50 text-xs font-medium shadow-sm">
|
||||
暂停全部
|
||||
</button>
|
||||
<button class="px-4 py-1.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 text-xs font-medium shadow-sm">
|
||||
新建计划
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- 2. 图表区域 -->
|
||||
<div class="px-6 py-4 border-b border-gray-50 flex-shrink-0">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<h2 class="font-bold text-gray-800 text-sm">本周运行分布</h2>
|
||||
<span class="text-[11px] text-gray-400">共 12 次 · 峰值 周四 4次</span>
|
||||
</div>
|
||||
|
||||
<!-- 柱状图 (CSS 模拟) -->
|
||||
<div class="flex items-end justify-between h-20 px-2 mb-2">
|
||||
<div v-for="(day, index) in chartData" :key="index" class="flex flex-col items-center gap-2 w-full group cursor-pointer">
|
||||
<div class="w-8 rounded-t-md transition-all duration-300 relative group-hover:opacity-80"
|
||||
:class="day.isToday ? 'bg-blue-600' : 'bg-gray-100'"
|
||||
:style="{ height: day.height + 'px' }">
|
||||
<!-- 悬浮提示框 -->
|
||||
<div v-if="day.count > 0" class="absolute -top-7 left-1/2 -translate-x-1/2 bg-gray-800 text-white text-[10px] px-2 py-0.5 rounded opacity-0 group-hover:opacity-100 transition-opacity whitespace-nowrap pointer-events-none z-10">
|
||||
{{ day.count }} 次
|
||||
</div>
|
||||
</div>
|
||||
<span class="text-[11px]" :class="day.isToday ? 'text-blue-600 font-bold' : 'text-gray-400'">{{ day.label }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 3. 表格区域 (自适应高度,内部滚动) -->
|
||||
<div class="flex-1 overflow-y-auto">
|
||||
<table class="w-full text-left border-collapse">
|
||||
<thead class="bg-gray-50 text-[11px] text-gray-500 sticky top-0 z-10">
|
||||
<tr>
|
||||
<th class="px-6 py-3 font-medium">时间</th>
|
||||
<th class="px-6 py-3 font-medium">频率</th>
|
||||
<th class="px-6 py-3 font-medium">场景</th>
|
||||
<th class="px-6 py-3 font-medium">上次结果</th>
|
||||
<th class="px-6 py-3 font-medium">下次执行</th>
|
||||
<th class="px-6 py-3 font-medium text-right">状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-gray-50 text-xs">
|
||||
<tr v-for="task in tasks" :key="task.id" class="table-row-hover transition-colors">
|
||||
<td class="px-6 py-3 text-gray-800 font-mono">{{ task.time }}</td>
|
||||
<td class="px-6 py-3 text-gray-600">{{ task.frequency }}</td>
|
||||
<td class="px-6 py-3 text-gray-800 font-medium">{{ task.scene }}</td>
|
||||
|
||||
<!-- 上次结果 -->
|
||||
<td class="px-6 py-3">
|
||||
<div class="flex items-center gap-1.5">
|
||||
<span v-if="task.result.status === '成功'" class="text-green-600">{{ task.result.status }} · {{ task.result.time }}</span>
|
||||
<span v-else-if="task.result.status === '失败'" class="text-red-500">{{ task.result.status }} · {{ task.result.time }}</span>
|
||||
<span v-else class="text-orange-500">{{ task.result.status }} · {{ task.result.time }}</span>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td class="px-6 py-3 text-gray-500">{{ task.nextRun }}</td>
|
||||
|
||||
<!-- 状态 -->
|
||||
<td class="px-6 py-3 text-right">
|
||||
<span v-if="task.status === '启用'" class="inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-green-50 text-green-600 border border-green-100 font-medium">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span> 启用
|
||||
</span>
|
||||
<span v-else class="inline-flex items-center gap-1 px-2.5 py-1 rounded-md bg-gray-50 text-gray-500 border border-gray-200 font-medium">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-gray-400"></span> 暂停
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- 4. 底部信息 -->
|
||||
<div class="px-6 py-3 border-t border-gray-100 flex justify-between items-center text-xs text-gray-400 bg-white flex-shrink-0">
|
||||
<span>共 {{ tasks.length }} 个计划 · 调度器每 30 秒轮询一次</span>
|
||||
<a href="#" class="text-blue-600 hover:text-blue-700 font-medium flex items-center gap-1">
|
||||
编辑计划
|
||||
<svg class="w-3 h-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
<!-- ================= 右侧活动面板 (保持统一) ================= -->
|
||||
<aside class="w-[280px] bg-white rounded-xl shadow-sm border border-gray-100 flex flex-col flex-shrink-0 overflow-y-auto hidden lg:flex">
|
||||
<div class="p-4">
|
||||
<div class="flex justify-between items-center mb-4">
|
||||
<h2 class="font-bold text-gray-800 text-sm">活动</h2>
|
||||
<span class="text-[10px] text-red-500 bg-red-50 px-2 py-0.5 rounded border border-red-100 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-red-500 animate-pulse"></span> 2 进行中
|
||||
</span>
|
||||
</div>
|
||||
<div class="bg-blue-50/50 border border-blue-100 rounded-lg p-3 mb-6">
|
||||
<div class="flex justify-between text-xs mb-2">
|
||||
<span class="font-medium text-gray-700 flex items-center gap-1">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span> 考勤数据采集
|
||||
</span>
|
||||
<span class="text-blue-600 font-mono">68%</span>
|
||||
</div>
|
||||
<div class="w-full bg-gray-200/60 rounded-full h-1.5 mb-2 overflow-hidden">
|
||||
<div class="bg-blue-500 h-1.5 rounded-full transition-all duration-500" style="width: 68%"></div>
|
||||
</div>
|
||||
<p class="text-[10px] text-gray-500">抽取第 3/12 页 · 已采 246 条</p>
|
||||
</div>
|
||||
<div class="mb-6">
|
||||
<div class="text-[11px] text-gray-400 mb-3">最近运行</div>
|
||||
<ul class="space-y-3">
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">考勤数据采集</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">14:32 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-green-500"></span>
|
||||
<span class="text-gray-700">销售订单同步</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">11:08 成功</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between text-xs">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-gray-700">OA流程自动化</span>
|
||||
</div>
|
||||
<span class="text-gray-400 text-[10px]">09:45 跳过</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<div class="flex justify-between text-[11px] text-gray-400 mb-3">
|
||||
<span>平台账号</span>
|
||||
<span class="text-green-600">2 / 3</span>
|
||||
</div>
|
||||
<ul class="space-y-2">
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-blue-500"></span>
|
||||
<span class="text-xs text-gray-700">HR 人力资源</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-gray-500">已登录</span>
|
||||
</li>
|
||||
<li class="flex items-center justify-between bg-gray-50 p-2 rounded-md border border-gray-100">
|
||||
<div class="flex items-center gap-2">
|
||||
<span class="w-1.5 h-1.5 rounded-full bg-orange-400"></span>
|
||||
<span class="text-xs text-gray-700">OA办公</span>
|
||||
</div>
|
||||
<span class="text-[10px] text-orange-500">待登录</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const { createApp, ref } = Vue;
|
||||
|
||||
createApp({
|
||||
setup() {
|
||||
// 左侧最近使用
|
||||
const recentUses = ref([
|
||||
{ name: '考勤数据采集', time: '12m', color: 'bg-blue-500' },
|
||||
{ name: 'OA流程自动化', time: '1h', color: 'bg-orange-400' },
|
||||
{ name: '钉钉通知推送', time: '3h', color: 'bg-purple-500' },
|
||||
]);
|
||||
|
||||
// 头部统计信息
|
||||
const stats = ref({
|
||||
active: 7,
|
||||
paused: 2,
|
||||
nextRun: '明天 08:30',
|
||||
avgTime: '1分12秒'
|
||||
});
|
||||
|
||||
// 图表数据 (高度为像素值)
|
||||
const chartData = ref([
|
||||
{ label: '周六 17', height: 30, count: 2 },
|
||||
{ label: '周日 18', height: 20, count: 1 },
|
||||
{ label: '周一 19', height: 40, count: 3 },
|
||||
{ label: '周二 20', height: 35, count: 2 },
|
||||
{ label: '周三 21', height: 45, count: 3 },
|
||||
{ label: '周四 22', height: 60, count: 4 },
|
||||
{ label: '今天 23', height: 75, count: 4, isToday: true },
|
||||
]);
|
||||
|
||||
// 表格数据
|
||||
const tasks = ref([
|
||||
{ id: 1, time: '08:30', frequency: '每天', scene: '考勤数据采集', result: { status: '成功', time: '02:14' }, nextRun: '明天 08:30', status: '启用' },
|
||||
{ id: 2, time: '09:00', frequency: '每周一', scene: '销售订单同步', result: { status: '成功', time: '03:08' }, nextRun: '11-02 09:00', status: '启用' },
|
||||
{ id: 3, time: '08:00', frequency: '每月1号', scene: '财务对账单导出', result: { status: '成功', time: '05:42' }, nextRun: '11-01 08:00', status: '启用' },
|
||||
{ id: 4, time: '16:40', frequency: '每周五', scene: '客户回访汇总', result: { status: '成功', time: '01:52' }, nextRun: '10-30 16:40', status: '启用' },
|
||||
{ id: 5, time: '18:20', frequency: '每天', scene: '仓库库存盘点', result: { status: '成功', time: '02:36' }, nextRun: '今天 18:20', status: '启用' },
|
||||
{ id: 6, time: '10:00', frequency: '每月15号', scene: '合同归档同步', result: { status: '成功', time: '04:12' }, nextRun: '11-15 10:00', status: '启用' },
|
||||
{ id: 7, time: '09:00', frequency: '每周一', scene: '钉钉通知推送', result: { status: '跳过', time: '平台未登录' }, nextRun: '暂停中', status: '暂停' },
|
||||
{ id: 8, time: '14:00', frequency: '每天', scene: 'OA流程自动化', result: { status: '失败', time: '00:31' }, nextRun: '暂停中', status: '暂停' },
|
||||
{ id: 9, time: '10:30', frequency: '每周三', scene: '邮件日报推送', result: { status: '成功', time: '00:48' }, nextRun: '10-28 10:30', status: '启用' },
|
||||
]);
|
||||
|
||||
return {
|
||||
recentUses,
|
||||
stats,
|
||||
chartData,
|
||||
tasks
|
||||
};
|
||||
}
|
||||
}).mount('#app');
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user