Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

chunk-4d247316.a81ea605.js 9.5 KiB

před 4 roky
před 4 roky
12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d247316"],{"01a8":function(t,e,s){"use strict";var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"app-header",class:{white:"white"===t.theme||t.isWindowScrollIng,black:"black"===t.theme,"black-bg-color":t.isWindowScrollIng&&"black"===t.theme}},[t.isClient?s("div",{staticClass:"app-header-top"},[s("div",{staticClass:"top-left",attrs:{title:t.isOnLine?"":"请检查本地网关连接"}},[s("div",{staticClass:"dot",class:{online:t.isOnLine,offline:!t.isOnLine}}),s("div",{staticClass:"state",class:{"white-color":"white"===t.theme,black:"black"===t.theme}},[t._v(t._s(t.isOnLine?"在线":"离线"))])]),s("div",{staticClass:"top-center"}),s("div",{staticClass:"top-right"},[s("div",{staticClass:"min",on:{click:function(e){return e.stopPropagation(),t.shrinkBrowserWindow(e)}}},[s("img",{staticClass:"min-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/缩小.svg",alt:""}})]),s("div",{staticClass:"my-max",on:{click:function(e){return e.stopPropagation(),t.judgeIsMaxBrowserWindow(e)}}},[t.isMaxWindowNow?s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/小窗口化.svg",alt:""}}):s("img",{staticClass:"to-max-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/放大.svg",alt:""}})]),s("div",{staticClass:"close",on:{mouseenter:function(e){t.isCloseHover=!0},mouseleave:function(e){t.isCloseHover=!1},click:function(e){return e.stopPropagation(),t.closeBrowserWindow(e)}}},[s("img",{directives:[{name:"show",rawName:"v-show",value:!t.isCloseHover,expression:"!isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭.svg",alt:""}}),s("img",{directives:[{name:"show",rawName:"v-show",value:t.isCloseHover,expression:"isCloseHover"}],staticClass:"close-icon vert-hori-center ",attrs:{src:"/static/img/operate-window/关闭激活.svg",alt:""}})])])]):t._e(),t.isWorkspaceTopBar&&!t.isClient||t.isShowTopBar&&!t.isClient?s("div",{staticClass:"app-header-top"}):t._e(),s("div",{staticClass:"app-header-content",class:{"adjust-content-pos":t.isWorkspaceTopBar&&!t.isClient}},[s("div",{staticClass:"app-header-content-left"},[t._t("left",[s("i",{directives:[{name:"show",rawName:"v-show",value:t.showBackBtn,expression:"showBackBtn"}],staticClass:"yiyun_icon app-header-back-btn no-drag",class:{icon_topback_left:"white"===t.theme||"basis"===t.theme,icon_topback_left_baise:"black"===t.theme},on:{click:function(e){return t.navBack()}}}),s("span",{directives:[{name:"show",rawName:"v-show",value:t.backBtnTitle,expression:"backBtnTitle"}],staticClass:"back_title no-drag",on:{click:function(e){return t.navBack()}}},[t._v(t._s(t.backBtnTitle))])])],2),s("div",{staticClass:"app-header-center"},[t._t("center",[t._v(t._s(t.title))])],2),s("div",{staticClass:"app-header-content-right no-drag"},[t._t("right"),t.showRecycleBin?s("span",{on:{click:t.toRecycle}},[s("i",{staticClass:"Cicon icon font_family icon-icon_huishouzhan",class:{inRecycle:t.isInRecycle}})]):t._e(),t.showUserCenter?s("user-center"):t._e()],2)])])},o=[],a=s("1392"),n=s("1d40"),r={components:{UserCenter:a["a"]},props:{theme:String,showBackBtn:Boolean,backBtnTitle:String,onBackBtnClick:Function,title:String,showUserCenter:Boolean,showRecycleBin:Boolean,isInRecycle:Boolean,isShowLeftState:{type:Boolean,default:function(){return!0}},isWorkspaceTopBar:Boolean,isShowTopBar:Boolean},data:function(){return{isWindowScrollIng:!1,isClient:n["a"].isClient,isMaxWindowNow:!1,isCloseHover:!1,isOnLine:"true"===sessionStorage.getItem("isOnLine")}},computed:{isMaxWindowSize:function(){return this.$store.state.isMaxWindowSize}},watch:{isMaxWindowSize:function(t){this.isMaxWindowNow=t}},created:function(){this.isMaxWindowNow="true"===sessionStorage.getItem("isMaxWindowNow")&&Boolean(sessionStorage.getItem("isMaxWindowNow"))},mounted:function(){window.addEventListener("scroll",this.handleScroll.bind(this),!0)},methods:{shrinkBrowserWindow:function(){n["a"].shrinkBrowserWindow()},judgeIsMaxBrowserWindow:function(){this.isMaxWindowNow?this.unmaxBrowserWindow():this.enlargeBrowserWindow()},enlargeBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].enlargeBrowserWindow()},unmaxBrowserWindow:function(){this.isMaxWindowNow=!this.isMaxWindowNow,sessionStorage.setItem("isMaxWindowNow",this.isMaxWindowNow),n["a"].unmaxBrowserWindow()},closeBrowserWindow:function(){n["a"].closeBrowserWindow()},navBack:function(){this.onBackBtnClick?this.onBackBtnClick():this.$router.go(-1)},toRecycle:function(){this.$router.push({name:"recycle"})},handleScroll:function(){var t=document.getElementById("bigbody");this.isWindowScrollIng=t.scrollTop>0}},beforeDestroy:function(){window.removeEventListener("scroll",this.handleScroll)}},c=r,l=(s("2c5c"),s("2877")),p=Object(l["a"])(c,i,o,!1,null,"23e47494",null);e["a"]=p.exports},"0a7f":function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"platform"},[s("app-header",{attrs:{theme:"black",showBackBtn:!0,backBtnTitle:"返回登入"}}),s("div",{staticClass:"platform_section"},[s("div",{staticClass:"platform_title"},[t._v("链接到")]),s("div",{staticClass:"platform_list"},[s("section",{staticClass:"yiyun_warpContent mt-20"},[s("div",{staticClass:"yiyun-rows"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isEmpty,expression:"isEmpty"}],staticClass:"nullproduct"},[s("img",{attrs:{src:"static\\img\\nopro.png",alt:""}}),s("span",{staticClass:"noprotext"},[t._v("暂无")])]),t._l(t.platformList,(function(e){return s("div",{key:e.platfromType||e.orgId,staticClass:"yiyun-col-3 yiyun-col-md-4 yiyun-col-sm-6 yiyun-col-ty-12 mb-40"},[s("div",{staticClass:"yiyun_row"},[s("div",{staticClass:"projectbox_item_model"},[s("div",{staticClass:"project_item_model"},[s("div",{staticClass:"yiyun_product_item",on:{click:function(s){return s.stopPropagation(),t.navToPlatform(e)}}},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.orgLogo,expression:"platformInfo.orgLogo"}],staticClass:"fandatupian",attrs:{alt:""}}),"COMPANY"!==e.platformType?s("img",{staticClass:"platform_logo",attrs:{src:"static/img/platform/"+("MANAGE_CENTER"===e.platformType?"LOCKING.svg":"template.svg")}}):t._e(),s("div",{staticClass:"clear"}),e.orgLogo?t._e():s("h4",{staticClass:"biaoqianweizhi2",attrs:{title:e.orgName}},[t._v(t._s(e.orgName))])])]),s("div",{directives:[{name:"show",rawName:"v-show",value:"COMPANY"===e.platformType&&t.haveAccess(e.accessList,t.AccessCode.CompanyConsole),expression:"platformInfo.platformType === 'COMPANY' && haveAccess(platformInfo.accessList, AccessCode.CompanyConsole)"}],staticClass:"project_gantetubox_warp"},[s("div",{staticClass:"project_gantetubox"}),s("el-button",{staticClass:"likeButton",attrs:{round:""},on:{click:function(s){return t.navToPlatform(e,!0)}}},[s("img",{attrs:{src:"static/img/platform/operate.svg"}}),s("span",[t._v("企业后台")]),s("i",{staticClass:"icon el-icon-arrow-right"})])],1)])])])}))],2)])])])],1)},o=[],a=(s("b64b"),s("96cf"),s("1da1")),n=s("f96e"),r=s("0f13"),c=s("1d40"),l=s("e3fa"),p={components:{AppHeader:n["a"]},mounted:function(){if(console.log("mounted",this.$store),this.$cookie.get("isAutoLogin")){var t="true"===this.$cookie.get("isCompanyConsole"),e=JSON.parse(this.$cookie.get("platformInfo")||"{}");Object.keys(e).length>0&&this.navToPlatform(e,t)}},data:function(){return{haveAccess:r["c"],AccessCode:r["a"]}},methods:{navToPlatform:function(t){var e=arguments,s=this;return Object(a["a"])(regeneratorRuntime.mark((function i(){var o,a,n,p,u,d;return regeneratorRuntime.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],!c["a"].isClient||"COMPANY"!=t.platformType||o){i.next=15;break}return a=t.orgId,i.next=5,Object(l["a"])(a);case 5:if(n=i.sent,0!=n.Code){i.next=13;break}p=n.Data.company.IpfsApi?n.Data.company.IpfsApi:"",u=n.Data.company.IpfsBootstrap?n.Data.company.IpfsBootstrap:"",d=p+"|"+u,c["a"].initClientConfig(d),i.next=15;break;case 13:return s.$notify({message:"获取企业信息失败, 请稍后重试。",type:["error"],offset:100,duration:5e3}),i.abrupt("return");case 15:s.$store.setCurrentPlatform(t),s.$router.push({path:t.platformType===r["b"].MANAGE_CENTER?"/system":t.platformType===r["b"].TEMPLATE_CONSOLE?"/template":o?"/company":"/index"}).catch((function(t){return console.log(t)})),c["a"].isClient&&s.$cookie.get("isAutoLogin")&&(s.$cookie.set("isCompanyConsole",o),s.$cookie.set("platformInfo",JSON.stringify(t),{expires:7}));case 18:case"end":return i.stop()}}),i)})))()}},computed:{platformList:function(){return this.$store.state.platformList},isEmpty:function(){return 0===this.platformList}}},u=p,d=(s("6ab7"),s("2877")),m=Object(d["a"])(u,i,o,!1,null,"506cc9e0",null);e["default"]=m.exports},1138:function(t,e,s){},"2c5c":function(t,e,s){"use strict";var i=s("1138"),o=s.n(i);o.a},"6ab7":function(t,e,s){"use strict";var i=s("7b3e1"),o=s.n(i);o.a},"7b3e1":function(t,e,s){},e3fa:function(t,e,s){"use strict";s.d(e,"a",(function(){return a}));s("96cf");var i=s("1da1"),o=s("b775");function a(t){return n.apply(this,arguments)}function n(){return n=Object(i["a"])(regeneratorRuntime.mark((function t(e){var s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(o["b"])("company/queryCompanyById",{id:e});case 2:return s=t.sent,t.abrupt("return",Object(o["c"])(s));case 4:case"end":return t.stop()}}),t)}))),n.apply(this,arguments)}},f96e:function(t,e,s){"use strict";var i=s("01a8");s.d(e,"a",(function(){return i["a"]}))}}]);
  2. //# sourceMappingURL=chunk-4d247316.a81ea605.js.map