郑根木 2 лет назад
Родитель
Сommit
94dccde30c
1 измененных файлов: 3 добавлений и 10 удалений
  1. +3
    -10
      smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java

+ 3
- 10
smtweb-framework/bpm/src/main/java/cc/smtweb/system/bpm/web/engine/flow/FlowInstance.java Просмотреть файл

@@ -350,19 +350,12 @@ public class FlowInstance {
List<Task> listTask = adjustTasks();
//可选步骤
List<SwMap> tasks = new ArrayList<>();
String next_text = procDef.getProcInfo().getActNameById(actInst.getActId());
int index = 0;

for (Task act : listTask) {
SwMap row = new SwMap();
tasks.add(row);
row.put("id", act.getId());
if (act.getId() == actInst.getId() && listTask.size() > 1 && index != 0) {
next_text = "待" + next_text;
} else {
next_text = procDef.getProcInfo().getActNameById(act.getActId());
}
row.put("label", next_text);
index++;
row.put("label", act.getActName());
}
extra.put("tasks", tasks);

@@ -423,7 +416,7 @@ public class FlowInstance {

boolean canDel = !isFinish && actInst.isMake() && !isNew;
buttons.add(createButton(FlowConst.Button.DEL, canDel));
buttons.add(createButton(FlowConst.Button.DISUSE, !isNew));
buttons.add(createButton(FlowConst.Button.DISUSE, !isNew && !actInst.isMake()));
buttons.add(createButton(FlowConst.Button.LOG, !isNew));
buttons.add(createButton(FlowConst.Button.WORD, !isNew));
buttons.add(createButton(FlowConst.Button.EXCEL, !isNew));


Загрузка…
Отмена
Сохранить