(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2093d7"],{a7e0:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"app-container"},[i("div",{staticClass:"filter-container"},[i("el-button",{staticClass:"filter-item",attrs:{type:"success",icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),i("div",{staticClass:"padding-lg margin-top back-white"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{"header-cell-style":{background:"#eef1f6",color:"#606266"},data:t.list,border:"",fit:"","highlight-current-row":""}},[i("el-table-column",{attrs:{label:"ID",sortable:"custom",align:"center",width:"80"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("span",[t._v(t._s(a.id))])]}}])}),i("el-table-column",{attrs:{label:"反馈用户",align:"center",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row;return[i("div",{staticClass:"flex align-center"},[i("img",{staticStyle:{width:"40px",height:"40px"},attrs:{src:a.user.avatar}}),i("div",{staticClass:"flex flex-column align-start padding-left-sm"},[i("div",{staticClass:"fs-24 color0",staticStyle:{"line-height":"initial"}},[t._v(t._s(a.user.nickname))]),i("div",{staticClass:"fs-24 color0 padding-top-xs",staticStyle:{"line-height":"initial"}},[t._v("ID:"+t._s(a.user.id))])])])]}}])}),i("el-table-column",{attrs:{label:"反馈内容",property:"content",align:"center"}}),i("el-table-column",{attrs:{label:"状态",property:"statusText",align:"center"}}),i("el-table-column",{attrs:{label:"反馈时间",property:"createtime",align:"center"}}),i("el-table-column",{attrs:{label:"操作",align:"center",width:"300","class-name":"small-padding fixed-width"},scopedSlots:t._u([{key:"default",fn:function(e){var a=e.row,s=e.$index;return[0==a.status?i("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.setStatus(a)}}},[t._v("已处理")]):t._e(),i("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(e){return t.del(a.id,s)}}},[t._v("删除")])]}}])})],1),i("pagination",{directives:[{name:"show",rawName:"v-show",value:t.total>0,expression:"total>0"}],attrs:{total:t.total,page:t.listQuery.page,limit:t.listQuery.limit},on:{"update:page":function(e){return t.$set(t.listQuery,"page",e)},"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},pagination:t.getList}})],1),i("copyright")],1)},s=[],l=i("7f70"),n=(i("baf6"),i("8327")),r=i("333d"),c={name:"Feedback",components:{Pagination:r["a"]},data:function(){return{list:null,total:0,listLoading:!0,dialogFormVisible:!1,listQuery:{page:1,limit:10}}},computed:Object(l["a"])({},Object(n["b"])(["config"])),created:function(){this.getList()},methods:{refresh:function(){this.getList()},getList:function(){var t=this;this.listLoading=!0,this.api.get("feedback/feedback/getList",this.listQuery).then((function(e){t.listLoading=!1,1==e.code?(t.total=parseInt(e.data.total),t.list=e.data.list):t.$util.error(e.message||e.msg||"数据异常")}))},setStatus:function(t){var e=this;this.api.post("feedback/feedback/status",{id:t.id,status:1}).then((function(t){1==t.code?(e.$util.success(t.message),e.refresh()):e.$util.error(t.message)}))},del:function(t,e){var i=this;if(!t)return!1;this.$util.confirm("此操作将永久删除该数据, 是否继续?",(function(a){a&&i.api.get("feedback/feedback/delete",{id:t}).then((function(t){1==t.code?(i.list.splice(e,1),i.$util.success(t.message)):i.$util.error(t.message)}))}))}}},o=c,u=i("3d7a"),d=Object(u["a"])(o,a,s,!1,null,null,null);e["default"]=d.exports}}]);