checkRule.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <!--#include file="/inc/header.html"-->
  2. <script type="text/javascript">
  3. window.renderHeader = function (e) {
  4. var template = "{{#childenList}}<li class=\"bif-nav-item\" title=\"{{moduleUrl}}\" data-fun=\"{{moduleUrl}}\" data-href=\"{{moduleUrl}}\">{{moduleName}}</li>{{/childenList}}";
  5. var views = Mustache.render(template, e);
  6. $("#bif-nav-ul").html(views);
  7. $("#bif-nav-ul li").each(function () {
  8. var txt = $(this).text();
  9. if (txt == '规则生成') {
  10. $(this).addClass("active");
  11. $(".tree-breadcrumb #nav-item-a").html("规则生成");
  12. }
  13. })
  14. };
  15. $(function () {
  16. var modules = JSON.parse(window.sessionStorage.getItem("modules"));
  17. if (window.treemap) {
  18. renderHeader(window.treemap[13]);//参数管理 7
  19. } else if (modules) {
  20. renderHeader(modules.treemap[13]);
  21. }
  22. })
  23. </script>
  24. <div class="con-wrap" style="min-height: 400px;">
  25. <div class="tree-breadcrumb">
  26. <span class="nav-prov">首页</span>&gt;
  27. <span class="nav-prov"><a id="cansgl" href="/pages/basedata/index.html">参数管理</a></span>&gt;
  28. <span class="nav-prov"><a href="javascript:;" id="nav-item-a"></a></span>
  29. </div>
  30. <div id="con-map" class="main3" style="margin-top: 0px;overflow:hidden">
  31. <div class="bif-nav">
  32. <ul id="bif-nav-ul">
  33. </ul>
  34. </div>
  35. <div class="bif-container">
  36. <div class="author-nav-tree">
  37. <ul id="tree-tt" style="height:500px;">
  38. </ul>
  39. </div>
  40. <div class="bif-con panel-noscroll" style="height: auto;">
  41. <div id="bd-toolbar" style="padding:10px 5px;">
  42. <!-- <a href="#" class="easyui-linkbutton bd-add-s l-btn city-add-bt city-add-bt " >新增直属库</a> -->
  43. <a id="checkDomain-add-bt" href="#"
  44. class="easyui-linkbutton bd-add-s l-btn checkRules-add-bt new-add-bt">新增</a>
  45. </div>
  46. <table id="bd-dg" style="height:500px;" class="group-manage-table"></table>
  47. </div>
  48. </div>
  49. </div>
  50. </div>'
  51. <div class="checkRules-editform hide " style="padding:10px;">
  52. <form class="checkRules-editform-form">
  53. <input type="hidden" name="id">
  54. <input type="hidden" name="uuid">
  55. <span class="pf-ptitle">基本信息</span>
  56. <div class="pf-pitem">
  57. <span class="pf-pitem-li">
  58. <span class="pf-pitem-lit">规则名称:</span>
  59. <span class="pf-pitem-lic">
  60. <input class="easyui-textbox" data-options="width:'406px',height:'20px'" required="true"
  61. name="checkRuleName"></span>
  62. </span>
  63. <br/>
  64. <span class="pf-pitem-li">
  65. <span class="pf-pitem-lit">库名:</span>
  66. <span class="pf-pitem-lic">
  67. <input class="easyui-combobox libraryName checkRuleGrainId"
  68. data-options="width:'140px',height:'20px'" required="true" name="checkRuleGrainId"></span>
  69. </span>
  70. <span class="pf-pitem-li">
  71. <span class="pf-pitem-lit">岗位:</span>
  72. <span class="pf-pitem-lic">
  73. <input class="easyui-combobox checkRulePostCode" data-options="width:'140px',height:'20px'"
  74. required="true" name="checkRulePostCode"></span>
  75. </span>
  76. <br/>
  77. <span class="pf-pitem-li">
  78. <span class="pf-pitem-lit">制作人:</span>
  79. <span class="pf-pitem-lic">
  80. <input class="easyui-textbox" data-options="width:'140px',height:'20px'"
  81. name="checkRuleAuthor"></span>
  82. </span>
  83. <span class="pf-pitem-li">
  84. <span class="pf-pitem-lit">生成时间:</span>
  85. <span class="pf-pitem-lic">
  86. <input class="easyui-datebox" data-options="width:'140px',height:'20px'"
  87. name="checkRuleDate" required="true"></span>
  88. </span>
  89. <br/>
  90. <span class="pf-pitem-li">
  91. <span class="pf-pitem-lit">生效起日:</span>
  92. <span class="pf-pitem-lic">
  93. <input class="easyui-datebox" data-options="width:'140px',height:'20px'" required="true"
  94. name="checkRuleStartDate"></span>
  95. </span>
  96. <span class="pf-pitem-li">
  97. <span class="pf-pitem-lit">生效止日:</span>
  98. <span class="pf-pitem-lic">
  99. <input class="easyui-datebox" data-options="width:'140px',height:'20px'" required="true"
  100. name="checkRuleEndDate"></span>
  101. </span>
  102. <br/>
  103. <span class="pf-pitem-li">
  104. <span class="pf-pitem-lit">是否生效:</span>
  105. <span class="pf-pitem-lic">
  106. <select class="easyui-combobox" name="checkRuleUsed" required="true"
  107. data-options="width:'140px',height:'20px'">
  108. <option value="1">是</option>
  109. <option value="0">否</option>
  110. </select>
  111. </span>
  112. </span>
  113. <span class="pf-pitem-li">
  114. <span class="pf-pitem-lit">生效范围:</span>
  115. <span class="pf-pitem-lic">
  116. <input class="easyui-textbox" data-options="width:'140px',height:'20px'"
  117. name="checkRuleDomain"></span>
  118. </span>
  119. <br/>
  120. <span class="pf-pitem-li">
  121. <span class="pf-pitem-lit">巡检频率单位:</span>
  122. <span class="pf-pitem-lic">
  123. <select class="easyui-combobox " class="checkRuleUnit" name="checkRuleUnit" required="true"
  124. editable="false" panelHeight=60 data-options="width:'140px'">
  125. <option value="年">年</option>
  126. <option value="月">月</option>
  127. <option value="周">周</option>
  128. <option value="日">日</option>
  129. </select>
  130. </span>
  131. </span>
  132. <span class="pf-pitem-li">
  133. <span class="pf-pitem-lit">巡检次数:</span>
  134. <span class="pf-pitem-lic">
  135. <input class="easyui-numberbox" data-options="width:'140px',height:'20px'" required="true"
  136. name="checkRuleNumber"></span>
  137. </span>
  138. </div>
  139. <div class="keeper-info">
  140. <div class="keeper-info-left">
  141. <span class="pf-ptitle">规则设定</span><span class="add-row-li checkRuleItems-add-span"></span>
  142. <ul class="pf-degree">
  143. <li class="pf-degree-li">
  144. <span class="pf-degree-item">
  145. <span class="keeper-info-subtitle" >安全管理区域巡查内容:</span>
  146. <select class="easyui-combobox CheckDomain-type" class="temp-class" required="true"
  147. editable="false" panelHeight=60 data-options="width:'140px'">
  148. </select>
  149. </span>
  150. <span class="pf-degree-item">
  151. <span class="keeper-info-subtitle" style="margin:0px 0px 0px 70px">重点项目:</span>
  152. <select class="easyui-combobox CheckDomainItem-type" class="temp-class" required="true"
  153. editable="false" panelHeight=60 data-options="width:'140px'">
  154. </select>
  155. </span>
  156. </li>
  157. </ul>
  158. </div>
  159. </div>
  160. <span class="pf-pitem-li">
  161. <span class="pf-pitem-lit"></span>
  162. <span class="pf-pitem-lic"><button type="button" href="#"
  163. class="easyui-linkbutton bd-add-s checkRules-add-y"
  164. plain="true">确定</button></span>
  165. </span>
  166. </form>
  167. </div>
  168. <script type="text/javascript">
  169. //规则身材初始化
  170. checkRule.init();
  171. </script>
  172. <style>
  173. .hide {
  174. display: none;
  175. }
  176. .author-nav-tree {
  177. display: inline-block;
  178. width: 200px;
  179. min-height: 400px;
  180. border: 1px solid lightgrey;
  181. float: left;
  182. overflow-x: hidden;
  183. overflow-y: auto;
  184. margin-top: 10px;
  185. }
  186. #con-map {
  187. min-height: 400px;
  188. display: inline-block;
  189. margin-top: 10px;
  190. }
  191. .bif-con {
  192. width: 980px;
  193. height: 404px;
  194. margin-top: 10px;
  195. margin-left: 14px;
  196. float: left;
  197. }
  198. .bif-nav-item {
  199. width: 150px;
  200. text-align: center;
  201. }
  202. .add-row-li {
  203. transform: translateY(25%);
  204. display: inline-block;
  205. position: relative;
  206. width: 18px;
  207. height: 18px;
  208. margin-left: 10px;
  209. /*background-color: #ccc;*/
  210. border-radius: 50%;
  211. border: 1px solid #999;
  212. cursor: pointer;
  213. }
  214. .add-row-li:before {
  215. content: "";
  216. position: absolute;
  217. width: 14px;
  218. height: 2px;
  219. top: 50%;
  220. left: 50%;
  221. transform: translate(-50%, -50%);
  222. background-color: #999;
  223. cursor: pointer;
  224. }
  225. .add-row-li:after {
  226. content: "";
  227. position: absolute;
  228. width: 2px;
  229. height: 14px;
  230. top: 50%;
  231. left: 50%;
  232. -webkit-transform: translate(-50%, -50%);
  233. -moz-transform: translate(-50%, -50%);
  234. -ms-transform: translate(-50%, -50%);
  235. -o-transform: translate(-50%, -50%);
  236. transform: translate(-50%, -50%);
  237. background-color: #999;
  238. cursor: pointer;
  239. }
  240. .delete-data {
  241. display: inline-block;
  242. position: relative;
  243. width: 20px;
  244. height: 20px;
  245. background-color: #e82525;
  246. border-radius: 50%;
  247. vertical-align: middle;
  248. cursor: pointer;
  249. }
  250. .delete-data-icon {
  251. position: absolute;
  252. top: 50%;
  253. left: 50%;
  254. -webkit-transform: translate(-50%, -50%);
  255. -moz-transform: translate(-50%, -50%);
  256. -ms-transform: translate(-50%, -50%);
  257. -o-transform: translate(-50%, -50%);
  258. transform: translate(-50%, -50%);
  259. width: 16px;
  260. height: 4px;
  261. background-color: #fff;
  262. cursor: pointer;
  263. }
  264. .pf-ptitle {
  265. font-size: 14px;
  266. font-weight: 600;
  267. line-height: 25px;
  268. }
  269. .pf-pitem, .pf-degree, .pf-major, .pf-ab, .pf-no {
  270. margin-bottom: 10px;
  271. }
  272. .keeper-info {
  273. width: 100%;
  274. float: left;
  275. }
  276. .keeper-info-left {
  277. width: 76%;
  278. float: left;
  279. }
  280. .keeper-info-left input, .keeper-info-left select {
  281. width: 80px;
  282. }
  283. .keeper-info-right {
  284. width: 24%;
  285. float: left;
  286. margin-top: 31px;
  287. }
  288. .keeper-info-right .pic {
  289. border: 1px solid #CCC;
  290. float: left;
  291. height: 200px;
  292. width: 95%;
  293. background: #ccc;
  294. text-align: center;
  295. }
  296. .keeper-info-right img {
  297. width: auto;
  298. max-height: 198px;
  299. }
  300. #file {
  301. border-color: #ffa8a8;
  302. background-color: #F30000;
  303. color: #000;
  304. width: 100%;
  305. height: 20px;
  306. margin-top: 10px;
  307. }
  308. div.upload-btn {
  309. width: 100px;
  310. height: 40px;
  311. background: url("/img/upload2.png");
  312. overflow: hidden;
  313. }
  314. div.upload-btn input {
  315. display: block !important;
  316. width: 100px !important;
  317. height: 40px !important;
  318. opacity: 0 !important;
  319. overflow: hidden !important;
  320. }
  321. .keeper-info-subtitle {
  322. display: inline-block;
  323. /* width: 100px;*/
  324. text-align: right;
  325. }
  326. </style>
  327. </body>
  328. </html>