diff --git a/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/flow/FlowConst.java b/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/flow/FlowConst.java index caadcd6..3446847 100644 --- a/smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/design/flow/FlowConst.java +++ b/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", "保存"); diff --git a/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl b/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl index 4b12bfe..444d8f3 100644 --- a/smtweb-framework/bpm/src/main/resources/static/template/default/model_card_flow.ftl +++ b/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()}",