text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["message_list"],{"866a":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("m-top-handle",{attrs:{title:"昵称",content:"留言"}}),a("el-table",{attrs:{data:t.tableData,border:""}},[a("el-table-column",{attrs:{type:"index",label:"序号",width:"50"}}),a("el-table-column",{attrs:{prop:"_id",label:"id"}}),a("el-table-column",{attrs:{prop:"avatarImg",label:"头像"},scopedSlots:t._u([{key:"default",fn:function(t){return[a("img",{attrs:{src:t.row.avatarImg,alt:"",height:"50"}})]}}])}),a("el-table-column",{attrs:{prop:"nickName",label:"昵称"}}),a("el-table-column",{attrs:{prop:"byAiteName",label:"艾特谁"}}),a("el-table-column",{attrs:{prop:"content",label:"留言"}}),a("el-table-column",{attrs:{label:"操作",width:"90"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"}},[t._v("回复")]),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.deleteHandle(e.row)}}},[t._v("删除")])]}}])})],1)],1)},r=[],s=(a("96cf"),a("1da1")),l={data:function(){return{tableData:[],title:""}},created:function(){this.getList()},methods:{getList:function(){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$http.get("/rest/messages");case 2:a=e.sent,t.tableData=a.data;case 4:case"end":return e.stop()}}),e)})))()},deleteHandle:function(t){var e=this;this.$confirm("是否确定要删除留言: ".concat(t.content," ?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(Object(s["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,e.$http.delete("/rest/messages/".concat(t._id));case 2:e.getList(),e.$message({type:"success",message:"删除成功!"});case 4:case"end":return a.stop()}}),a)})))).catch((function(){e.$message({type:"info",message:"已取消删除"})}))}}},c=l,o=a("2877"),i=Object(o["a"])(c,n,r,!1,null,"e1b40bd0",null);e["default"]=i.exports}}]);
  //# sourceMappingURL=message_list.46796739.js.map