feat: 实现供水运营专题大屏BI可视化
- 新增OperationDashboard.vue全屏大屏组件 - 添加6个核心KPI指标卡片: 进水总量/出水总量/产销差率/营收额/平均水质/报警次数 - 实现6个ECharts图表: 供水趋势/水质分布/报警统计/管网空间/设备状态/营收分析 - 创建静态HTML版本operation-dashboard.html,使用CDN加载Vue3/ECharts/Element Plus - 更新路由配置,添加/operation路径支持 - 修复nextTick导入问题,优化build脚本 🚧 开发者: bot_dev1 📝 任务: #38 [BI] 运营仪表盘 + 供水专题大屏
This commit is contained in:
+79
@@ -0,0 +1,79 @@
|
||||
//#region types.d.ts
|
||||
interface PackageManifest {
|
||||
name: string;
|
||||
display: string;
|
||||
addon?: boolean;
|
||||
author?: string;
|
||||
description?: string;
|
||||
external?: string[];
|
||||
globals?: Record<string, string>;
|
||||
manualImport?: boolean;
|
||||
deprecated?: boolean;
|
||||
submodules?: boolean;
|
||||
build?: boolean;
|
||||
iife?: boolean;
|
||||
mjs?: boolean;
|
||||
dts?: boolean;
|
||||
target?: string;
|
||||
utils?: boolean;
|
||||
copy?: string[];
|
||||
}
|
||||
interface VueUseFunction {
|
||||
name: string;
|
||||
package: string;
|
||||
importPath?: string;
|
||||
lastUpdated?: number;
|
||||
category?: string;
|
||||
description?: string;
|
||||
docs?: string;
|
||||
deprecated?: boolean;
|
||||
internal?: boolean;
|
||||
component?: boolean;
|
||||
directive?: boolean;
|
||||
external?: string;
|
||||
alias?: string[];
|
||||
related?: string[];
|
||||
variants?: string[];
|
||||
}
|
||||
interface VueUsePackage extends PackageManifest {
|
||||
dir: string;
|
||||
docs?: string;
|
||||
}
|
||||
interface PackageIndexes {
|
||||
packages: Record<string, VueUsePackage>;
|
||||
categories: string[];
|
||||
functions: VueUseFunction[];
|
||||
}
|
||||
interface CommitInfo {
|
||||
functions: string[];
|
||||
version?: string;
|
||||
hash: string;
|
||||
date: string;
|
||||
message: string;
|
||||
refs?: string;
|
||||
body?: string;
|
||||
author_name: string;
|
||||
author_email: string;
|
||||
}
|
||||
interface ContributorInfo {
|
||||
name: string;
|
||||
count: number;
|
||||
hash: string;
|
||||
}
|
||||
//#endregion
|
||||
//#region metadata.d.ts
|
||||
declare const metadata: PackageIndexes;
|
||||
declare const functions: PackageIndexes["functions"];
|
||||
declare const packages: PackageIndexes["packages"];
|
||||
declare const categories: PackageIndexes["categories"];
|
||||
declare const functionNames: string[];
|
||||
declare const categoryNames: string[];
|
||||
declare const coreCategoryNames: string[];
|
||||
declare const addonCategoryNames: string[];
|
||||
declare function getFunction(name: string): VueUseFunction | undefined;
|
||||
//#endregion
|
||||
//#region utils.d.ts
|
||||
declare function getCategories(functions: VueUseFunction[]): string[];
|
||||
declare function uniq<T extends any[]>(a: T): any[];
|
||||
//#endregion
|
||||
export { CommitInfo, ContributorInfo, PackageIndexes, PackageManifest, VueUseFunction, VueUsePackage, addonCategoryNames, categories, categoryNames, coreCategoryNames, functionNames, functions, getCategories, getFunction, metadata, packages, uniq };
|
||||
Reference in New Issue
Block a user