| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178 |
- <!DOCTYPE html>
- <html>
- <head>
- <ssDlg setPval="true"/> <%-- setValue="true" close="true"。Lin --%>
- <style type="text/css">
- #selbm,
- #selzy,
- {
- margin: 10px 0;
- float: left;
- }
- /*#cx{
- margin: 10px 0;
- float: left;
- } */
- #container {
- margin-top: 0px;
- }
- select {
- font-size: 12px;
- line-height: 24px;
- height: 24px;
- margin: 0 10px;
- color: #6d7a87;
- border: #eaeaea solid 1px;
- border-radius: 5px;
- background-color: #f1f1f1;
- behavior: url(/wd/theme/standard/PIE.htc);
- }
- .list-background .list span {
- display: inline-block;
- width: 60%;
- text-overflow: ellipsis;
- overflow: hidden;
- white-space: nowrap;
- vertical-align: middle;
- }
- </style>
- </head>
- <body>
- <form action="@service{name:'dxsq_cx',dest:'option'}@" name="sqOptionForm" method="POST">
- <%-- 应该要改为 WebC.REQ_objName、WebC.REQ_objId。用到再弄。Lin --%>
- <input type="hidden" name="dxm" value="${dxm}" />
- <input type="hidden" name="dxid" value="${dxid}" />
- <div class="search-div" style="padding: 15px 25px 12px 25px;" >
- <div class="fl search-div-margin-bottom1" style="float: right;">
- <input name="chosen" type="button" value="岗位" ssVal="gw" /> <%-- wdValue=。Lin --%>
- <input name="chosen" type="button" value="部门" ssVal="bm" /> <%-- wdValue=。Lin --%>
- <input name="chosen" type="button" value="范围" ssVal="zgfw" /> <%-- wdValue=。Lin --%>
- <input name="chosen" type="button" value="人员类别" ssVal="rylb" /> <%-- wdValue=。Lin --%>
- <wd:write type="radio" name="chosen" onClass="content-onButton" offClass="content-offButton" nullable="false" value="gw" />
- <%--<input type="submit" name="" id="cx" value="查询" class="content-button" />--%>
- </div>
- </div>
- </form>
- <form id="myform" action="@service{name:'dxsq_djlsq_bc',dest:'sys_info'}@" method="POST">
- <%-- 应该要改为 WebC.REQ_objName、WebC.REQ_objId。用到再弄。Lin --%>
- <input type="hidden" name="dxm" value="${dxm}" />
- <input type="hidden" name="dxid" value="${dxid}" />
- <input type="hidden" name="sfyxMap" id="sfyxMap" />
- <div class="dragList-div" id="container" >
- <div class="box">
- <p class="label">已授权</p>
- <div class="list-body" style="position: relative;overflow-x: hidden;width: 100%;height: 370px;">
- <div id="sqSelected" ssSelClazz="list-checkedIcon" class="scrollbar" style="height:100%">
- <wd:iterate name="ysqList" id="item">
- <!--岗位-->
- <wd:equal leftValue="${empty item.gwid}" rightValue="false">
- <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;">
- <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">岗位: <wd:translate name="gw" value="${item.gwid}" /></span >
- <input type="hidden" name="sfyx" value="${item.sfyx}" />
- <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
- <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
- <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
- </div>
- </wd:equal>
- <wd:equal leftValue="${empty item.bmid}" rightValue="false">
- <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;">
- <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">部门: <wd:translate name="bm" value="${item.bmid}" /></span >
- <input type="hidden" name="sfyx" value="${item.sfyx}" />
- <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
- <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
- <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
- </div>
- </wd:equal>
- <wd:equal leftValue="${empty item.zgfwm}" rightValue="false">
- <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;">
- <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">范围: <wd:translate name="zgfw" value="${item.zgfwm}" /></span >
- <input type="hidden" name="sfyx" value="${item.sfyx}" />
- <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
- <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
- <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
- </div>
- </wd:equal>
- <wd:equal leftValue="${empty item.rylbm}" rightValue="false">
- <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;">
- <span style="white-space: nowrap; text-overflow: ellipsis; overflow: hidden;float: left;width: 180px;">人员类别: <wd:translate name="rylb" value="${item.rylbm}" /></span >
- <input type="hidden" name="sfyx" value="${item.sfyx}" />
- <input type="button" value="查看" ssVal="1" class="${item.sfyx == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;"/>
- <input type="hidden" name="sfkbd" value="${item.sfkbd}" />
- <input type="button" value="变动" ssVal="${item.sfkbd}" class="${item.sfkbd == 1?'content-onButton':'content-offButton'}" style="float: right;margin-top: 7px;margin-left: 6px;" />
- </div>
- </wd:equal>
- </wd:iterate>
- </div>
- </div>
- </div>
- <div class="box">
- <p class="label">可选</p>
- <div class="list-body" ssFith='{max:370,min:100}' style="overflow: auto">
- <div id="sqOption" ssSelClazz="list-checkedIcon" class="scrollbar" style="height: 100%">
- </div>
- </div>
- </div>
- </div>
- <div style="clear: both;"></div>
- <div class='bottom-div' >
- <div class="bottom-down-div border-top">
- <input type='submit' value='保存' class="bottom-button" />
- <input type="button" onclick="wd.display.closeDialog();" value="取消" class="bottom-button" />
- </div></div>
- </form>
- <wd:write type="drag" name="sq" group="true" function="'editOrder'"/>
- <script>
- var lastBtn = $("input.content-onButton")[0];
- $("input[name='chosen']").click(function(){
- if(this == lastBtn){
- }else{
- lastBtn = this;
- $("form[name='sqOptionForm']").submit();
- }
- });
- $(function(){
- $("form[name='sqOptionForm']").submit();
- });
- var sfyxMap = {};
- $("#myform").submit(function(){
- $("#sqSelected div").each(function(){
- var key = $(this).attr("ssObjId"); // ("wdObjectId")。Lin
- var value = $(this).find("input[name=sfyx]").val();
- var value2 = $(this).find("input[name=sfkbd]").val();
- if(key&&value&&value2)
- sfyxMap[key] = value+"-"+value2;
- });
- $("#sfyxMap").val(JSON.stringify(sfyxMap));
- return true;
- });
- function sfyx(btn){
- var val = $(btn).attr("ssVal"); // ("wdVal")。Lin
- if(1 == val){
- $(btn).prev().val("0");
- $(btn).attr("ssVal","0").removeClass().addClass("content-offButton"); // ("wdVal",。Lin
- }else{
- $(btn).prev().val("1");
- $(btn).attr("ssVal","1").removeClass().addClass("content-onButton"); // ("wdVal",。Lin
- }
- }
- $("#sqOption,#sqSelected").click(function(){
- var target=window.event.target;
- if($(target).is("input[type=button]")){
- sfyx(target);
- }
- })
- </script>
- </body>
- </html>
|