PlgSvgEditor 插件(自研)
PlgSvgEditor 是 ScadaV6WebPluginExt 中的自研 Web 插件。本文档基于源码自动提取并整理,用于支持部署、联调和运维排障。
功能描述
用于 SVG 图形编辑或渲染能力扩展。
基础信息
- 源码目录:
ScadaV6WebPluginExt/PlgSvgEditor - 目标框架:
net8.0 - 插件版本:
6.1.0(AssemblyVersion:6.1.0.1)
菜单入口(语言包)
- 组态功能
- 组态设计器
- 组态编辑
- 图元管理
- 模板管理
- 组件管理
控制器与路由
控制器列表:
ApplicationControllerBaseScadaSvgEditorControllerBaseSvgEditorComponentControllerSvgEditorComponentTagControllerSvgEditorDataControllerSvgEditorProjectControllerSvgEditorResourceControllerSvgEditorResourceTagControllerSvgEditorTemplateControllerSvgEditorTemplateTagController
路由前缀:
- 未检测到显式 Route,可能使用约定路由。
已识别 Action:
SvgEditorComponentController.FindListAsync- HttpPostSvgEditorComponentController.DeleteListAsync- HttpGetSvgEditorComponentController.CreateAsync- HttpGet {id?}SvgEditorComponentController.UpdateAsync- HttpPostSvgEditorComponentTagController.FindListAsync- HttpPostSvgEditorComponentTagController.DeleteListAsync- HttpPostSvgEditorComponentTagController.CreateAsync- HttpGet {id?}SvgEditorComponentTagController.UpdateAsync- HttpPostSvgEditorComponentTagController.FindSimpleAllAsync- HttpGetSvgEditorProjectController.FindListAsync- HttpPostSvgEditorProjectController.DeleteListAsync- HttpPostSvgEditorProjectController.CreateAsync- HttpGet {id:guid}SvgEditorProjectController.UpdateAsync- HttpPostSvgEditorResourceController.FindListAsync- HttpPostSvgEditorResourceController.DeleteListAsync- HttpGetSvgEditorResourceController.UpdateAsync- HttpGet {id?}SvgEditorResourceController.UploadResourceAsync- HttpPost {tagId:guid}SvgEditorResourceController.FindVideoListAsync- HttpPostSvgEditorResourceController.UploadVideoAsync- HttpPostSvgEditorResourceTagController.FindListAsync- HttpPostSvgEditorResourceTagController.DeleteListAsync- HttpPostSvgEditorResourceTagController.CreateAsync- HttpGet {id?}SvgEditorResourceTagController.UpdateAsync- HttpPostSvgEditorResourceTagController.FindSimpleAllAsync- HttpGetSvgEditorTemplateController.FindListAsync- HttpPostSvgEditorTemplateController.DeleteListAsync- HttpGetSvgEditorTemplateController.CreateAsync- HttpGet {id?}SvgEditorTemplateController.UpdateAsync- HttpPostSvgEditorTemplateTagController.FindListAsync- HttpPostSvgEditorTemplateTagController.DeleteListAsync- HttpPost
配置与关键文件
配置/选项类:
Code/PluginOptions.csModels/AdminRepositoryOptions.csUploadFile/FileOptions.cs
JSON 配置文件:
appsettings.jsonwwwroot/plugins/SvgEditor/config.jsonwwwroot/plugins/SvgEditor/models/performance.json
Razor 页面:
Areas/SvgEditor/Pages/_ViewImports.cshtmlAreas/SvgEditor/Pages/Resource.cshtmlAreas/SvgEditor/Pages/View.cshtmlAreas/SvgEditor/Pages/Component.cshtmlAreas/SvgEditor/Pages/Index.cshtmlAreas/SvgEditor/Pages/Template.cshtml
依赖清单
程序集引用:
ScadaCommonScadaCommon.LogScadaWebCommon
NuGet 依赖:
Microsoft.EntityFrameworkCoreNewtonsoft.JsonNpgsql.EntityFrameworkCore.PostgreSQLPomelo.EntityFrameworkCore.MySql
部署核对清单
- 编译插件工程,确认产物与版本号。
- 部署插件 DLL、`lang`、`Areas`、`wwwroot`(若存在)。
- 若插件依赖数据库,核对连接串与 Provider 配置。
- 重启 Web 服务,验证菜单出现、页面可访问、接口可调用。
运维与排障
- 菜单不显示:检查语言包与插件加载日志。
- 接口报错:优先检查路由、鉴权与数据库配置。
- 静态资源 404:确认插件静态目录已完整发布(wwwroot/plugins)。