Aucune description

microrain 98b86ec318 fix:修复API定义数据列表搜索功能 il y a 5 mois
.vscode e90e7bc0dd feat: 增加告警统计页面接口对接完善 il y a 10 mois
public 1c7cd6b8e2 feat: 删除插件文件夹 il y a 6 mois
src 98b86ec318 fix:修复API定义数据列表搜索功能 il y a 5 mois
.env acd2c7f810 feat: 增加设计器的预览页面,设计器的设计,删除等 il y a 6 mois
.env.development 9bc63ef099 fix: 修复规则引擎启动停止的接口,及配置传参错误问题 il y a 9 mois
.env.golocal 9bc63ef099 fix: 修复规则引擎启动停止的接口,及配置传参错误问题 il y a 9 mois
.env.nginx 3bef6822cc 更新默认配置文件 il y a 11 mois
.env.open 3bef6822cc 更新默认配置文件 il y a 11 mois
.env.production ed2232942f 更新说明文档 il y a 11 mois
.eslintignore f4fee64931 git reset gfast-ui il y a 3 ans
.eslintrc.js 8996280d72 fix: 去除多余log il y a 2 ans
.gitignore 3c23363c86 增加插件的自动下载脚本 il y a 6 mois
.prettierrc.js 3c262419f4 设备详情-增加设备功能显示,设备功能的执行操作还没加好,明天 继续弄 il y a 2 ans
.windsurfrules 0d128ece4c fix: 优化升级包管理页面样式,增加设备状态中的历史日志 tab(还需完善) il y a 7 mois
CHANGELOG.md 148f65e642 优化:将部门字样改为组织字样 il y a 2 ans
LICENSE f4fee64931 git reset gfast-ui il y a 3 ans
README.md 77a017e341 feat: 增加插件更新脚本 il y a 6 mois
getVersion.mjs 219dee41f3 fix: 修复登录页版本号的显示 il y a 9 mois
index.html 1beffc03c7 Merge branch 'master' into professional2 il y a 1 an
open.md ed2232942f 更新说明文档 il y a 11 mois
package-lock.json e5732e3b15 feat:优化API定义页面 il y a 5 mois
package.json e5732e3b15 feat:优化API定义页面 il y a 5 mois
plugins.d.ts 90cf0c7c1f fix: 修复之前的rsa-oaep在http下不能使用的问题,用了jsrsasign库来实现 il y a 1 an
pnpm-lock.yaml 66936c5898 feat: 数据分析中指标趋势和指标聚合增加打印功能 il y a 9 mois
shim.d.ts f4fee64931 git reset gfast-ui il y a 3 ans
source.d.ts f4fee64931 git reset gfast-ui il y a 3 ans
tsconfig.json f4fee64931 git reset gfast-ui il y a 3 ans
vite.config.ts 1abbbf7e5d fix: 租户是企业版功能如果非企业版,跳转到普通登录页面 il y a 10 mois
writeEnv.mjs 046fcda865 feat: 优化 designer 配置 il y a 5 mois
yarn.lock e5732e3b15 feat:优化API定义页面 il y a 5 mois

README.md

sagoo-admin-ui

业务管理系统前端

关于其他插件说明

组态项目代码仓库: sagoo-configuration 开源版本对应的组态代码分支是 master 企业版和专业版对应的组态代码分支是 v2

其他前端插件项目不分 v1 v2 都是一样的

依赖安装方式

用 yarn 安装依赖

  1. 全局安装 yarn: npm i yarn -g ,如果是非 windows 环境需要加 sudo
  2. 用 yarn 在项目中安装依赖: yarn i

环境变量配置

.env

为默认环境配置,不可修改,会导致使用异常。

.env.development

开发环境配置,启动 npm run dev 会启动开发环境,配置为链接本地的 go 环境的配置,可按需更改。

.env.nginx

线上 nignx 部署情况下的演示配置,可以复制到 .env.development 中进行按需修改使用。

.env.golocal

如需将打包后的静态文件放入到 go 服务中的 public 文件夹下使用,则需使用 npm run build:golocal 命令打包。

config.js

本地运行或打包都会根据 env 文件的配置,提前自动生成 config.js 配置文件,运行环境会在 public 目录下,打包之后会在生成的 sagoo-iot 目录下。可以通过手动修改这个 config.js 文件来修改前端运行时的服务端请求地址。通过修改配置来适应不同环境来避免调试时频繁打包。

window.allEnv = {
	topo: {
		server: '/base-api/api/v1',
		imgServer: '/base-api',
	},
	screen: {
		server: '/base-api/api/v1',
		imgServer: '/base-api',
	},
	rule: {
		server: '/rule-api',
		iotServer: '/base-api/api/v1',
	},
	media: '/media',
}

关于前端 pligin 插件

前端插件的文件在 public/plugin 目录下,运行 devbuild 前会自动检查插件文件是否存在,不存在会自动拉取,拉取后会自动运行 devbuild 命令。

之后如果需要更新插件,可以运行 npm run plugin:update 命令进行更新,避免插件更新影响主程序。