(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49c5d573"],{aa92:function(t,e,r){"use strict";r("de99")},c1a1:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t._self._c;return e("basic-container",[e("iframe",{ref:"iframe",staticClass:"iframe",attrs:{src:t.src}})])},i=[],c=(r("8e6e"),r("ac6a"),r("456d"),r("6b54"),r("a481"),r("ade3")),o=r("5880"),a=r("323e"),s=r.n(a);r("a5d8");function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){Object(c["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var f={name:"AvueIframe",data:function(){return{urlPath:this.getUrlPath()}},created:function(){s.a.configure({showSpinner:!1})},mounted:function(){this.load(),this.resize()},props:["routerPath"],watch:{$route:function(){this.load()},routerPath:function(){this.urlPath=this.getUrlPath()}},computed:h(h({},Object(o["mapGetters"])(["screen"])),{},{src:function(){return this.$route.query.src?this.$route.query.src.replace("$","#"):this.urlPath}}),methods:{show:function(){s.a.start()},hide:function(){s.a.done()},resize:function(){var t=this;window.onresize=function(){t.iframeInit()}},load:function(){var t=this;this.show();var e=!0;void 0!==this.$route.query.src&&-1===this.$route.query.src.indexOf("?")&&(e=!1);var r=[];for(var n in this.$route.query)"src"!==n&&"name"!==n&&"i18n"!==n&&r.push("".concat(n,"= this.$route.query[key]"));r=r.join("&").toString(),this.$route.query.src=e?"".concat(this.$route.query.src).concat(r.length>0?"&list":""):"".concat(this.$route.query.src).concat(r.length>0?"?list":"");var i=3,c=setInterval((function(){i--,0===i&&(t.hide(),clearInterval(c))}),1e3);this.iframeInit()},iframeInit:function(){var t=this,e=this.$refs.iframe,r=document.documentElement.clientHeight-(screen>1?200:130);e&&(e.style.height="".concat(r,"px"),e.attachEvent?e.attachEvent("onload",(function(){t.hide()})):e.onload=function(){t.hide()})},getUrlPath:function(){var t=window.location.href;return t=t.replace("/myiframe",""),t}}},l=f,d=(r("aa92"),r("2877")),p=Object(d["a"])(l,n,i,!1,null,null,null);e["default"]=p.exports},de99:function(t,e,r){}}]);
|