← 返回文档中心

PlgScadaAPPDesigner 插件(自研)

PlgScadaAPPDesigner 自研插件文档,包含菜单、路由、配置文件、依赖和部署排障清单。

自研扩展适用版本6.4.3更新时间2026-04-29负责人ScadaV6WebPluginExt

PlgScadaAPPDesigner 插件(自研)

PlgScadaAPPDesigner 是 ScadaV6WebPluginExt 中的自研 Web 插件。本文档基于源码自动提取并整理,用于支持部署、联调和运维排障。

功能描述

该插件用于扩展 Web 侧业务能力,支持页面交互、数据展示与集成接入。

基础信息

  • 源码目录:ScadaV6WebPluginExt/PlgScadaAPPDesigner
  • 目标框架:net8.0
  • 插件版本:6.4.3(AssemblyVersion: 6.4.0.2
  • App设计器
  • 页面列表
  • 设计器
  • APP页面设计器

控制器与路由

控制器列表:

  • AppApiController
  • FormApiController
  • TemplateApiController

路由前缀:

  • Api/ScadaAPPDesigner/[action]
  • Api/ScadaAPPDesignerTemplate/[action]

已识别 Action:

  • FormApiController.GetFormList - HttpGet
  • FormApiController.GetForm - HttpGet
  • FormApiController.GetFormListFromDir - HttpGet
  • FormApiController.GetFormFromDir - HttpGet
  • FormApiController.SaveForm - HttpPost
  • FormApiController.DeleteForm - HttpPost
  • TemplateApiController.GetTemplateList - HttpGet
  • TemplateApiController.GetTemplate - HttpGet
  • TemplateApiController.SaveTemplate - HttpPost
  • TemplateApiController.DeleteTemplate - HttpPost

配置与关键文件

配置/选项类:

  • 未检测到 Options 类文件。

JSON 配置文件:

  • 未检测到 JSON 配置文件。

Razor 页面:

  • Areas/ScadaAPPDesigner/Pages/_ViewImports.cshtml
  • Areas/ScadaAPPDesigner/Pages/FormList.cshtml
  • Areas/ScadaAPPDesigner/Pages/Index.cshtml
  • Areas/ScadaAPPDesigner/Pages/_ViewStart.cshtml

依赖清单

程序集引用:

  • ScadaCommon
  • ScadaCommon.Log
  • ScadaWebCommon

NuGet 依赖:

部署核对清单

  1. 编译插件工程,确认产物与版本号。
  2. 部署插件 DLL、`lang`、`Areas`、`wwwroot`(若存在)。
  3. 若插件依赖数据库,核对连接串与 Provider 配置。
  4. 重启 Web 服务,验证菜单出现、页面可访问、接口可调用。

运维与排障

  • 菜单不显示:检查语言包与插件加载日志。
  • 接口报错:优先检查路由、鉴权与数据库配置。
  • 静态资源 404:确认插件静态目录已完整发布(wwwroot/plugins)。