1"use strict";(self["webpackChunktheme_host"]=self["webpackChunktheme_host"]||[]).push([[3143],{13143:function(e,t,s){s.r(t),s.d(t,{default:function(){return w}});s(82772),s(73210);var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"serviceNewV2"},[t("div",{staticClass:"serviceNewV2-top"},[t("div",{class:{"ServeList-list":!0,"ServeList-listt":!0},style:{height:e.heightSize,overflow:"hidden"}},e._l(e.serviceTagList,(function(s,i){return t("div",{key:s.id,ref:"container"+i,refInFor:!0,class:{"z-category":!0,"is-dark":!0},style:{margin:"0px",padding:0==i?"6px 0":"4px 0"},attrs:{id:"container"+i}},[t("div",{staticClass:"z-category-container"},[t("div",[t("button",{class:{"z-category-item":!0,"is-active":-1!=e.selectAllId.indexOf(s.id)},on:{click:function(t){return e.handleCheckAll(s.id,s.labelList)}}},[e._v(" "+e._s("å
¨é¨"+s.taggingName)+" ")])]),t("div",{staticStyle:{flex:"1"}},e._l(s.labelList,(function(i){return t("button",{key:i.id,class:{"z-category-item":!0,"is-active":-1!=e.selectD.indexOf(i.id)},attrs:{title:i.labelName},on:{click:function(t){return e.handleCheck(i.id,s.id,s.labelList.length)}}},[e._v(" "+e._s(i.labelName)+" ")])})),0)])])})),0)]),1==e.serviceTagList.length?t("div",{staticStyle:{height:"20px"}}):e._e(),1!==e.serviceTagList.length?t("div",{staticClass:"serveList-more",on:{click:e.moreFilter}},[e.more1?t("div",{staticStyle:{position:"relative"}},[t("img",{attrs:{src:s(39928),alt:"",width:"150px",height:"48px"}}),e._m(0)]):t("div",{staticStyle:{position:"relative"}},[t("img",{attrs:{src:s(39928),alt:"",width:"150px",height:"48px"}}),e._m(1)])]):e._e(),t("div",{staticClass:"ServeList-container"},[e.serveList&&e.serveList.length>0?t("div",{staticClass:"serviceNew-content",style:{display:e.showTuiF?"none":"flex"}},[t("div",{class:{"serviceNew-content-top":!0,doubleStyle:e.double}},[t("div",{staticClass:"serviceNew_text"},[e._v(" "+e._s(e.serveName)),t("span",{staticClass:"showMaoH"},[e._v(":")])]),t("div",{staticClass:"serviceNew_list"},e._l(e.serveList,(function(s){return t("MiniApp",{key:s.id,staticStyle:{"margin-top":"10px"},attrs:{type:"recently",name:s.serviceName,data:s,serveUrl:e.serveUrl,token:e.token,isSchoolNet:e.isSchoolNet,loadComponent:e.loadComponent,showServeDec:e.showServeDec,openApi:""}})})),1),t("div",{staticStyle:{width:"203px"}},[t("div",{staticClass:"deleteIcon",on:{click:e.deletedTui}},[t("i",{staticClass:"el-icon-close"})]),e.serveListFirst.length>0?t("div",{staticClass:"deleteIcon textMore",on:{mouseenter:function(t){e.showMoreIcon=!0},mouseleave:function(t){e.showMoreIcon=!1}}},[e._v(" æ´å¤ "),e.showMoreIcon?e._e():t("i",{staticClass:"el-icon-arrow-down",staticStyle:{"font-size":"12px",color:"#999"}}),e.showMoreIcon?t("i",{staticClass:"el-icon-arrow-up",staticStyle:{"font-size":"12px",color:"#999"}}):e._e()]):e._e()])])]):e._e(),t("div",{staticStyle:{position:"relative"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showMoreIcon,expression:"showMoreIcon"}],staticClass:"find-div-body",on:{mouseenter:function(t){e.showMoreIcon=!0},mouseleave:function(t){e.showMoreIcon=!1}}},[e._l(e.serveListFirst,(function(s){return t("MiniApp",{key:s.id,attrs:{isSchoolNet:e.isSchoolNet,type:"recently",name:s.serviceName,data:s,serveUrl:e.serveUrl,showServeDec:e.showServeDec,token:e.token,loadComponent:e.loadComponent,openApi:""}})})),t("div",{staticClass:"find-div-body-s"})],2)]),t("div",{class:"horizontal"==e.typeShow?"ServeListS":"ServeListA"},[t("div",{staticClass:"ServeList-filter"},[t("div",{staticClass:"ServeList-filter-reset"},[t("div",{staticClass:"showAll-e"},[t("div",{staticClass:"showAll-b"},[t("button",[t("el-checkbox",{staticStyle:{"background-color":"transparent"},model:{value:e.checked1,callback:function(t){e.checked1=t},expression:"checked1"}}),e._v(" ä»
æ¾æ¶è ")],1),"horizontal"!==e.typeShow?t("div",{staticClass:"showAll-b-c"}):e._e(),t("div",{staticClass:"selectList"},e._l(e.labelListIdArr,(function(s){return t("div",{key:s},[e._v(" "+e._s(s.labelName)),t("i",{staticClass:"el-icon-close",on:{click:function(t){return e.deletedButton(s.id)}}})])})),0),e.selectD.length>0?t("button",{staticStyle:{color:"#084079"},on:{click:e.resetCategoryActive}},[t("i",{staticClass:"el-icon-edit"}
1),e._v("éç½®çé ")]):e._e()])])]),t("div",{staticClass:"ServeList-filter-select",staticStyle:{display:"flex"}},[t("el-input",{staticStyle:{width:"320px","margin-right":"10px","border-radius":"16px",height:"32px"},attrs:{placeholder:"请è¾å
¥å
³é®å",size:"small",clearable:""},on:{clear:e.handleGetServiceListByLetter},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleGetServiceListByLetter.apply(null,arguments)}},model:{value:e.searchKeyword,callback:function(t){e.searchKeyword="string"===typeof t?t.trim():t},expression:"searchKeyword"}},[t("i",{staticClass:"el-input__icon el-icon-search",staticStyle:{cursor:"pointer"},attrs:{slot:"suffix"},on:{click:e.handleGetServiceListByLetter},slot:"suffix"})]),t("div",{staticClass:"ServeList-filter-select-s"},[t("el-select",{attrs:{placeholder:"è¯·éæ©"},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return t("el-option",{key:e,attrs:{value:e.id,label:"æ"+e.taggingName+"æ¾ç¤º"}})})),1)],1),"horizontal"==e.typeShow?t("div",{staticStyle:{float:"left","margin-top":"-12px"},on:{click:e.switchButton}},[t("el-tooltip",{attrs:{placement:"bottom",content:"忢æå¡ç"}},[t("el-button",{staticStyle:{height:"50px"},attrs:{type:"text"}},[t("img",{staticStyle:{cursor:"pointer"},attrs:{src:s(4074),alt:"",width:"30px",height:"30px"}})])],1)],1):t("div",{staticStyle:{float:"left","margin-top":"-12px"},on:{click:e.switchButton}},[t("el-tooltip",{attrs:{placement:"bottom",content:"忢æå表"}},[t("el-button",{staticStyle:{height:"50px"},attrs:{type:"text"}},[t("img",{staticStyle:{cursor:"pointer"},attrs:{src:s(22320),alt:"",width:"30px",height:"30px"}})])],1)],1)],1)]),t("div",{class:{"ServeList-list":!0}},[e.loadingContent?t("div",{staticStyle:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}},[t("i",{staticClass:"el-icon-loading"})]):e._e(),e._l(e.showServeListSum,(function(s,i){return 0!=s.items.length?t("div",{key:i},[t("div",{staticClass:"ServeList-list-title",staticStyle:{height:"32px"}},[t("span",[e._v(e._s(s.labelName+"("+e.showlabelName[s.labelName]+"个)")+" "),t("div",{staticClass:"span-c"})])]),t("div",{staticClass:"ServeList-list-wrapper",style:{"margin-left":"showAll"==e.typeShow?"-30px":"-13px"}},e._l(s.items,(function(s){return t("MiniApp",{key:s.ID,staticClass:"showHorizontalW",class:{showApp:"showAll"==e.typeShow,showHorizontalW:"horizontal"==e.typeShow},style:{"padding-top":"5px",width:"horizontal"==e.typeShow?"20%":"100/6"},attrs:{size:"medium",type:e.typeShow,effect:"dark",data:s,name:s.serviceName,serveUrl:e.serveUrl,openApi:e.openApi,token:e.token,isSchoolNet:e.isSchoolNet,loadComponent:e.loadComponent,hoverEffect:!0,loginUrl:e.loginUrl,selectheart:e.checked1,showServeDec:e.showServeDec}})})),1)]):e._e()})),e.showTagList?t("div",{staticStyle:{position:"relative","min-height":"300px"}},[e._m(2)]):e._e()],2)])])])},o=[function(){var e=this,t=e._self._c;return t("span",[e._v("æ´å¤çé "),t("i",{staticClass:"el-icon-d-arrow-right"})])},function(){var e=this,t=e._self._c;return t("span",[e._v("æ¶èµ·çé "),t("i",{staticClass:"el-icon-d-arrow-right i"})])},function(){var e=this,t=e._self._c;return t("div",{staticStyle:{position:"absolute",left:"50%",top:"65px",transform:"translate(-50%)"}},[t("div",[t("div",[t("img",{staticClass:"keep-hue",attrs:{src:s(53401),width:"160px",height:"138px"}})]),t("div",{staticStyle:{float:"left","margin-left":"20px","line-height":"70px","font-size":"20px"}},[e._v(" 没æç¸å
³å
å®¹å¦ ")])])])}],r=s(51907),a=s(85617),n=s(86080),l=(s(92222),s(38862),s(47042),s(68309),s(89554),s(41539),s(54747),s(40561),s(57658),s(57327),s(65362)),c=s(18787),h=s(53478),d=s(70040),v=s(56632),u=s(67923),S={name:"serviceNewV2",components:{MiniApp:v["default"]},computed:(0,n.Z)({},(0,c.mapGetters)(["token"])),mixins:[h.Z],data:function(){return{loadComponent:l.rf,options:[],value:"",showTuiF:!1,showMoreIcon:!1,showImg:!0,showListIcon:!0,loadingContent:!1,heightSize:"54px",serviceTagList1:[{id:0,name:"åºç¨"},{id:1,name:"æå¡"},{id:2,name:"çº¿ä¸æå¡"}],more1:!0,searchKeyword:"",checked1:!1,showApp:!1,showIcon:!0,heightShow:[],showTagList:!1,loginUrl:"".concat(u.Z.envConfigs.VUE_APP_CA
1S_URL,"login?service=").concat(encodeURIComponent(u.Z.envConfigs.VUE_APP_URL)),typeShow:"showAll",openApi:!1,serveList:[],serveListFirst:[],checked:{},showPublic:!0,serveListSum:[],selectAll:!0,imgSrc:!0,selectAllId:[],selectD:[],serveUrl:u.Z.envConfigs.PORTAL_API,serviceTagList:[],categoryActive:[],showMore:!0,serveName:"",serveNum:0,listHeight:[],listData:[],firstListData:[],agList:[{ID:1,serviceName:"qq"}],double:!1,labelListSeletData:[],labelListIdS:[],labelListIdArr:[],showMoreIcon1:!0,screenWidth:document.body.clientWidth,showServeListSum:[],showServeListSum1:[],showServeListSum2:[],contS:0,showlabelName:{},showServeDec:!1}},watch:{value:{handler:function(e){this.getServiceListNData(),this.serveListSum=[],this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[]}},checked1:{handler:function(e){this.getServiceListNData(),this.serveListSum=[],this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[]},deep:!0},typeShow:{handler:function(e){this.serveListSum=[],this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[]},deep:!0},screenWidth:{immediate:!0,handler:function(e){this.screenWidth=e;var t=JSON.parse(JSON.stringify(this.serveList));this.screenWidth>=1920?this.serveListFirst=[]:this.screenWidth>=1765&&t.length>9||this.screenWidth>=1610&&t.length>8?this.serveListFirst=t.slice(9,10):this.screenWidth>=1455&&t.length>7?this.serveListFirst=t.slice(8,10):this.screenWidth>=1300&&t.length>6?this.serveListFirst=t.slice(7,10):this.screenWidth>=1145&&t.length>5?this.serveListFirst=t.slice(6,10):this.screenWidth>=995&&t.length>5&&(this.serveListFirst=t.slice(5,10))},deep:!0}},mounted:function(){var e=this;window.onresize=function(){return function(){e.screenWidth=document.body.clientWidth}()},window.addEventListener("scroll",this.handleScroll,!0)},created:function(){var e=this;console.log("configR.envConfigs",u.Z.envConfigs),"1"==u.Z.envConfigs.SERVICE_LIST&&(this.typeShow="horizontal"),this.serveName="1"===u.Z.envConfigs.NEN_GET_RECOMMES_LIST?"æ¨èæå¡":"æè¿ä½¿ç¨",this.getServiceTagListData().then((function(t){if("{}"===JSON.stringify(e.$route.query))e.getServiceListNData();else{var s=JSON.parse(e.$route.query.obj);e.checked=s.checked,e.selectD=s.selectD,e.selectAllId=s.selectAllId,s.typeShow!==e.typeShow&&e.switchButton(),s.more1!==e.more1&&e.moreFilter(),e.getServiceListNData()}}
1)),this.getRecentListData(),this.getSystemConf(),this.token||(this.openApi=!0)},methods:{getSystemConf:function(){var e=this;return(0,a.Z)((0,r.Z)().mark((function t(){var s;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,(0,d.yH)();case 2:s=t.sent,0==s.code&&"æå¡æè¿°"==s.data.cardColList[0].name&&(e.showServeDec=s.data.cardColList[0].show);case 4:case"end":return t.stop()}}),t)})))()},handleScroll:function(){var e=this,t=document.querySelector(".el-scrollbar__wrap").scrollTop,s=document.querySelector(".el-scrollbar__wrap").scrollHeight,i=document.documentElement.clientHeight,o=s-t-i;if(o<300){this.contS++,this.showServeListSum1.forEach((function(t){t.pageIndex==e.contS&&(e.showServeListSum2=e.showServeListSum2.concat(t))}));for(var r=1;this.showServeListSum2.length>r;r++)if(this.showServeListSum2[r].labelName==this.showServeListSum2[r-1].labelName){var a=[];a=this.showServeListSum2[r-1].items,this.showServeListSum2[r-1].items=a.concat(this.showServeListSum2[r].items),this.showServeListSum2.splice(r,1)}this.showServeListSum=this.showServeListSum2}},deletedTui:function(){this.showTuiF=!0},deletedData:function(e,t){var s=e.indexOf(t);return s>-1&&e.splice(s,1),e},deletedButton:function(e){for(var t in this.checked)this.checked[t]=this.deletedData(this.checked[t],e),0===this.checked[t].length&&this.selectAllId.push(t);this.deletedData(this.selectD,e),this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[],this.getServiceListNData()},moreFilter:function(){this.more1?(this.heightSize="auto",!this.serviceTagList.length>0&&(this.heightSize="54px")):this.heightSize=this.listHeight[0]+"px",this.more1=!this.more1},switchButton:function(){"horizontal"==this.typeShow?this.typeShow="showAll":this.t
1ypeShow="horizontal",this.getServiceListNData()},showAll:function(){this.double?this.double=!1:this.double=!0},getServiceTagListData:function(){var e=this;return(0,a.Z)((0,r.Z)().mark((function t(){var s,i;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return s={code:"",header:e.openApi?"open":"portal"},t.prev=1,t.next=4,(0,d.iv)(s);case 4:i=t.sent,0==i.code?i.data&&i.data.length>0&&(e.options=i.data,e.serviceTagList=i.data,e.value=i.data[0].id,e.serviceTagList.forEach((function(t){e.checked[t.id]=[],e.selectAllId.push(t.id),t.labelList&&t.labelList.length>0&&t.labelList.forEach((function(t){e.labelListIdS.push({labelName:t.labelName,id:t.id})}))})),e.$nextTick((function(){for(var e in this.listHeight=[],this.$refs)this.listHeight.push(this.$refs[e][0].scrollHeight);this.heightSize=this.listHeight[0]+"px"}))):e.$message({message:i.message,type:"error"}),t.next=11;break;case 8:t.prev=8,t.t0=t["catch"](1),e.$message({message:"æ¥å£æ¥é",type:"error"});case 11:case"end":return t.stop()}}),t,null,[[1,8]])})))()},getRecentListData:function(){var e=this;if("1"==!u.Z.envConfigs.NEN_GET_RECOMMES_LIST){var t={header:this.openApi?"open":"portal"};(0,d.gg)(t).then((function(t){0==t.code?(e.serveList=t.data,e.screenWidth>=1920?e.serveListFirst=[]:e.screenWidth>=1765&&t.data.length>9||e.screenWidth>=1610&&t.data.length>8?e.serveListFirst=t.data.slice(9,10):e.screenWidth>=1455&&t.data.length>7?e.serveListFirst=t.data.slice(8,10):e.screenWidth>=1300&&t.data.length>6?e.serveListFirst=t.data.slice(7,10):e.screenWidth>=1145&&t.data.length>5&&(e.serveListFirst=t.data.slice(6,10))):e.$message({message:t.message,type:"error"})}))}else{var s={header:this.openApi?"open":"portal"};(0,d.lB)(s).then((function(t){0==t.code?(e.serveList=t.data,e.screenWidth>=1920?e.serveListFirst=[]:e.screenWidth>=1765&&t.data.length>9||e.screenWidth>=1610&&t.data.length>8?e.serveListFirst=t.data.slice(9,10):e.screenWidth>=1455&&t.data.length>7?e.serveListFirst=t.data.slice(8,10):e.screenWidth>=1300&&t.data.length>6?e.serveListFirst=t.data.slice(7,10):e.screenWidth>=1145&&t.data.length>5&&(e.serveListFirst=t.data.slice(6,10))):e.$message({message:t.message,type:"error"})}))}},getServiceListNData:function(){var e=this;return(0,a.Z)((0,r.Z)().mark((function t(){var s,i,o,a,n,l,c,h,v,S,p,m,g,w;return(0,r.Z)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:for(i in e.showTagList=!1,e.contS=0,"qinghaidaxue"==u.Z.envConfigs.SCHOOL_CODE&&(e.showPublic=!1),s=[],e.checked)e.checked[i].forEach((function(e){s.push(e)}));return e.labelListIdArr=[],e.labelListIdS.forEach((function(t){-1!==s.indexOf(t.id)&&e.labelListIdArr.push(t)})),o={keyWord:encodeURIComponent(e.searchKeyword),my:e.checked1,data:e.checked,header:e.openApi?"open":"portal",showPublic:e.showPublic,showType:e.value},t.prev=8,e.loadingContent=!0,t.next=12,(0,d.xL)(o);case 12:if(a=t.sent,0==a.code){for(e.loadingContent=!1,n=a.data,l=[],c={},n.forEach((function(t){l=l.concat(t.items),e.showlabelName[t.labelName]=t.items.length,c[t.items[0].labelId]=t.labelName})),h=0,v=[l[0]],console.log("serveLabelName",c),S="",p=0,m=1;l.length>m;m++)m%30==0?(v=[],h++,p++,v.push(l[m]),S=c[l[m].labelId],e.showServeListSum1[p]={pageIndex:h,labelName:S,items:v}):l[m].labelId!=l[m-1].labelId?(1==m&&(S=c[l[0].labelId],e.showServeListSum1[0]={pageIndex:h,labelName:S,items:v}),p++,v=[],v.push(l[m]),S=c[l[m].labelId],e.showServeListSum1[p]={pageIndex:h,labelName:S,items:v}):(v.push(l[m]),S=c[l[m].labelId],e.showServeListSum1[p]={pageIndex:h,labelName:S,items:v});if(g=0,l.length<30)1==l.length?(e.showServeListSum.push({items:v,pageIndex:1,labelName:c[v[0].labelId]}),e.showServeListSum2=e.showServeListSum):(e.showServeListSum=e.showServeListSum1,e.showServeListSum2=e.showServeListSum1);else for(w=0;
1e.showServeListSum1.length>w;w++)g+=e.showServeListSum1[w].items.length,g<=30&&(e.showServeListSum=e.showServeListSum.concat(e.showServeListSum1[w]),e.showServeListSum2=e.showServeListSum)}else e.loadingContent=!1,e.$message({message:a.message,type:"error"});console.log("this.showServeListSum",e.showServeListSum),0==e.showServeListSum.length&&(e.showTagList=!0),t.next=25;break;case 18:t.prev=18,t.t0=t["catch"](8),e.loadingContent=!1,e.serveListSum=[],e.showServeListSum=[],e.$message({message:"æ¥å£æ¥é",type:"error"}),e.showTagList=!0;case 25:case"end":return t.stop()}}),t,null,[[8,18]])})))()},handleCheckAll:function(e,t){var s=this;t.forEach((function(e){s.selectD=s.selectD.filter((function(t){return t!=e.id}))})),this.selectAllId.push(e),this.checked[e]=[],this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[],this.getServiceListNData()},handleCheck:function(e,t,s){var i=this;if(-1!=this.selectD.indexOf(e))this.selectD=this.selectD.filter((function(t){return t!=e}));else{var o=[];this.selectD.forEach((function(e){-1==i.checked[t].indexOf(e)&&o.push(e)})),this.selectD=o,this.selectD.push(e)}-1==this.checked[t].indexOf(e)?(this.checked[t]=[],this.checked[t].push(e)):this.checked[t]=[],this.selectAllId=this.selectAllId.filter((function(e){return e!=t})),0==this.checked[t].length&&(this.checked[t]=[],this.selectAllId.push(t)),this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[],this.getServiceListNData()},resetCategoryActive:function(){var e=this;for(var t in this.selectD=[],this.serviceTagList.forEach((function(t){e.selectAllId.push(t.id)})),this.checked)this.checked[t]=[];this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[],this.getServiceListNData()},handleGetServiceListByLetter:function(){this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[],this.getServiceListNData()},handleGetServiceListByLetter1:function(){this.showServeListSum=[],this.showServeListSum1=[],this.showServeListSum2=[]}}},p=S,m=s(1001),g=(0,m.Z)(p,i,o,!1,null,null,null),w=g.exports},22320:function(e,t,s){e.exports=s.p+"img/[email protected]"},4074:function(e,t,s){e.exports=s.p+"img/[email protected]"},39928:function(e,t,s){e.exports=s.p+"img/juxing.a5f9464e.svg"},53401:function(e,t,s){e.exports=s.p+"img/[email protected]"}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.