浏览代码

优化:工作流模型配置

4.0
FLYPHT 2 年前
父节点
当前提交
ec3e13a19b
共有 2 个文件被更改,包括 19 次插入7 次删除
  1. +2
    -2
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/flow/FlowConst.java
  2. +17
    -5
      smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl

+ 2
- 2
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/flow/FlowConst.java 查看文件

@@ -14,7 +14,7 @@ public interface FlowConst {
public static final int NEW = 1;//新增
public static final int EDIT = 2;//编辑
}
//流程按钮
class Button extends StrEnum {
public static Button instance = new Button();
@@ -32,7 +32,7 @@ public interface FlowConst {
//新增
public static StrEnumBean ADD = instance.addEnum("add", "新增");
//删除
public static StrEnumBean DEL = instance.addEnum("del", "删除");
public static StrEnumBean DEL = instance.addEnum("remove", "删除");
//保存
public static StrEnumBean SAVE = instance.addEnum("save", "保存");



+ 17
- 5
smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl 查看文件

@@ -108,7 +108,9 @@
"dataset": "flow",
"field": "pri_task_id"
},
"events": {},
"events": {
"on-change": "onTaskChange"
},
"vars": {
"$ref": "$ref"
}
@@ -589,7 +591,7 @@
"id": "${newId()}",
"type": "fx-select",
"props": {
"name":"flowSelComment",
"name":"flowSelCommentRef",
"label": "备选意见",
"clearable": true,
"labelWidth": 100,
@@ -598,7 +600,12 @@
"field": "selComment",
"size": "default"
},
"events": {}
"events": {
"on-change": "onSelCommentChange"
},
"vars": {
"$ref": "$ref"
}
},
{
"id": "${newId()}",
@@ -760,7 +767,7 @@
"id": "${newId()}",
"type": "fx-select",
"props": {
"name":"flowSelComment",
"name":"flowSelCommentRef",
"label": "备选意见",
"clearable": true,
"labelWidth": 100,
@@ -769,7 +776,12 @@
"field": "selComment",
"size": "default"
},
"events": {}
"events": {
"on-change": "onSelCommentChange"
},
"vars": {
"$ref": "$ref"
}
},
{
"id": "${newId()}",


正在加载...
取消
保存