chunk-28ea2232.cb569b05.js 13 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-28ea2232"],{"028b":function(t,e,n){},"0b65":function(t,e,n){"use strict";e.a={shortcuts:[{text:"今天",value:function(){var t=new Date,e=new Date;return e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate())),[e,t]}},{text:"昨天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-1))),[e,t]}},{text:"最近7天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-6))),[e,t]}},{text:"最近30天",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),(new Date).getDate()-29))),[e,t]}},{text:"上月",value:function(){var t=new Date,e=new Date,n=new Date(e.getFullYear(),e.getMonth(),0).getDate();return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,1))),t.setTime(t.setTime(new Date((new Date).getFullYear(),(new Date).getMonth()-1,n))),[e,t]}},{text:"本月",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),(new Date).getMonth(),1))),[e,t]}},{text:"本年",value:function(){var t=new Date,e=new Date;return e.setTime(e.setTime(new Date((new Date).getFullYear(),0,1))),[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 l})),n.d(e,"w",(function(){return s})),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 g})),n.d(e,"F",(function(){return b})),n.d(e,"Q",(function(){return w})),n.d(e,"G",(function(){return _})),n.d(e,"J",(function(){return O})),n.d(e,"W",(function(){return k})),n.d(e,"h",(function(){return D})),n.d(e,"g",(function(){return j})),n.d(e,"t",(function(){return v})),n.d(e,"m",(function(){return y})),n.d(e,"c",(function(){return F})),n.d(e,"b",(function(){return T})),n.d(e,"a",(function(){return M})),n.d(e,"i",(function(){return C})),n.d(e,"d",(function(){return P})),n.d(e,"D",(function(){return x})),n.d(e,"H",(function(){return L})),n.d(e,"I",(function(){return W})),n.d(e,"f",(function(){return Y})),n.d(e,"N",(function(){return $})),n.d(e,"M",(function(){return I})),n.d(e,"l",(function(){return z})),n.d(e,"T",(function(){return E})),n.d(e,"e",(function(){return S})),n.d(e,"L",(function(){return V})),n.d(e,"K",(function(){return B})),n.d(e,"O",(function(){return H})),n.d(e,"B",(function(){return J})),n.d(e,"r",(function(){return q})),n.d(e,"q",(function(){return A})),n.d(e,"n",(function(){return G})),n.d(e,"o",(function(){return K})),n.d(e,"p",(function(){return N})),n.d(e,"A",(function(){return Q})),n.d(e,"R",(function(){return R})),n.d(e,"S",(function(){return U})),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 l(t){return Object(r.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function s(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 g(t){return Object(r.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function b(){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 O(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function k(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function D(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 v(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 F(t){return Object(r.a)({url:"work/group_chat_auth",method:"get",params:t})}function T(t){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"get"})}function M(t,e){return Object(r.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function C(t){return Object(r.a)({url:"work/client",method:"get",params:t})}function P(t){return Object(r.a)({url:"work/group_chat/member",method:"get",params:t})}function x(){return Object(r.a)({url:"work/client/synch",method:"get"})}function L(t){return Object(r.a)({url:"work/group_chat/statistics",method:"get",params:t})}function W(t){return Object(r.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function Y(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 I(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 E(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function S(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function V(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 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 q(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 G(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 N(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 R(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function U(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})}},cde5:function(t,e,n){"use strict";n.r(e);var r=n("2f62"),a=n("0b65"),o=n("9b41"),u=n("d708");function c(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 i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l={data:function(){return{roterPre:u.a.roterPre,options:a.a,timeVal:[],tableFrom:{name:"",time:"",type:0,client_type:"",page:1,limit:15},total:0,tableList:[],loading:!1,tableData:[],columns1:[{title:"群发名称",key:"name",minWidth:150},{title:"已发送成员",key:"user_count",minWidth:120},{title:"送达客户",key:"external_user_count",minWidth:120},{title:"未发送成员",key:"unuser_count",minWidth:120},{title:"未送达客户",key:"external_unuser_count",minWidth:120},{title:"是否发送",slot:"send_type",minWidth:120},{title:"群发类型",slot:"template_type",minWidth:120},{title:"发送时间",key:"update_time",minWidth:150},{title:"创建时间",key:"create_time",minWidth:150},{title:"操作",slot:"action",fixed:"right",minWidth:170}]}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(n,!0).forEach((function(e){i(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.e)("admin/layout",["isMobile"]),{labelWidth:function(){return this.isMobile?void 0:96},labelPosition:function(){return this.isMobile?"top":"right"}}),created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(o.f)(this.tableFrom).then((function(e){t.tableData=e.data,t.loading=!1})).catch((function(e){t.$Message.error(e.msg),t.loading=!1}))},search:function(){this.tableFrom.page=1,this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableFrom.time=this.timeVal.join("-")},pageChange:function(t){this.tableFrom.page=t,this.getList()},delItem:function(t,e){var n=this,r={title:"删除该客户群发",num:e,url:"work/group_template/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(r).then((function(t){n.$Message.success(t.msg),n.tableData.list.splice(e,1),n.tableData.list.length||(n.tableFrom.page=1==n.tableFrom.page?1:n.tableFrom.page-1),n.getList()})).catch((function(t){n.$Message.error(t.msg)}))},detailsItem:function(t,e){this.$router.push(this.roterPre+"/work/client/group_info/"+t.id)},sendMsg:function(t,e){var n=this;Object(o.O)({userid:"",time:t.update_time,id:t.id}).then((function(t){n.$Message.success(t.msg)})).catch((function(t){n.$Message.error(t.msg)}))}}},s=(n("e9db"),n("2877")),d=Object(s.a)(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[n("div",{staticClass:"new_card_pd"},[n("Form",{ref:"formValidate",attrs:{"label-width":96,inline:""},nativeOn:{submit:function(t){t.preventDefault()}}},[n("FormItem",{attrs:{label:"发送时间:"}},[n("DatePicker",{staticClass:"input-add",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd HH:mm",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1),n("FormItem",{attrs:{label:"客户类型:"}},[n("Select",{staticClass:"input-add",attrs:{clearable:""},model:{value:t.tableFrom.client_type,callback:function(e){t.$set(t.tableFrom,"client_type",e)},expression:"tableFrom.client_type"}},[n("Option",{attrs:{value:"0"}},[t._v("全部客户")]),n("Option",{attrs:{value:"1"}},[t._v("筛选客户")])],1)],1),n("FormItem",{attrs:{label:"名称:"}},[n("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入名称"},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}}),n("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1)]),n("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[n("router-link",{attrs:{to:t.roterPre+"/work/client/add_group"}},[n("Button",{staticClass:"mr-12",attrs:{type:"primary"}},[t._v("新建群发")])],1),n("Table",{ref:"selection",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tableData.list,loading:t.loading},scopedSlots:t._u([{key:"template_type",fn:function(e){return[e.row.template_type?n("Tag",{attrs:{color:"cyan",size:"medium"}},[t._v("定时发送")]):n("Tag",{attrs:{color:"blue",size:"medium"}},[t._v("立即发送")])]}},{key:"send_type",fn:function(e){var r=e.row;return[1==r.send_type?n("Tag",{attrs:{color:"green",size:"medium"}},[t._v("已发送")]):t._e(),0==r.send_type?n("Tag",{attrs:{color:"red",size:"medium"}},[t._v("未发送")]):t._e(),-1==r.send_type?n("Tag",{attrs:{color:"orange",size:"medium"}},[t._v("未发送成功")]):t._e()]}},{key:"action",fn:function(e){var r=e.row,a=e.index;return[n("a",{attrs:{disabled:1==r.send_type},on:{click:function(e){return t.sendMsg(r,a)}}},[t._v("提醒发送")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.detailsItem(r,a)}}},[t._v("详情")]),n("Divider",{attrs:{type:"vertical"}}),n("a",{on:{click:function(e){return t.delItem(r,a)}}},[t._v("删除")])]}}])}),n("div",{staticClass:"acea-row row-right page"},[n("Page",{attrs:{total:t.tableData.count,current:t.tableFrom.page,"show-elevator":"","show-total":"","page-size":t.tableFrom.limit},on:{"on-change":t.pageChange}})],1)],1)],1)}),[],!1,null,"630a4f1b",null);e.default=d.exports},e9db:function(t,e,n){"use strict";var r=n("028b");n.n(r).a}}]);