(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 l})),a.d(t,"e",(function(){return s}));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 l(e){return Object(n["a"])({url:"/complaint/deleteComplaint",method:"post",data:e})}function s(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("c14f"),o=a("1da1"),l=(a("a9e3"),a("68ea")),s={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"])().m((function t(){var a,n,r;return Object(i["a"])().w((function(t){while(1)switch(t.p=t.n){case 0:return t.p=0,a={page:e.currentPage,pageSize:e.pageSize,keyword:e.searchForm.keyword},t.n=1,Object(l["c"])(a);case 1:n=t.v,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.n=3;break;case 2:t.p=2,r=t.v,console.error("获取投诉列表出错:",r),e.$message.error("获取投诉列表失败");case 3:return t.a(2)}}),t,null,[[0,2]])})))()},handleDelete:function(e){var t=this;return Object(o["a"])(Object(i["a"])().m((function a(){var n,r;return Object(i["a"])().w((function(a){while(1)switch(a.p=a.n){case 0:return a.p=0,a.n=1,t.$confirm("确定要删除这条投诉记录吗？","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"});case 1:return a.n=2,Object(l["a"])({id:e.id});case 2:n=a.v,200===n.status?(t.$message.success("删除成功"),t.fetchComplaintList()):t.$message.error(n.message||"删除失败"),a.n=4;break;case 3:a.p=3,r=a.v,"cancel"!==r&&(console.error("删除投诉记录出错:",r),t.$message.error("删除失败"));case 4:return a.a(2)}}),a,null,[[0,3]])})))()},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()}},c=s,u=(a("6820"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"eb757e40",null);t["default"]=p.exports}}]);