Ver código fonte

优化:工作流模型配置

4.0
FLYPHT 2 anos atrás
pai
commit
ec3e13a19b
2 arquivos alterados com 19 adições e 7 exclusões
  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 Ver arquivo

@@ -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 Ver arquivo

@@ -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()}",


Carregando…
Cancelar
Salvar