(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d213af5"],{ae72: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:"app-container"},[a("div",{directives:[{name:"loading",rawName:"v-loading.fullscreen.lock",value:e.loadingFull,expression:"loadingFull",modifiers:{fullscreen:!0,lock:!0}}]}),e._v(" "),a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item filter-input",attrs:{placeholder:"代理名称"},model:{value:e.searchParams.search_name,callback:function(t){e.$set(e.searchParams,"search_name",t)},expression:"searchParams.search_name"}}),e._v(" "),a("el-button",{staticClass:"filter-item",attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.searchParams.page_index=1,e.getList()}}},[e._v("\n      搜索\n    ")])],1),e._v(" "),a("el-table",{staticClass:"tableBorder",attrs:{data:e.table,"header-cell-style":{background:"#f8fbfc"},border:"",stripe:""}},[a("el-table-column",{attrs:{prop:"id",label:"Id",align:"center",width:"60"}}),e._v(" "),a("el-table-column",{attrs:{prop:"user",label:"反馈代理",width:"250",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.row;return[e._v("\n        "+e._s(a.user.nickname)+"\n      ")]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"created_at",label:"反馈时间",width:"250",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"contents",label:"反馈问题"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[a("p",{staticStyle:{"text-align":"left",margin:"0","line-height":"30px"}},[a("span",[e._v(e._s(n.contents.length>40?""+n.contents.slice(0,40):n.contents))]),e._v(" "),n.contents.length>40?a("el-button",{attrs:{type:"text"},on:{click:function(t){return e.handleSeeInfo(n)}}},[e._v("\n            ...查看详情\n          ")]):e._e()],1)]}}])})],1),e._v(" "),a("pagination",{attrs:{total:e.tableTotal,limit:e.searchParams.page_size,page:e.searchParams.page_index},on:{pagination:e.changePagination,"update:limit":e.changePagination}}),e._v(" "),a("el-drawer",{attrs:{title:"销售("+e.questionInfo.user.nickname+")反馈",visible:e.visible.question,direction:"rtl"},on:{"update:visible":function(t){return e.$set(e.visible,"question",t)}}},[a("div",{staticClass:"app-container"},[a("el-form",{attrs:{"label-width":"80px"}},[a("el-form-item",{attrs:{label:"反馈内容:"}},[e._v(e._s(e.questionInfo.contents))]),e._v(" "),a("el-form-item",{attrs:{label:"反馈时间:"}},[e._v(e._s(e.questionInfo.created_at))])],1)],1)])],1)},s=[],i=(a("96cf"),a("1da1")),r=a("b775");function l(e){return Object(r["a"])({url:"/question/getquestionlist",method:"get",params:e})}var o={data:function(){return{searchParams:{search_name:"",page_index:1,page_size:20},table:[],tableTotal:0,visible:{question:!1},questionInfo:{user:{nickname:""},contents:"",created_at:""},loadingFull:!1}},created:function(){this.getList()},methods:{getList:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,a,n,s,i,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this.loadingFull=!0,e.prev=1,e.next=4,l(this.searchParams);case 4:t=e.sent,a=t.message,n=t.code,200===n?(s=t.data,i=s.list,r=s.total,this.tableTotal=r,this.table=i):this.$message.error(a),e.next=12;break;case 9:e.prev=9,e.t0=e["catch"](1),console.log("获取销售问题反馈失败:".concat(e.t0));case 12:this.loadingFull=!1;case 13:case"end":return e.stop()}}),e,this,[[1,9]])})));function t(){return e.apply(this,arguments)}return t}(),changePagination:function(e){var t=e.page,a=e.limit;this.searchParams.page_size=a,this.searchParams.page_index=t,this.getList()},handleSeeInfo:function(e){this.questionInfo=e,this.visible.question=!0}}},c=o,u=a("2877"),d=Object(u["a"])(c,n,s,!1,null,null,null);t["default"]=d.exports}}]);