setNode_task.html 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>无纸化集中业务管理系统</title>
  6. <meta name="renderer" content="webkit">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  8. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  9. <link charset="utf-8" rel="stylesheet" href="/static/css/layui.css?v=1.0.0">
  10. <link rel="stylesheet" href="/static/css/temp.css" media="all">
  11. <script src="/static/js/jquery-1.8.2.min.js?v=1.0.0"></script>
  12. <script src="/static/js/layui.js?v=1.0.0"></script>
  13. <script src="/static/js/api.config.js"></script>
  14. <script src="/static/js/util.js?v=1.0.0"></script>
  15. <script src="/static/js/customform.js?v=1.0.0"></script>
  16. <script src="/static/js/url.js?v=1.0.0"></script>
  17. <script src="/static/js/lay/lay-config.js?v=1.0.0"></script>
  18. <script src="/static/css/inconfont/iconfont.js"></script>
  19. <script src="/static/js/jquery-ui.min.js"></script>
  20. </head>
  21. <body class="bg-info">
  22. <div>
  23. <div>
  24. <form class="ag-form layui-form" ag-data-index="1" ag-data-ctx="bpm" ag-data-url="/api/nodeInit"
  25. ag-form-callBack="initNode">
  26. <div class="layui-inline ">
  27. <label class="layui-form-label">环节名称:</label>
  28. <div class="layui-input-block">
  29. <input type="hidden" name="stepId">
  30. <input class='myinput' type="text" name="stepName" ag-verify="required" autocomplete="off"
  31. placeholder="环节名称" class="layui-input">
  32. </div>
  33. </div>
  34. <div class="layui-inline ">
  35. <label class="layui-form-label">处理角色:</label>
  36. <div class="layui-input-block">
  37. <select class='mysel' name="roleCode" ag-sel-name="roleName">
  38. </select>
  39. </div>
  40. </div>
  41. <div class="layui-inline ">
  42. <label class="layui-form-label">派单方式:</label>
  43. <div class="layui-input-block">
  44. <select class='mysel' name="dispatchType" ag-sel-name="dispathTypeDesc">
  45. </select>
  46. </div>
  47. </div>
  48. <div class="layui-inline ">
  49. <label class="layui-form-label">处理表单:</label>
  50. <div class="layui-input-block">
  51. <select class='mysel' name="actionUrl" ag-sel-name="actionName">
  52. </select>
  53. </div>
  54. </div>
  55. <div class="layui-inline ">
  56. <label class="layui-form-label">插件:</label>
  57. <div class="layui-input-block">
  58. <select class='mysel' id="selopt" name="prePluginDesc" lay-filter="aihao">
  59. </select>
  60. <input type="hidden" name="getPrePluginDesc" id="seloptDesc">
  61. <input type="hidden" name="getPrePluginName" id="seloptname">
  62. </div>
  63. </div>
  64. </form>
  65. <div class="layui-card-footer">
  66. <button class="layui-btn layui-btn-sm layui-btn-normal flow-save " ag-data-index="1">
  67. <i class="layui-icon layui-icon-ok-circle "></i>
  68. <span class="btn-span-middle">保存</span>
  69. </button>
  70. <button class="ag-btn-cancel layui-btn layui-btn-sm layui-btn-normal flow-nosave">
  71. <i class="layui-icon layui-icon-close "></i>
  72. <span class="btn-span-middle">取消</span>
  73. </button>
  74. </div>
  75. </div>
  76. </div>
  77. </body>
  78. <script src="../../js/flowNode.js"></script>
  79. <script>
  80. var actionName = [];
  81. util.ajaxJson("", '/bpm/api/queryBpmPrePluginList', {}, function (page) {
  82. actionName = page;
  83. let opt = '';
  84. for(let i=0;i<page.length;i++){
  85. opt += '<option value ="'+page[i].implClassDesc+'">'+page[i].implClassDesc+'</option>'
  86. }
  87. document.getElementById('selopt').innerHTML = opt;
  88. document.getElementById("selopt").value = '';
  89. // document.getElementsByName("getPrePluginDesc")[0].value = actionName[0].implClassDesc;
  90. // document.getElementsByName("getPrePluginName")[0].value = actionName[0].implClassName;
  91. })
  92. layui.use(['form', 'layedit', 'laydate'], function () {
  93.             var form = layui.form;
  94.             form.on('select(aihao)', function (data) {
  95. for(let i=0;i<actionName.length;i++){
  96. if(actionName[i].implClassDesc == data.value){
  97. document.getElementsByName("getPrePluginDesc")[0].value = actionName[i].implClassDesc;
  98. document.getElementsByName("getPrePluginName")[0].value = actionName[i].implClassName;
  99. }
  100. }
  101.             });
  102.         });
  103. </script>
  104. </html>
  105. <style>
  106. .layui-unselect {
  107. width: 101%;
  108. }
  109. .ag-form {
  110. /* height: 400px !important; */
  111. /* overflow: hidden!important; */
  112. padding-top: 20px;
  113. }
  114. .layui-inline {
  115. margin-bottom: 20px;
  116. width: 100%;
  117. }
  118. .layui-card {
  119. padding: 20px;
  120. }
  121. .layui-form-label {
  122. height: 28px;
  123. line-height: 28px;
  124. }
  125. .layui-input-block {
  126. display: inline-block;
  127. width: 75%;
  128. }
  129. .myinput {
  130. width: 100%;
  131. display: inline-block;
  132. outline: none;
  133. border: 1px solid #ddd;
  134. height: 32px;
  135. padding-left: 10px;
  136. border-radius: 5px;
  137. }
  138. .myinput:focus {
  139. border: 1px solid #48A2FF;
  140. }
  141. .mysel {
  142. width: 103%;
  143. display: inline-block;
  144. outline: none;
  145. border: 1px solid #ddd;
  146. height: 36px;
  147. padding-left: 10px;
  148. border-radius: 5px;
  149. }
  150. .mysel:focus {
  151. border: 1px solid #48A2FF;
  152. }
  153. .layui-card-footer {
  154. position: absolute;
  155. bottom: 20px;
  156. right: 20px;
  157. }
  158. .layui-btn {
  159. width: 80px;
  160. height: 32px;
  161. border: transparent;
  162. color: #fff;
  163. background: #48A2FF;
  164. border-radius: 5px;
  165. outline: none;
  166. cursor: pointer;
  167. margin-left: 10px;
  168. }
  169. .layui-btn:hover {
  170. background: #48a2ffab;
  171. }
  172. .ag-btn-cancel {
  173. border: 1px solid #ddd;
  174. background: #fff;
  175. color: #999;
  176. }
  177. .ag-btn-cancel:hover {
  178. border: 1px solid #40B6FF;
  179. background: #ECF5FF;
  180. color: #40B6FF;
  181. }
  182. </style>
  183. <style type="text/css">
  184. .ag-form {
  185. /* height: auto !important; */
  186. }
  187. .layui-card-footer {
  188. border: transparent;
  189. position: absolute;
  190. bottom: 20px;
  191. right: 20px;
  192. }
  193. .layui-btn {
  194. width: 80px;
  195. height: 32px;
  196. border: transparent;
  197. color: #fff;
  198. background: #48A2FF;
  199. border-radius: 5px;
  200. outline: none;
  201. cursor: pointer;
  202. margin-left: 10px;
  203. }
  204. .layui-btn:hover {
  205. background: #48a2ffab;
  206. }
  207. .ag-btn-cancel {
  208. border: 1px solid #ddd;
  209. background: #fff;
  210. color: #999;
  211. }
  212. .ag-btn-cancel:hover {
  213. border: 1px solid #40B6FF;
  214. background: #ECF5FF;
  215. color: #40B6FF;
  216. }
  217. .bg-info {
  218. background: #fff;
  219. }
  220. .layui-card {
  221. box-shadow: none;
  222. }
  223. .layui-card-body {
  224. padding: 0;
  225. overflow: hidden;
  226. }
  227. .layui-card-form {
  228. margin: 0;
  229. padding: 20px;
  230. position: static;
  231. }
  232. .btn-span-middle {
  233. float: none;
  234. }
  235. .layui-form-label {
  236. height: 36px;
  237. line-height: 36px;
  238. padding: 0;
  239. float: none;
  240. display: inline-block;
  241. width: 15%;
  242. text-align: right;
  243. }
  244. .layui-input-block {
  245. display: inline-block;
  246. width: 75%;
  247. margin: 0;
  248. }
  249. .myinput {
  250. width: 100%;
  251. display: inline-block;
  252. outline: none;
  253. border: 1px solid #ddd;
  254. height: 36px;
  255. padding-left: 10px;
  256. border-radius: 5px;
  257. }
  258. .myinput:focus {
  259. border: 1px solid #48A2FF;
  260. }
  261. </style>