webpackJsonp([3],{"n/G1":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n("NYxO"),r=n("cCw9");var a={name:"application-center",metaInfo:{title:"应用中心"},data:function(){return{noneImg:'this.src="'+n("FiMw")+'"',userInfo:this.$store.getters.basicUserInfo,applicationList:[],searchName:""}},computed:{searchList:function(){var t=this.searchName.replace(/\s/g,"").toUpperCase();if(!t)return this.applicationList;var e=[];return this.applicationList.map(function(n){-1===n.name.indexOf(t)&&-1===n.module.indexOf(t)||e.push(n)}),e},newList:function(){var t=[];return this.applicationList.map(function(e){1===e.state&&t.push(e)}),t}},methods:(Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t})({},Object(i.b)(["openNewWindowtab"]),{getApplicationList:function(){var t,e=this;return(t=regeneratorRuntime.mark(function t(){var n,i,a;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(r.a)({orgId:e.userInfo.orgId,userId:e.userInfo.id});case 2:if((n=t.sent)&&!n.error)for(i=new Array(99),a=0;a<n.length;a++)1===n[a].state&&(i[n[a].id]===n[a].id||(e.applicationList.push(n[a]),i[n[a].id]=n[a].id));else n&&n.message&&e.$toast({message:n.message?n.message:"报错了",type:"error"});case 4:case"end":return t.stop()}},t,e)}),function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function i(r,a){try{var s=e[r](a),o=s.value}catch(t){return void n(t)}if(!s.done)return Promise.resolve(o).then(function(t){i("next",t)},function(t){i("throw",t)});t(o)}("next")})})()},openModule:function(t){if(!t||1!==t.state)return!1;this.openNewWindowtab(t.url)}}),created:function(){this.getApplicationList()},watch:{newList:function(t,e){t!==e&&1===t.length&&this.openNewWindowtab({urlStr:t[0].url,isblank:!0})}}},s=n("XyMi");var o=function(t){n("z3C5")},c=Object(s.a)(a,function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._m(0),t._v(" "),n("div",{staticClass:"row my-4",staticStyle:{float:"right",width:"85%"}},t._l(t.searchList,function(e,i){return n("div",{key:i,staticClass:"col-6 col-sm-4 col-md-3 col-lg-4 col-xl-3",staticStyle:{margin:"10px 10px"}},[n("a",{class:1===e.state?"card card-hover text-dark my-2":"card my-2 disabled",attrs:{href:"javascript:void(0)"},on:{click:function(n){t.openModule(e)}}},[n("div",{staticClass:"text-center ",staticStyle:{"background-color":"white",height:"220px",width:"100%"}},[n("div",{staticClass:"display-3 img-box"},[n("img",{staticStyle:{height:"60%",width:"60%",margin:"50px 0px"},attrs:{src:"/static/img/application_center_icon/"+(1===e.state?e.module:e.module+"_disabled")+".png",alt:e.module,onerror:t.noneImg}})]),t._v(" "),n("h5",{attrs:{title:"iteam.module"}},[t._v(t._s(e.name))])])])])}),0),t._v(" "),n("hr",{staticClass:"border-light container-m--x my-0"})])},[function(){var t=this.$createElement,e=this._self._c||t;return e("h3",{staticClass:"row align-items-center font-weight-bold py-4 mb-4"},[e("div",{staticClass:"col py-2 px-5"},[this._v("\n 应用中心\n ")])])}],!1,o,null,null);e.default=c.exports},z3C5:function(t,e){}});
|