webpackJsonp([3],{"n/G1":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i("NYxO"),r=i("cCw9");var a={name:"application-center",metaInfo:{title:"应用中心"},data:function(){return{noneImg:'this.src="'+i("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(i){-1===i.name.indexOf(t)&&-1===i.module.indexOf(t)||e.push(i)}),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 i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t})({},Object(n.b)(["openNewWindowtab"]),{getApplicationList:function(){var t,e=this;return(t=regeneratorRuntime.mark(function t(){var i,n,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(i=t.sent,console.info(i,"result"),i&&!i.error){for(n=new Array(99),a=0;a<i.length;a++)1===i[a].state&&(n[i[a].id]===i[a].id||(e.applicationList.push(i[a]),n[i[a].id]=i[a].id));console.info(e.applicationList,"applicationList")}else i&&i.message&&e.$toast({message:i.message?i.message:"报错了",type:"error"});case 5:case"end":return t.stop()}},t,e)}),function(){var e=t.apply(this,arguments);return new Promise(function(t,i){return function n(r,a){try{var s=e[r](a),o=s.value}catch(t){return void i(t)}if(!s.done)return Promise.resolve(o).then(function(t){n("next",t)},function(t){n("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=i("XyMi");var o=function(t){i("z3C5")},c=Object(s.a)(a,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t._m(0),t._v(" "),i("div",{staticClass:"row my-4",staticStyle:{float:"right",width:"85%"}},t._l(t.searchList,function(e,n){return i("div",{key:n,staticClass:"col-6 col-sm-4 col-md-3 col-lg-4 col-xl-3",staticStyle:{margin:"10px 10px"}},[i("a",{class:1===e.state?"card card-hover text-dark my-2":"card my-2 disabled",attrs:{href:"javascript:void(0)"},on:{click:function(i){t.openModule(e)}}},[i("div",{staticClass:"text-center ",staticStyle:{"background-color":"white",height:"220px",width:"100%"}},[i("div",{staticClass:"display-3 img-box"},[i("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(" "),i("h5",{attrs:{title:"iteam.module"}},[t._v(t._s(e.name))])])])])}),0),t._v(" "),i("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){}});
|