From 688caa324b8968a08ba8d56dc6670a24c0c1d273 Mon Sep 17 00:00:00 2001 From: wintel Date: Thu, 24 Apr 2025 23:40:36 +0800 Subject: [PATCH] docs: update startflow.md --- newdocs/docs/notes/core/wwwarchitect.md | 163 +++++++----------------- newdocs/docs/notes/pro/startflow.md | 6 +- 2 files changed, 49 insertions(+), 120 deletions(-) diff --git a/newdocs/docs/notes/core/wwwarchitect.md b/newdocs/docs/notes/core/wwwarchitect.md index 96529b1d..0fb50d39 100644 --- a/newdocs/docs/notes/core/wwwarchitect.md +++ b/newdocs/docs/notes/core/wwwarchitect.md @@ -4,125 +4,54 @@ createTime: 2025/04/23 21:03:10 permalink: /core/wwwarchitect/ --- -OpenAuth.Mvc前端采用典型的mvc结构部署,其中: +OpenAuth.Mvc前端采用经典mvc结构,如图: + +::: file-tree +- OpenAuth.Mvc + - Views // MVC的视图文件 + - _ViewStart.cshtml + - Error + - Auth.cshtml + - FlowSchemes + - Design.cshtml + - Index.cshtml + - NodeInfo.cshtml + - Preview.cshtml + - Home + - git.cshtml + - Index.cshtml + - Main.cshtml + - Login + - Index.cshtml + - wwwroot + - css // 通用的css样式 + - login.css + - main.css + - treetable.css + - js // 通用的js组件 + - cookie.js + - droptree.js + - dtree.js + - index.js + - leftNav.js + - openauth.js + - utils.js + - vue.js + - ztree.js + - userJs // 业务相关的js代码 + - assignModule.js + - assignResource.js + - assignRole.js + - changePwd.js + - flowinstanceDetail.js + - forms.js + - login.js + +::: + * Views: 为静态资源页面,最终会渲染成html(实在不懂,百度Asp.Net Mvc中的View); * wwwroot/js: 通用的js组件; -* wwwroot/userJs: 业务相关的js代码。通常一个csthml页面对应一个userJs中的js文件。如`Categories\Index.cshtml`对应`userJs\categories.js` - -```shell -|-- OpenAuth.Mvc - |-- Views - | |-- _ViewStart.cshtml - | |-- Categories - | | |-- Index.cshtml - | |-- DataPrivilegeRules - | | |-- index.cshtml - | |-- Error - | | |-- Auth.cshtml - | |-- FlowInstances - | | |-- Detail.cshtml - | | |-- Disposed.cshtml - | | |-- Edit.cshtml - | | |-- Index.cshtml - | | |-- Verification.cshtml - | | |-- Wait.cshtml - | |-- FlowSchemes - | | |-- Design.cshtml - | | |-- Index.cshtml - | | |-- NodeInfo.cshtml - | | |-- Preview.cshtml - | |-- Forms - | | |-- Edit.cshtml - | | |-- index.cshtml - | | |-- Preview.cshtml - | |-- Home - | | |-- git.cshtml - | | |-- Index.cshtml - | | |-- Main.cshtml - | |-- Login - | | |-- Index.cshtml - | |-- ModuleManager - | | |-- Assign.cshtml - | | |-- Index.cshtml - | |-- OpenJobs - | | |-- index.cshtml - | |-- OrgManager - | | |-- Index.cshtml - | |-- Redirects - | | |-- IdentityAuth.cshtml - | |-- Resources - | | |-- Assign.cshtml - | | |-- Index.cshtml - | |-- RoleManager - | | |-- Assign.cshtml - | | |-- Index.cshtml - | |-- Shared - | | |-- _Layout.cshtml - | |-- SysLogs - | | |-- index.cshtml - | |-- SysMessages - | | |-- index.cshtml - | |-- UserManager - | | |-- ChangePassword.cshtml - | | |-- Index.cshtml - | | |-- Profile.cshtml - | |-- WmsInboundOrderTbls - | |-- index.cshtml - |-- wwwroot - |-- css - | |-- formpreview.css - | |-- images.css - | |-- login.css - | |-- main.css - | |-- treetable.css - |-- js - |-- bodyTab.js - |-- bootstrap.js - |-- cookie.js - |-- droptree.js - |-- dtree.js - |-- flowlayout.js - |-- iconPicker.js - |-- index.js - |-- leftNav.js - |-- openauth.js - |-- slimscroll.js - |-- utils.js - |-- vue.js - |-- ztree.js - |-- userJs - |-- assignModule.js - |-- assignResource.js - |-- assignRole.js - |-- categories.js - |-- changePwd.js - |-- dataprivilegerules.js - |-- flowinstanceDetail.js - |-- flowInstanceDisposed.js - |-- flowInstanceEdit.js - |-- flowInstances.js - |-- flowInstanceWait.js - |-- flowSchemeDesign.js - |-- flowSchemePreview.js - |-- flowSchemes.js - |-- formEdit.js - |-- forms.js - |-- login.js - |-- main.js - |-- modules.js - |-- nodeInfo.js - |-- openjobs.js - |-- orgs.js - |-- preview.js - |-- profile.js - |-- resources.js - |-- roles.js - |-- syslogs.js - |-- sysmessages.js - |-- users.js - |-- verification.js - |-- wmsinboundordertbls.js -``` \ No newline at end of file +* wwwroot/userJs: 业务相关的js代码。通常一个csthml页面对应一个userJs中的js文件。如`Categories\Index.cshtml`对应`userJs\categories.js` \ No newline at end of file diff --git a/newdocs/docs/notes/pro/startflow.md b/newdocs/docs/notes/pro/startflow.md index fceaf9d6..9a972f2f 100644 --- a/newdocs/docs/notes/pro/startflow.md +++ b/newdocs/docs/notes/pro/startflow.md @@ -43,7 +43,7 @@ permalink: /pro/startflow/ ![2025-04-19-12-28-51](http://img.openauth.net.cn/2025-04-19-12-28-51.png) -#### 节点类型 +### 节点类型 关于节点的类型概念及区分可以参考[工作流中的概念](/core/flowinstanceconcept/) * 开始节点:流程的开始节点,一个流程只有一个开始 @@ -53,7 +53,7 @@ permalink: /pro/startflow/ * 会签节点:处理的是同一个任务需要多人审批的情况 * 任务节点:普通的审批节点 -#### 节点属性 +### 节点属性 * 名称:**必填** 节点名称 * 网关/会签类型:当节点类型为网关、会签节点时有效 @@ -73,7 +73,7 @@ permalink: /pro/startflow/ * 可编辑字段:流程审批时,该节点可以编辑的表单字段 * 三方回调URL:当节点审批完成时,如果需要通知其他系统或模块,则填写对应系统的接口地址。 -#### 连线属性 +### 连线属性 * 文本:连线上的文字 * 表单字段条件:连线上的判断条件,只有当一个节点有多条发出的连线时,该设置生效。