pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-71602e82.017b9ae6.js

1 line
2.5 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-71602e82"],{"09e7":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return r}));var i=n("b775");function a(t){return Object(i["a"])({url:"/admin/article/listArticleNotContent",method:"get",params:t})}function r(t){return Object(i["a"])({url:"/admin/article/"+t,method:"get"})}},4111:function(t,e,n){"use strict";n("5d01")},"5d01":function(t,e,n){},"9e49":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"article-manage"},[n("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"文章列表"},on:{"click-left":function(e){return t.$router.go(-1)}}}),n("van-pull-refresh",{on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[n("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多了"},on:{load:t.onInfoLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.list,(function(e){return n("van-cell-group",{key:e.id,attrs:{inset:""}},[n("van-cell",{attrs:{to:"/articleDetails?articleId="+e.id,center:"","is-link":""},scopedSlots:t._u([{key:"title",fn:function(){return[n("span",{staticClass:"article-title",class:"1"===e.createBy?"phy":"qxx"},[t._v(t._s(e.title))]),n("div",{staticClass:"content",domProps:{innerHTML:t._s(e.content)}}),n("div",{staticClass:"author-info"},[n("span",[t._v(t._s(e.nickName))]),n("span",[t._v(t._s(t._f("timeFilter")(e.createTime)))])])]},proxy:!0}],null,!0)})],1)})),1)],1)],1)},a=[],r=(n("99af"),n("d81d"),n("ac1f"),n("5319"),n("09e7")),s={name:"ArticleManage",data:function(){return{list:this.getLocal("articleList")||[],loading:!1,finished:!1,refreshing:!1,queryParams:{pageSize:10,pageNum:0},total:0}},mounted:function(){},methods:{onRefresh:function(){this.list=[],this.queryParams.pageNum=1,this.getArticleList("refresh")},onInfoLoad:function(){this.queryParams.pageNum++,this.loading=!0,this.getArticleList("loading")},getArticleList:function(t){var e=this;Object(r["b"])(this.queryParams).then((function(n){e.list=e.list.concat(n.rows.map((function(t){return t.content=t.content&&t.content.replace(/<[^>]+>/g,""),t}))),e.setLocal("articleList",e.list),e.total=n.total,"refresh"===t?(e.$toast("刷新成功"),e.refreshing=!1):"loading"===t&&(e.loading=!1),e.finished=e.list.length>=e.total}))}}},l=s,o=(n("4111"),n("2877")),c=Object(o["a"])(l,i,a,!1,null,"4fa4976c",null);e["default"]=c.exports}}]);