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
14 KiB
1 lines
14 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-c0dc500c"],{"082e":function(t,e,n){"use strict";n.r(e);var r=n("2f62"),a=n("9b41"),o=n("0b65"),u=n("d708");function c(t){return(c="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 i(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 l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){s(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function s(t,e,n){return(e=function(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==c(e)?e:e+""}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var m={name:"",data:function(){return{roterPre:u.a.roterPre,loading:!1,formInline:{},options:o.a,columns1:[{title:"二维码",slot:"qr_code",minWidth:80,align:"center"},{title:"二维码名称",key:"name",minWidth:100,align:"center"},{title:"群名称",key:"group_name",minWidth:100,align:"center"},{title:"群聊",slot:"chat_list",minWidth:100,align:"center"},{title:"自动创建",slot:"auth_group_chat",minWidth:100,align:"center"},{title:"标签",slot:"label_list",minWidth:100,align:"center"},{title:"创建时间",key:"create_time",minWidth:130,align:"center"},{title:"操作",slot:"action",minWidth:130,align:"center"}],tableData:[],grid:{xl:7,lg:10,md:12,sm:24,xs:24},timeVal:[],tableFrom:{name:"",create_time:"",page:1,limit:15},total:0}},computed:l(l({},Object(r.e)("admin/layout",["isMobile"])),{},{labelWidth:function(){return this.isMobile?void 0:80},labelPosition:function(){return this.isMobile?"top":"left"}}),created:function(){this.getList()},methods:{getList:function(){var t=this;this.loading=!0,Object(a.c)(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.create_time=this.timeVal.join("-"),this.tableFrom.page=1,this.getList()},downItem:function(t,e){var n=document.createElement("a"),r=t.qr_code;fetch(r).then((function(t){return t.blob()})).then((function(e){n.href=URL.createObjectURL(e),n.download=t.name,document.body.appendChild(n),n.click()}))},editData:function(t,e){this.$router.push({path:this.roterPre+"/work/addAuthGroup/"+t.id})},delItem:function(t,e){var n=this,r={title:"删除该自动拉群",num:e,url:"work/group_chat_auth/".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)}))},pageChange:function(t){this.tableFrom.page=t,this.getList()}}},d=(n("2f3a"),n("2877")),f=Object(d.a)(m,(function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":"",padding:0}},[e("div",{staticClass:"new_card_pd"},[e("Alert",{attrs:{closable:""}},[e("p",[t._v("自动拉群,流程如下:")]),e("p",[t._v("1、在本系统选择多个群聊,添加完成后会生成一个群聊二维码,扫码群二维码会随机添加选择的群聊中的一个。")]),e("p",[t._v("2、当第一个群达到人数上限(最多500人)后,客户扫群二维码后,会自动创建第二个群。第二个群的名称将使用拉群中的群昵称+群序号生成新的群,群主和群管理员继承上个群。")])]),e("Form",{attrs:{"label-width":96,inline:""}},[e("FormItem",{attrs:{label:"创建时间"}},[e("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),e("FormItem",{attrs:{label:"二维码名称"}},[e("Input",{staticClass:"input-add mr14",attrs:{placeholder:"请输入"},model:{value:t.tableFrom.name,callback:function(e){t.$set(t.tableFrom,"name",e)},expression:"tableFrom.name"}}),e("Button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1)],1)],1)]),e("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[e("div",{staticClass:"acea-row"},[e("router-link",{attrs:{to:"".concat(t.roterPre,"/work/addAuthGroup")}},[e("Button",{attrs:{type:"primary"}},[t._v("新建拉群")])],1)],1),e("Table",{ref:"selection",staticClass:"ivu-mt",attrs:{columns:t.columns1,data:t.tableData.list,loading:t.loading},scopedSlots:t._u([{key:"qr_code",fn:function(t){var n=t.row;return[e("viewer",{staticClass:"acea-row row-center"},[e("div",{staticClass:"tabBox_img"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:n.qr_code,expression:"row.qr_code"}]})])])]}},{key:"auth_group_chat",fn:function(n){var r=n.row;return[e("span",[t._v(t._s(r.auth_group_chat?"自动创建":"手动创建"))])]}},{key:"label_list",fn:function(n){var r=n.row;return t._l(r.label_list,(function(n){return e("Tag",{key:n.label_id,attrs:{size:"medium"}},[t._v(t._s(n.name))])}))}},{key:"chat_list",fn:function(n){var r=n.row;return t._l(r.chat_list,(function(n){return e("span",{key:n.chat_id},[t._v(t._s(n.name))])}))}},{key:"action",fn:function(n){var r=n.row,a=n.index;return[e("a",{on:{click:function(e){return t.editData(r,a)}}},[t._v("编辑")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.downItem(r,a)}}},[t._v("下载")]),e("Divider",{attrs:{type:"vertical"}}),e("a",{on:{click:function(e){return t.delItem(r,a)}}},[t._v("删除")])]}}])}),e("div",{staticClass:"acea-row row-right page"},[e("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,"ce7bb9dc",null);e.default=f.exports},"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]}}]}},"2f3a":function(t,e,n){"use strict";n("82fe")},"82fe":function(t,e,n){},"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 m})),n.d(e,"s",(function(){return d})),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 k})),n.d(e,"W",(function(){return O})),n.d(e,"h",(function(){return v})),n.d(e,"g",(function(){return j})),n.d(e,"t",(function(){return D})),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 L})),n.d(e,"H",(function(){return x})),n.d(e,"I",(function(){return S})),n.d(e,"f",(function(){return W})),n.d(e,"N",(function(){return Y})),n.d(e,"M",(function(){return I})),n.d(e,"l",(function(){return E})),n.d(e,"T",(function(){return q})),n.d(e,"e",(function(){return $})),n.d(e,"L",(function(){return z})),n.d(e,"K",(function(){return V})),n.d(e,"O",(function(){return A})),n.d(e,"B",(function(){return B})),n.d(e,"r",(function(){return G})),n.d(e,"q",(function(){return H})),n.d(e,"n",(function(){return J})),n.d(e,"o",(function(){return N})),n.d(e,"p",(function(){return R})),n.d(e,"A",(function(){return U})),n.d(e,"R",(function(){return K})),n.d(e,"S",(function(){return Q})),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 m(t){return Object(r.a)({url:"work/channel/code",method:"get",params:t})}function d(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 k(){return Object(r.a)({url:"work/group_chat/synch",method:"post"})}function O(t){return Object(r.a)({url:"work/welcome",method:"post",data:t})}function v(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 D(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 L(){return Object(r.a)({url:"work/client/synch",method:"get"})}function x(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 W(t){return Object(r.a)({url:"work/group_template",method:"get",params:t})}function Y(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 E(t){return Object(r.a)({url:"work/moment",method:"get",params:t})}function q(t){return Object(r.a)({url:"/work/moment",method:"post",data:t})}function $(t){return Object(r.a)({url:"work/group_template_chat",method:"get",params:t})}function z(t){return Object(r.a)({url:"work/group_template_chat",method:"post",data:t})}function V(t){return Object(r.a)({url:"work/group_template_chat/".concat(t),method:"get"})}function A(t){return Object(r.a)({url:"work/group_template/sendMessage",method:"post",data:t})}function B(t){return Object(r.a)({url:"work/client/count",method:"post",data:t})}function G(t,e){return Object(r.a)({url:"work/group_template/memberList/".concat(t),method:"get",params:e})}function H(t,e){return Object(r.a)({url:"work/group_template/clientList/".concat(t),method:"get",params:e})}function J(t,e){return Object(r.a)({url:"work/group_template_chat/groupChatList/".concat(t),method:"get",params:e})}function N(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 U(t){return Object(r.a)({url:"work/client/batchLabel",method:"post",data:t})}function K(t){return Object(r.a)({url:"work/moment/".concat(t),method:"get"})}function Q(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})}}}]); |