help-center-legacy.7c0f7f13.js 4.0 KB

1
  1. !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function e(e){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?t(Object(a),!0).forEach((function(t){n(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e,n,i,a,r,o){try{var c=t[r](o),s=c.value}catch(l){return void n(l)}c.done?e(s):Promise.resolve(s).then(i,a)}System.register(["./ResizeObserver.es-legacy.44b91b4c.js","./index-legacy.c8c5bc4e.js","./index-legacy.43e69380.js","./index-legacy.3ccba950.js","./index-legacy.bdbc14c4.js","./hooks-legacy.5cc9e329.js","./index-legacy.6ac2a941.js","./use-tab-status-legacy.d7434e0b.js","./index-legacy.cae55a25.js","./use-id-legacy.ef8b5e97.js"],(function(t){"use strict";var n,a,r,o,c,s,l,u,p,d,f,h;return{setters:[function(t){n=t.d,a=t.g,r=t.y,o=t.j,c=t.C,s=t.$},function(t){l=t.C},function(t){u=t.L},function(t){p=t.S},function(t){d=t.S},function(t){f=t.u},function(t){h=t.C},function(){},function(){},function(){}],execute:function(){t("default",n({name:"help-center",data:function(){var t=this.$route.query,e="2"==t.catalogType?"公告列表":"帮助中心";return document.title=e,"accompany"===t.mode&&(t.platformType="ANALYSIS"),{list:[],dataShow:!0,dataLoading:!1,loading:!1,finished:!1,pageTitle:e,params:{catalogIds:t.catalogType||1,title:"",status:1,catalogType:"ANALYSIS"===t.platformType?"ANALYSIS":t.platformType||"tenant"===a.projectType&&"STUDENT"===a.platformType?"TENANT_STUDENT":a.platformType,page:1,rows:20},hideTitle:"1"==(null==t?void 0:t.hideTitle)}},mounted:function(){f("帮助中心")},methods:{getList:function(){var t,n=this;return(t=regeneratorRuntime.mark((function t(){var i,a,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!n.dataLoading){t.next=3;break}return t.abrupt("return");case 3:return n.dataLoading=!0,i=n.params,t.next=7,r.post("/api-cms/helpCenterContent/list",{data:e({},i)});case 7:if(a=t.sent,n.dataLoading=!1,n.loading=!1,o=a.data||{},!(n.list.length>0&&1===o.pageNo)){t.next=13;break}return t.abrupt("return");case 13:n.list=n.list.concat(o.rows||[]),n.finished=o.pageNo>=o.totalPage,n.params.page=o.pageNo+1,n.dataShow=n.list.length>0,t.next=23;break;case 19:t.prev=19,t.t0=t.catch(0),n.dataShow=!1,n.finished=!0;case 23:case"end":return t.stop()}}),t,null,[[0,19]])})),function(){var e=this,n=arguments;return new Promise((function(a,r){var o=t.apply(e,n);function c(t){i(o,a,r,c,s,"next",t)}function s(t){i(o,a,r,c,s,"throw",t)}c(void 0)}))})()},onSearch:function(t){this.params.title=t,this.params.page=1,this.list=[],this.dataShow=!0,this.loading=!1,this.finished=!1,this.getList()},onDetail:function(t){var e,n;"1"==(null===(e=this.$route)||void 0===e||null===(n=e.query)||void 0===n?void 0:n.hideTitle)&&(a.helpItemTitle=t.title||""),this.$router.push({path:"helpCenterDetail",query:{id:t.id,catalogType:this.params.catalogType}})}},render:function(){var t,e,n=this;return o("div",null,[o(p,{offsetTop:0,position:"top",class:"mb12"},{default:function(){return[!n.hideTitle&&o(h,{isFixed:!1,title:n.pageTitle,border:!1},null),o(d,{type:"tenant"===a.projectType?"tenant":"person",onSearch:n.onSearch},null)]}}),this.dataShow?o(u,{loading:this.loading,"onUpdate:loading":function(t){return n.loading=t},finished:this.finished,finishedText:" ",onLoad:this.getList},(e=t=this.list.map((function(t){return o(l,{title:t.title,titleClass:"van-ellipsis",isLink:!0,onClick:function(){n.onDetail(t)}},null)})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!s(e)?t:{default:function(){return[t]}})):o(c,{btnStatus:!1,classImgSize:"CERT",tips:"暂无内容"},null)])}}))}}}))}();