@mldong/jeeflow 1.8.14 → 1.8.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/facade.js +16 -2
  2. package/package.json +1 -1
package/dist/facade.js CHANGED
@@ -289,7 +289,7 @@ export class JeeflowFacade {
289
289
  // ── 流程设计(需扩展仓储) ───────────────────────────────────────────────
290
290
  async designPage(args) {
291
291
  const [rows, total] = await this.ext().pageDesigns(toInt(args.pageNum ?? 1), toInt(args.pageSize ?? 10), undefined, parseMQuery(args));
292
- return { rows, recordCount: total };
292
+ return { rows: rows.map(r => designRowToMap(r)), recordCount: total };
293
293
  }
294
294
  /** 修改流程设计基本信息(对齐 boot3 ProcessDesignController.update,不写设计稿快照) */
295
295
  async designUpdate(args) {
@@ -819,7 +819,12 @@ export class JeeflowFacade {
819
819
  const flow = JSON.parse(toStr(def.content));
820
820
  for (const n of flow.nodes ?? []) {
821
821
  if (n.id === task.taskName) {
822
- vo.taskModel = { name: n.id, displayName: n.text?.value ?? '', type: n.type };
822
+ // issues/62:taskModel form/ext(节点字段权限,对齐 boot2)
823
+ vo.taskModel = {
824
+ name: n.id, displayName: n.text?.value ?? '', type: n.type,
825
+ form: n.properties?.form ?? null,
826
+ ext: n.properties?.field ?? null,
827
+ };
823
828
  break;
824
829
  }
825
830
  }
@@ -1090,6 +1095,15 @@ function defineRowToMap(r) {
1090
1095
  updateTime: fmtTime(r.updateTime), updateUser: r.updateUser,
1091
1096
  };
1092
1097
  }
1098
+ /** 设计行:时间格式化(issues/63) */
1099
+ function designRowToMap(r) {
1100
+ return {
1101
+ id: r.id, name: r.name, displayName: r.displayName,
1102
+ type: r.type, icon: r.icon, isDeployed: r.isDeployed, remark: r.remark,
1103
+ createTime: fmtTime(r.createTime), createUser: r.createUser,
1104
+ updateTime: fmtTime(r.updateTime), updateUser: r.updateUser,
1105
+ };
1106
+ }
1093
1107
  /** 实例行:ext(实例变量对象)+ displayName/version(定义) */
1094
1108
  function instanceRowToMap(r) {
1095
1109
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mldong/jeeflow",
3
- "version": "1.8.14",
3
+ "version": "1.8.16",
4
4
  "description": "jeeflow workflow engine — Node.js / TypeScript implementation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",