企微助手 ,仓库名 短剧

58.8e58ad21942787e92ebc.js 11KB

1
  1. webpackJsonp([58],{"8xe4":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("Dd8w"),n=a.n(i),s=a("Xxa5"),r=a.n(s),l=a("exGp"),o=a.n(l),c=a("xcuB"),d=a("Gu7T"),u=a.n(d),p={components:{customerServiceCorpV2:c.a},props:{dialogVisible:{type:Boolean,default:function(){return!1}}},data:function(){return{loading:!1,list:[],userList:[]}},computed:{title:function(){return"客户反馈链接"}},watch:{dialogVisible:function(e){}},methods:{handleCancel:function(){this.$emit("close")},handleClearFormData:function(){},onChangeCorpUserList:function(e){var t=e.res_format_1;e.res_format_2;t&&t.length?(this.userList=[].concat(u()(t)),this.handleGetUserLink()):this.userList=[]},onClickGetLink:function(){if(!this.userList||!this.userList.length)return this.$message.warning("请选择客服(可多选)"),!1;this.handleGetUserLink()},handleGetUserLink:function(){if(this.userList.length){var e=window.location.host,t=window.location.protocol;this.list=this.userList.map(function(a){return{name:a.name,corp_name:a.corp_name,link:(t||"https:")+"//"+e+"/playlet/qwh5/dist/index.html#/feedback?corpid="+a.corpid+"&user_id="+a.user_id}})}else this.list=[]},onClickCopy:function(e){var t=this;return o()(r.a.mark(function a(){return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,t.$copyText(e.link);case 3:t.$message.success("复制成功"),a.next=9;break;case 6:a.prev=6,a.t0=a.catch(0),t.$message.error("复制失败,请重试");case 9:case"end":return a.stop()}},a,t,[[0,6]])}))()}}},g={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"userLink-dialog",attrs:{visible:e.dialogVisible,"before-close":e.handleCancel,title:e.title,width:"750px","close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-wrap"},[a("div",{staticClass:"form-item"},[a("span",{staticClass:"lable required"},[e._v("客服:")]),e._v(" "),a("customerServiceCorpV2",{ref:"customerServiceCorpV2",attrs:{title:"",placeholder:"请选择客服",width:"200px"},on:{customerDefine:e.onChangeCorpUserList}}),e._v(" "),a("span",{staticClass:"tips"},[e._v("注:选择客服后自动生成反馈链接")])],1)]),e._v(" "),e.list&&e.list.length?a("el-table",{staticStyle:{"margin-top":"10px",width:"100%"},attrs:{"max-height":"500",data:e.list,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"客服",prop:"name","min-width":"140",align:"center",fixed:"left","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"企微主体",prop:"corp_name","min-width":"140",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"反馈链接",prop:"link","min-width":"300",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",fixed:"right","min-width":"100",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",{staticClass:"btn c-00b38a",on:{click:function(t){return e.onClickCopy(i)}}},[e._v("复制链接")])]}}],null,!1,1676438902)})],1):e._e(),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"})],1)},staticRenderFns:[]};var v=a("VU/8")(p,g,!1,function(e){a("z5wY")},"data-v-75e59355",null).exports,m={props:{dialogVisible:{type:Boolean,default:function(){return!1}},detail:{type:Object,default:function(){return{}}}},data:function(){return{loading:!1}},computed:{title:function(){return"反馈内容"}},watch:{dialogVisible:function(e){}},methods:{handleCancel:function(){this.$emit("close")},handleClearFormData:function(){}}},f={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{staticClass:"detail-dialog",attrs:{visible:e.dialogVisible,"before-close":e.handleCancel,title:e.title,width:"550px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"form-wrap"},[a("div",{staticClass:"form-item"},[a("span",{staticClass:"lable"},[e._v("客户:")]),e._v(" "),a("div",{staticClass:"customer-wrap"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.detail.customer_avatar,expression:"detail.customer_avatar"}]}),e._v(" "),a("span",[e._v(e._s(e.detail.customer_name))])])]),e._v(" "),a("div",{staticClass:"form-item"},[a("span",{staticClass:"lable"},[e._v("反馈类型:")]),e._v(" "),a("span",[e._v(e._s(e.detail.type_title))])]),e._v(" "),a("div",{staticClass:"form-item flex-align-start"},[a("span",{staticClass:"lable"},[e._v("反馈内容:")]),e._v(" "),a("span",{staticClass:"content-wrap"},[e._v(e._s(e.detail.content))])]),e._v(" "),a("div",{staticClass:"form-item flex-align-start"},[a("span",{staticClass:"lable"},[e._v("图片证据:")]),e._v(" "),e.detail.attachments&&e.detail.attachments.length?a("div",{staticClass:"image-wrap"},e._l(e.detail.attachments,function(t,i){return a("el-image",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"imageUrl"}],key:i,staticClass:"image",attrs:{src:t,"preview-src-list":e.detail.attachments}})}),1):a("div",[e._v("无")])])]),e._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:e.handleCancel}},[e._v("关 闭")])],1)])},staticRenderFns:[]};var h=a("VU/8")(m,f,!1,function(e){a("tokD")},"data-v-6bcd09ad",null).exports,_={name:"feedback",components:{customerServiceCorpV2:c.a,detailDialog:h,getUserLinkDialog:v},data:function(){return{sys_group_id:1==this.$cookie.getCookie("isSuperManage")?sessionStorage.getItem("company_session_defaultCorp_level_1").toString():"",height:"",loading:!1,pagination:{page:1,page_size:20,pages:0,total:0},filter:{user_id:[]},list:[],detailDialogVisible:!1,currentDetail:{},getUserLinkDialogVisible:!1}},created:function(){this.height=document.documentElement.clientHeight-200,this.handleGetList()},methods:{handleGetList:function(){var e=this;return o()(r.a.mark(function t(){var a,i,n,s,l;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=""+e.URL.BASEURL+e.URL.feedback_list,i={sys_group_id:e.sys_group_id,user_id:e.filter.user_id,page:e.pagination.page,page_size:e.pagination.page_size},t.next=6,e.$axios.post(a,i);case 6:n=t.sent,s=n.data,(l=void 0===s?{}:s)&&0==l.errno&&Array.isArray(l.rst.data)?(e.list=l.rst.data,e.pagination.total=l.rst.pageInfo.total,e.pagination.pages=l.rst.pageInfo.pages):4002!=l.errno&&(e.$message.warning(l.err),e.list=[],e.pagination.total=0,e.pagination.pages=0),t.next=18;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0),e.list=[],e.pagination.total=0,e.pagination.pages=0;case 18:return t.prev=18,e.loading=!1,t.finish(18);case 21:case"end":return t.stop()}},t,e,[[0,12,18,21]])}))()},handleCurrentChange:function(e){this.pagination.page=e,this.handleGetList()},onChangeMultiCorpUsers:function(e){var t=e.res_format_1;t&&t.length?this.filter.user_id=t.map(function(e){return{user_id:e.user_id,corpid:e.corpid}}):this.filter.user_id=[],this.pagination.page=1,this.handleGetList()},onClickGetUserLink:function(){this.getUserLinkDialogVisible=!0},onCloseUserLink:function(){this.getUserLinkDialogVisible=!1},onClickDetail:function(e){this.currentDetail=n()({},e),this.detailDialogVisible=!0},onCloseDeail:function(){this.currentDetail={},this.detailDialogVisible=!1},handleExport:function(){var e=this;return o()(r.a.mark(function t(){var a,i,n,s,l;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e.loading=!0,a=""+e.URL.BASEURL+e.URL.feedback_list,i={sys_group_id:e.sys_group_id,user_id:e.filter.user_id,page:1,page_size:e.$store.state.exportNumber},t.next=6,e.$axios.post(a,i);case 6:n=t.sent,s=n.data,(l=void 0===s?{}:s)&&0==l.errno&&Array.isArray(l.rst.data)?e.exportEvent(l.rst.data):4002!=l.errno&&e.$message.warning(l.err),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),console.log(t.t0);case 15:return t.prev=15,e.loading=!1,t.finish(15);case 18:case"end":return t.stop()}},t,e,[[0,12,15,18]])}))()},exportEvent:function(e){var t=[{tHeader:["客服","企微主体","客户昵称","反馈类型","反馈内容","反馈时间"],filterVal:["user_name","corp_name","customer_name","type_title","content","create_time"],tableDatas:e,sheetName:""}];this.$exportOrder({excelDatas:t,name:"客户反馈(导出时间:"+this.$getDay(0)+")"})}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"feedback-wrap"},[a("div",{staticClass:"screenBox"},[a("div",{staticClass:"filter-wrap"},[a("customerServiceCorpV2",{attrs:{title:"客服"},on:{customerDefine:e.onChangeMultiCorpUsers}})],1),e._v(" "),a("div",[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.onClickGetUserLink}},[e._v("获取反馈链接")]),e._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:e.handleExport}},[e._v("导出Excel")])],1)]),e._v(" "),a("el-table",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{height:e.height,data:e.list,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"客服",prop:"user_name","min-width":"160",align:"center",fixed:"left"}}),e._v(" "),a("el-table-column",{attrs:{label:"企微主体",prop:"corp_name","min-width":"140",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"客户昵称",prop:"customer_name","min-width":"130",align:"left"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("div",{staticStyle:{"padding-left":"10px"}},[e._v("客户昵称")])]}},{key:"default",fn:function(t){var i=t.row;return[a("div",{staticClass:"customer-wrap"},[a("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i.customer_avatar,expression:"row.customer_avatar"}]}),e._v(" "),a("div",{staticClass:"name"},[e._v(e._s(i.customer_name))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"反馈类型",prop:"type_title","min-width":"200",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:"反馈内容",prop:"content","min-width":"120",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"反馈时间",prop:"create_time","min-width":"160",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作","min-width":"160",align:"center",fixed:"right"},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.row;return[a("span",{staticClass:"btn c-00b38a",on:{click:function(t){return e.onClickDetail(i)}}},[e._v("查看详情")])]}}])})],1),e._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:e.pagination.total>0,expression:"pagination.total > 0"}],staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","current-page":e.pagination.page,layout:"prev, pager, next","page-count":Number(e.pagination.pages)},on:{"current-change":e.handleCurrentChange}})],1),e._v(" "),a("getUserLinkDialog",{attrs:{dialogVisible:e.getUserLinkDialogVisible},on:{close:e.onCloseUserLink}}),e._v(" "),a("detailDialog",{attrs:{dialogVisible:e.detailDialogVisible,detail:e.currentDetail},on:{close:e.onCloseDeail}})],1)},staticRenderFns:[]};var w=a("VU/8")(_,b,!1,function(e){a("Sfe6")},"data-v-041a30b4",null);t.default=w.exports},Sfe6:function(e,t){},tokD:function(e,t){},z5wY:function(e,t){}});