| | |
| | | var gridFileInputVal;//针对格线附件控件的值 xin 2022-3-1 09:20:43 |
| | | var isFileInputImage;//针对附件控件图片放大 xin 2022-3-1 09:20:43 |
| | | var treeTab=[]; |
| | | var layoutTitle="自定义控件"; |
| | | //---end |
| | | myFresh.type=0; |
| | | $( function() { |
| | |
| | | lastTabs.push(tt); // 重新压入,保证 最新的在最上面 |
| | | |
| | | var sTab = $("#home-tabs").tabs("getTab", index); |
| | | let layoutT = tt.split(">");//自定义控件页卡名 xin 2024-4-25 15:00:43 |
| | | if (layoutT.length > 1) { |
| | | layoutT = layoutT[1].split("-"); |
| | | if (layoutT.length > 1) { |
| | | layoutTitle = layoutT[0] + layoutT[1]; |
| | | } |
| | | } |
| | | if (!isLoadSelect) {// 在循环添加cookie里面的tab改变改值 |
| | | /* 第一次点击加载 */ |
| | | // var info=$.cookie("lastSelectedTab"); |
| | |
| | | && myFresh.panel[index] != 18 |
| | | && myFresh.panel[index] != 38 |
| | | && myFresh.panel[index] != 3 |
| | | && myFresh.panel[index] != 10) { |
| | | && myFresh.panel[index] != 10 |
| | | && myFresh.formType!=1000 |
| | | && myFresh.formType!=1001 |
| | | && myFresh.formType!=1002 |
| | | && myFresh.formType!=1003 |
| | | && myFresh.formType!=1004 |
| | | && myFresh.formType!=1005//by danaus 2024-06-01 11:17 |
| | | ) { |
| | | if (myFresh.panel[index + '-t'] |
| | | || getGrid(myFresh.grids)) { |
| | | $.messager.confirm('确认', |
| | |
| | | //删除表格cookie,by danaus 2024-04-18 15:00 |
| | | //cookie path:/app/3688/0/cnzh/120255/18 |
| | | let path=($(iframe[0]).attr("url")+"").replace("/index.jsp",""); |
| | | $.cookie("Grids",null,{path:path});//只能删除对应path的cookie |
| | | deleteCookie(path); |
| | | $.toast({ |
| | | text: data, // Text that is to be shown in the toast |
| | | //text:'生成成功,即将打开页面!', |
| | |
| | | }); |
| | | // console.log('发送请求'); |
| | | }) |
| | | |
| | | function deleteCookie(path){ |
| | | //--处理单据5,8,496,499类型,需要同时清除列表和明细 |
| | | let array=path.split('/'); |
| | | let formType=array[array.length-1]; |
| | | if(formType==5||formType==9||formType==15||formType==8||formType==496||formType==497||formType==498||formType==499){ |
| | | $.cookie("Grids",null,{path:path});//只删除对应path的cookie |
| | | let newFormType=0; |
| | | switch (parseInt(formType)){ |
| | | case 5: |
| | | newFormType=9 |
| | | break; |
| | | case 9: |
| | | newFormType=5 |
| | | break; |
| | | case 15: |
| | | newFormType=8 |
| | | break; |
| | | case 8: |
| | | newFormType=15 |
| | | break; |
| | | case 496: |
| | | newFormType=497 |
| | | break; |
| | | case 497: |
| | | newFormType=496 |
| | | break; |
| | | case 498: |
| | | newFormType=499 |
| | | break; |
| | | case 499: |
| | | newFormType=498 |
| | | break; |
| | | } |
| | | $.cookie("Grids",null,{path:path.replace("/"+formType,"/"+newFormType)}); |
| | | }else { |
| | | //非单据 |
| | | $.cookie("Grids",null,{path:path});//只删除对应path的cookie |
| | | } |
| | | } |
| | | // 初始化帮助图标的位置 |
| | | function initHelpPosition() { |
| | | var positionX = localStorage.getItem('helpPositionX'); |
| | |
| | | } |
| | | /* end */ |
| | | //var tid=Math.round(Math.random()*10000) |
| | | |
| | | let panel_onlyOne=""; |
| | | //设置新页卡的高度为指定高度px(不能使用 100%),如果不设置指定高度px,遇到 chrome 低版本时(如 for xp )时页面只显示上半截 ,Added by Johns Wang,2018-12-04 |
| | | var iFrameHeight = $('#home-tabs').height() ; |
| | | //var barHeight = window.innerHeight - document.body.clientHeight ; |