rowAuth.ss.jsp 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <ssDlg setPval="true"/> <%-- setValue="true" close="true"。Lin --%>
  5. <style type="text/css">
  6. #selbm,
  7. #selzy,
  8. {
  9. margin: 10px 0;
  10. float: left;
  11. }
  12. /*#cx{
  13. margin: 10px 0;
  14. float: left;
  15. } */
  16. #container {
  17. margin-top: 0px;
  18. }
  19. select {
  20. font-size: 12px;
  21. line-height: 24px;
  22. height: 24px;
  23. margin: 0 10px;
  24. color: #6d7a87;
  25. border: #eaeaea solid 1px;
  26. border-radius: 5px;
  27. background-color: #f1f1f1;
  28. behavior: url(/wd/theme/standard/PIE.htc);
  29. }
  30. .list-background .list span {
  31. display: inline-block;
  32. width: 60%;
  33. text-overflow: ellipsis;
  34. overflow: hidden;
  35. white-space: nowrap;
  36. vertical-align: middle;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <form action="@service{name:'dxsq_cx',dest:'option'}@" name="sqOptionForm" method="POST">
  42. <%-- 应该要改为 WebC.REQ_objName、WebC.REQ_objId。用到再弄。Lin --%>
  43. <input type="hidden" name="dxm" value="${dxm}" />
  44. <input type="hidden" name="dxid" value="${dxid}" />
  45. <div class="search-div" style="padding: 15px 25px 12px 25px;" >
  46. <div class="fl search-div-margin-bottom1" style="float: right;">
  47. <input name="chosen" type="button" value="岗位" ssVal="gw" /> <%-- wdValue=。Lin --%>
  48. <input name="chosen" type="button" value="部门" ssVal="bm" /> <%-- wdValue=。Lin --%>
  49. <input name="chosen" type="button" value="范围" ssVal="zgfw" /> <%-- wdValue=。Lin --%>
  50. <input name="chosen" type="button" value="人员类别" ssVal="rylb" /> <%-- wdValue=。Lin --%>
  51. <wd:write type="radio" name="chosen" onClass="content-onButton" offClass="content-offButton" nullable="false" value="gw" />
  52. <%--<input type="submit" name="" id="cx" value="查询" class="content-button" />--%>
  53. </div>
  54. </div>
  55. </form>
  56. <form id="myform" action="@service{name:'dxsq_djlsq_bc',dest:'sys_info'}@" method="POST">
  57. <%-- 应该要改为 WebC.REQ_objName、WebC.REQ_objId。用到再弄。Lin --%>
  58. <input type="hidden" name="dxm" value="${dxm}" />
  59. <input type="hidden" name="dxid" value="${dxid}" />
  60. <input type="hidden" name="sfyxMap" id="sfyxMap" />
  61. <div class="dragList-div" id="container" >
  62. <div class="box">
  63. <p class="label">已授权</p>
  64. <div class="list-body" style="position: relative;overflow-x: hidden;width: 100%;height: 370px;">
  65. <div id="sqSelected" ssSelClazz="list-checkedIcon" class="scrollbar" style="height:100%">
  66. <wd:iterate name="ysqList" id="item">
  67. <!--岗位-->
  68. <wd:equal leftValue="${empty item.gwid}" rightValue="false">
  69. <div ssObjId="gw-${item.gwid}" class="list-background list" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  70. <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">岗位: <wd:translate name="gw" value="${item.gwid}" /></span >
  71. <input type="hidden" name="sfyx" value="${item.sfyx}" />
  72. <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
  73. <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
  74. <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
  75. </div>
  76. </wd:equal>
  77. <wd:equal leftValue="${empty item.bmid}" rightValue="false">
  78. <div ssObjId="bm-${item.bmid}" class="list-background list" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  79. <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">部门: <wd:translate name="bm" value="${item.bmid}" /></span >
  80. <input type="hidden" name="sfyx" value="${item.sfyx}" />
  81. <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
  82. <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
  83. <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
  84. </div>
  85. </wd:equal>
  86. <wd:equal leftValue="${empty item.zgfwm}" rightValue="false">
  87. <div ssObjId="zgfw-${item.zgfwm}" class="list-background list" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  88. <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">范围: <wd:translate name="zgfw" value="${item.zgfwm}" /></span >
  89. <input type="hidden" name="sfyx" value="${item.sfyx}" />
  90. <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
  91. <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
  92. <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
  93. </div>
  94. </wd:equal>
  95. <wd:equal leftValue="${empty item.rylbm}" rightValue="false">
  96. <div ssObjId="rylb-${item.rylbm}" class="list-background list" style="min-height: 41px;line-height: 41px;width: calc(100% - 4px);box-sizing: border-box;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  97. <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">人员类别: <wd:translate name="rylb" value="${item.rylbm}" /></span >
  98. <input type="hidden" name="sfyx" value="${item.sfyx}" />
  99. <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
  100. <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
  101. <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
  102. </div>
  103. </wd:equal>
  104. </wd:iterate>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="box">
  109. <p class="label">可选</p>
  110. <div class="list-body" ssFith='{max:370,min:100}' style="overflow: auto">
  111. <div id="sqOption" ssSelClazz="list-checkedIcon" class="scrollbar" style="height: 100%">
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. <div style="clear: both;"></div>
  117. <div class='bottom-div' >
  118. <div class="bottom-down-div border-top">
  119. <input type='submit' value='保存' class="bottom-button" />
  120. <input type="button" onclick="wd.display.closeDialog();" value="取消" class="bottom-button" />
  121. </div></div>
  122. </form>
  123. <wd:write type="drag" name="sq" group="true" function="'editOrder'"/>
  124. <script>
  125. var lastBtn = $("input.content-onButton")[0];
  126. $("input[name='chosen']").click(function(){
  127. if(this == lastBtn){
  128. }else{
  129. lastBtn = this;
  130. $("form[name='sqOptionForm']").submit();
  131. }
  132. });
  133. $(function(){
  134. $("form[name='sqOptionForm']").submit();
  135. });
  136. var sfyxMap = {};
  137. $("#myform").submit(function(){
  138. $("#sqSelected div").each(function(){
  139. var key = $(this).attr("ssObjId"); // ("wdObjectId")。Lin
  140. var value = $(this).find("input[name=sfyx]").val();
  141. var value2 = $(this).find("input[name=sfkbd]").val();
  142. if(key&&value&&value2)
  143. sfyxMap[key] = value+"-"+value2;
  144. });
  145. $("#sfyxMap").val(JSON.stringify(sfyxMap));
  146. return true;
  147. });
  148. function sfyx(btn){
  149. var val = $(btn).attr("ssVal"); // ("wdVal")。Lin
  150. if(1 == val){
  151. $(btn).prev().val("0");
  152. $(btn).attr("ssVal","0").removeClass().addClass("content-offButton"); // ("wdVal",。Lin
  153. }else{
  154. $(btn).prev().val("1");
  155. $(btn).attr("ssVal","1").removeClass().addClass("content-onButton"); // ("wdVal",。Lin
  156. }
  157. }
  158. $("#sqOption,#sqSelected").click(function(){
  159. var target=window.event.target;
  160. if($(target).is("input[type=button]")){
  161. sfyx(target);
  162. }
  163. })
  164. </script>
  165. </body>
  166. </html>