徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
16 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-4848b694"],{"1cde":function(t,e,n){},2541:function(t,e,n){},"44fe":function(t,e,n){"use strict";n("2541")},"54fd":function(t,e,n){"use strict";n.r(e);var r=n("a584"),a=n("9b41"),o=n("d708"),u={data:function(){return{roterPre:o.a.roterPre,formItem:{},modals:!1,labelList:[],cardLists:[],tabList3:[],optionData:{},style:{height:"400px"},spinShow:!1,tableColumn2:[{title:"群聊名称",key:"name",minWidth:100},{title:"群主",slot:"ownerInfo",minWidth:100},{title:"群聊成员数量",key:"member_num",minWidth:100},{title:"消息送达状态",slot:"status",minWidth:100},{title:"群聊创建时间",key:"group_create_time",minWidth:100},{title:"操作",slot:"action",minWidth:170}],tableColumn1:[{title:"群主",slot:"ownerInfo",minWidth:100},{title:"群发发送状态",slot:"status",minWidth:100},{title:"本次群发群聊总数",key:"member_num",minWidth:100},{title:"已发送群聊数",key:"status",minWidth:100},{title:"确认发送时间",key:"create_time",minWidth:100},{title:"操作",slot:"action",minWidth:170}],columns2:[{title:"群聊名称",key:"name",minWidth:150},{title:"群人数",key:"member_num"},{title:"送达状态",slot:"status"}],selectGroup:{},tabIndex:0,ownerData:[],tableData:[],ownerForm:{page:1,limit:15},userLoading:!1,timeVal:[],tableForm:{id:"",page:1,limit:15,status:"",name:"",owner:null},tableForm2:{page:1,limit:15,status:""}}},components:{cardsData:r.a},mounted:function(){this.tableForm.id=this.$route.params.id,this.getData(),this.getWorkGroupChat(),this.getgroupChatList()},methods:{getData:function(){var t=this;Object(a.K)(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.unuser_count,name:"未发送群主",type:1,className:"iconjinrituiqun"},{col:6,count:e.data.external_user_count,name:"已送达群聊",type:1,className:"icondangqianqunchengyuan"},{col:6,count:e.data.external_unuser_count,name:"未送达群聊",type:1,className:"iconleijituiqun"}]}))},onChangeType:function(){0==this.tabIndex?this.getgroupChatList():this.getgroupChatOwnerList()},search:function(){0==this.tabIndex?this.getgroupChatList():this.getgroupChatOwnerList()},search1:function(){this.tableForm2.page=1,this.detailsInfo(this.selectGroup)},pageChange:function(t){this.tableForm.page=t,0==this.tabIndex?this.getgroupChatList():this.getgroupChatOwnerList()},getWorkGroupChat:function(){var t=this;Object(a.G)({}).then((function(e){t.ownerData=e.data.list})).catch((function(e){t.$Message.error(e.msg)}))},getgroupChatList:function(){var t=this;Object(a.n)(this.tableForm.id,this.tableForm).then((function(e){t.tableData=e.data}))},getgroupChatOwnerList:function(){var t=this;Object(a.o)(this.tableForm.id,this.tableForm).then((function(e){t.tableData=e.data}))},sendMessage:function(t,e){var n=this;Object(a.O)({userid:t.owner,time:t.create_time,id:""}).then((function(t){n.$Message.success(t.msg)})).catch((function(t){n.$Message.error(t.msg)}))},detailsInfo:function(t){var e=this;this.modals=!0,this.selectGroup=t,Object(a.p)({chat_id:t.chat_ids,status:this.tableForm2.status,page:this.tableForm2.page,limit:this.tableForm2.limit}).then((function(t){e.tabList3=t.data})).catch((function(t){e.$Message.error(t.msg)}))},groupCount:function(t,e){this.$router.push(this.roterPre+"/work/client/statistical/"+t.id)},pageChange1:function(t){this.tableForm2.page=t,this.detailsInfo(this.selectGroup)}}},i=(n("44fe"),n("2877")),c=Object(i.a)(u,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"i-layout-page-header"},[e("PageHeader",{staticClass:"product_tabs",attrs:{"hidden-breadcrumb":""}},[e("div",{attrs:{slot:"title"},slot:"title"},[e("div",{staticClass:"float-l"},[e("router-link",{attrs:{to:{path:"".concat(t.roterPre,"/work/group/template")}}},[e("div",{staticClass:"font-sm after-line"},[e("span",{staticClass:"iconfont iconfanhui"}),e("span",{staticClass:"pl10"},[t._v("返回")])])])],1),e("span",{staticClass:"mr20 ml16"},[t._v("群发详情")])])])],1),t.cardLists.length>=0?e("cards-data",{attrs:{cardLists:t.cardLists}}):t._e(),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"new_tab"},[e("Tabs",{on:{"on-click":t.onChangeType},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},[e("TabPane",{attrs:{label:"客户群接收详情",name:"0"}}),e("TabPane",{attrs:{label:"群主发送详情",name:"1"}})],1)],1),e("Form",{ref:"formValidate",attrs:{"label-width":96,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"选择群主:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableForm.owner,callback:function(e){t.$set(t.tableForm,"owner",e)},expression:"tableForm.owner"}},t._l(t.ownerData,(function(n){return e("Option",{key:n.id,attrs:{value:n.ownerInfo.userid}},[t._v(t._s(n.ownerInfo.name))])})),1)],1),e("FormItem",{attrs:{label:"送达状态:"}},[e("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableForm.status,callback:function(e){t.$set(t.tableForm,"status",e)},expression:"tableForm.status"}},[e("Option",{attrs:{value:"0"}},[t._v("未发送")]),e("Option",{attrs:{value:"1"}},[t._v("已发送")])],1)],1),0==t.tabIndex?e("FormItem",{attrs:{label:"群聊搜索:"}},[e("Input",{staticClass:"input-add",attrs:{placeholder:"请输入群发名称"},model:{value:t.tableForm.name,callback:function(e){t.$set(t.tableForm,"name",e)},expression:"tableForm.name"}})],1):t._e(),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1),e("Table",{attrs:{columns:0==t.tabIndex?t.tableColumn2:t.tableColumn1,data:t.tableData.list,loading:t.userLoading},scopedSlots:t._u([{key:"ownerInfo",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(r.ownerInfo.name))])]}},{key:"status",fn:function(n){var r=n.row;return[1==r.status?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发送")]):t._e(),2==r.status?e("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("正在发送")]):t._e(),0==r.status?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发送")]):t._e()]}},{key:"action",fn:function(n){var r=n.row,a=n.index;return[0==t.tabIndex?e("a",{on:{click:function(e){return t.groupCount(r,a)}}},[t._v("群统计")]):t._e(),1==t.tabIndex?e("a",{attrs:{disabled:1==r.status},on:{click:function(e){return t.sendMessage(r,a)}}},[t._v("提醒发送")]):t._e(),1==t.tabIndex?e("Divider",{attrs:{type:"vertical"}}):t._e(),1==t.tabIndex?e("a",{on:{click:function(e){return t.detailsInfo(r,a)}}},[t._v("群发详情")]):t._e()]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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),e("Modal",{staticClass:"tableBox",attrs:{scrollable:"","footer-hide":"",closable:"",title:"群发详情","mask-closable":!1,width:"750"},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[e("Form",{ref:"formValidate",attrs:{"label-width":96,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[e("FormItem",{attrs:{label:"送达状态:"}},[e("Select",{staticClass:"input-add mr4",attrs:{clearable:""},model:{value:t.tableForm2.status,callback:function(e){t.$set(t.tableForm2,"status",e)},expression:"tableForm2.status"}},[e("Option",{attrs:{value:"0"}},[t._v("未发送")]),e("Option",{attrs:{value:"1"}},[t._v("已发送")]),e("Option",{attrs:{value:"2"}},[t._v("发送失败")])],1),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search1()}}},[t._v("查询")])],1)],1),e("Table",{ref:"selection",attrs:{columns:t.columns2,data:t.tabList3.list,"no-data-text":"暂无数据","highlight-row":"","max-height":"600",size:"small","no-filtered-data-text":"暂无筛选结果"},scopedSlots:t._u([{key:"owner",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(r.owner))])]}},{key:"status",fn:function(n){var r=n.row;return[1==r.status?e("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发送")]):t._e(),0==r.status?e("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发送")]):t._e()]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("Page",{attrs:{total:t.tabList3.count,current:t.tableForm2.page,"show-elevator":"","show-total":"","page-size":t.tableForm2.limit},on:{"on-change":t.pageChange1}})],1)],1)],1)}),[],!1,null,"be782128",null);e.default=c.exports},"607d":function(t,e,n){"use strict";n("1cde")},"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 i})),n.d(e,"v",(function(){return c})),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 w})),n.d(e,"G",(function(){return _})),n.d(e,"J",(function(){return k})),n.d(e,"W",(function(){return v})),n.d(e,"h",(function(){return O})),n.d(e,"g",(function(){return j})),n.d(e,"t",(function(){return C})),n.d(e,"m",(function(){return y})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return F})),n.d(e,"a",(function(){return I})),n.d(e,"i",(function(){return L})),n.d(e,"d",(function(){return D})),n.d(e,"D",(function(){return W})),n.d(e,"H",(function(){return P})),n.d(e,"I",(function(){return S})),n.d(e,"f",(function(){return T})),n.d(e,"N",(function(){return $})),n.d(e,"M",(function(){return z})),n.d(e,"l",(function(){return M})),n.d(e,"T",(function(){return G})),n.d(e,"e",(function(){return N})),n.d(e,"L",(function(){return q})),n.d(e,"K",(function(){return B})),n.d(e,"O",(function(){return V})),n.d(e,"B",(function(){return J})),n.d(e,"r",(function(){return A})),n.d(e,"q",(function(){return E})),n.d(e,"n",(function(){return H})),n.d(e,"o",(function(){return K})),n.d(e,"p",(function(){return R})),n.d(e,"A",(function(){return Q})),n.d(e,"R",(function(){return U})),n.d(e,"S",(function(){return X})),n.d(e,"C",(function(){return Y}));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 i(){return Object(r.a)({url:"work/channel/cate",method:"get"})}function c(){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 w(t){return Object(r.a)({url:"work/member",method:"get",params:t})}function _(t){return Object(r.a)({url:"work/group_chat",method:"get",params:t})}function k(){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 O(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 C(t,e){return Object(r.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function y(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 I(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function L(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 W(){return Object(r.a)({url:"work/client/synch",method:"get"})}function P(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function S(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 $(t){return Object(r.a)({url:"work/group_template",method:"post",data:t})}function z(t){return Object(r.a)({url:"work/group_template/".concat(t),method:"get"})}function M(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function G(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function N(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 B(t){return Object(r.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function V(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 A(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function E(t,e){return Object(r.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function H(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function K(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function R(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 X(t){return Object(r.a)({url:"work/moment_list",method:"get",params:t})}function Y(t,e){return Object(r.a)({url:"work/client/".concat(t),method:"put",data:e})}},a584:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var a=n.call(t,e||"default");if("object"!=r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==r(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=a(a(a({name:"cards",data:function(){return{}},props:{cardLists:Array}},"data",(function(){return{}})),"methods",{}),"created",(function(){})),u=(n("607d"),n("2877")),i=Object(u.a)(o,(function(){var t=this,e=t._self._c;return e("div",[e("Row",{staticClass:"ivu-mt",attrs:{type:"flex",align:"middle",gutter:16}},t._l(t.cardLists,(function(n,r){return e("Col",{key:r,staticClass:"ivu-mb",attrs:{xs:24,sm:24,md:24,lg:12,xl:8,xxl:{span:n.col}}},[e("Card",{staticClass:"card_cent",attrs:{shadow:"",padding:0}},[e("div",{staticClass:"card_box"},[e("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}},[e("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}},[n.type?e("span",{staticClass:"iconfont",class:n.className}):e("Icon",{attrs:{type:n.className}})],1)]),e("div",{staticClass:"card_box_txt"},[e("span",{staticClass:"sp1",domProps:{textContent:t._s(n.count||0)}}),e("span",{staticClass:"sp2",domProps:{textContent:t._s(n.name)}})])])])],1)})),1)],1)}),[],!1,null,"4e72687f",null);e.a=i.exports}}]);