sessionStorage.length||(localStorage.removeItem("clearSessionStorage"),localStorage.setItem("getSessionStorage",Date.now().toString())),window.addEventListener("storage",function(e){if("getSessionStorage"===e.key)localStorage.setItem("sessionStorage",JSON.stringify(sessionStorage)),localStorage.removeItem("sessionStorage");else if("clearSessionStorage"===e.key)sessionStorage.clear(),window.location.replace(e.newValue);else if("sessionStorage"===e.key&&!sessionStorage.length){var t=JSON.parse(e.newValue);for(var n in t)sessionStorage.setItem(n,t[n])}});var direwolfVueAppObj=null,parentWindow=null;try{top.document?parentWindow=top:parent.document&&(parentWindow=parent)}catch(e){}parentWindow&&parentWindow.direwolfVueApp instanceof parentWindow.HTMLElement&&(direwolfVueAppObj=parentWindow.direwolfVueApp.__vue__);var loginPage,auth=(auth=sessionStorage.getItem("Authorization"))||getQueryString("access_token"),defaultAppId=null,corpId=null,admin=null,LOGIN_USER=null,LOGIN_ID=null,commonConfig={},errorDirection=getProjectPath()+"/common-assets/pages/error",unauthorizationPage=errorDirection+"/401.html",serverErrorPage=errorDirection+"/500.html";window.stopPainting=!0,void 0!==window.ProjectConfig?commonConfig=assign({},new ProjectConfig):$.ajax({url:"/common-assets/json/config.json",async:!1,success:function(e){commonConfig=e}}),"function"==typeof axios&&(axios.defaults.baseURL=commonConfig.proxyPath,axios.interceptors.request.use(function(e){return e.headers.Authorization="Bearer "+auth,e},function(e){return Promise.reject(e)})),commonConfig.adminContext=commonConfig.projectContext+"/admin",commonConfig.sysBackendContext=commonConfig.sysServiceConfig.gatewayRoute+commonConfig.sysServiceConfig.adminPath,direwolfVueAppObj&&(unauthorizationPage=commonConfig.adminContext+"/error?status=401",serverErrorPage=commonConfig.adminContext+"/error?status=500"),auth||(loginPage=commonConfig.adminContext+"/login?route="+window.location.pathname,window.location.replace(loginPage));var userDetails=JSON.parse(sessionStorage.getItem("userInfo")),defaultAppId="1",corpId=userDetails.orgId,admin="admin",LOGIN_USER=userDetails.userAccount,LOGIN_ID=userDetails.id,WEB_ROOT=commonConfig.proxyPath+commonConfig.sysBackendContext,dictUrl=commonConfig.sysBackendContext+"/sys/sysParam/getParamsByCodeStr?classCodes=",dwCtx={ROOT:WEB_ROOT,CTX:commonConfig.projectContext,ADMIN:commonConfig.sysServiceConfig.adminPath},ctxStatic=dwCtx.CTX+"/static",ctx=dwCtx.CTX;function initConfig(e){e()}function checkPagePermission(e){axios.get(e).then(function(e){"success"===e.data.type&&e.data.data||window.location.replace(unauthorizationPage)}).catch(function(e){window.location.replace("/common-assets/pages/error/error.html?status=500"),axiosErrorTips(e,"校验页面权限信息异常")})}function getLayerInstance(){var e=self.layer;return parentWindow&&parentWindow.layer&&(e=parentWindow.layer),e}function getUrlParam(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!=n?unescape(decodeURI(n[2])):null}function bindEnter(e,t){$("#"+e).keypress(function(e){(e=event||window.event).target||e.srcElement;13===(e.keyCode||e.which)&&(e.keyCode=9,e.returnValue=!1,$("#"+t).click())})}$.ajaxSetup({beforeSend:function(e,t){e.setRequestHeader("Authorization","Bearer "+auth),e.setRequestHeader("X-Ca-request",Math.floor(1e16*Math.random()))}}),$(function(){"undefined"!=typeof layer&&getLayerInstance().config({skin:"layer-ext-moon",extend:"moon/style.css"});var e=$(".i-checks");0'}),jQuery('
").appendTo("body").submit().remove())},Date.prototype.format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),"S+":this.getMilliseconds()};for(var n in/(y+)/i.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+n+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[n]:("00"+t[n]).substr((""+t[n]).length)));return e},window.js=window.js||{},js.lang=js.lang||{},js.lang.String=function(){this.REGX_HTML_ENCODE=/"|&|'|<|>|[\x00-\x20]|[\x7F-\xFF]|[\u0100-\u2700]/g,this.REGX_HTML_DECODE=/&\w{1,};|\d{1,};/g,this.REGX_ENTITY_NUM=/\d{1,}/,this.REGX_TRIM=/(^\s*)|(\s*$)/g,this.HTML_DECODE={"<":"<",">":">","&":"&"," ":" ",""":'"',"©":"©"},this.encodeHtml=function(e){return"string"!=typeof(e=null!=e?e:this)?e:e.replace(this.REGX_HTML_ENCODE,function(e){var t=[""],n=32==(n=e.charCodeAt(0))?160:n;return t.push(n),t.push(";"),t.join("")})},this.decodeHtml=function(e){var o=this.HTML_DECODE,i=this.REGX_ENTITY_NUM;return"string"!=typeof(e=null!=e?e:this)?e:e.replace(this.REGX_HTML_DECODE,function(e){var t,n,a=o[e];return null==a&&(a=(t=e.match(i))?(n=160==(n=t[0])?32:n,String.fromCharCode(n)):e),a})},this.trim=function(e){return"string"!=typeof(e=null!=e?e:this)?e:e.replace(this.REGX_TRIM,"")},this.hashCode=function(){var e=this.__hash__;if(null==e||0==e){for(var t=e=0,n=this.length;te.max?n(new Error(e.name+"长度不能超过 "+e.max+" 个字符")):o.test(t)?t.indexOf(".")===t.lastIndexOf(".")&&-1!==t.indexOf(".")?!e.precision||e.precision<=0?n(new Error(e.name+"必须是整数")):t.split(".")[1].length>e.precision?n(new Error(e.name+"小数不能超过 "+e.precision+" 位")):n():n():n(new Error(e.name+"必须是数字"))}function checkArrayStrLen(e,t,n){t.join(",").length>e.max?n(new Error(e.name+"长度不能超过 "+e.max+" 个字符")):n()}function eleFormSubmit(t){var e=t.vueIns,n=t.info,a=t.callback;t.data||(t.data=e.entity),e.$refs[t.formRef].validate(function(e){return e?(axiosRequest(t.saveUrl,n,"POST",t.data,{showLoading:!0}).then(function(e){"function"==typeof a&&a(e)}),!1):void direwolfCommonTips("error","内容填写有误,请修改后再提交")})}function fullscreenLoading(e){var t=Vue.prototype.$loading;return direwolfVueAppObj&&(t=direwolfVueAppObj.$loading),t({lock:!0,text:e=e||"正在提交...",spinner:"el-icon-loading",background:"rgba(255, 255, 255, 0.5)"})}function direwolfCommonTips(e,t,n){!commonConfig.showErrorTips&&"error"===e||(direwolfVueAppObj&&direwolfVueAppObj.$$utils?direwolfVueAppObj.$$utils.direwolfCommonTips(e,t,n):(Vue.prototype.$message({message:t,type:e}),n&&console.error(n)))}function direwolfCommonConfirm(e,t,n,a,o){var i;direwolfVueAppObj&&direwolfVueAppObj.$$utils?(n.message=e,n.title=t,direwolfVueAppObj.$$utils.direwolfCommonConfirm(n,a,o)):(i=Vue.prototype.$confirm,direwolfVueAppObj&&(i=direwolfVueAppObj.$confirm),"undefined"==typeof cancelCallack&&(o=function(e){}),i(e,t,Object.assign({},n,{zIndex:getTopIndex()})).then(a).catch(o))}function getDataFromAxiosResponse(e,t,n){var a=t+"失败";return 200!==e.status||""!==e.data&&!e.data?(direwolfCommonTips("error",t+"失败",a+=",请求服务器失败,返回状态:"+e.status+",返回信息:"+e.error),{type:"error"}):("success"===e.data.type?n&&direwolfCommonTips("success",t+"成功"):"failure"===e.data.type?(a+=",返回类型为失败,错误信息:"+e.data.message||"未提供",direwolfCommonTips("error",e.data.message||t+"失败",a)):e.data.limit&&n&&direwolfCommonTips("success",t+"成功"),e.data)}function jsonToSpringBinder(o){var i="";return Object.keys(o).forEach(function(n){var e,t,a=o[n];"object"!=typeof a?a&&(i+=n+"="+a+"&"):null==a||(Array.isArray(a)?a.forEach(function(e,t){i+=n+"="+e+"&"}):(a instanceof Date&&(i+=n+"="+a.toJSON()+"&"),"undefined"!=typeof dotize&&((e={})[n]=a,t=dotize.convert(e),Object.keys(t).forEach(function(e){t[e]&&(i+=e+"="+t[e]+"&")}))))}),i}function eleTableColumnFormatter(e,t){var n=e.column.property.split("."),a=e.row;return n.forEach(function(e){a=a[e]}),dictsFormatter(a,e.row,e.$index,t)}function getFilteredData(e,t,n){e?axios.get(dwCtx.CTX+"/common/paramValue/getCascadeValueList?classCode=res_type&triggerType=relation&subClassCode="+t+"¶mCode="+e).then(function(e){n(e.data)}):axios.get(dwCtx.CTX+"/common/paramValue/"+t).then(function(e){n(e.data)})}function tryParseJSON(e){try{var t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch(e){}return!1}function getRelativePath(){var e=location.pathname.split("/");return e.pop(),e.join("/").concat("/")}function getModuleConfigPath(){var e=location.pathname.split("/"),t=e.indexOf("pages"),n=e.slice(1,t);return n.push("static"),n.push("config.json"),n.unshift(".."),n.join("/")}function getProjectPath(){var e=location.pathname.split("/"),t=e.indexOf("pages");return e.slice(0,t-1).join("/")}function fix_height(){var e=$(".ibox:first"),t=$(".ibox:last");e.height(),t.height()}function saveBlobToLocal(e,t){var n;0'+t.paramName+""))})})})}),$(function(){var c=getLayerInstance();$(".treebt").each(function(){var i=$(this),e=i.attr("data-id-key"),t=i.attr("data-name-key"),r=$("[id='"+e+"']"),s=$("[id='"+t+"']");i.click(function(){var e={height:"500px",width:"250px",yes:function(e,t){var n=t.find("iframe")[0].contentWindow.tree.getSelectedNodes();return 0