Trim legacy dashboard runtime assets
This commit is contained in:
@@ -38,10 +38,6 @@ const widgetComponents: Record<
|
|||||||
'announcement-list': defineAsyncComponent(
|
'announcement-list': defineAsyncComponent(
|
||||||
() => import('./widgets/AnnouncementList.vue'),
|
() => import('./widgets/AnnouncementList.vue'),
|
||||||
),
|
),
|
||||||
'approval-center': defineAsyncComponent(
|
|
||||||
() => import('./widgets/ApprovalCenter.vue'),
|
|
||||||
),
|
|
||||||
'my-apps': defineAsyncComponent(() => import('./widgets/MyApps.vue')),
|
|
||||||
'notice-list': defineAsyncComponent(() => import('./widgets/NoticeList.vue')),
|
'notice-list': defineAsyncComponent(() => import('./widgets/NoticeList.vue')),
|
||||||
'quick-links': defineAsyncComponent(() => import('./widgets/QuickLinks.vue')),
|
'quick-links': defineAsyncComponent(() => import('./widgets/QuickLinks.vue')),
|
||||||
'server-monitor': defineAsyncComponent(
|
'server-monitor': defineAsyncComponent(
|
||||||
|
|||||||
@@ -3,8 +3,6 @@ import type {
|
|||||||
FieldMapping,
|
FieldMapping,
|
||||||
} from '../types';
|
} from '../types';
|
||||||
|
|
||||||
import { $t } from '@vben/locales';
|
|
||||||
|
|
||||||
import { requestClient } from '#/api/request';
|
import { requestClient } from '#/api/request';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -200,115 +198,3 @@ export function createRefreshTimer(
|
|||||||
|
|
||||||
return () => clearInterval(timer);
|
return () => clearInterval(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取组件支持的字段映射目标
|
|
||||||
*/
|
|
||||||
export function getWidgetFieldTargets(
|
|
||||||
widgetType: string,
|
|
||||||
): { key: string; label: string }[] {
|
|
||||||
const commonFields = [
|
|
||||||
{ key: 'title', label: $t('dashboard-design.attribute.fieldLabels.title') },
|
|
||||||
];
|
|
||||||
|
|
||||||
const fieldMap: Record<string, { key: string; label: string }[]> = {
|
|
||||||
'stat-card': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'value',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.value'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'trend',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.trend'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'trendLabel',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.trendLabel'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'prefix',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.prefix'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'suffix',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.suffix'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'progress-card': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'percentage',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.percentage'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'chart-line': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'xAxisData',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.xAxisData'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'seriesData',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.seriesData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'chart-bar': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'xAxisData',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.xAxisData'),
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key: 'seriesData',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.seriesData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'chart-pie': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'seriesData',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.seriesData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'chart-gauge': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'value',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.currentValue'),
|
|
||||||
},
|
|
||||||
{ key: 'min', label: $t('dashboard-design.attribute.fieldLabels.min') },
|
|
||||||
{ key: 'max', label: $t('dashboard-design.attribute.fieldLabels.max') },
|
|
||||||
],
|
|
||||||
'todo-list': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'items',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.listData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'notice-list': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'items',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.listData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'ranking-list': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'items',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.listData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
'quick-links': [
|
|
||||||
...commonFields,
|
|
||||||
{
|
|
||||||
key: 'links',
|
|
||||||
label: $t('dashboard-design.attribute.fieldLabels.linkData'),
|
|
||||||
},
|
|
||||||
],
|
|
||||||
};
|
|
||||||
|
|
||||||
return fieldMap[widgetType] || commonFields;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -1,651 +1,12 @@
|
|||||||
{
|
{
|
||||||
"title": "仪表盘设计",
|
|
||||||
"preview": "预览",
|
|
||||||
"save": "保存",
|
|
||||||
"saveSuccess": "保存成功",
|
|
||||||
"clear": "清空",
|
|
||||||
"clearConfirm": "确定要清空画布吗?此操作不可撤销。",
|
|
||||||
"clearSuccess": "已清空",
|
|
||||||
"export": "导出",
|
|
||||||
"exportSuccess": "导出成功",
|
|
||||||
"import": "导入",
|
|
||||||
"importTitle": "导入配置",
|
|
||||||
"importPlaceholder": "请粘贴 JSON 配置内容...",
|
|
||||||
"importSuccess": "导入成功",
|
|
||||||
"importError": "配置格式错误",
|
|
||||||
"importEmpty": "请输入配置内容",
|
|
||||||
"viewCode": "查看代码",
|
|
||||||
"jsonPreview": "JSON 预览",
|
|
||||||
"copyCode": "复制代码",
|
|
||||||
"copySuccess": "已复制到剪贴板",
|
|
||||||
"copyError": "复制失败",
|
|
||||||
"undoSuccess": "已撤销",
|
|
||||||
"redoSuccess": "已重做",
|
|
||||||
"copyWidgetSuccess": "已复制",
|
|
||||||
"pasteWidgetSuccess": "已粘贴",
|
|
||||||
"deleteWidgetSuccess": "已删除",
|
|
||||||
"noWidgetsTip": "请先添加组件",
|
|
||||||
"noConfigTip": "暂无仪表盘配置",
|
"noConfigTip": "暂无仪表盘配置",
|
||||||
"loadingData": "数据加载中...",
|
|
||||||
"loadDataError": "数据加载失败",
|
"loadDataError": "数据加载失败",
|
||||||
"unknownWidget": "未知组件类型",
|
"unknownWidget": "未知组件类型",
|
||||||
"widgetCount": "{count} 个组件",
|
|
||||||
"dragTip": "从左侧拖拽组件到此处",
|
|
||||||
"add": "添加",
|
|
||||||
"copy": "复制",
|
|
||||||
"delete": "删除",
|
|
||||||
"reset": "重置",
|
|
||||||
"clean": "清除",
|
|
||||||
"canvas": {
|
|
||||||
"title": "设计画布",
|
|
||||||
"adaptive": "自适应",
|
|
||||||
"actualSize": "实际尺寸",
|
|
||||||
"settings": "画布设置",
|
|
||||||
"undo": "撤销",
|
|
||||||
"redo": "重做"
|
|
||||||
},
|
|
||||||
"months": {
|
|
||||||
"jan": "1月",
|
|
||||||
"feb": "2月",
|
|
||||||
"mar": "3月",
|
|
||||||
"apr": "4月",
|
|
||||||
"may": "5月",
|
|
||||||
"jun": "6月",
|
|
||||||
"jul": "7月",
|
|
||||||
"aug": "8月",
|
|
||||||
"sep": "9月",
|
|
||||||
"oct": "10月",
|
|
||||||
"nov": "11月",
|
|
||||||
"dec": "12月"
|
|
||||||
},
|
|
||||||
"weekdaysShort": {
|
|
||||||
"mon": "周一",
|
|
||||||
"tue": "周二",
|
|
||||||
"wed": "周三",
|
|
||||||
"thu": "周四",
|
|
||||||
"fri": "周五",
|
|
||||||
"sat": "周六",
|
|
||||||
"sun": "周日"
|
|
||||||
},
|
|
||||||
"location": {
|
|
||||||
"east": "华东",
|
|
||||||
"south": "华南",
|
|
||||||
"north": "华北",
|
|
||||||
"central": "华中",
|
|
||||||
"southwest": "西南",
|
|
||||||
"northwest": "西北",
|
|
||||||
"northeast": "东北"
|
|
||||||
},
|
|
||||||
"material": {
|
|
||||||
"title": "组件库",
|
|
||||||
"search": "搜索组件...",
|
|
||||||
"category": {
|
|
||||||
"common": "通用",
|
|
||||||
"chart": "图表",
|
|
||||||
"filter": "筛选器",
|
|
||||||
"map": "地图",
|
|
||||||
"media": "多媒体",
|
|
||||||
"other": "其他"
|
|
||||||
},
|
|
||||||
"widgets": {
|
|
||||||
"statCard": "统计卡片",
|
|
||||||
"progressCard": "进度卡片",
|
|
||||||
"chartLine": "折线图",
|
|
||||||
"chartBar": "柱状图",
|
|
||||||
"chartPie": "饼图",
|
|
||||||
"chartGauge": "仪表盘",
|
|
||||||
"chartArea": "面积图",
|
|
||||||
"chartRadar": "雷达图",
|
|
||||||
"chartFunnel": "漏斗图",
|
|
||||||
"chartScatter": "散点图",
|
|
||||||
"chartRing": "环形进度",
|
|
||||||
"chartHeatmap": "热力图",
|
|
||||||
"chartKline": "K线图",
|
|
||||||
"chartSankey": "桑基图",
|
|
||||||
"todoList": "待办列表",
|
|
||||||
"noticeList": "消息通知",
|
|
||||||
"announcementList": "公告列表",
|
|
||||||
"rankingList": "排行榜",
|
|
||||||
"quickLinks": "快捷入口",
|
|
||||||
"welcomeCard": "欢迎卡片",
|
|
||||||
"calendar": "日历",
|
|
||||||
"countdown": "倒计时",
|
|
||||||
"clock": "时钟",
|
|
||||||
"weather": "天气",
|
|
||||||
"imageCarousel": "图片轮播",
|
|
||||||
"dataTable": "数据表格",
|
|
||||||
"iframe": "iframe 嵌入",
|
|
||||||
"videoPlayer": "视频播放器",
|
|
||||||
"image": "图片",
|
|
||||||
"formRender": "表单渲染",
|
|
||||||
"approvalCenter": "审批中心",
|
|
||||||
"myApps": "我的应用",
|
|
||||||
"serverMonitor": "服务器信息",
|
|
||||||
"filterInput": "输入筛选",
|
|
||||||
"filterSelect": "下拉筛选",
|
|
||||||
"filterDate": "日期筛选",
|
|
||||||
"filterDateRange": "日期范围"
|
|
||||||
},
|
|
||||||
"defaultProps": {
|
|
||||||
"statTitle": "统计数据",
|
|
||||||
"trendLabel": "较昨日",
|
|
||||||
"progressTitle": "完成进度",
|
|
||||||
"visitTrend": "访问趋势",
|
|
||||||
"visits": "访问量",
|
|
||||||
"downloads": "下载量",
|
|
||||||
"salesStat": "销售统计",
|
|
||||||
"trafficSource": "流量来源",
|
|
||||||
"searchEngine": "搜索引擎",
|
|
||||||
"directAccess": "直接访问",
|
|
||||||
"emailMarketing": "邮件营销",
|
|
||||||
"unionAds": "联盟广告",
|
|
||||||
"videoAds": "视频广告",
|
|
||||||
"sysLoad": "系统负载",
|
|
||||||
"abilityEval": "能力评估",
|
|
||||||
"sales": "销售",
|
|
||||||
"mgmt": "管理",
|
|
||||||
"tech": "技术",
|
|
||||||
"cs": "客服",
|
|
||||||
"rd": "研发",
|
|
||||||
"mkt": "市场",
|
|
||||||
"budget": "预算",
|
|
||||||
"actual": "实际",
|
|
||||||
"convFunnel": "转化漏斗",
|
|
||||||
"visit": "访问",
|
|
||||||
"consult": "咨询",
|
|
||||||
"intent": "意向",
|
|
||||||
"order": "下单",
|
|
||||||
"deal": "成交",
|
|
||||||
"dataDist": "数据分布",
|
|
||||||
"height": "身高 (cm)",
|
|
||||||
"weight": "体重 (kg)",
|
|
||||||
"male": "男性",
|
|
||||||
"female": "女性",
|
|
||||||
"kpiDone": "KPI完成度",
|
|
||||||
"salesVolume": "销售额",
|
|
||||||
"orderVolume": "订单量",
|
|
||||||
"customerCount": "客户数",
|
|
||||||
"weekVisitHeat": "周访问热力",
|
|
||||||
"stockTrend": "股价走势",
|
|
||||||
"todoTitle": "待办事项",
|
|
||||||
"todoItem1": "完成项目报告",
|
|
||||||
"todoItem2": "团队周会",
|
|
||||||
"todoItem3": "代码审查",
|
|
||||||
"latestNotice": "消息通知",
|
|
||||||
"latestAnnouncement": "最新公告",
|
|
||||||
"salesRanking": "销售排行",
|
|
||||||
"welcomeTitle": "欢迎回来",
|
|
||||||
"welcomeSubtitle": "今天是个好日子",
|
|
||||||
"countdownTitle": "活动倒计时",
|
|
||||||
"todayWeather": "今日天气",
|
|
||||||
"dataList": "数据列表",
|
|
||||||
"externalPage": "外部页面",
|
|
||||||
"itemName": "项目",
|
|
||||||
"imageTitle": "图片",
|
|
||||||
"myDashboard": "我的仪表盘",
|
|
||||||
"formRender": "表单数据",
|
|
||||||
"approvalCenter": "审批中心",
|
|
||||||
"myApps": "我的应用",
|
|
||||||
"serverMonitor": "服务器信息",
|
|
||||||
"filterInput": "关键词",
|
|
||||||
"filterInputPlaceholder": "请输入关键词筛选...",
|
|
||||||
"filterSelect": "选择筛选",
|
|
||||||
"filterSelectPlaceholder": "请选择...",
|
|
||||||
"filterDate": "日期",
|
|
||||||
"filterDatePlaceholder": "请选择日期",
|
|
||||||
"filterDateRange": "日期范围",
|
|
||||||
"filterStartDate": "开始日期",
|
|
||||||
"filterEndDate": "结束日期"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attribute": {
|
|
||||||
"title": "属性面板",
|
|
||||||
"canvasConfig": "画布配置",
|
|
||||||
"widgetConfig": "组件配置",
|
|
||||||
"styleConfig": "样式配置",
|
|
||||||
"dataConfig": "数据配置",
|
|
||||||
"globalSettings": "仪表盘全局设置",
|
|
||||||
"dashboardName": "仪表盘名称",
|
|
||||||
"gridLayout": "网格布局",
|
|
||||||
"columns": "列数",
|
|
||||||
"rowHeight": "行高 (px)",
|
|
||||||
"widgetMargin": "组件间距 (px)",
|
|
||||||
"horizontal": "水平",
|
|
||||||
"vertical": "垂直",
|
|
||||||
"background": "背景",
|
|
||||||
"backgroundColor": "背景颜色",
|
|
||||||
"reset": "重置",
|
|
||||||
"display": "显示",
|
|
||||||
"outerMargin": "四周边距",
|
|
||||||
"outerMarginTip": "渲染时显示四周边距",
|
|
||||||
"widgetTitle": "标题",
|
|
||||||
"layout": "布局",
|
|
||||||
"widthGrid": "宽度 (格)",
|
|
||||||
"heightGrid": "高度 (格)",
|
|
||||||
"layoutTip": "提示:直接在画布上拖拽调整组件大小",
|
|
||||||
"iconConfig": "图标配置",
|
|
||||||
"icon": "图标",
|
|
||||||
"iconColor": "图标颜色",
|
|
||||||
"status": "状态",
|
|
||||||
"strokeWidth": "线条宽度",
|
|
||||||
"showText": "显示文字",
|
|
||||||
"border": "边框",
|
|
||||||
"borderWidth": "边框宽度",
|
|
||||||
"borderColor": "边框颜色",
|
|
||||||
"borderStyleLabel": "边框样式",
|
|
||||||
"borderRadius": "圆角",
|
|
||||||
"shadow": "阴影",
|
|
||||||
"enableShadow": "启用阴影",
|
|
||||||
"shadowColor": "阴影颜色",
|
|
||||||
"shadowBlur": "模糊半径",
|
|
||||||
"chartLayout": "图表布局",
|
|
||||||
"margin": {
|
|
||||||
"left": "左边距 (%)",
|
|
||||||
"right": "右边距 (%)",
|
|
||||||
"top": "上边距 (%)",
|
|
||||||
"bottom": "下边距 (%)"
|
|
||||||
},
|
|
||||||
"tabs": {
|
|
||||||
"basic": "基础",
|
|
||||||
"data": "数据",
|
|
||||||
"style": "样式"
|
|
||||||
},
|
|
||||||
"placeholder": {
|
|
||||||
"name": "请输入名称",
|
|
||||||
"title": "请输入标题",
|
|
||||||
"remark": "请输入描述"
|
|
||||||
},
|
|
||||||
"iconOptions": {
|
|
||||||
"trending": "趋势",
|
|
||||||
"creditCard": "信用卡",
|
|
||||||
"users": "用户",
|
|
||||||
"activity": "活动",
|
|
||||||
"bell": "铃铛",
|
|
||||||
"award": "奖杯"
|
|
||||||
},
|
|
||||||
"progressStatus": {
|
|
||||||
"default": "默认",
|
|
||||||
"success": "成功",
|
|
||||||
"warning": "警告",
|
|
||||||
"exception": "异常"
|
|
||||||
},
|
|
||||||
"colorTheme": {
|
|
||||||
"label": "颜色主题",
|
|
||||||
"default": "默认",
|
|
||||||
"fresh": "清新",
|
|
||||||
"business": "商务",
|
|
||||||
"tech": "科技",
|
|
||||||
"warm": "暖色"
|
|
||||||
},
|
|
||||||
"chart": {
|
|
||||||
"smooth": "平滑曲线",
|
|
||||||
"showArea": "显示面积",
|
|
||||||
"showSymbol": "显示数据点",
|
|
||||||
"symbolSize": "数据点大小",
|
|
||||||
"lineWidth": "线条宽度",
|
|
||||||
"axis": "坐标轴",
|
|
||||||
"xAxisName": "X轴名称",
|
|
||||||
"yAxisName": "Y轴名称",
|
|
||||||
"nameLocation": "名称位置",
|
|
||||||
"legend": "图例",
|
|
||||||
"showLegend": "显示图例",
|
|
||||||
"legendPosition": "图例位置",
|
|
||||||
"barWidth": "柱子宽度",
|
|
||||||
"barRadius": "圆角大小",
|
|
||||||
"horizontal": "水平方向",
|
|
||||||
"stack": "堆叠显示",
|
|
||||||
"showBackground": "显示背景",
|
|
||||||
"pieType": "图表类型",
|
|
||||||
"showLabel": "显示标签",
|
|
||||||
"labelPosition": "标签位置",
|
|
||||||
"minValue": "最小值",
|
|
||||||
"maxValue": "最大值",
|
|
||||||
"splitNumber": "刻度数量",
|
|
||||||
"showProgress": "显示进度",
|
|
||||||
"showMA5": "显示MA5",
|
|
||||||
"showMA10": "显示MA10",
|
|
||||||
"shape": "形状",
|
|
||||||
"sort": "排序方式",
|
|
||||||
"orient": "方向",
|
|
||||||
"pointSize": "点大小",
|
|
||||||
"numerical": "数值配置",
|
|
||||||
"currentValue": "当前值",
|
|
||||||
"min": "最小值",
|
|
||||||
"max": "最大值",
|
|
||||||
"unit": "单位",
|
|
||||||
"maConfig": "均线配置",
|
|
||||||
"prefix": "前缀",
|
|
||||||
"suffix": "后缀",
|
|
||||||
"trendConfig": "趋势配置",
|
|
||||||
"trendValue": "趋势值 (%)",
|
|
||||||
"trendTip": "正数为上升,负数为下降",
|
|
||||||
"trendLabel": "趋势说明",
|
|
||||||
"seriesNamePrefix": "系列",
|
|
||||||
"itemNamePrefix": "项目",
|
|
||||||
"placeholder": {
|
|
||||||
"xAxis": "如:月份",
|
|
||||||
"yAxis": "如:销量",
|
|
||||||
"unit": "如:%",
|
|
||||||
"title": "请输入标题",
|
|
||||||
"xAxis2": "用逗号分隔,如:1月, 2月, 3月",
|
|
||||||
"seriesData": "用逗号分隔,如:100, 200, 300",
|
|
||||||
"seriesName": "系列名称",
|
|
||||||
"prefix": "如:¥",
|
|
||||||
"suffix": "如:元、%",
|
|
||||||
"trendLabel": "如:较昨日",
|
|
||||||
"subtitle": "请输入副标题"
|
|
||||||
},
|
|
||||||
"location": {
|
|
||||||
"start": "起点",
|
|
||||||
"middle": "中间",
|
|
||||||
"end": "末端",
|
|
||||||
"top": "顶部",
|
|
||||||
"bottom": "底部",
|
|
||||||
"left": "左侧",
|
|
||||||
"right": "右侧"
|
|
||||||
},
|
|
||||||
"pieTypes": {
|
|
||||||
"pie": "饼图",
|
|
||||||
"ring": "环形图",
|
|
||||||
"rose": "玫瑰图"
|
|
||||||
},
|
|
||||||
"labelPositions": {
|
|
||||||
"outside": "外部",
|
|
||||||
"inside": "内部"
|
|
||||||
},
|
|
||||||
"barWidthOptions": {
|
|
||||||
"auto": "自动",
|
|
||||||
"thin": "细 (30%)",
|
|
||||||
"medium": "中 (50%)",
|
|
||||||
"thick": "粗 (70%)"
|
|
||||||
},
|
|
||||||
"shapes": {
|
|
||||||
"polygon": "多边形",
|
|
||||||
"circle": "圆形"
|
|
||||||
},
|
|
||||||
"sortOptions": {
|
|
||||||
"descending": "降序",
|
|
||||||
"ascending": "升序",
|
|
||||||
"none": "不排序"
|
|
||||||
},
|
|
||||||
"orientOptions": {
|
|
||||||
"vertical": "垂直",
|
|
||||||
"horizontal": "水平"
|
|
||||||
},
|
|
||||||
"dataEditMode": "编辑模式",
|
|
||||||
"dataEditForm": "表单",
|
|
||||||
"dataEditJson": "JSON",
|
|
||||||
"jsonPlaceholder": "JSON 格式数据",
|
|
||||||
"jsonTip": "直接编辑 JSON 数据,失去焦点后自动应用",
|
|
||||||
"xAxisData": "X轴数据",
|
|
||||||
"seriesDataLabel": "系列数据",
|
|
||||||
"addSeries": "添加系列",
|
|
||||||
"dataItem": "数据项",
|
|
||||||
"addItem": "添加数据项",
|
|
||||||
"radarTip": "雷达图数据结构较复杂,建议使用 JSON 模式编辑",
|
|
||||||
"scatterTip": "散点图数据为坐标点数组,建议使用 JSON 模式编辑",
|
|
||||||
"ringTip": "环形进度数据建议使用 JSON 模式编辑",
|
|
||||||
"heatmapTip": "热力图数据建议使用 JSON 模式编辑",
|
|
||||||
"klineTip": "K线图数据建议使用 JSON 模式编辑",
|
|
||||||
"sankeyTip": "桑基图数据建议使用 JSON 模式编辑",
|
|
||||||
"gaugeTip": "仪表盘数据在基础配置中设置\"当前值\""
|
|
||||||
},
|
|
||||||
"dataSource": {
|
|
||||||
"dataType": "数据类型",
|
|
||||||
"static": "静态数据",
|
|
||||||
"uploadImage": "图片上传",
|
|
||||||
"uploadVideo": "视频上传",
|
|
||||||
"dataSource": "数据源",
|
|
||||||
"api": "API接口",
|
|
||||||
"config": "数据源配置",
|
|
||||||
"select": "选择数据源",
|
|
||||||
"selectPlaceholder": "请选择数据源",
|
|
||||||
"mapping": "字段映射",
|
|
||||||
"sourceField": "源字段",
|
|
||||||
"targetField": "目标",
|
|
||||||
"addMapping": "添加映射",
|
|
||||||
"mappingTip": "提示:数据源已在「数据源管理」中配置好字段映射,此处可添加额外的字段映射覆盖默认配置。",
|
|
||||||
"refresh": "刷新配置",
|
|
||||||
"autoRefresh": "自动刷新",
|
|
||||||
"interval": "刷新间隔",
|
|
||||||
"intervalUnit": "单位:秒,最小 5 秒",
|
|
||||||
"apiConfig": "接口配置",
|
|
||||||
"apiUrl": "请求地址",
|
|
||||||
"apiUrlPlaceholder": "如:/api/dashboard/stats",
|
|
||||||
"apiMethod": "请求方式",
|
|
||||||
"dataPath": "数据路径",
|
|
||||||
"dataPathPlaceholder": "如:data.list",
|
|
||||||
"dataPathTip": "从响应中提取数据的路径",
|
|
||||||
"enableRefresh": "启用刷新",
|
|
||||||
"intervalSeconds": "刷新间隔 (秒)",
|
|
||||||
"paramBinding": "参数绑定",
|
|
||||||
"paramName": "数据源参数",
|
|
||||||
"globalParam": "筛选器参数",
|
|
||||||
"addBinding": "添加绑定",
|
|
||||||
"paramBindingTip": "将筛选器组件的参数绑定到数据源参数,实现筛选联动。左侧选择数据源中定义的参数,右侧选择或输入筛选器的参数键名。",
|
|
||||||
"required": "必填"
|
|
||||||
},
|
|
||||||
"widget": {
|
|
||||||
"todo": {
|
|
||||||
"items": "待办项",
|
|
||||||
"add": "添加待办",
|
|
||||||
"done": "完成",
|
|
||||||
"newItem": "新待办",
|
|
||||||
"priority": {
|
|
||||||
"high": "高",
|
|
||||||
"medium": "中",
|
|
||||||
"low": "低"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notice": {
|
|
||||||
"tip": "通知列表自动从系统消息中获取数据,无需手动配置",
|
|
||||||
"limit": "显示数量"
|
|
||||||
},
|
|
||||||
"announcement": {
|
|
||||||
"tip": "公告列表自动从系统公告中获取数据,无需手动配置",
|
|
||||||
"limit": "显示数量"
|
|
||||||
},
|
|
||||||
"ranking": {
|
|
||||||
"items": "排行项",
|
|
||||||
"add": "添加排行",
|
|
||||||
"newItem": "新成员"
|
|
||||||
},
|
|
||||||
"quickLinks": {
|
|
||||||
"title": "快捷入口",
|
|
||||||
"tip": "点击格子选择菜单,图标自动使用菜单配置",
|
|
||||||
"iconColorDefault": "默认主题色",
|
|
||||||
"selectMenu": "选择菜单"
|
|
||||||
},
|
|
||||||
"welcome": {
|
|
||||||
"subtitle": "副标题",
|
|
||||||
"subtitlePlaceholder": "请输入副标题",
|
|
||||||
"showTime": "显示时间"
|
|
||||||
},
|
|
||||||
"countdown": {
|
|
||||||
"config": "倒计时设置",
|
|
||||||
"targetTime": "目标时间",
|
|
||||||
"targetTimePlaceholder": "选择目标时间",
|
|
||||||
"showDays": "显示天数",
|
|
||||||
"showHours": "显示小时",
|
|
||||||
"finishedTextPlaceholder": "已结束"
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
"timezone": "时区"
|
|
||||||
},
|
|
||||||
"weather": {
|
|
||||||
"config": "天气配置",
|
|
||||||
"cityName": "城市名称",
|
|
||||||
"cityNamePlaceholder": "如:北京",
|
|
||||||
"presetCity": "预设城市",
|
|
||||||
"presetCityPlaceholder": "快速选择城市",
|
|
||||||
"latitude": "纬度",
|
|
||||||
"longitude": "经度",
|
|
||||||
"autoLocate": "自动定位",
|
|
||||||
"refreshInterval": "刷新间隔(分钟)",
|
|
||||||
"refreshIntervalTip": "单位:分钟,最小 5 分钟"
|
|
||||||
},
|
|
||||||
"iframe": {
|
|
||||||
"config": "显示设置",
|
|
||||||
"showBorder": "显示边框",
|
|
||||||
"allowFullscreen": "允许全屏",
|
|
||||||
"pageAddress": "页面地址"
|
|
||||||
},
|
|
||||||
"video": {
|
|
||||||
"config": "播放设置",
|
|
||||||
"autoplay": "自动播放",
|
|
||||||
"loop": "循环播放",
|
|
||||||
"muted": "静音",
|
|
||||||
"controls": "原生控制栏",
|
|
||||||
"videoAddress": "视频地址",
|
|
||||||
"poster": "封面图",
|
|
||||||
"posterPlaceholder": "封面图片 URL(可选)",
|
|
||||||
"selectFromFileLib": "从文件库选择"
|
|
||||||
},
|
|
||||||
"image": {
|
|
||||||
"title": "图片",
|
|
||||||
"config": "图片设置",
|
|
||||||
"alt": "替代文本",
|
|
||||||
"altPlaceholder": "图片无法显示时的替代文本",
|
|
||||||
"fit": "填充方式",
|
|
||||||
"fitOptions": {
|
|
||||||
"cover": "覆盖 (cover)",
|
|
||||||
"contain": "包含 (contain)",
|
|
||||||
"fill": "填充 (fill)",
|
|
||||||
"none": "无 (none)",
|
|
||||||
"scaleDown": "缩小 (scale-down)"
|
|
||||||
},
|
|
||||||
"lazy": "懒加载",
|
|
||||||
"previewConfig": "预览设置",
|
|
||||||
"zIndex": "预览层级",
|
|
||||||
"closeOnClickModal": "点击遮罩关闭",
|
|
||||||
"url": "图片 URL",
|
|
||||||
"urlPlaceholder": "请输入图片URL",
|
|
||||||
"link": "跳转链接(可选)",
|
|
||||||
"previewList": "预览图片列表",
|
|
||||||
"previewListTip": "点击图片时可预览的图片列表,为空时预览当前图片",
|
|
||||||
"addImage": "添加图片",
|
|
||||||
"mainImage": "主图"
|
|
||||||
},
|
|
||||||
"common": {
|
|
||||||
"staticDataTip": "当前组件使用静态数据,可在基础配置中修改"
|
|
||||||
},
|
|
||||||
"formRender": {
|
|
||||||
"formConfig": "表单配置",
|
|
||||||
"formCode": "选择表单",
|
|
||||||
"formCodePlaceholder": "请选择表单",
|
|
||||||
"containerType": "容器类型",
|
|
||||||
"drawer": "抽屉",
|
|
||||||
"dialog": "弹窗",
|
|
||||||
"displayConfig": "显示配置",
|
|
||||||
"showToolbar": "显示工具栏",
|
|
||||||
"showPagination": "显示分页",
|
|
||||||
"pageSize": "每页条数",
|
|
||||||
"buttonConfig": "按钮配置",
|
|
||||||
"showAdd": "新增按钮",
|
|
||||||
"showView": "查看按钮",
|
|
||||||
"showEdit": "编辑按钮",
|
|
||||||
"showDelete": "删除按钮"
|
|
||||||
},
|
|
||||||
"table": {
|
|
||||||
"config": "表格配置",
|
|
||||||
"stripe": "斑马纹",
|
|
||||||
"border": "边框",
|
|
||||||
"showIndex": "显示序号",
|
|
||||||
"showHeader": "显示表头",
|
|
||||||
"highlightCurrentRow": "高亮当前行",
|
|
||||||
"alignment": "对齐方式",
|
|
||||||
"headerAlign": "表头对齐",
|
|
||||||
"cellAlign": "单元格对齐",
|
|
||||||
"heightConfig": "高度配置",
|
|
||||||
"height": "固定高度",
|
|
||||||
"heightPlaceholder": "如:300px 或 100%",
|
|
||||||
"heightTip": "支持像素值或百分比",
|
|
||||||
"maxHeight": "最大高度",
|
|
||||||
"maxHeightPlaceholder": "如:500",
|
|
||||||
"maxHeightTip": "超出后显示滚动条",
|
|
||||||
"customization": "自定义",
|
|
||||||
"emptyText": "空数据提示",
|
|
||||||
"emptyTextPlaceholder": "暂无数据",
|
|
||||||
"headerBgColor": "表头背景色",
|
|
||||||
"summaryConfig": "统计配置",
|
|
||||||
"showSummary": "显示表尾统计",
|
|
||||||
"summaryType": "统计类型",
|
|
||||||
"summaryTypes": {
|
|
||||||
"sum": "合计",
|
|
||||||
"avg": "平均值",
|
|
||||||
"count": "计数",
|
|
||||||
"max": "最大值",
|
|
||||||
"min": "最小值"
|
|
||||||
},
|
|
||||||
"summaryPrecision": "小数位数",
|
|
||||||
"summaryColumns": "统计列",
|
|
||||||
"noColumnsConfigured": "请先配置表格列",
|
|
||||||
"mergeConfig": "合并配置",
|
|
||||||
"enableMerge": "启用合并",
|
|
||||||
"mergeRules": "合并规则",
|
|
||||||
"mergeTypes": {
|
|
||||||
"row": "行合并",
|
|
||||||
"column": "列合并"
|
|
||||||
},
|
|
||||||
"selectMergeField": "选择合并字段",
|
|
||||||
"rowIndex": "行号",
|
|
||||||
"startCol": "起始列",
|
|
||||||
"colspan": "合并列数",
|
|
||||||
"addMergeRule": "添加合并规则",
|
|
||||||
"columnConfig": "列配置",
|
|
||||||
"columnConfigJson": "JSON 格式列配置",
|
|
||||||
"tableData": "表格数据",
|
|
||||||
"tableDataJson": "JSON 格式表格数据",
|
|
||||||
"complexDataTip": "表格数据结构较复杂,建议使用 JSON 模式编辑",
|
|
||||||
"sizeOptions": {
|
|
||||||
"default": "默认",
|
|
||||||
"large": "大",
|
|
||||||
"small": "小"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"fieldLabels": {
|
|
||||||
"title": "标题",
|
|
||||||
"value": "数值",
|
|
||||||
"time": "时间",
|
|
||||||
"trend": "趋势百分比",
|
|
||||||
"trendLabel": "趋势说明",
|
|
||||||
"prefix": "前缀",
|
|
||||||
"suffix": "后缀",
|
|
||||||
"percentage": "百分比",
|
|
||||||
"xAxisData": "X轴数据",
|
|
||||||
"seriesData": "系列数据",
|
|
||||||
"currentValue": "当前值",
|
|
||||||
"min": "最小值",
|
|
||||||
"max": "最大值",
|
|
||||||
"listData": "列表数据",
|
|
||||||
"linkData": "链接数据"
|
|
||||||
},
|
|
||||||
"resultType": {
|
|
||||||
"list": "列表",
|
|
||||||
"tree": "树形",
|
|
||||||
"object": "对象",
|
|
||||||
"value": "单值",
|
|
||||||
"chartAxis": "轴向图表",
|
|
||||||
"chartPie": "饼图",
|
|
||||||
"chartGauge": "仪表盘",
|
|
||||||
"chartRadar": "雷达图",
|
|
||||||
"chartScatter": "散点图",
|
|
||||||
"chartHeatmap": "热力图"
|
|
||||||
},
|
|
||||||
"borderStyle": {
|
|
||||||
"solid": "实线",
|
|
||||||
"dashed": "虚线",
|
|
||||||
"dotted": "点线",
|
|
||||||
"none": "无"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"widgets": {
|
"widgets": {
|
||||||
"announcement": {
|
"announcement": {
|
||||||
"markAllRead": "全部已读",
|
"markAllRead": "全部已读",
|
||||||
"top": "置顶",
|
"top": "置顶",
|
||||||
"noData": "暂无公告",
|
"noData": "暂无公告",
|
||||||
"loading": "加载中...",
|
|
||||||
"noContent": "暂无详细内容",
|
"noContent": "暂无详细内容",
|
||||||
"publisher": "发布者:",
|
"publisher": "发布者:",
|
||||||
"priority": {
|
"priority": {
|
||||||
@@ -690,52 +51,6 @@
|
|||||||
"nw": "西北风"
|
"nw": "西北风"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chart": {
|
|
||||||
"visits": "访问量"
|
|
||||||
},
|
|
||||||
"iframe": {
|
|
||||||
"refresh": "刷新",
|
|
||||||
"openNew": "新窗口打开",
|
|
||||||
"placeholder": "iframe 嵌入",
|
|
||||||
"noUrl": "未设置 URL",
|
|
||||||
"loading": "加载中...",
|
|
||||||
"loadFailed": "加载失败",
|
|
||||||
"retry": "点击重试"
|
|
||||||
},
|
|
||||||
"todo": {
|
|
||||||
"title": "待办事项",
|
|
||||||
"noData": "暂无待办",
|
|
||||||
"priority": {
|
|
||||||
"high": "高",
|
|
||||||
"medium": "中",
|
|
||||||
"low": "低"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dataTable": {
|
|
||||||
"status": {
|
|
||||||
"normal": "正常",
|
|
||||||
"warning": "警告",
|
|
||||||
"error": "异常",
|
|
||||||
"success": "成功",
|
|
||||||
"failed": "失败",
|
|
||||||
"processing": "进行中"
|
|
||||||
},
|
|
||||||
"summary": {
|
|
||||||
"sum": "合计",
|
|
||||||
"avg": "平均",
|
|
||||||
"count": "计数",
|
|
||||||
"max": "最大",
|
|
||||||
"min": "最小"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"formRender": {
|
|
||||||
"placeholder": "表单渲染组件",
|
|
||||||
"noFormCode": "请配置表单编码",
|
|
||||||
"deleteConfirm": "确定要删除这条数据吗?",
|
|
||||||
"batchDeleteConfirm": "确定要删除选中的 {count} 条数据吗?",
|
|
||||||
"importResult": "成功导入 {success} 条,失败 {failed} 条",
|
|
||||||
"view": "查看"
|
|
||||||
},
|
|
||||||
"welcome": {
|
"welcome": {
|
||||||
"greeting": {
|
"greeting": {
|
||||||
"night": "夜深了",
|
"night": "夜深了",
|
||||||
@@ -746,51 +61,7 @@
|
|||||||
"evening": "晚上好"
|
"evening": "晚上好"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"countdown": {
|
|
||||||
"day": "天",
|
|
||||||
"hour": "时",
|
|
||||||
"minute": "分",
|
|
||||||
"second": "秒",
|
|
||||||
"finished": "已结束"
|
|
||||||
},
|
|
||||||
"video": {
|
|
||||||
"placeholder": "视频播放器"
|
|
||||||
},
|
|
||||||
"ranking": {
|
|
||||||
"tenThousand": "万"
|
|
||||||
},
|
|
||||||
"clock": {
|
|
||||||
"weekdays": ["周日", "周一", "周二", "周三", "周四", "周五", "周六"],
|
|
||||||
"year": "年",
|
|
||||||
"month": "月",
|
|
||||||
"day": "日"
|
|
||||||
},
|
|
||||||
"image": {
|
|
||||||
"title": "图片",
|
|
||||||
"noData": "暂无图片"
|
|
||||||
},
|
|
||||||
"approvalCenter": {
|
|
||||||
"initiated": "我发起的",
|
|
||||||
"pending": "我的待办",
|
|
||||||
"handling": "我的在办",
|
|
||||||
"signing": "我的待签",
|
|
||||||
"handled": "我的已办",
|
|
||||||
"copy": "抄送我的",
|
|
||||||
"start": "发起流程",
|
|
||||||
"more": "更多",
|
|
||||||
"config": "审批中心配置",
|
|
||||||
"routePrefix": "路由前缀"
|
|
||||||
},
|
|
||||||
"myApps": {
|
|
||||||
"more": "更多",
|
|
||||||
"noData": "暂无应用"
|
|
||||||
},
|
|
||||||
"serverMonitor": {
|
"serverMonitor": {
|
||||||
"config": "服务器信息配置",
|
|
||||||
"cpuBgColor": "CPU背景色",
|
|
||||||
"memoryBgColor": "内存背景色",
|
|
||||||
"diskBgColor": "磁盘背景色",
|
|
||||||
"networkBgColor": "网络背景色",
|
|
||||||
"core": "核",
|
"core": "核",
|
||||||
"thread": "线程",
|
"thread": "线程",
|
||||||
"memory": "内存",
|
"memory": "内存",
|
||||||
@@ -806,68 +77,5 @@
|
|||||||
"hours": "小时",
|
"hours": "小时",
|
||||||
"minutes": "分钟"
|
"minutes": "分钟"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"filter": {
|
|
||||||
"config": "筛选器配置",
|
|
||||||
"paramKey": "参数键名",
|
|
||||||
"paramKeyPlaceholder": "如:status",
|
|
||||||
"startParamKey": "开始日期参数",
|
|
||||||
"startParamKeyPlaceholder": "如:start_date",
|
|
||||||
"endParamKey": "结束日期参数",
|
|
||||||
"endParamKeyPlaceholder": "如:end_date",
|
|
||||||
"label": "标签",
|
|
||||||
"labelPlaceholder": "请输入标签",
|
|
||||||
"defaultValue": "默认值",
|
|
||||||
"noParamKey": "未配置参数键名",
|
|
||||||
"optionConfig": "选项配置",
|
|
||||||
"optionSource": "选项来源",
|
|
||||||
"staticOptions": "静态选项",
|
|
||||||
"optionLabel": "标签",
|
|
||||||
"optionValue": "值",
|
|
||||||
"addOption": "添加选项",
|
|
||||||
"optionDataSource": "选项数据源",
|
|
||||||
"labelField": "标签字段",
|
|
||||||
"valueField": "值字段",
|
|
||||||
"multiple": "多选",
|
|
||||||
"dateFormat": "日期格式",
|
|
||||||
"styleConfig": "样式配置",
|
|
||||||
"labelPosition": "标签位置",
|
|
||||||
"labelPositionLeft": "左侧",
|
|
||||||
"labelPositionTop": "上方",
|
|
||||||
"labelPositionHidden": "隐藏",
|
|
||||||
"labelWidth": "标签宽度",
|
|
||||||
"labelAlign": "标签对齐",
|
|
||||||
"alignLeft": "左对齐",
|
|
||||||
"alignCenter": "居中",
|
|
||||||
"alignRight": "右对齐",
|
|
||||||
"componentSize": "组件尺寸",
|
|
||||||
"sizeLarge": "大",
|
|
||||||
"sizeDefault": "中",
|
|
||||||
"sizeSmall": "小",
|
|
||||||
"showBorder": "显示边框",
|
|
||||||
"borderRadius": "圆角"
|
|
||||||
},
|
|
||||||
"gradient": {
|
|
||||||
"solid": "纯色",
|
|
||||||
"gradient": "渐变",
|
|
||||||
"startColor": "起始色",
|
|
||||||
"endColor": "结束色",
|
|
||||||
"direction": "方向",
|
|
||||||
"noColor": "未设置",
|
|
||||||
"presetTitle": "预设渐变",
|
|
||||||
"presets": {
|
|
||||||
"warmSunrise": "暖阳晨曦",
|
|
||||||
"oceanBreeze": "海洋微风",
|
|
||||||
"freshMint": "清新薄荷",
|
|
||||||
"peachGlow": "蜜桃光晕",
|
|
||||||
"lavenderDream": "薰衣草梦",
|
|
||||||
"skyBlue": "天空蔚蓝",
|
|
||||||
"roseWater": "玫瑰花水",
|
|
||||||
"softGrass": "柔和青草",
|
|
||||||
"winterNymph": "冬日仙子",
|
|
||||||
"cottonCandy": "棉花糖",
|
|
||||||
"sunnyMorning": "阳光早晨",
|
|
||||||
"crystalClear": "水晶透明"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,62 +1,32 @@
|
|||||||
{
|
{
|
||||||
"overview": "概览",
|
|
||||||
"analytics": "分析页",
|
|
||||||
"workspace": "工作台",
|
|
||||||
"home": "首页",
|
"home": "首页",
|
||||||
"systemManagement": "系统管理",
|
"controlCenter": "控制中心",
|
||||||
"userManagement": "用户管理",
|
|
||||||
"departmentManagement": "部门管理",
|
|
||||||
"organizationChart": "组织架构",
|
|
||||||
"permissionManagement": "API管理",
|
|
||||||
"menuManagement": "菜单管理",
|
|
||||||
"positionManagement": "岗位管理",
|
|
||||||
"roleManagement": "角色权限",
|
|
||||||
"userCenter": "用户中心",
|
|
||||||
"accountSettings": "账号设置",
|
|
||||||
"loginLog": "登录日志",
|
|
||||||
"databaseManagement": "数据库管理",
|
|
||||||
"dbManagement": "DB管理",
|
|
||||||
"databaseConnection": "数据库连接",
|
|
||||||
"redisManagement": "Redis管理",
|
|
||||||
"dataSource": "数据源",
|
|
||||||
"systemTools": "系统工具",
|
|
||||||
"fileManagement": "文件管理",
|
|
||||||
"dictionaryManagement": "字典管理",
|
|
||||||
"scheduledTasks": "定时任务",
|
|
||||||
"systemMonitoring": "系统监控",
|
|
||||||
"redisMonitoring": "Redis监控",
|
|
||||||
"serverMonitoring": "Server监控",
|
|
||||||
"databaseMonitoring": "数据库监控",
|
|
||||||
"contractManagement": "合同管理",
|
|
||||||
"contractList": "合同列表",
|
|
||||||
"templateManagement": "模板管理",
|
|
||||||
"crowdUsers": "众筹用户",
|
|
||||||
"onlineDevelopment": "在线开发",
|
|
||||||
"workflowManagement": "流程管理",
|
|
||||||
"workflowInstanceManagement": "流程实例管理",
|
|
||||||
"formManagement": "表单管理",
|
|
||||||
"pageManagement": "页面管理",
|
|
||||||
"reportManagement": "报表管理",
|
|
||||||
"approvalProcess": "审批流程",
|
|
||||||
"myTasks": "我的已办",
|
|
||||||
"initiatedProcesses": "发起流程",
|
|
||||||
"myPending": "我的待办",
|
|
||||||
"myInitiated": "我发起的",
|
|
||||||
"ccToMe": "抄送我的",
|
|
||||||
"messageCenter": "消息中心",
|
|
||||||
"announcementList": "公告列表",
|
|
||||||
"announcementManagement": "公告管理",
|
|
||||||
"messageList": "消息列表",
|
|
||||||
"dataScreen": "数据大屏",
|
|
||||||
"screenManagement": "大屏管理",
|
|
||||||
"aiPlatform": "AI 平台",
|
"aiPlatform": "AI 平台",
|
||||||
|
"aiAgent": "智能体",
|
||||||
"workflowOrchestration": "流程编排",
|
"workflowOrchestration": "流程编排",
|
||||||
"workflowRunHistory": "执行历史",
|
"workflowRunHistory": "执行历史",
|
||||||
"aiAgent": "智能体",
|
|
||||||
"knowledgeBase": "知识库",
|
"knowledgeBase": "知识库",
|
||||||
"codex": "Codex",
|
"codex": "Codex",
|
||||||
"controlCenter": "控制中心",
|
|
||||||
"applicationManagement": "应用管理",
|
|
||||||
"startChat": "开始聊天",
|
"startChat": "开始聊天",
|
||||||
"uiConfig": "样式配置"
|
"systemManagement": "系统管理",
|
||||||
|
"userManagement": "用户管理",
|
||||||
|
"roleManagement": "角色权限",
|
||||||
|
"permissionManagement": "API管理",
|
||||||
|
"menuManagement": "菜单管理",
|
||||||
|
"messageCenter": "消息中心",
|
||||||
|
"messageList": "消息列表",
|
||||||
|
"announcementList": "公告列表",
|
||||||
|
"announcementManagement": "公告管理",
|
||||||
|
"applicationManagement": "应用管理",
|
||||||
|
"uiConfig": "样式配置",
|
||||||
|
"accountSettings": "账号设置",
|
||||||
|
"userCenter": "用户中心",
|
||||||
|
"departmentManagement": "部门管理",
|
||||||
|
"organizationChart": "组织架构",
|
||||||
|
"positionManagement": "岗位管理",
|
||||||
|
"dictionaryManagement": "字典管理",
|
||||||
|
"fileManagement": "文件管理",
|
||||||
|
"loginLog": "登录日志",
|
||||||
|
"dataSource": "数据源",
|
||||||
|
"systemConfig": "系统配置"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -151,7 +151,7 @@ const AI_AGENT_ADMIN_MENU_NAMES = new Set([
|
|||||||
'AnnouncementManage',
|
'AnnouncementManage',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const LEGACY_APP_KEYWORDS = ['审批中心', '车辆管理'];
|
const AI_AGENT_ADMIN_APP_CODES = new Set(['ai_agent_admin']);
|
||||||
|
|
||||||
const resourceScopeConfigRef = ref<InstanceType<typeof ResourceScopeConfig>>();
|
const resourceScopeConfigRef = ref<InstanceType<typeof ResourceScopeConfig>>();
|
||||||
const layoutContainerRef = ref<HTMLElement | null>(null);
|
const layoutContainerRef = ref<HTMLElement | null>(null);
|
||||||
@@ -178,10 +178,7 @@ async function loadApps() {
|
|||||||
loadingApps.value = true;
|
loadingApps.value = true;
|
||||||
const res = await getApplicationListApi({ pageSize: 100 });
|
const res = await getApplicationListApi({ pageSize: 100 });
|
||||||
appList.value = (res.items || []).filter(
|
appList.value = (res.items || []).filter(
|
||||||
(app) =>
|
(app) => app.app_type === 'ai' || AI_AGENT_ADMIN_APP_CODES.has(app.code),
|
||||||
!LEGACY_APP_KEYWORDS.some(
|
|
||||||
(keyword) => app.name.includes(keyword) || app.code.includes(keyword),
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error($t('role.permissions.loadAppsFailed'), error);
|
console.error($t('role.permissions.loadAppsFailed'), error);
|
||||||
|
|||||||
Reference in New Issue
Block a user