| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- <%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
- <%@ taglib uri="/ssTag" prefix="ss"%>
- <%pageContext.setAttribute("wdpageinformation","{'hastab':'0'}");%>
- <!DOCTYPE html>
- <html>
- <head>
- <meta http-equiv="pragma" content="no-cache">
- <meta http-equiv="cache-control" content="no-cache">
- <meta http-equiv="expires" content="0">
- <script>window.loginStatus="${empty sessionScope['ssUser']?'0':'1'}"</script>
- <ss:skin file='main.css'/>
- <script type="text/javascript" src="/ss/jquery/jquery.js"></script>
- <script type="text/javascript" src="/ss/artdialog/artDialogUtil.js"></script>
- <script type="text/javascript" src="/ss/js/base.js"></script>
- <script> if(!window.wd) var wd={}; if(!wd.display) wd.display={}; wd.display.wdDialogId="addSure"; if(!wd.app) wd.app={}; wd.app.name='pms';</script>
- <script type="text/javascript" src="/ss/js/masklayer.js"></script>
- <script type="text/javascript" src="/ss/js/wdDialogInit.js"></script>
- <script type="text/javascript" src="/ss/js/common.js"></script>
- <script type="text/javascript" src="/ss/js/display.js"></script>
- <script type="text/javascript" src="/ss/js/edit.js"></script>
- <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.js"></script>
- <script type="text/javascript" src="/ss/nicescroll/jquery.nicescroll.iframehelper.min.js"></script>
- <script type="text/javascript" src="/ss/js/common.js"></script>
- <script type="text/javascript" src="/ss/datePicker/WdatePicker.js"></script>
- <script type="text/javascript" src="/ss/js/edit.js"></script>
- <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhtmlxwindows.css">
- <link rel="stylesheet" type="text/css" href="/ss/window/theme/dhx_blue/dhtmlxwindows_dhx_blue.css">
- <script type="text/javascript" src="/ss/window/dhtmlxcommon.js"></script>
- <script type="text/javascript" src="/ss/window/dhtmlxwindows.js"></script>
- <script type="text/javascript" src="/ss/window/dhtmlxcontainer.js"></script>
- <script type="text/javascript" src="/ss/js/display.js"></script>
- <script type="text/javascript" src="/ss/js/growHeight.js"></script>
- <script>
- function addWdFitHeight(selecter,param){
- console.log(selecter);
- console.log(param);
- var aa="";
- if(param.minHeight){
- aa+="min:"+param.minHeight+",";
- }
- if(param.maxHeight){
- aa+="max:"+param.maxHeight+",";
- }
- if(param&&aa){
- aa=aa.substr(0,aa.length-1)
- document.querySelector(selecter).setAttribute("ssFith",aa); // ("wdFitHeight",。Lin
- }
- }
- </script>
- <style type="text/css">
- .longCardList-highlight a{
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- width: 90%;
- display: inline-block;
- }
- #editField,.bottom-div{
- background-color: #fff;
- }
- </style>
- <script src="/js/load.js"></script>
- <script type="text/javascript" src="/js/base.js"></script>
- <script type="text/javascript" src="/js/display.js"></script>
- </head>
- <body style="padding-top: 12px;">
- <%--用于计算dxidName--%>
- <%-- 改为 <data@ss name="obj"/>。Lin
- <tab@ss name=""/> --%>
- <%-- <data@ss name="obj"/> 再去掉,好像不需要。Lin --%>
- <div id="app">
- <form name="tjform"
- <%-- 再改为 WebC.REQ_objName、WebC.REQ_objId、WebC.REQ_objIdName,避免与数据表里的 对象名、对象ID 字段重名。Lin
- action="<func@ss name='sureAdd' parm='{dxm:"${dxm}",${dxidName}:"${dxid}"}'/>" --%>
- action="<ss:func name='sureAdd' parm='{ssObjName:"${ssObjName}","${ssObjIdName}":"${ssObjId}"}'/>"
- method="post" id="form">
- <div class="content-div" style="height: 351px;">
-
- <ss:data name='miniInfo'/>
- <ss:rpt name='objectList' id='item'>
- <iframe
- style="border: 1px solid #d2d2d2;box-sizing: border-box;height: 100%;"
- width="100%"
- height="100%"
- frameborder="0"
- src="<ss:serv name='${item.play.servName}' dest='${item.play.dest}' parm='${item.play.parm}'/>">
- </iframe>
- </ss:rpt>
-
- <%-- <table class='form'>
- <tr id="bpmtjgwid_tr">
- <th>岗位</th>
- <td>
- <input name="bpmtjgwid" type="hidden" value="" placeholder="提交岗位"/>
- <ss:objp name='bpmtjgwid' cb='bpmtjgwid'/>
- </td>
- </tr>
- <script>
- try{
- if(wd.edit.objectPicker.getInstance("bpmtjgwid").getOptionsSize()==0)
- $("#bpmtjgwid_tr").remove();
- }catch(e){
- console.log(e);
- }
- </script>
- </table> --%>
- </div>
- <div class="" style="width: 100%;height:65px;border-top: 1px solid rgb(210, 210, 210);">
- <input type='hidden' name='ynrid' value='' />
- <div id='ynrEdit' data-shid="${shid}" style="height: 63px;"></div>
- <script type="text/javascript" charset="utf-8" src="/ss/js/edit.js"></script>
- <ss:inper />
- <ss:equal val="${empty inputter.encode_ynrid}" val2="false">
- <input type="hidden" name="ynr_WATCHURL" value='ss.display.showComponent({show:["ssDialog"],url:"<ss:serv parm='{"id":"ssVal{id}"}' dest='convInp'/>",title:"转换",width:1024,height:350});' />
- </ss:equal>
- <script>
- document.querySelector('form').addEventListener('submit', function(){
- if(typeof saveEditor != 'undefined' && saveEditor instanceof Function)
- saveEditor('ynrEdit');
- });
- HTMLFormElement.prototype.subfun = HTMLFormElement.prototype.submit;
- HTMLFormElement.prototype.submit = function(){
- if(typeof saveEditor != 'undefined' && saveEditor instanceof Function)
- saveEditor('ynrEdit');
- this.subfun();
- };
- function addCyy() {
- wd.display.showComponent({show:["wdDialog"],url:"<ss:serv name='p_gryy_zj' dest='gryyInp'/>",title:"录入常用语",width:571,height:105,minHeight:54,maxHeight:158});
- }
- function fjidfjEdit(){
- var fjName='fjid';var fjid=document.getElementsByName('fjid')[0].value;
- if(fjid==null||fjid==''){
- $.ajax({type:'post',url:'<ss:serv name='makeAttCms'/>',async:false,data:{name:'fjid',ssNrObjName:'sh',ssNrObjId:'${shid}'},success:function(_fjid){fjid=_fjid;document.getElementsByName('fjid')[0].value=fjid;}});
- };
- var str='&nrid=T-'+fjid+'&objectId='+fjid+'&objectName='+fjName+'&callback='+(window['fjidCallbackName']||'');
- wd.display.showComponent({show: ['wdDialog'],url:'<ss:serv name='regCms' dest='cmsHome'/>'+str,title: '编辑',width: 900,high: 664});
- }
- var inputterfjJson={"fj":{"key":"fjid","value":"","name":null,"jlztm":null}};
- </script>
- </div>
- <div class="bottom-div" style="border: none; display:flex;flex-direction: column;position: absolute;">
- <input type="button" id="sureSubmitButton" value="确定" class="bottom-button" onclick="wd.display.submitToTopTab(this);" style="display:none;"/>
- <div class="bottom-div-button" style="width: 100%;display:flex;justify-content: flex-end; gap:10px;padding-bottom: 10px;padding-top: 10px;">
- <ss-bottom-button
- text="关闭"
- @click="onDialogClose"
- icon-class="bottom-div-close"
- ></ss-bottom-button>
- <ss:equal val='${empty print}' val2='false'>
- <ss-bottom-button
- text="打印"
- @click="onPrint"
- ></ss-bottom-button>
- </ss:equal>
- <ss-bottom-button
- text="确定"
- @click="onSubmit"
- icon-class="bottom-div-save"
- ></ss-bottom-button>
- </div>
- </div>
- <input name='wdComponentID' type='hidden' value='addSure'/></form>
- </div>
- <script type="text/javascript">var wdRecordValue='${wdRecordValue}';</script>
- <script type="text/javascript" src="/ss/js/wdRecord.js"></script>
- <script type="text/javascript">(function(){wdRecord("addSure");})();</script>
- <script type="text/javascript" src="/ss/js/wdFitHeight.js"></script>
- <script type="text/javascript">initWdFitHeight(404)</script>
- <script type="text/javascript">initWdFitHeightFunction=function(){initWdFitHeight(404);};</script>
- <ss:equal val="${empty resizeComponent}" val2="false">
- <script>{var iframe=wd.display.getFrameOfWindow();
- if(iframe&&iframe.contentWindow==window)
- wd.display.resizeComponent(${resizeComponent.width}, ${resizeComponent.height}, ${empty resizeComponent.minHeight?'null':resizeComponent.minHeight}, ${empty resizeComponent.maxHeight?'null':resizeComponent.maxHeight});}</script>
- </ss:equal>
- <ss:help/>
- <script type="module">
- SS.ready(function () {
- wd.edit.initInputter("ynr",${inputter.ynrid},${inputter.encode_shid},${inputter.encode_ynrid});
- const ynrEditContent = $('#ynrEdit').html();
- window.SS.dom.initializeFormApp({
- el: '#app',
- data() {
- return {};
- },
- methods: {
- onSubmit() {
- document.getElementById('sureSubmitButton').click();
- },
- onPrint() {
- document.querySelector("#printFrame iframe").contentWindow.wd.display.printArea(".content-div");
- },
- onDialogClose() {
- wd.display.closeDialog();
- }
- },
- mounted() {
- $('#ynrEdit').html(ynrEditContent);
- }
- });
- });
- </script>
- </body>
- <script type="text/javascript">
- try{wd.display.showMsgPopup('${msg}');
- }catch(err){console.error(err);}
- </script>
- <ss:equal val="${empty wdclosewindowparam}" val2="false">
- <script type="text/javascript">
- try{wd.display.setCloseWindowParam('${wdclosewindowparam}');
- }catch(err){console.error(err);}
- </script>
- </ss:equal>
- </html>
- <script type="text/javascript">
- tokenCleanser("<ss:serv name='ss.clearPageToken'/>", {tokenList:"<%= pageContext.getAttribute(ss.page.PageC.PAGE_tokenList)%>"});
- </script>
|