feat: 新增多插件 UI 支持及运行日志集中回传功能

本次提交包含多项功能更新:
1. 为多个插件(xq0002/0003/0004/0008/0010/0011/0020/0031_xq0032/0033/0035/0037/0045_xq0046/0047/0048)新增 UI 界面及配置支持
2. 新增运行日志集中回传功能,客户端自动上传运行日志到中心机集中存储
3. 新增插件分类字段支持,用于场景库分组管理
4. 优化 xq0034/0037/0048 等插件的功能及描述
5. 修复控制面响应兼容问题,支持新旧版本数据格式
6. 新增 xq0033 插件的状态存储模块,用于历史记录管理
7. 优化 CRM 登录窗口模式,支持全屏置顶
This commit is contained in:
2026-10-26 15:42:50 +08:00
parent 9fd687ada8
commit 843ff244a6
453 changed files with 243002 additions and 4493 deletions
@@ -4,7 +4,7 @@
<div class="log-title">
<i v-if="!isStatic" class="status" :class="store.wsOn ? 'on' : 'off'" :title="store.wsOn ? '实时连接正常' : '连接已中断'"></i>
<span>{{ isStatic ? '历史回看' : '运行日志' }}</span>
<span v-if="store.running && !isStatic" class="live">● LIVE</span>
<RunIndicator v-if="store.running && !isStatic" variant="tag" label="LIVE" />
<span v-else-if="visibleLogs.length" class="count">{{ visibleLogs.length }} 条</span>
</div>
@@ -23,7 +23,7 @@
<div v-if="!visibleLogs.length" class="log-empty">
<template v-if="isStatic">该次运行没有日志记录</template>
<template v-else-if="store.logs.length">当前级别无日志</template>
<template v-else>暂无日志,点击「一键执行」开始</template>
<template v-else>暂无日志,点击「执行」开始</template>
</div>
<div v-for="(l, i) in visibleLogs" :key="i" class="log-line">
<span class="t">{{ l.time || l.t || '' }}</span>
@@ -39,6 +39,7 @@ import { nextTick, ref, watch, computed } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { CopyDocument, VideoPause, VideoPlay } from '@element-plus/icons-vue'
import { store, clearLogs } from '../store'
import RunIndicator from './RunIndicator.vue'
const props = defineProps({
// 历史回看模式:传入后显示该次运行的静态日志(替代 store.logs),并隐藏清空/LIVE
@@ -104,25 +105,25 @@ async function copy() {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 14px 10px 18px;
border-bottom: 1px solid var(--border);
gap: 10px;
padding: var(--space-2-5) var(--space-3) var(--space-2-5) var(--space-4);
border-bottom: 1px solid var(--line);
gap: var(--space-2-5);
}
.log-title {
display: flex;
align-items: center;
gap: 9px;
gap: var(--space-2);
font-size: 13.5px;
font-weight: 600;
color: var(--text);
color: var(--t1);
white-space: nowrap;
}
.log-tools {
display: flex;
align-items: center;
gap: 6px;
gap: var(--space-1-5);
}
.log-tools .el-button+.el-button {
@@ -137,37 +138,24 @@ async function copy() {
}
.status.on {
background: var(--ok);
box-shadow: 0 0 0 3px var(--ok-weak);
background: var(--good);
box-shadow: 0 0 0 3px var(--good-soft);
}
.status.off {
background: var(--dot-off);
}
.live {
color: var(--ok);
font-size: 10px;
animation: blink 1s infinite;
letter-spacing: .04em;
background: var(--idle-bar);
}
.count {
font-size: 11px;
color: var(--text-faint);
color: var(--t3);
font-weight: 500;
}
@keyframes blink {
50% {
opacity: .2;
}
}
.log-empty {
color: var(--text-faint);
padding: 14px;
font-family: var(--mono);
color: var(--t3);
padding: var(--space-3);
font-family: var(--f-mono);
font-size: 12px;
}
</style>