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
15 KiB
1 lines
15 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-098fc430"],{"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]}}]}},"1cde":function(t,e,n){},2699:function(t,e,n){},2712:function(t,e,n){"use strict";n("2699")},"607d":function(t,e,n){"use strict";n("1cde")},"9b41":function(t,e,n){"use strict";n.d(e,"V",(function(){return r})),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 h})),n.d(e,"j",(function(){return f})),n.d(e,"E",(function(){return p})),n.d(e,"u",(function(){return g})),n.d(e,"F",(function(){return w})),n.d(e,"Q",(function(){return b})),n.d(e,"G",(function(){return y})),n.d(e,"J",(function(){return D})),n.d(e,"W",(function(){return v})),n.d(e,"h",(function(){return k})),n.d(e,"g",(function(){return _})),n.d(e,"t",(function(){return j})),n.d(e,"m",(function(){return O})),n.d(e,"c",(function(){return C})),n.d(e,"b",(function(){return x})),n.d(e,"a",(function(){return L})),n.d(e,"i",(function(){return F})),n.d(e,"d",(function(){return T})),n.d(e,"D",(function(){return S})),n.d(e,"H",(function(){return M})),n.d(e,"I",(function(){return P})),n.d(e,"f",(function(){return V})),n.d(e,"N",(function(){return Y})),n.d(e,"M",(function(){return A})),n.d(e,"l",(function(){return N})),n.d(e,"T",(function(){return I})),n.d(e,"e",(function(){return B})),n.d(e,"L",(function(){return R})),n.d(e,"K",(function(){return z})),n.d(e,"O",(function(){return E})),n.d(e,"B",(function(){return W})),n.d(e,"r",(function(){return q})),n.d(e,"q",(function(){return $})),n.d(e,"n",(function(){return H})),n.d(e,"o",(function(){return J})),n.d(e,"p",(function(){return G})),n.d(e,"A",(function(){return K})),n.d(e,"R",(function(){return Q})),n.d(e,"S",(function(){return U})),n.d(e,"C",(function(){return X}));var a=n("b6bd");function r(){return Object(a.a)({url:"work/tree",method:"get"})}function o(){return Object(a.a)({url:"work/label",method:"get"})}function u(){return Object(a.a)({url:"work/synchMember",method:"post"})}function i(){return Object(a.a)({url:"work/channel/cate",method:"get"})}function c(){return Object(a.a)({url:"work/channel/cate/create",method:"get"})}function s(t){return Object(a.a)({url:"/work/channel/cate/".concat(t,"/edit"),method:"get"})}function l(t){return Object(a.a)({url:"/work/channel/cate/".concat(t),method:"delete"})}function d(t){return Object(a.a)({url:"work/channel/code",method:"get",params:t})}function m(t){return Object(a.a)({url:"work/channel/code",method:"post",data:t})}function h(t){return Object(a.a)({url:"work/channel/code/".concat(t),method:"get"})}function f(t){return Object(a.a)({url:"work/channel/code/client",method:"get",params:t})}function p(t,e){return Object(a.a)({url:"work/channel/code/".concat(t),method:"put",data:e})}function g(t){return Object(a.a)({url:"work/channel/code/bactch/cate",method:"post",data:t})}function w(){return Object(a.a)({url:"work/department",method:"get"})}function b(t){return Object(a.a)({url:"work/member",method:"get",params:t})}function y(t){return Object(a.a)({url:"work/group_chat",method:"get",params:t})}function D(){return Object(a.a)({url:"work/group_chat/synch",method:"post"})}function v(t){return Object(a.a)({url:"work/welcome",method:"post",data:t})}function k(t){return Object(a.a)({url:"work/welcome",method:"get",params:t})}function _(t){return Object(a.a)({url:"work/welcome/".concat(t),method:"get"})}function j(t,e){return Object(a.a)({url:"work/welcome/".concat(t),method:"put",data:e})}function O(t){return Object(a.a)({url:"work/group_chat_auth",method:"post",data:t})}function C(t){return Object(a.a)({url:"work/group_chat_auth",method:"get",params:t})}function x(t){return Object(a.a)({url:"work/group_chat_auth/".concat(t),method:"get"})}function L(t,e){return Object(a.a)({url:"work/group_chat_auth/".concat(t),method:"put",data:e})}function F(t){return Object(a.a)({url:"work/client",method:"get",params:t})}function T(t){return Object(a.a)({url:"work/group_chat/member",method:"get",params:t})}function S(){return Object(a.a)({url:"work/client/synch",method:"get"})}function M(t){return Object(a.a)({url:"work/group_chat/statistics",method:"get",params:t})}function P(t){return Object(a.a)({url:"work/group_chat/statisticsList",method:"get",params:t})}function V(t){return Object(a.a)({url:"work/group_template",method:"get",params:t})}function Y(t){return Object(a.a)({url:"work/group_template",method:"post",data:t})}function A(t){return Object(a.a)({url:"work/group_template/".concat(t),method:"get"})}function N(t){return Object(a.a)({url:"work/moment",method:"get",params:t})}function I(t){return Object(a.a)({url:"/work/moment",method:"post",data:t})}function B(t){return Object(a.a)({url:"work/group_template_chat",method:"get",params:t})}function R(t){return Object(a.a)({url:"work/group_template_chat",method:"post",data:t})}function z(t){return Object(a.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function E(t){return Object(a.a)({url:"work/group_template/sendMessage",method:"post",data:t})}function W(t){return Object(a.a)({url:"work/client/count",method:"post",data:t})}function q(t,e){return Object(a.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function $(t,e){return Object(a.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function H(t,e){return Object(a.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function J(t,e){return Object(a.a)({url:"work/group_template_chat/groupChatOwnerList/".concat(t),method:"get",params:e})}function G(t){return Object(a.a)({url:"work/group_template_chat/getOwnerChatList",method:"get",params:t})}function K(t){return Object(a.a)({url:"work/client/batchLabel",method:"post",data:t})}function Q(t){return Object(a.a)({url:"work/moment/".concat(t),method:"get"})}function U(t){return Object(a.a)({url:"work/moment_list",method:"get",params:t})}function X(t,e){return Object(a.a)({url:"work/client/".concat(t),method:"put",data:e})}},a584:function(t,e,n){"use strict";function a(t){return(a="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 r(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==a(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=r(r(r({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,a){return e("Col",{key:a,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:a%5==0,two:a%5==1,three:a%5==2,four:a%5==3,five:a%5==4}},[e("div",{staticClass:"card_box_cir1",class:{one1:a%5==0,two1:a%5==1,three1:a%5==2,four1:a%5==3,five1:a%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},c71e:function(t,e,n){"use strict";var a=n("313e"),r=n.n(a),o={name:"Index",props:{styles:{type:Object,default:null},optionData:{type:Object,default:null}},data:function(){return{myChart:null}},computed:{echarts:function(){return"echarts"+Math.ceil(100*Math.random())}},watch:{optionData:{handler:function(t,e){this.handleSetVisitChart()},deep:!0}},mounted:function(){var t=this,e=this;e.$nextTick((function(){e.handleSetVisitChart(),window.addEventListener("resize",t.wsFunc)}))},beforeDestroy:function(){window.removeEventListener("resize",this.wsFunc),this.myChart&&(this.myChart.dispose(),this.myChart=null)},methods:{wsFunc:function(){this.myChart.resize()},handleSetVisitChart:function(){var t;this.myChart=r.a.init(document.getElementById(this.echarts)),t=this.optionData,this.myChart.setOption(t,!0)}}},u=n("2877"),i=Object(u.a)(o,(function(){var t=this._self._c;return t("div",[t("div",{style:this.styles,attrs:{id:this.echarts}})])}),[],!1,null,"458f4634",null);e.a=i.exports},fad8:function(t,e,n){"use strict";n.r(e);var a=n("a584"),r=n("9b41"),o=n("c71e"),u=n("0b65"),i=n("d708"),c={data:function(){return{roterPre:i.a.roterPre,cardLists:[],optionData:{},style:{height:"400px"},spinShow:!1,tableColumn:[{title:"时间",key:"create_time",minWidth:120,align:"left"},{title:"新增人员",key:"today_sum",minWidth:100,align:"left"},{title:"退群人员",key:"chat_return_sum",minWidth:100,align:"left"},{title:"当前群人员",key:"chat_sum",minWidth:100,align:"left"},{title:"当前退群人员",key:"today_return_sum",minWidth:100,align:"center"}],tableData:[],userLoading:!1,options:u.a,timeVal:[],tableForm:{page:1,time:"",limit:15,id:0}}},components:{cardsData:a.a,echartsNew:o.a},mounted:function(){this.tableForm.id=this.$route.params.id,this.getData(),this.getList()},methods:{selectChange:function(t){this.tableForm.page=1,this.tableForm.time=t,this.timeVal=[],this.getData(),this.getList()},onchangeTime:function(t){this.timeVal=t,this.tableForm.time=this.timeVal[0]?this.timeVal.join("-"):"",this.tableForm.page=1,this.getData(),this.getList()},getList:function(){var t=this;this.userLoading=!0,Object(r.I)(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(r.H)({id:this.$route.params.id,time:this.tableForm.time}).then((function(e){t.cardLists=[{col:6,count:e.data.toDaySum,name:"今日新增人数",type:1,className:"iconjinrixinzeng"},{col:6,count:e.data.toDayReturn,name:"今日退群人数",type:1,className:"iconjinrituiqun"},{col:6,count:e.data.groupChatSum,name:"当前群人数",type:1,className:"icondangqianqunchengyuan"},{col:6,count:e.data.groupChatReturnSum,name:"当前退群人数",type:1,className:"iconleijituiqun"}];var n=new Array,a=[{name:"入群",data:[],type:"line",smooth:"true",yAxisIndex:0},{name:"退群",data:[],type:"line",smooth:"true",yAxisIndex:0}];n=e.data.groupChatReturnList.length>e.data.groupChatList.length?e.data.groupChatReturnList.map((function(t){return t.time})):e.data.groupChatList.map((function(t){return t.time})),a[0].data=e.data.groupChatList.map((function(t){return t.sum})),a[1].data=e.data.groupChatReturnList.map((function(t){return t.sum})),t.spinShow=!0;var r=a.map((function(t){return t.name})),o=["#B37FEB","#FFAB2B","#1890FF","#00C050"];a.map((function(t,e){t.itemStyle={normal:{color:o[e]}}})),t.optionData={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},legend:{x:"center",data:r},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{saveAsImage:{}}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{interval:0,rotate:40,textStyle:{color:"#000000"}},data:n},yAxis:[{type:"value",name:"数量",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{textStyle:{color:"#7F8B9C"}},splitLine:{show:!0,lineStyle:{color:"#F5F7F9"}}}],series:a},t.spinShow=!1}))},pageChange:function(t){this.tableForm.page=t,this.getList()}}},s=(n("2712"),n("2877")),l=Object(s.a)(c,(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/client/group_chat")}}},[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",{attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row row-between mb20"},[e("div",{staticClass:"header_title"},[t._v("群成员统计")]),e("div",{staticClass:"acea-row row-middle"},[e("span",{staticClass:"font-sm"},[t._v("时间筛选:")]),e("DatePicker",{staticClass:"input-width",attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"datetimerange",placement:"bottom-start",placeholder:"自定义时间",options:t.options},on:{"on-change":t.onchangeTime}})],1)]),t.optionData?e("echarts-new",{attrs:{"option-data":t.optionData,styles:t.style,height:"100%",width:"100%"}}):t._e()],1),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("Table",{attrs:{columns:t.tableColumn,data:t.tableData.list,loading:t.userLoading}}),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)],1)}),[],!1,null,"26a0f176",null);e.default=l.exports}}]); |