toolbars.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. [
  2. {
  3. "type": "MWFToolBarButton",
  4. "img": "close.png",
  5. "title": "关闭工作",
  6. "action": "closeWork",
  7. "text": "关闭",
  8. "id": "action_close",
  9. "condition": "reutrn true",
  10. "read": true
  11. },
  12. {
  13. "type": "MWFToolBarButton",
  14. "img": "save.png",
  15. "title": "保存工作",
  16. "action": "saveWork",
  17. "text": "保存",
  18. "control": "allowSave",
  19. "id": "action_saveData",
  20. "condition": "reutrn this.power.isEditor",
  21. "read": false
  22. },
  23. {
  24. "type": "MWFToolBarButton",
  25. "img": "submit.png",
  26. "title": "继续流转文件",
  27. "action": "processWork",
  28. "text": "继续流转",
  29. "control": "allowProcessing",
  30. "id": "action_processWork",
  31. "condition": "reutrn this.power.isOwner",
  32. "read": false
  33. },
  34. {
  35. "type": "MWFToolBarMenu",
  36. "img": "tool.png",
  37. "title": "管理工具",
  38. "action": "",
  39. "text": "工具",
  40. "id": "action_tools",
  41. "condition": "reutrn true",
  42. "read": true,
  43. "sub": [
  44. {
  45. "type": "MWFToolBarMenuItem",
  46. "img": "reroute.png",
  47. "title": "调度",
  48. "action": "rerouteWork",
  49. "text": "调度",
  50. "id": "action_reroute",
  51. "control": "allowReroute",
  52. "condition": "reutrn this.power.isManager",
  53. "read": true
  54. },
  55. {
  56. "type": "MWFToolBarMenuItem",
  57. "img": "reset.png",
  58. "title": "重置处理人",
  59. "action": "resetWork",
  60. "text": "重置处理人",
  61. "id": "action_reset",
  62. "control": "allowReset",
  63. "condition": "reutrn this.power.isReseter",
  64. "read": true
  65. },
  66. {
  67. "type": "MWFToolBarMenuItem",
  68. "img": "retract.png",
  69. "title": "撤回",
  70. "action": "retractWork",
  71. "text": "撤回",
  72. "id": "action_retract",
  73. "control": "allowRetract",
  74. "condition": "reutrn this.power.isReseter",
  75. "read": true
  76. },
  77. {
  78. "type": "MWFToolBarMenuItem",
  79. "img": "del.png",
  80. "title": "删除文件",
  81. "action": "deleteWork",
  82. "text": "删除文件",
  83. "id": "action_delete",
  84. "control": "allowDelete",
  85. "condition": "reutrn this.power.isDelete",
  86. "read": false
  87. },
  88. {
  89. "type": "MWFToolBarMenuItem",
  90. "img": "print.png",
  91. "title": "打印文件",
  92. "action": "printWork",
  93. "text": "打印",
  94. "id": "action_print",
  95. "control": "",
  96. "condition": "reutrn this.power.isPront",
  97. "read": true
  98. }
  99. ]
  100. },
  101. {
  102. "type": "MWFToolBarSeparator",
  103. "img": "",
  104. "title": "",
  105. "action": "",
  106. "text": "",
  107. "condition": "reutrn true",
  108. "read": true
  109. }
  110. ]