(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ddf6871"],{6820:function(e,t,a){"use strict";a("6866")},6866:function(e,t,a){},"68ea":function(e,t,a){"use strict";a.d(t,"d",(function(){return r})),a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return s})),a.d(t,"e",(function(){return c}));var n=a("b775");function r(e){return Object(n["a"])({url:"/wechat/getInfoList",method:"post",data:e})}function i(e){return Object(n["a"])({url:"/wechat/deleteUserInfo",method:"post",data:e})}function o(e){return Object(n["a"])({url:"/complaint/getComplaintList",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/complaint/deleteComplaint",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/wechat/toExamine",method:"post",data:e})}},a778:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"complaint-list"},[a("el-form",{staticClass:"search-form",attrs:{inline:!0,model:e.searchForm}},[a("el-form-item",[a("el-input",{attrs:{placeholder:"搜索关键词"},model:{value:e.searchForm.keyword,callback:function(t){e.$set(e.searchForm,"keyword",t)},expression:"searchForm.keyword"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.searchComplaints}},[e._v("搜索")])],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.complaintList}},[a("el-table-column",{attrs:{prop:"name",label:"姓名"}}),a("el-table-column",{attrs:{prop:"phone",label:"手机号"}}),a("el-table-column",{attrs:{prop:"corporateName",label:"公司名称"}}),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"180"}}),a("el-table-column",{attrs:{prop:"content",label:"内容"}}),a("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.viewComplaint(t.row)}}},[e._v("查看")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(a){return e.handleDelete(t.row)}}},[e._v("删除")])]}}])})],1),a("div",{staticClass:"pagination-container"},[a("el-pagination",{attrs:{"current-page":e.currentPage,"page-sizes":[10,20,50,100],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),a("el-dialog",{attrs:{title:"投诉详情",visible:e.dialogVisible,width:"50%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-descriptions",{attrs:{column:1,border:""}},[a("el-descriptions-item",{attrs:{label:"姓名"}},[e._v(e._s(e.selectedComplaint.name))]),a("el-descriptions-item",{attrs:{label:"手机号"}},[e._v(e._s(e.selectedComplaint.phone))]),a("el-descriptions-item",{attrs:{label:"公司名称"}},[e._v(e._s(e.selectedComplaint.corporateName))]),a("el-descriptions-item",{attrs:{label:"创建时间"}},[e._v(e._s(e.selectedComplaint.create_time))]),a("el-descriptions-item",{attrs:{label:"内容"}},[e._v(e._s(e.selectedComplaint.content))])],1)],1)],1)},r=[],i=a("c7eb"),o=a("1da1"),s=(a("a9e3"),a("68ea")),c={data:function(){return{complaintList:[],currentPage:1,pageSize:10,total:0,dialogVisible:!1,selectedComplaint:{},searchForm:{keyword:""}}},methods:{fetchComplaintList:function(){var e=this;return Object(o["a"])(Object(i["a"])().mark((function t(){var a,n;return Object(i["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,a={page:e.currentPage,pageSize:e.pageSize,keyword:e.searchForm.keyword},t.next=4,Object(s["c"])(a);case 4:n=t.sent,200===n.status?(e.complaintList=n.data.dataList,e.currentPage=Number(n.data.totalPage),e.pageSize=Number(n.data.pageSize),e.total=Number(n.data.totalRecord)):e.$message.error(n.message||"获取投诉列表失败"),t.next=12;break;case 8:t.prev=8,t.t0=t["catch"](0),console.error("获取投诉列表出错:",t.t0),e.$message.error("获取投诉列表失败");case 12:case"end":return t.stop()}}),t,null,[[0,8]])})))()},handleDelete:function(e){var t=this;return Object(o["a"])(Object(i["a"])().mark((function a(){var n;return Object(i["a"])().wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,t.$confirm("确定要删除这条投诉记录吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 3:return a.next=5,Object(s["a"])({id:e.id});case 5:n=a.sent,200===n.status?(t.$message.success("删除成功"),t.fetchComplaintList()):t.$message.error(n.message||"删除失败"),a.next=12;break;case 9:a.prev=9,a.t0=a["catch"](0),"cancel"!==a.t0&&(console.error("删除投诉记录出错:",a.t0),t.$message.error("删除失败"));case 12:case"end":return a.stop()}}),a,null,[[0,9]])})))()},searchComplaints:function(){this.currentPage=1,this.fetchComplaintList()},handleSizeChange:function(e){this.pageSize=e,this.fetchComplaintList()},handleCurrentChange:function(e){this.currentPage=e,this.fetchComplaintList()},viewComplaint:function(e){this.selectedComplaint=e,this.dialogVisible=!0}},mounted:function(){this.fetchComplaintList()}},l=c,u=(a("6820"),a("2877")),p=Object(u["a"])(l,n,r,!1,null,"eb757e40",null);t["default"]=p.exports}}]);