setNode_task.html 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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. <div class="layui-inline">
  65. <label class="layui-form-label">预警时间:</label>
  66. <div class="layui-input-block">
  67. <input class='myinput' type="text"
  68. placeholder="预警时间" class="layui-input">
  69. </div>
  70. </div>
  71. <div class="layui-inline">
  72. <label class="layui-form-label">告警时间:</label>
  73. <div class="layui-input-block">
  74. <input class='myinput' type="text"
  75. placeholder="告警时间" class="layui-input">
  76. </div>
  77. </div>
  78. </form>
  79. <div class="layui-card-footer">
  80. <button class="layui-btn layui-btn-sm layui-btn-normal flow-save " ag-data-index="1">
  81. <i class="layui-icon layui-icon-ok-circle "></i>
  82. <span class="btn-span-middle">保存</span>
  83. </button>
  84. <button class="ag-btn-cancel layui-btn layui-btn-sm layui-btn-normal flow-nosave">
  85. <i class="layui-icon layui-icon-close "></i>
  86. <span class="btn-span-middle">取消</span>
  87. </button>
  88. </div>
  89. </div>
  90. </div>
  91. </body>
  92. <script src="../../js/flowNode.js"></script>
  93. <script>
  94. var actionName = [];
  95. util.ajaxJson("", '/bpm/api/queryBpmPrePluginList', {}, function (page) {
  96. actionName = page;
  97. let opt = '';
  98. for(let i=0;i<page.length;i++){
  99. opt += '<option value ="'+page[i].implClassDesc+'">'+page[i].implClassDesc+'</option>'
  100. }
  101. document.getElementById('selopt').innerHTML = opt;
  102. document.getElementById("selopt").value = '';
  103. // document.getElementsByName("getPrePluginDesc")[0].value = actionName[0].implClassDesc;
  104. // document.getElementsByName("getPrePluginName")[0].value = actionName[0].implClassName;
  105. })
  106. layui.use(['form', 'layedit', 'laydate'], function () {
  107.             var form = layui.form;
  108.             form.on('select(aihao)', function (data) {
  109. for(let i=0;i<actionName.length;i++){
  110. if(actionName[i].implClassDesc == data.value){
  111. document.getElementsByName("getPrePluginDesc")[0].value = actionName[i].implClassDesc;
  112. document.getElementsByName("getPrePluginName")[0].value = actionName[i].implClassName;
  113. }
  114. }
  115.             });
  116.         });
  117. </script>
  118. </html>
  119. <style>
  120. .layui-unselect {
  121. width: 101%;
  122. }
  123. .ag-form {
  124. /* height: 400px !important; */
  125. /* overflow: hidden!important; */
  126. padding-top: 20px;
  127. }
  128. .layui-inline {
  129. margin-bottom: 20px;
  130. width: 100%;
  131. }
  132. .layui-card {
  133. padding: 20px;
  134. }
  135. .layui-form-label {
  136. height: 28px;
  137. line-height: 28px;
  138. }
  139. .layui-input-block {
  140. display: inline-block;
  141. width: 75%;
  142. }
  143. .myinput {
  144. width: 100%;
  145. display: inline-block;
  146. outline: none;
  147. border: 1px solid #ddd;
  148. height: 32px;
  149. padding-left: 10px;
  150. border-radius: 5px;
  151. }
  152. .myinput:focus {
  153. border: 1px solid #48A2FF;
  154. }
  155. .mysel {
  156. width: 103%;
  157. display: inline-block;
  158. outline: none;
  159. border: 1px solid #ddd;
  160. height: 36px;
  161. padding-left: 10px;
  162. border-radius: 5px;
  163. }
  164. .mysel:focus {
  165. border: 1px solid #48A2FF;
  166. }
  167. .layui-card-footer {
  168. position: absolute;
  169. bottom: 20px;
  170. right: 20px;
  171. }
  172. .layui-btn {
  173. width: 80px;
  174. height: 32px;
  175. border: transparent;
  176. color: #fff;
  177. background: #48A2FF;
  178. border-radius: 5px;
  179. outline: none;
  180. cursor: pointer;
  181. margin-left: 10px;
  182. }
  183. .layui-btn:hover {
  184. background: #48a2ffab;
  185. }
  186. .ag-btn-cancel {
  187. border: 1px solid #ddd;
  188. background: #fff;
  189. color: #999;
  190. }
  191. .ag-btn-cancel:hover {
  192. border: 1px solid #40B6FF;
  193. background: #ECF5FF;
  194. color: #40B6FF;
  195. }
  196. </style>
  197. <style type="text/css">
  198. .ag-form {
  199. /* height: auto !important; */
  200. }
  201. .layui-card-footer {
  202. border: transparent;
  203. position: absolute;
  204. bottom: 20px;
  205. right: 20px;
  206. }
  207. .layui-btn {
  208. width: 80px;
  209. height: 32px;
  210. border: transparent;
  211. color: #fff;
  212. background: #48A2FF;
  213. border-radius: 5px;
  214. outline: none;
  215. cursor: pointer;
  216. margin-left: 10px;
  217. }
  218. .layui-btn:hover {
  219. background: #48a2ffab;
  220. }
  221. .ag-btn-cancel {
  222. border: 1px solid #ddd;
  223. background: #fff;
  224. color: #999;
  225. }
  226. .ag-btn-cancel:hover {
  227. border: 1px solid #40B6FF;
  228. background: #ECF5FF;
  229. color: #40B6FF;
  230. }
  231. .bg-info {
  232. background: #fff;
  233. }
  234. .layui-card {
  235. box-shadow: none;
  236. }
  237. .layui-card-body {
  238. padding: 0;
  239. overflow: hidden;
  240. }
  241. .layui-card-form {
  242. margin: 0;
  243. padding: 20px;
  244. position: static;
  245. }
  246. .btn-span-middle {
  247. float: none;
  248. }
  249. .layui-form-label {
  250. height: 36px;
  251. line-height: 36px;
  252. padding: 0;
  253. float: none;
  254. display: inline-block;
  255. width: 15%;
  256. text-align: right;
  257. }
  258. .layui-input-block {
  259. display: inline-block;
  260. width: 75%;
  261. margin: 0;
  262. }
  263. .myinput {
  264. width: 100%;
  265. display: inline-block;
  266. outline: none;
  267. border: 1px solid #ddd;
  268. height: 36px;
  269. padding-left: 10px;
  270. border-radius: 5px;
  271. }
  272. .myinput:focus {
  273. border: 1px solid #48A2FF;
  274. }
  275. </style>