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 s=t[r](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(i,a)}System.register(["./ResizeObserver.es-legacy.8d60aee1.js","./index-legacy.610f0a70.js","./index-legacy.c07bb851.js","./index-legacy.6a5df59c.js","./index-legacy.897f3849.js","./hooks-legacy.f81762aa.js","./index-legacy.87bcd48f.js","./use-tab-status-legacy.1f35f332.js","./index-legacy.78ce4f6b.js","./use-id-legacy.54528695.js"],(function(t){"use strict";var n,a,r,o,s,c,l,u,p,f,d,h;return{setters:[function(t){n=t.d,a=t.g,r=t.y,o=t.j,s=t.C,c=t.$},function(t){l=t.C},function(t){u=t.L},function(t){p=t.S},function(t){f=t.S},function(t){d=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(){d("帮助中心")},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 s(t){i(o,a,r,s,c,"next",t)}function c(t){i(o,a,r,s,c,"throw",t)}s(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(f,{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)&&!c(e)?t:{default:function(){return[t]}})):o(s,{btnStatus:!1,classImgSize:"CERT",tips:"暂无内容"},null)])}}))}}}))}();
|