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:
@@ -49,7 +49,7 @@
|
||||
|
||||
<script setup>
|
||||
import { computed, onMounted, ref } from 'vue'
|
||||
import { ArrowDown, Lock, SwitchButton, Odometer, TrendCharts, Box, User, Key, Document, Files, Monitor, Bell } from '@element-plus/icons-vue'
|
||||
import { ArrowDown, Lock, SwitchButton, Odometer, TrendCharts, Box, User, Key, Document, Files, Monitor, Bell, Memo } from '@element-plus/icons-vue'
|
||||
import { ElMessage as message } from 'element-plus'
|
||||
import LoginPage from './components/LoginPage.vue'
|
||||
import PasswordDialog from './components/PasswordDialog.vue'
|
||||
@@ -63,6 +63,7 @@ import CredsManageView from './views/CredsManageView.vue'
|
||||
import FileSourceManageView from './views/FileSourceManageView.vue'
|
||||
import UpgradeView from './views/UpgradeView.vue'
|
||||
import NotifyManageView from './views/NotifyManageView.vue'
|
||||
import LogView from './views/LogView.vue'
|
||||
import { store, clearSession } from './store'
|
||||
import { adminMe } from './api'
|
||||
|
||||
@@ -76,6 +77,7 @@ const menuOptions = [
|
||||
{ label: '权限授权', key: 'grants', icon: Key },
|
||||
{ label: '敏感凭证', key: 'creds', icon: Lock, admin: true },
|
||||
{ label: '大文件源', key: 'files', icon: Files, admin: true },
|
||||
{ label: '运行日志', key: 'logs', icon: Memo, admin: true },
|
||||
{ label: '审计报表', key: 'audit', icon: Document },
|
||||
]
|
||||
const menu = computed(() => menuOptions.filter(m => !m.admin || store.isAdmin))
|
||||
@@ -91,6 +93,7 @@ const KEY = {
|
||||
'#/grants': 'grants',
|
||||
'#/creds': 'creds',
|
||||
'#/files': 'files',
|
||||
'#/logs': 'logs',
|
||||
'#/audit': 'audit',
|
||||
}
|
||||
const VIEWS = {
|
||||
@@ -103,6 +106,7 @@ const VIEWS = {
|
||||
'#/grants': GrantManageView,
|
||||
'#/creds': CredsManageView,
|
||||
'#/files': FileSourceManageView,
|
||||
'#/logs': LogView,
|
||||
'#/audit': AuditView,
|
||||
}
|
||||
const route = ref(VIEWS[location.hash] ? location.hash : '#/overview')
|
||||
|
||||
Reference in New Issue
Block a user