chunk-3cd2dff2.72f92ccf.js 15 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3cd2dff2"],{"5dd9":function(t,e,n){"use strict";var r=n("fd59");n.n(r).a},"608c":function(t,e,n){"use strict";var r=n("a7da");n.n(r).a},"61f7":function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(n,!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function u(t,e){/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length)));var n={"M+":t.getMonth()+1,"d+":t.getDate(),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds()};for(var r in n)if(new RegExp("(".concat(r,")")).test(e)){var a=n[r]+"";e=e.replace(RegExp.$1,1===RegExp.$1.length?a:c(a))}return e}function c(t){return("00"+t).substr(t.length)}n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d}));var i={min:"%s最小长度为:min",max:"%s最大长度为:max",length:"%s长度必须为:length",range:"%s长度为:range",pattern:"$s格式错误"},s=function(t,e){t.message=function(t){return e.replace("%s",t||"")}};function l(t){return a({required:!0,message:t,type:"string"},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function d(t){return m.pattern(/(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,t)}s(l,"请输入%s"),s(d,"%s格式不正确");var m=Object.keys(i).reduce((function(t,e){return t[e]=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u="range"===e?{min:t[0],max:t[1]}:o({},e,t);return a({message:n.replace(":".concat(e),"range"===e?"".concat(t[0],"-").concat(t[1]):t),type:"string"},u,{},r)},s(t[e],i[e]),t}),{})},"9b41":function(t,e,n){"use strict";n.d(e,"V",(function(){return a})),n.d(e,"P",(function(){return o})),n.d(e,"U",(function(){return u})),n.d(e,"y",(function(){return c})),n.d(e,"v",(function(){return i})),n.d(e,"x",(function(){return s})),n.d(e,"w",(function(){return l})),n.d(e,"z",(function(){return d})),n.d(e,"s",(function(){return m})),n.d(e,"k",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"E",(function(){return p})),n.d(e,"u",(function(){return b})),n.d(e,"F",(function(){return g})),n.d(e,"Q",(function(){return _})),n.d(e,"G",(function(){return w})),n.d(e,"J",(function(){return O})),n.d(e,"W",(function(){return v})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return j})),n.d(e,"t",(function(){return y})),n.d(e,"m",(function(){return C})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return F})),n.d(e,"a",(function(){return L})),n.d(e,"i",(function(){return P})),n.d(e,"d",(function(){return D})),n.d(e,"D",(function(){return M})),n.d(e,"H",(function(){return $})),n.d(e,"I",(function(){return I})),n.d(e,"f",(function(){return T})),n.d(e,"N",(function(){return E})),n.d(e,"M",(function(){return R})),n.d(e,"l",(function(){return z})),n.d(e,"T",(function(){return S})),n.d(e,"e",(function(){return W})),n.d(e,"L",(function(){return q})),n.d(e,"K",(function(){return N})),n.d(e,"O",(function(){return H})),n.d(e,"B",(function(){return J})),n.d(e,"r",(function(){return V})),n.d(e,"q",(function(){return A})),n.d(e,"n",(function(){return B})),n.d(e,"o",(function(){return G})),n.d(e,"p",(function(){return K})),n.d(e,"A",(function(){return Q})),n.d(e,"R",(function(){return U})),n.d(e,"S",(function(){return Y})),n.d(e,"C",(function(){return X}));var r=n("b6bd");function a(){return Object(r.a)({url:"work/tree",method:"get"})}function o(){return Object(r.a)({url:"work/label",method:"get"})}function u(){return Object(r.a)({url:"work/synchMember",method:"post"})}function c(){return Object(r.a)({url:"work/channel/cate",method:"get"})}function i(){return Object(r.a)({url:"work/channel/cate/create",method:"get"})}function s(t){return Object(r.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function l(t){return Object(r.a)({url:"/work/channel/cate/".concat(t),method:"delete"})}function d(t){return Object(r.a)({url:"work/channel/code",method:"get",params:t})}function m(t){return Object(r.a)({url:"work/channel/code",method:"post",data:t})}function f(t){return Object(r.a)({url:"work/channel/code/".concat(t),method:"get"})}function h(t){return Object(r.a)({url:"work/channel/code/client",method:"get",params:t})}function p(t,e){return Object(r.a)({url:"work/channel/code/".concat(t),method:"put",data:e})}function b(t){return Object(r.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function g(){return Object(r.a)({url:"work/department",method:"get"})}function _(t){return Object(r.a)({url:"work/member",method:"get",params:t})}function w(t){return Object(r.a)({url:"work/group_chat",method:"get",params:t})}function O(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function v(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function k(t){return Object(r.a)({url:"work/welcome",method:"get",params:t})}function j(t){return Object(r.a)({url:"work/welcome/".concat(t),method:"get"})}function y(t,e){return Object(r.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function C(t){return Object(r.a)({url:"work/group_chat_auth",method:"post",data:t})}function x(t){return Object(r.a)({url:"work/group_chat_auth",method:"get",params:t})}function F(t){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"get"})}function L(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function P(t){return Object(r.a)({url:"work/client",method:"get",params:t})}function D(t){return Object(r.a)({url:"work/group_chat/member",method:"get",params:t})}function M(){return Object(r.a)({url:"work/client/synch",method:"get"})}function $(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function I(t){return Object(r.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function T(t){return Object(r.a)({url:"work/group_template",method:"get",params:t})}function E(t){return Object(r.a)({url:"work/group_template",method:"post",data:t})}function R(t){return Object(r.a)({url:"work/group_template/".concat(t),method:"get"})}function z(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function S(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function W(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function q(t){return Object(r.a)({url:"work/group_template_chat",method:"post",data:t})}function N(t){return Object(r.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function H(t){return Object(r.a)({url:"work/group_template/sendMessage",method:"post",data:t})}function J(t){return Object(r.a)({url:"work/client/count",method:"post",data:t})}function V(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function A(t,e){return Object(r.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function B(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function G(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function K(t){return Object(r.a)({url:"work/group_template_chat/getOwnerChatList",method:"get",params:t})}function Q(t){return Object(r.a)({url:"work/client/batchLabel",method:"post",data:t})}function U(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function Y(t){return Object(r.a)({url:"work/moment_list",method:"get",params:t})}function X(t,e){return Object(r.a)({url:"work/client/".concat(t),method:"put",data:e})}},a584:function(t,e,n){"use strict";var r;function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=(a(r={name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),a(r,"methods",{}),a(r,"created",(function(){})),r),u=(n("5dd9"),n("2877")),c=Object(u.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(e,r){return n("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:e.col}}},[n("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[n("div",{staticClass:"card_box"},[n("div",{staticClass:"card_box_cir",class:{one:r%5==0,two:r%5==1,three:r%5==2,four:r%5==3,five:r%5==4}},[n("div",{staticClass:"card_box_cir1",class:{one1:r%5==0,two1:r%5==1,three1:r%5==2,four1:r%5==3,five1:r%5==4}},[e.type?n("span",{staticClass:"iconfont",class:e.className}):n("Icon",{attrs:{type:e.className}})],1)]),n("div",{staticClass:"card_box_txt"},[n("span",{staticClass:"sp1",domProps:{textContent:t._s(e.count||0)}}),n("span",{staticClass:"sp2",domProps:{textContent:t._s(e.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=c.exports},a7da:function(t,e,n){},f73c:function(t,e,n){"use strict";n.r(e);var r=n("a584"),a=n("9b41"),o=n("61f7"),u=n("d708"),c={data:function(){return{roterPre:u.a.roterPre,cardLists:[],optionData:{},style:{height:"400px"},spinShow:!1,tableColumn:[{title:"成员",key:"name",minWidth:100},{title:"发送状态",slot:"status",minWidth:100},{title:"发送数目",slot:"sendResult",minWidth:100},{title:"发送时间",slot:"send_time",minWidth:100},{title:"操作",slot:"action",minWidth:100}],tableColumn1:[{title:"客户",key:"name",minWidth:100},{title:"发送状态",slot:"status1",minWidth:100},{title:"发送时间",slot:"send_time",minWidth:100}],tabIndex:0,tableData:[],userLoading:!1,timeVal:[],tableForm:{page:1,limit:15,client_name:"",user_name:"",status:"",status1:"",id:0}}},filters:{formatDate:function(t){if(0!==t){var e=new Date(1e3*t);return Object(o.a)(e,"yyyy-MM-dd hh:mm")}}},components:{cardsData:r.a},mounted:function(){this.tableForm.id=this.$route.params.id,this.getData(),this.getMemberList()},methods:{getList:function(){var t=this;this.userLoading=!0,workGroupStatisticsList(this.tableForm).then((function(e){t.tableData=e.data,t.userLoading=!1})).catch((function(e){t.userLoading=!1,t.$Message.error(e.msg)}))},getData:function(){var t=this;Object(a.M)(this.$route.params.id).then((function(e){t.cardLists=[{col:6,count:e.data.user_count,name:"已发送成员",type:1,className:"iconjinrixinzeng"},{col:6,count:e.data.external_user_count,name:"送达客户",type:1,className:"iconjinrituiqun"},{col:6,count:e.data.unuser_count,name:"未发送成员",type:1,className:"icondangqianqunchengyuan"},{col:6,count:e.data.external_unuser_count,name:"未送达客户",type:1,className:"iconleijituiqun"}]}))},getMemberList:function(){var t=this;Object(a.r)(this.tableForm.id,{user_name:this.tableForm.user_name,status:this.tableForm.status,page:this.tableForm.page,limit:this.tableForm.limit}).then((function(e){t.tableData=e.data}))},getClientList:function(){var t=this;Object(a.q)(this.tableForm.id,{client_name:this.tableForm.user_name,status:this.tableForm.status1,page:this.tableForm.page,limit:this.tableForm.limit}).then((function(e){t.tableData=e.data}))},sendMsg:function(t,e){var n=this;Object(a.O)({userid:t.userid,time:t.create_time,id:""}).then((function(t){n.$Message.success(t.msg)})).catch((function(t){n.$Message.error(t.msg)}))},onChangeType:function(){0==this.tabIndex?this.getMemberList():this.getClientList()},search:function(){0==this.tabIndex?this.getMemberList():this.getClientList()},pageChange:function(t){this.tableForm.page=t,0==this.tabIndex?this.getMemberList():this.getClientList()}}},i=(n("608c"),n("2877")),s=Object(i.a)(c,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"i-layout-page-header"},[n("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[n("div",{attrs:{slot:"title"},slot:"title"},[n("div",{staticClass:"float-l"},[n("router-link",{attrs:{to:{path:t.roterPre+"/work/client/group"}}},[n("div",{staticClass:"font-sm after-line"},[n("span",{staticClass:"iconfont iconfanhui"}),n("span",{staticClass:"pl10"},[t._v("返回")])])])],1),n("span",{staticClass:"mr20 ml16"},[t._v("群发详情")])])])],1),t.cardLists.length>=0?n("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),n("Card",{attrs:{bordered:!1,"dis-hover":""}},[n("div",{staticClass:"new_tab"},[n("Tabs",{on:{"on-click":t.onChangeType},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},[n("TabPane",{attrs:{label:"成员详情",name:"0"}}),n("TabPane",{attrs:{label:"客户详情",name:"1"}})],1)],1),n("Form",{ref:"formValidate",attrs:{"label-width":96,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[0==t.tabIndex?n("FormItem",{attrs:{label:"发送状态:"}},[n("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableForm.status,callback:function(e){t.$set(t.tableForm,"status",e)},expression:"tableForm.status"}},[n("Option",{attrs:{value:"0"}},[t._v("未发送")]),n("Option",{attrs:{value:"1"}},[t._v("已发送")])],1)],1):t._e(),1==t.tabIndex?n("FormItem",{attrs:{label:"发送状态:"}},[n("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableForm.status1,callback:function(e){t.$set(t.tableForm,"status1",e)},expression:"tableForm.status1"}},[n("Option",{attrs:{value:"0"}},[t._v("未发送")]),n("Option",{attrs:{value:"1"}},[t._v("已发送")]),n("Option",{attrs:{value:"2"}},[t._v("客户不是好友发送失败")]),n("Option",{attrs:{value:"3"}},[t._v("客户已收到群消息发送失败")])],1)],1):t._e(),n("FormItem",{attrs:{label:"成员搜索:"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入名称"},model:{value:t.tableForm.user_name,callback:function(e){t.$set(t.tableForm,"user_name",e)},expression:"tableForm.user_name"}}),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1),n("Table",{attrs:{columns:1==t.tabIndex?t.tableColumn1:t.tableColumn,data:t.tableData.list,loading:t.userLoading},scopedSlots:t._u([{key:"sendResult",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(r.sendResult.num_count))])]}},{key:"send_time",fn:function(e){var r=e.row;return[n("span",[t._v(t._s(r.send_time))])]}},{key:"status",fn:function(e){var r=e.row;return[2==r.status?n("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发送")]):t._e(),2!=r.status?n("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发送")]):t._e()]}},{key:"status1",fn:function(e){var r=e.row;return[1==r.status?n("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发送")]):t._e(),2==r.status?n("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("客户不是好友发送失败")]):t._e(),0==r.status?n("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发送")]):t._e(),3==r.status?n("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("客户已收到群消息发送失败")]):t._e()]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{attrs:{disabled:2==r.status},on:{click:function(e){return t.sendMsg(r,a)}}},[t._v("提醒")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.tableData.count,current:t.tableForm.page,"show-elevator":"","show-total":"","page-size":t.tableForm.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"6f38b1c2",null);e.default=s.exports},fd59:function(t,e,n){}}]);