pnkx-admin-mongo/pnkx-app-apk/static/js/chunk-0b15bb4b.387253bd.js

1 line
4.7 KiB
JavaScript
Raw Normal View History

2024-01-13 13:29:20 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b15bb4b"],{"7d94":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"a",(function(){return i})),a.d(t,"c",(function(){return r}));var s=a("b775");function n(e){return Object(s["a"])({url:"/admin/message/getMessageList",method:"get",params:e})}function i(e){return Object(s["a"])({url:"/admin/message/getMessageExamine",method:"get",params:e})}function r(e){return Object(s["a"])({url:"/admin/message/updateMessage",method:"put",data:e})}},a058:function(e,t,a){},a53d:function(e,t,a){"use strict";a("a058")},cd6e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"message-review"},[a("van-nav-bar",{attrs:{fixed:"","left-arrow":"","left-text":"返回",title:"留言审核"},on:{"click-left":function(t){return e.$router.go(-1)}}}),e.messageList.length>0?a("van-list",{attrs:{finished:e.finished,"finished-text":"没有更多了"},on:{load:e.getMessageList},model:{value:e.messageLoading,callback:function(t){e.messageLoading=t},expression:"messageLoading"}},e._l(e.messageList,(function(t){return a("van-cell-group",{key:t.id,attrs:{inset:""}},[a("van-cell",{attrs:{center:""},scopedSlots:e._u([{key:"title",fn:function(){return[a("div",{staticClass:"cell-left"},[a("div",{staticClass:"article-title"},[e._v(e._s(e.tagType(t,!1))+" "),a("van-tag",{attrs:{type:"primary"}},[e._v(e._s(e.tagType(t,!0)))])],1),a("div",{staticClass:"message-content",domProps:{innerHTML:e._s(t.content)}}),a("div",{staticClass:"auth"},[e._v("留言人:"),a("span",{staticClass:"author-name"},[e._v(e._s(t.authorName))])])])]},proxy:!0},{key:"right-icon",fn:function(){return[a("van-button",{attrs:{size:"small",type:"info"},on:{click:function(a){return e.openFrame(t)}}},[e._v("处 理")])]},proxy:!0}],null,!0)})],1)})),1):a("van-empty",{attrs:{description:"暂无留言审核"}}),a("van-popup",{model:{value:e.handleFlag,callback:function(t){e.handleFlag=t},expression:"handleFlag"}},[a("div",{staticClass:"handle-content"},[a("van-row",{staticClass:"handle-title"},[e._v(" 留言处理 ")]),a("van-row",{staticClass:"article-title message-one"},[e._v(" 标题:"),a("span",{staticClass:"theme-blue"},[e._v(e._s(e.tagType(e.handleMessage,!1)))])]),a("van-row",{staticClass:"message-content message-one"},[e._v(" 内容:"),a("span",{domProps:{innerHTML:e._s(e.handleMessage.content)}})]),a("van-row",{staticClass:"message-author-name message-one"},[e._v(" 留言人:"),a("span",{staticClass:"theme-green"},[e._v(e._s(e.handleMessage.authorName))])]),a("van-row",{staticClass:"button",attrs:{justify:"space-around",type:"flex"}},[a("van-button",{attrs:{size:"normal",type:"danger"},on:{click:function(t){return e.handle(e.handleMessage,"2")}}},[e._v("驳 回")]),a("van-button",{attrs:{size:"normal",type:"primary"},on:{click:function(t){return e.handle(e.handleMessage,"1")}}},[e._v("通 过")])],1)],1)])],1)},n=[],i=(a("d3b7"),a("159b"),a("7d94")),r={name:"messageReview",data:function(){return{handleFlag:!1,handleMessage:{},messageLoading:!1,finished:!1,queryParams:{pageNum:1,pageSize:6,version:null,articleId:null,content:null,state:"0",articleTitle:null,authorName:null,authorMailbox:null,authorHeader:null,messageBoard:null},messageList:[],messageTypeList:[],messageStatusList:[]}},mounted:function(){var e=this;this.getMessageList(),this.getDicts("px_message_type").then((function(t){e.messageTypeList=t.data})),this.getDicts("px_message_status").then((function(t){e.messageStatusList=t.data}))},methods:{openFrame:function(e){this.handleFlag=!0,this.handleMessage=e},handle:function(e,t){var a=this;this.$dialog.alert({message:"是否确认".concat(this.choiceDic(t,this.messageStatusList).dictLabel,"?"),closeOnClickOverlay:!0,confirmButtonText:"确定"}).then((function(){Object(i["c"])({id:e.id,state:t}).then((function(e){a.$toast("".concat(a.choiceDic(t,a.messageStatusList).dictLabel,"成功")),a.handleFlag=!1,a.getMessageList()}))})).catch((function(){}))},getMessageList:function(){var e=this;this.messageLoading=!0,this.finish