(function(e){function t(t){for(var s,n,l=t[0],i=t[1],c=t[2],d=0,p=[];d>1&1?a("el-menu-item",{attrs:{index:"/CheckPhoneTask"}},[a("i",{staticClass:"el-icon-s-platform"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("筛号管理")])]):e._e(),e.user_info.user_group<2&&1&e.user_info.authority?a("el-menu-item",{attrs:{index:"/registerManager"}},[a("i",{staticClass:"el-icon-s-platform"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("注册管理")])]):e._e(),e.user_info.user_group<2&&e.user_info.authority>>2&1?a("el-menu-item",{attrs:{index:"/groupsManager"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("拉群管理")])]):e._e(),e.isShow()?a("el-menu-item",{attrs:{index:"/LoginPager"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("登录管理")])]):e._e(),e.user_info.user_group<1?a("el-menu-item",{attrs:{index:"/SendMessage"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("私信管理")])]):e._e(),a("el-menu-item",{attrs:{index:"/SettingManager"}},[a("i",{staticClass:"el-icon-s-tools"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统配置")])])],1)],1),e.show?a("el-menu",{ref:"menu",staticClass:"el-menu-vertical-demo",staticStyle:{height:"100%"},attrs:{"default-active":e.$route.path,collapse:e.collapse},on:{select:e.handleSelect}},[e.user_info.user_group<1?a("el-menu-item",{attrs:{index:"/index"}},[a("i",{staticClass:"el-icon-user-solid"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("账号管理")])]):e._e(),e.user_info.user_group<1?a("el-menu-item",{attrs:{index:"/NursingAccount"}},[a("i",{staticClass:"el-icon-user-solid"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("养号管理")])]):e._e(),e.user_info.authority>>1&1?a("el-menu-item",{attrs:{index:"/CheckPhoneTask"}},[a("i",{staticClass:"el-icon-s-platform"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("筛号管理")])]):e._e(),e.user_info.user_group<2&&1&e.user_info.authority?a("el-menu-item",{attrs:{index:"/registerManager"}},[a("i",{staticClass:"el-icon-s-platform"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("注册管理")])]):e._e(),e.user_info.user_group<2&&e.user_info.authority>>2&1?a("el-menu-item",{attrs:{index:"/groupsManager"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("拉群管理")])]):e._e(),e.isShow()?a("el-menu-item",{attrs:{index:"/LoginPager"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("登录管理")])]):e._e(),e.user_info.user_group<1?a("el-menu-item",{attrs:{index:"/SendMessage"}},[a("i",{staticClass:"el-icon-s-order"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("私信管理")])]):e._e(),a("el-menu-item",{attrs:{index:"/SettingManager"}},[a("i",{staticClass:"el-icon-s-tools"}),a("span",{attrs:{slot:"title"},slot:"title"},[e._v("系统配置")])])],1):e._e()],1)},N=[],I={name:"Aside",data:function(){return{collapse:!1,user_info:l.getUserInfo(),show:!0,drawer:!1}},mounted:function(){var e=this;x.$on("switch_menu",(function(t){e.drawer=t}))},methods:{showGroup:function(){return console.log("user_info",this.user_info),this.user_info.group_count>=0},isShow:function(){var e=window.localStorage.getItem("user-info");return!e||(e=JSON.parse(e),2!=e["user_group"])},handClose:function(){this.drawer=!1,x.$emit("switch_menu2",!1)},handleSelect:function(e){this.$router.push({path:e,params:{data:"query"}})},switch_menu:function(e){this.collapse=e,window.console.log(this.collapse)}},created:function(){var e=document.body.clientWidth;e<600&&(this.collapse=!0,this.show=!1)}},L=I,M=(a("3ac6"),Object(m["a"])(L,C,N,!1,null,"0735c0b2",null)),O=M.exports,R="/api",z=R+"/login",A=R+"/device_list",E=R+"/device_show_list",U=R+"/del_select_token",j=R+"/del_select_group_token",B=R+"/add_to_group_token",P=R+"/edit_password",F=R+"/download_user_list",J=R+"/refresh_user",W=R+"/refresh_all_user",H=R+"/get_award_info",G=R+"/activation_code",Y=R+"/update_user",V=R+"/sys/user/setRoles",q=R+"/add_tokens",K=R+"/add_sift_tokens",X=R+"/token_list",Z=R+"/groups_info_list",Q=R+"/groups_task_list",ee=R+"/register_task_list",te=R+"/register_task2_list",ae=R+"/set_register_task2_data",se=R+"/groups_list",oe=R+"/create_group_task",re=R+"/just_create_group_task",ne=R+"/create_nursing_account_task",le=R+"/create_register_task",ie=R+"/create_register_task2",ce=R+"/batch_create_register_task2",ue=R+"/group_task_log",de=R+"/group_task_thread_log",pe=R+"/register_task_log",_e=R+"/register_task2_log",he=R+"/group_task_customers",me=R+"/check_group_token",ge=R+"/check_group_all_token",fe=R+"/re_sync_group_token",be=R+"/re_sync_group_all_token",ve=R+"/stop_group_task",we=R+"/del_group_task",ye=R+"/delay_create_group",ke=R+"/check_blocked",xe=R+"/export_customer",Se=R+"/get_not_use_token_count",$e=R+"/just_create_group_task_log",De=R+"/nursing_account_task_log",Te=R+"/add_customers",Ce=R+"/get_admin_info",Ne=R+"/save_admin_info",Ie=R+"/upload_file",Le=R+"/create_sift_task",Me=R+"/del_sift",Oe=R+"/get_sift_task",Re=R+"/download_sift",ze=R+"/admin_list",Ae=R+"/add_admin",Ee=R+"/change_admin_password",Ue=R+"/change_admin_status",je=R+"/recharge",Be=R+"/del_admin",Pe=R+"/edit_admin_authority",Fe={components:{Header:T,Aside:O},created:function(){this.$http.post(Ce,{}).then((function(e){var t=e.data.data;t&&window.localStorage.setItem("user-info",JSON.stringify(t))}))}},Je=Fe,We=(a("9586"),Object(m["a"])(Je,v,w,!1,null,null,null)),He=We.exports,Ge=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"新增","close-on-click-modal":!1,visible:e.drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.drawer=t}}},[a("h1",{staticClass:"text-muted"},[e._v("请输入用户名/密码登录")]),a("div",{staticClass:"input-group m-b-1"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-user"},[e._v("主账号")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.main_account,expression:"user.main_account"}],staticClass:"form-control",attrs:{type:"text",placeholder:"主账号",disabled:"true"},domProps:{value:e.user.main_account},on:{input:function(t){t.target.composing||e.$set(e.user,"main_account",t.target.value)}}})]),a("div",{staticClass:"input-group m-b-1"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-user"},[e._v("账号")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.username,expression:"user.username"}],staticClass:"form-control",attrs:{type:"text",placeholder:"username"},domProps:{value:e.user.username},on:{input:function(t){t.target.composing||e.$set(e.user,"username",t.target.value)}}})]),a("div",{staticClass:"input-group m-b-2"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-lock"},[e._v("密码")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.password,expression:"user.password"}],staticClass:"form-control",attrs:{type:"text",placeholder:"password"},domProps:{value:e.user.password},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.user,"password",t.target.value)}}})]),a("div",{staticClass:"input-group m-b-1"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-user"},[e._v("邮箱")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.email,expression:"user.email"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱"},domProps:{value:e.user.email},on:{input:function(t){t.target.composing||e.$set(e.user,"email",t.target.value)}}})]),a("div",{staticClass:"input-group m-b-2"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-lock"},[e._v("邮箱密码")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.user.email_password,expression:"user.email_password"}],staticClass:"form-control",attrs:{type:"text",placeholder:"邮箱密码"},domProps:{value:e.user.email_password},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.user,"email_password",t.target.value)}}})]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.drawer=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.addUser}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{"close-on-click-modal":!1,title:"修改",visible:e.update_drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.update_drawer=t}}},[a("h1",{staticClass:"text-muted"},[e._v("请输入用户名/密码登录")]),a("el-input",{attrs:{type:"text",placeholder:"username",disabled:""},model:{value:e.update_user.username,callback:function(t){e.$set(e.update_user,"username",t)},expression:"update_user.username"}}),a("el-input",{staticStyle:{"margin-top":"10px"},attrs:{type:"text",placeholder:"password"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login.apply(null,arguments)}},model:{value:e.update_user.password,callback:function(t){e.$set(e.update_user,"password",t)},expression:"update_user.password"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.update_drawer=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.updateUser}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"消息","close-on-click-modal":!1,visible:e.add_list_user_drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.add_list_user_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.add_list_user_msg,callback:function(t){e.add_list_user_msg=t},expression:"add_list_user_msg"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.test}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"搜索","close-on-click-modal":!1,visible:e.activation_drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.activation_drawer=t}}},[a("el-divider"),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",shortcuts:e.shortcuts,size:e.small},model:{value:e.search_data,callback:function(t){e.search_data=t},expression:"search_data"}}),a("el-col",{staticStyle:{"margin-top":"10px","text-align":"center"}},[a("h",{staticStyle:{"text-align":"center"}},[e._v("更新日期")])],1),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",shortcuts:e.shortcuts,size:e.small},model:{value:e.search_update_date,callback:function(t){e.search_update_date=t},expression:"search_update_date"}}),a("el-select",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.search_type,callback:function(t){e.search_type=t},expression:"search_type"}},[a("el-option",{attrs:{value:"0",label:"未使用"}}),a("el-option",{attrs:{value:"1",label:"已使用"}}),a("el-option",{attrs:{value:"2",label:"风控账号"}}),a("el-option",{attrs:{value:"3",label:"登录失败"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.activation_drawer=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.loadData}},[e._v("搜 索")])],1)],1),a("imp-panel",[a("h3",{staticClass:"box-title",staticStyle:{width:"100%"},attrs:{slot:"header"},slot:"header"},[a("el-row",{staticStyle:{width:"100%"}},[a("el-col",{attrs:{xs:{span:24},lg:{span:14}}},[a("input",{ref:"filElem",staticClass:"upload-file",staticStyle:{display:"none"},attrs:{type:"file",id:"file",multiple:""},on:{change:e.add_list_user2}}),a("input",{ref:"filElem2",staticClass:"upload-file",staticStyle:{display:"none"},attrs:{type:"file",id:"file",multiple:""},on:{change:e.add_list_sift_user2}}),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.add_list_user()}}},[e._v("批量新增")]),a("h"),0==e.user_info.user_group?a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:function(t){return e.add_list_sift_user()}}},[e._v("筛选新增")]):e._e(),a("h"),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"},on:{click:function(t){return e.del_select_user()}}},[e._v("批量删除")]),a("h"),a("h"),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.activation_drawer=!0}}},[e._v("搜索")]),a("h")],1)],1)],1),a("div",[a("el-row",[a("el-col",[a("div",{staticStyle:{"border-radius":"4px"}},[e._v(" 已选择 "),a("h",{staticStyle:{color:"#108ee9"}},[e._v(e._s(this.select_num))]),e._v(" 项 "),a("el-link",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.clearSelect}},[e._v("清空")]),a("p",{staticStyle:{width:"100px",float:"right"}},[e._v(" 共"+e._s(0==e.token_type?this.tableData.pagination.total:this.sift_tableData.pagination.total)+"个账号 ")])],1)])],1),a("el-tabs",{staticClass:"demo-tabs",attrs:{type:"border-card"},on:{"tab-click":e.loadData},model:{value:e.token_type,callback:function(t){e.token_type=t},expression:"token_type"}},[a("el-tab-pane",{attrs:{label:"拉群账号",name:"0"}},[[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"table",staticStyle:{width:"100%"},attrs:{data:e.tableData.rows,border:"",id:"out-table","max-height":e.autoHeight.height,"highlight-current-row":""},on:{"selection-change":e.handleSelectionChange},nativeOn:{mousedown:function(t){return e.onMouseDown.apply(null,arguments)},mousemove:function(t){return e.onMouseMove.apply(null,arguments)},mouseup:function(t){return e.onMouseUp.apply(null,arguments)},mouseleave:function(t){return e.onMouseUp.apply(null,arguments)}}},[a("el-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("el-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"password",label:"密码",width:"130"}}),a("el-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("el-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("el-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])}),a("el-table-column",{attrs:{label:"操作",width:"285"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:-1==e.tableData.check_loading[t.row.id]?"danger":1==e.tableData.check_loading[t.row.id]?"success":"primary",loading:0==e.tableData.check_loading[t.row.id]},on:{click:function(a){return e.check_blocked(t.row)}}},[e._v(" "+e._s(void 0==e.tableData.check_loading[t.row.id]?"检测":0==e.tableData.check_loading[t.row.id]?"检测中":1==e.tableData.check_loading[t.row.id]?"正常":"失效")+" ")]),a("el-button",{attrs:{size:"small",type:"default"},on:{click:function(a){return e.refresh_user(t.$index,t.row)}}},[e._v("刷新 ")]),a("el-popover",{ref:"popover-"+t.$index,attrs:{placement:"bottom",trigger:"click"}},[a("p",[e._v("是否确定删除?")]),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return e.handleClose(t.$index)}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.handleDelete(t.$index,t.row)}}},[e._v("确定")])],1),a("el-button",{attrs:{slot:"reference",size:"small",type:"danger"},slot:"reference"},[e._v("删除 ")])],1)]}}])})],1),a("el-pagination",{attrs:{"current-page":e.tableData.pagination.pageNo,"page-sizes":[5,10,20,100,200,1e4],"page-size":e.tableData.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.tableData.pagination.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})]],2),a("el-tab-pane",{attrs:{label:"筛选账号",name:"1"}},[[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],ref:"sift_table",staticStyle:{width:"100%"},attrs:{id:"out-table",data:e.sift_tableData.rows,border:"","max-height":e.autoHeight.height},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("el-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"password",label:"密码",width:"130"}}),a("el-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("el-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("el-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("el-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("el-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-pagination",{attrs:{"current-page":e.sift_tableData.pagination.pageNo,"page-sizes":[5,10,20,100,200,1e4],"page-size":e.sift_tableData.pagination.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.sift_tableData.pagination.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})]],2)],1)],1)])],1)},Ye=[],Ve=a("53ca"),qe=a("1da1");a("96cf"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("498a"),a("fb6a"),a("99af"),a("00b4"),a("5319"),a("4d63"),a("c607"),a("2c3e");function Ke(e,t){/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));var a={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(var s in a)if(new RegExp("(".concat(s,")")).test(t)){var o=a[s]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?o:Xe(o))}return t}function Xe(e){return("00"+e).substr(e.length)}var Ze=parseInt(window.innerHeight),Qe={data:function(){return{user_info:l.getUserInfo(),user:{username:"",password:"",email:"",email_password:"",main_account:""},update_user:{username:"",password:""},currentRow:{},dialogVisible:!1,dialogLoading:!1,defaultProps:{children:"children",label:"name",id:"id"},roleTree:[],listLoading:!1,searchKey:"",device_num:"",search_type:"",search_data:"",search_update_date:"",token_type:"0",select_num:0,sub_table_select:[],min_star_num:null,max_star_num:null,dialogWidth:0,edit_password_text:"",edit_password_drawer:!1,windowHeight:Ze,autoHeight:{height:""},tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],check_loading:{}},sift_tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],check_loading:{}},drawer:!1,del_drawer:!1,action_drawer:!1,activation_drawer:!0,update_drawer:!1,add_list_user_drawer:!1,activation_codes:"",shortcuts:[{text:"上星期",value:function(){var e=new Date,t=new Date;return t.setTime(t.getTime()-6048e5),[t,e]}},{text:"上个月",value:function(){var e=new Date,t=new Date;return t.setTime(t.getTime()-2592e6),[t,e]}},{text:"最近三个月",value:function(){var e=new Date,t=new Date;return t.setTime(t.getTime()-7776e6),[t,e]}}],add_list_user_msg:"",direction:"rtl",isMouseDown:!1,startRowIndex:null,endRowIndex:null,selection:[]}},methods:{onMouseDown:function(e){if(0===e.button){this.isMouseDown=!0;var t=e.target.closest("tr");if(t){var a=parseInt(t.getAttribute("data-index"));this.startRowIndex=a,this.endRowIndex=a}}},onMouseMove:function(e){if(this.isMouseDown){var t=this.$refs.table,a=t.bodyWrapper,s=a.getBoundingClientRect(),o=a.querySelectorAll(".el-table__row"),r=this.startRowIndex,n=this.endRowIndex,l=0;while(l=i.top-s.top&&e.clientY<=i.bottom-s.top){var c=parseInt(o[l].getAttribute("data-index"));cn&&(n=c)}l++}if(r!==this.startRowIndex||n!==this.endRowIndex){this.startRowIndex=r,this.endRowIndex=n;for(var u=[],d=r;d<=n;d++)u.push(this.tableData[d]);this.selection=u,t.store.states.selection=u}}},onMouseUp:function(){this.isMouseDown&&(this.isMouseDown=!1,this.startRowIndex=null,this.endRowIndex=null)},formatDate2:function(e){if(0==e)return"";e*=1e3;var t=new Date(e);return Ke(t,"yyyy-MM-dd hh:mm")},getHeight:function(){this.autoHeight.height=Ze-110+"px"},addUser:function(){var e=this;this.$http.post(q,{data:JSON.stringify([this.user])}).then((function(t){var a=t.data;a["success"]?(e.$message({message:"操作成功",type:"success"}),e.drawer=!1,e.user.main_account="",e.loadData()):(e.$message.error(a["message"]),e.user.main_account="")}))},exportExcel:function(){fetch(F,{method:"POST",headers:{token:l.getSid()},responseType:"blob"}).then(function(){var e=Object(qe["a"])(regeneratorRuntime.mark((function e(t){var a,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.blob();case 2:a=e.sent,s=document.createElement("a"),a=new Blob([a],{type:"application/x-excel"}),console.log(a),s.style.display="none",s.href=URL.createObjectURL(a),s.download="用户信息.xlsx",document.body.appendChild(s),s.click(),document.body.removeChild(s);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e)}))},test:function(){this.add_list_user_drawer=!1,this.add_list_user_msg="",this.$refs.filElem.value="",this.loadData()},updateUser:function(){var e=this;this.$http.post(Y,this.update_user).then((function(t){e.update_drawer=!1,t.data.success?(e.$message({message:"修改成功",type:"success"}),e.loadData()):e.$message.error(t.data.message)}))},del_select_user:function(){var e=this,t=this.$refs.table.selection;0!=t.length?this.$confirm("此操作永久删除用户, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=new Array,s=0;s5)console.log("读取完成"),o.push({phone_num:"",name:"",mid:"",password:"",auth_key:"",access_token_v3:e[5],refresh_token:e[6],login_session_id:"",cc:e[4]});else if(t.isJSON(this.result.trim())){var r=JSON.parse(this.result.trim());if(console.log("load data",r),r["xLineAccess"])r["phoneNumber"]?o.push({phone_num:r["phoneNumber"],name:r["niceName"],mid:r["xLineAccess"].substring(0,33),password:"",auth_key:"",access_token_v3:r["xLineAccess"],refresh_token:"",login_session_id:"",cc:r["country"]}):r["PROFILE_PHONE"]&&o.push({phone_num:r["PROFILE_PHONE"],name:"",mid:r["xLineAccess"].substring(0,33),password:"",auth_key:r["authToken"],access_token_v3:r["xLineAccess"],refresh_token:"",login_session_id:"",cc:r["PROFILE_REGION"]});else if(r["tokenV3IssueResult"]){var n=r["tokenV3IssueResult"];o.push({phone_num:"",name:"",mid:r["mid"],password:"",auth_key:r["authToken"],access_token_v3:n["accessToken"],refresh_token:n["refreshToken"],login_session_id:"",cc:"us"})}else r["accessToken"]&&o.push({phone_num:"",name:"",mid:r["mid"],password:"",auth_key:r["authToken"],access_token_v3:r["accessToken"],refresh_token:r["refreshToken"],login_session_id:"",cc:r["cc"]})}else for(var l=this.result.trim().split("\n"),i=0;i5)console.log("load data","读取完成"),r.push({phone_num:"",name:"",mid:"",password:"",auth_key:"",access_token_v3:e[5],refresh_token:e[6],login_session_id:"",cc:e[4]});else if(t.isJSON(this.result.trim())){var n=JSON.parse(this.result.trim());if(console.log("load data",n),n["xLineAccess"])n["phoneNumber"]?r.push({phone_num:n["phoneNumber"],name:n["niceName"],mid:n["xLineAccess"].substring(0,33),password:"",auth_key:"",access_token_v3:n["xLineAccess"],refresh_token:"",login_session_id:"",cc:n["country"]}):n["PROFILE_PHONE"]&&r.push({phone_num:n["PROFILE_PHONE"],name:"",mid:n["xLineAccess"].substring(0,33),password:"",auth_key:n["authToken"],access_token_v3:n["xLineAccess"],refresh_token:"",login_session_id:"",cc:n["PROFILE_REGION"]});else if(n["tokenV3IssueResult"]){var l=n["tokenV3IssueResult"];r.push({phone_num:"",name:"",mid:n["mid"],password:"",auth_key:n["authToken"],access_token_v3:l["accessToken"],refresh_token:l["refreshToken"],login_session_id:"",cc:"us"})}else n["accessToken"]&&r.push({phone_num:"",name:"",mid:n["mid"],password:"",auth_key:n["authToken"],access_token_v3:n["accessToken"],refresh_token:n["refreshToken"],login_session_id:"",cc:n["cc"]})}else if(-1!=this.result.trim().indexOf("X-Line-Access")){console.log("load data","X-Line-Access");for(var i=this.result.trim().split("\n"),c=0;c1)this.$confirm("只有一个账号, 继续则会在改账号上新增"+a.length+"台设备。","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var s=new Array,o=0;ot.length?t.length:a.length,o=new Array,r=0;r "),e._v("> ")])],1),a("el-col",{attrs:{xs:{span:24},lg:{span:3}}},[a("el-input",{attrs:{placeholder:"延迟",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("延迟")]},proxy:!0},{key:"append",fn:function(){return[e._v("秒")]},proxy:!0}]),model:{value:e.delay_second,callback:function(t){e.delay_second=t},expression:"delay_second"}},[e._v("> "),e._v("> ")])],1),a("el-col",{attrs:{xs:{span:24},lg:{span:4,offset:1}}},[a("el-input",{attrs:{placeholder:"延迟",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("添加好友延迟")]},proxy:!0},{key:"append",fn:function(){return[e._v("秒")]},proxy:!0}]),model:{value:e.add_delay,callback:function(t){e.add_delay=t},expression:"add_delay"}},[e._v("> "),e._v("> ")])],1),e._e(),a("el-col",{attrs:{xs:{span:24},lg:{span:3,offset:1}}},[a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","margin-top":"10px"},attrs:{"inline-prompt":"","active-text":"延迟建群","inactive-text":"立即建群"},model:{value:e.delay_create_group,callback:function(t){e.delay_create_group=t},expression:"delay_create_group"}})],1),e.delay_create_group?a("el-col",{attrs:{xs:{span:24},lg:{span:3,offset:0}}},[a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","margin-top":"10px"},attrs:{"inline-prompt":"","active-text":"先建后拉","inactive-text":"建群拉人"},model:{value:e.delay_create_group2,callback:function(t){e.delay_create_group2=t},expression:"delay_create_group2"}})],1):e._e(),e.delay_create_group?e._e():a("el-col",{attrs:{xs:{span:24},lg:{span:3,offset:0}}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择"},model:{value:e.delay_create_group3,callback:function(t){e.delay_create_group3=t},expression:"delay_create_group3"}},[a("el-option",{attrs:{value:"0",label:"加人然后建群时拉人"}}),a("el-option",{attrs:{value:"-1",label:"建空群,加人然后拉人"}}),a("el-option",{attrs:{value:"-2",label:"加人,然后建空群,再拉人"}})],1)],1)],1),a("el-row",{staticStyle:{"margin-top":"10px"}},[a("el-col",{attrs:{xs:{span:24},lg:{span:3}}},[a("el-input",{attrs:{placeholder:"每次邀请几人",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("每次邀请")]},proxy:!0},{key:"append",fn:function(){return[e._v("人")]},proxy:!0}]),model:{value:e.invite_num,callback:function(t){e.invite_num=t},expression:"invite_num"}},[e._v("> "),e._v("> ")])],1),a("el-col",{attrs:{xs:{span:24},lg:{span:4,offset:1}}},[a("el-input",{attrs:{placeholder:"邀请之后延迟",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("每次邀请后延迟")]},proxy:!0},{key:"append",fn:function(){return[e._v("秒")]},proxy:!0}]),model:{value:e.invite_delay,callback:function(t){e.invite_delay=t},expression:"invite_delay"}},[e._v("> "),e._v("> ")])],1),e.create_type?a("el-col",{attrs:{xs:{span:24},lg:{span:5}}},[a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#1983f6","margin-top":"10px","margin-left":"10px"},attrs:{"inline-prompt":"true","active-text":"新账号拉业务员","inactive-text":"一起拉业务员"},model:{value:e.single_add_salesman,callback:function(t){e.single_add_salesman=t},expression:"single_add_salesman"}})],1):e._e(),a("el-col",{attrs:{xs:{span:24},lg:{span:2,offset:1}}},[a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949","margin-top":"10px"},attrs:{"inline-prompt":"","active-text":"退群","inactive-text":"不退群"},model:{value:e.leave,callback:function(t){e.leave=t},expression:"leave"}})],1)],1),e._e(),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-col",{attrs:{offset:"10"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.create_task()}}},[e._v("创建任务"+e._s(0==this.user_info.user_group?"":"(剩余"+this.user_info.group_count+"次)"))])],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-row",[a("el-col",{attrs:{xs:{span:24},lg:{span:4}}},[a("p",{staticStyle:{width:"200px",float:"left"}},[e._v(" 还有"),a("h",{staticStyle:{color:"#108ee9"}},[e._v(e._s(this.useTableData.rows.length))]),e._v("个账号未使用 ")],1)]),a("el-col",{attrs:{xs:{span:24},lg:{span:2}}},[a("h"),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.search_drawer=!0}}},[e._v("搜索")]),a("h")],1),e._e(),a("el-col",{attrs:{xs:{span:24},lg:{span:18}}},[a("p",{staticStyle:{float:"right"}},[e._v(" 共"+e._s(this.useTableData.rows.length)+"个账号 ")])])],1),a("el-tabs",{staticClass:"demo-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.token_tab,callback:function(t){e.token_tab=t},expression:"token_tab"}},[a("el-tab-pane",{attrs:{label:"建群账号",name:"group_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.useTableData.listLoading,expression:"useTableData.listLoading"}],ref:"use_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.useTableData.rows},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"},on:{click:e.del_group_token}},[e._v("删除")])]],2),a("el-tab-pane",{attrs:{label:"搜索账号",name:"search_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.searchTableData.listLoading,expression:"searchTableData.listLoading"}],ref:"search_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.searchTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.add_to_group_token}},[e._v("添加")])]],2)],1)],1)],1)},It=[],Lt=(a("4d90"),a("299f"));s["default"].component(Lt["UTable"].name,Lt["UTable"]),s["default"].component(Lt["UTableColumn"].name,Lt["UTableColumn"]);var Mt={name:"GroupsCreate",data:function(){return{user_info:l.getUserInfo(),tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[]},useTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},searchTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},token_tab:"group_token",create_time:"",add_model_info:"phone",leave:!1,add_model:!1,max_people:99,thread:6,max_groups:1,min_num:35,invite_num:9,invite_delay:3,how_many_people:9,delay_second:600,add_delay:.2,select_num:0,not_use_count:0,token_create_num:10,customer_count:-1,salesman:"",customer:"",groups_name:"",customer_drawer:!1,sync_salesman:!1,use_group_info:!1,use_korean_name:!1,customer_data:"",proxy_url:"",single_add_salesman:!1,delay_create_group:!1,delay_create_group2:!1,delay_create_group3:0,message_data:"",message_drawer:!1,use_customer:!1,create_type:!0,search_drawer:!1,search_data:"",search_update_date:"",search_type:"",device_type:"",password:"",socket:null,is_sign:!0}},methods:{handleSelectionChange:function(e){this.select_num=e.length},update3:function(){var e=this,t=this.customer_data.split("\n");this.$confirm("是否新增,共计"+t.length+"个客户","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){e.$http.post(Te,{list:t,delete:!1}).then((function(t){var a=t.data;e.customer_drawer=!1,a["success"]?(e.$message({message:a["message"],type:"success"}),e.get_not_use_count()):e.$message.error(a["message"])}))}))},update1:function(){this.$refs.filElem.dispatchEvent(new MouseEvent("click"))},exports_customer:function(){this.$http.post(xe,{},{timeout:6e4}).then((function(e){if(e.data.success){var t=e.data.data,a=t,s="";for(var o in a)s+=a[o]+"\r\n";var r=new Blob([s],{}),n=URL.createObjectURL(r),l=document.createElement("a");l.href=n,l.download="公共客户_合计("+a.length+"人).txt",l.click(),URL.revokeObjectURL(n)}}))},update2:function(){var e=this;this.add_list_user_drawer=!0;var t=new Promise((function(t){for(var a=e.$refs.filElem.files,s=0;s0,this.delay_create_group2=2==a["delay_create_group"],this.delay_create_group3=a["delay_create_group"]<=0?a["delay_create_group"]+"":"0",this.invite_num=a["invite_num"],this.invite_delay=a["invite_delay"],this.use_group_info=a["use_group_info"],this.add_model_info=a["add_model_info"]}if(0==this.proxy_url.length){var s=window.localStorage.getItem("user-info");s&&(s=JSON.parse(s),this.proxy_url=s["proxy_url"])}}},Ot=Mt,Rt=Object(m["a"])(Ot,Nt,It,!1,null,"8b0222b6",null),zt=Rt.exports,At=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"消息","close-on-click-modal":!1,visible:e.message_drawer,width:300,center:""},on:{"update:visible":function(t){e.message_drawer=t}}},[a("el-input",{attrs:{id:"textarea_id",type:"textarea",rows:18,readonly:"",placeholder:""},model:{value:e.message_data,callback:function(t){e.message_data=t},expression:"message_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.message_drawer=!1}}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"小号","close-on-click-modal":!1,visible:e.customer_drawer,width:300,center:""},on:{"update:visible":function(t){e.customer_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.customer_data,callback:function(t){e.customer_data=t},expression:"customer_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.customer_drawer=!1}}},[e._v("确 定")])],1)],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.rows,border:e.parentBorder,lazy:"","row-key":"task_id"},on:{"expand-change":e.load_task}},[a("el-table-column",{attrs:{type:"expand",width:"50"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{attrs:{m:"4"}},[t.row.delay_create_group&&t.row.delay_create_group_child.length>0?a("el-table",{attrs:{data:t.row.delay_create_group_child,"row-key":"group_name"}},[a("el-table-column",{attrs:{width:"50"}}),t.row.delay_create_group?a("el-table-column",{staticStyle:{"margin-left":"100px"},attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-table",{attrs:{data:t.row.sub_tasks,"max-height":"400"}},[a("el-table-column",{attrs:{width:"150"}}),a("el-table-column",{attrs:{label:"同步人数",prop:"index"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.customer_mid.length)+"人")])]}}],null,!0)}),a("el-table-column",{attrs:{label:"账号是否存活",prop:"phone"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(null!=t.row.token_obj?"存活":"未存活"))])]}}],null,!0)})],1)]}}],null,!0)}):e._e(),a("el-table-column",{attrs:{label:"未建群群名称",prop:"group_name"}}),a("el-table-column",{attrs:{label:"客户人数",prop:"group_people"}}),a("el-table-column",{attrs:{label:"是否建群",prop:"group_people"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(null==t.row.group_info?"未建群":"已建群")+" ")]}}],null,!0)}),a("el-table-column",{attrs:{label:"操作",prop:"progress"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.checkAllToken(t.row,t.row.task_id)}}},[e._v("一键检测 ")]),a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.re_sync_all(t.row,t.row.task_id)}}},[e._v("一键同步 ")])]},proxy:!0},{key:"default",fn:function(s){return[a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.checkToken(t.row,s.row.group_name,t.row.task_id,s.row.is_check)}}},[e._v(e._s(s.row.is_check?"检测中":"检测")+" ")]),a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.re_sync(t.row,s.row.group_name,t.row.task_id,s.row.is_re_sync)}}},[e._v(e._s(s.row.is_re_sync?"同步中":"重新同步")+" ")])]}}],null,!0)})],1):e._e(),t.row.status?a("el-table",{attrs:{data:t.row.running_thread,"row-key":"group_name"},on:{"expand-change":e.load_thread_log}},[a("el-table-column",{attrs:{width:"50"}}),a("el-table-column",{staticStyle:{"margin-left":"100px"},attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-input",{attrs:{id:"thread_message",type:"textarea",rows:18,readonly:"",placeholder:""},model:{value:e.tableData.thread_log[t.row.thread_name],callback:function(a){e.$set(e.tableData.thread_log,t.row.thread_name,a)},expression:"tableData.thread_log[_props.row.thread_name]"}})]}}],null,!0)}),a("el-table-column",{attrs:{label:"线程名",prop:"thread_name"}}),a("el-table-column",{attrs:{label:"群名称",prop:"group_name"}}),a("el-table-column",{attrs:{label:"剩余客户",prop:"thread_surplus"}}),a("el-table-column",{attrs:{label:"线程状态",prop:"thread_status"}})],1):e._e(),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:!e.tableData.data_Detail[t.row.task_id],expression:"!tableData.data_Detail[props.row.task_id]"}],attrs:{data:e.tableData.data_Detail[t.row.task_id]}},[a("el-table-column",{attrs:{width:"50"}}),a("el-table-column",{staticStyle:{"margin-left":"100px"},attrs:{type:"expand"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-table",{attrs:{data:e.row.child,"max-height":"400"}},[a("el-table-column",{attrs:{width:"150"}}),a("el-table-column",{attrs:{label:"名称",prop:"name"}}),a("el-table-column",{attrs:{label:"手机号",prop:"phone"}})],1)]}}],null,!0)}),a("el-table-column",{attrs:{label:"群名称",prop:"group_name"}}),a("el-table-column",{attrs:{label:"群人数",prop:"people_count"}}),a("el-table-column",{attrs:{label:"实际人数",prop:"real_people_count"}}),a("el-table-column",{attrs:{label:"mid",prop:"mid"}})],1)],1)]}}])}),a("el-table-column",{attrs:{label:"任务ID",prop:"task_id",width:"80"}}),a("el-table-column",{attrs:{label:"创建时间",prop:"create_time"}}),a("el-table-column",{attrs:{label:"最后运行时间",prop:"last_time"}}),a("el-table-column",{attrs:{label:"群名称",prop:"group_name"}}),a("el-table-column",{attrs:{label:"创建完离群",prop:"leave_group",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.leave_group?"不离群":"离群")+" ")]}}])}),a("el-table-column",{attrs:{label:"添加好友类型",prop:"add_type",width:"110"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.add_type?"搜索好友":"同步好友")+" ")]}}])}),a("el-table-column",{attrs:{label:"每个群最大人数",prop:"max_people",width:"120"}}),a("el-table-column",{attrs:{label:"状态",prop:"status",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(100==t.row.progress?t.row.delay_create_group?t.row.delay_create_group_info?"建群中":"等待建群":"完成":t.row.status?"运行中":"已停止")+" ")]}}])}),a("el-table-column",{attrs:{label:"进度",prop:"progress"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-progress",{attrs:{percentage:e.row.delay_create_group_info?parseFloat(e.row.delay_create_group_info.finish/e.row.delay_create_group_info.count*100).toFixed(2):e.row.progress}})]}}])}),a("el-table-column",{attrs:{label:"进度",prop:"progress",width:"300"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-button",{attrs:{round:"",type:"primary",icon:"el-icon-refresh-right"},on:{click:e.loadData}},[e._v("刷新 ")])]},proxy:!0},{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"small",type:"default"},on:{click:function(a){t.row.delay_create_group?t.row.delay_create_group_info?e.alert("不能重复建群"):e.create_group(t.row.task_id):e.export_task_info(t.row,t.row.task_id)}}},[e._v(e._s(t.row.delay_create_group?t.row.delay_create_group_info?"建群中":"建群":"导出")+" ")]),a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.show_log_message(t.row,t.row.task_id)}}},[e._v("日志 ")]),a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.show_log_customer(t.row,t.row.task_id)}}},[e._v("小号 ")]),a("el-button",{attrs:{size:"small",type:"default",icon:"Message"},on:{click:function(a){return e.stop_task(t.row,t.row.task_id)}}},[e._v(e._s(t.row.status?"停止":"删除")+" ")])]}}])})],1)],1)},Et=[],Ut=a("c4e3"),jt=a.n(Ut),Bt={name:"GroupsTask",data:function(){return{customer_drawer:!1,message_drawer:!1,listLoading:!1,message_data:"",customer_data:"",task_id:"",time_:null,interval_:null,tableData:{pagination:{total:0,pageNo:1,pageSize:100,parentId:0},data_Detail:{},data_time_:{},thread_log:{},rows:[]}}},methods:{show_log_customer:function(e,t){var a=this;e.status?this.$message.error({message:"不能查看运行中的未使用小号"}):(this.customer_data="",this.$http.post(he,{task_id:t}).then((function(e){"没有剩余小号"!=e.data.data?(a.customer_data="还剩余"+(e.data.data.split("\n").length-1)+"个小号\r\n",a.customer_data+=e.data.data):a.customer_data=e.data.data,a.customer_drawer=!0})))},checkToken:function(e,t,a,s){var o=this;e.status||s?this.$message.error({message:"不能检测运行中的任务"}):this.$http.post(me,{task_id:a,name:t}).then((function(e){e.data.success?(o.$message({message:"失效了"+e.data.fail_count+"个账号",type:"success"}),o.loadData()):o.$message.error({message:"账号失效"})}))},checkAllToken:function(e,t){var a=this;e.status?this.$message.error({message:"不能检测运行中的任务"}):this.$http.post(ge,{task_id:t}).then((function(e){e.data.success?(a.$message({message:"已提交"+e.data.re_sync_count+"个检测任务",type:"success"}),a.loadData()):a.$message.error({message:"请求失败"})}))},re_sync:function(e,t,a,s){var o=this;e.status||s?this.$message.error({message:"不能检测运行中的任务"}):this.$http.post(fe,{task_id:a,name:t}).then((function(e){e.data.success?(o.$message({message:"已重新同步"+e.data.re_sync_count+"个",type:"success"}),o.loadData()):o.$message.error({message:"同步失败"})}))},re_sync_all:function(e,t){var a=this;e.status?this.$message.error({message:"不能检测运行中的任务"}):this.$http.post(be,{task_id:t}).then((function(e){e.data.success?(a.$message({message:"已重新同步"+e.data.re_sync_count+"个",type:"success"}),a.loadData()):a.$message.error({message:"同步失败"})}))},stop_task:function(e,t){var a=this;e.status?this.$http.post(ve,{task_id:t}).then((function(e){e.data.success?a.$message({message:"停止成功",type:"success"}):a.$message.error({message:"停止失败"})})):this.$confirm("是否删除任务","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){a.$http.post(we,{task_id:t}).then((function(e){e.data.success?(a.$message({message:"删除成功",type:"success"}),a.loadData()):a.$message.error({message:"删除失败"})}))}))},create_group:function(e){var t=this;this.$confirm("此操作将会建群, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.$http.post(ye,{task_id:e}).then((function(e){e.data.success?(t.$message({message:"请求成功",type:"success"}),t.loadData()):t.$message.error({message:"请求失败"})}))}))},export_task_info:function(e,t){var a=this;if(e.status)this.$message.error({message:"不能导出运行中的任务"});else{if(this.message_data="",e.details){for(var s in e.details){var o=e.details[s];for(var r in console.log(o),this.message_data+="群名称:"+o.group_name+"\n",this.message_data+="群人数:"+o.real_people_count+"\n成员:\n",o.child){var n=o.child[r];this.message_data+=n.phone+"\t"+n.name+"\n"}this.message_data+="\n---------------------------------------------------------------------\n"}this.message_drawer=!0}else this.$http.post(se,{task_id:e.task_id}).then((function(t){a.listLoading=!1,e.details=t.data.list;var s=new jt.a,o="",r=0;for(var n in e.details){var l=e.details[n];console.log(l);var i="群名称:"+l.group_name+"\r\n";for(var c in i+="群链接: https://line.me/R/ti/g/"+l.group_ticket+"\r\n",i+="群人数:"+l.real_people_count+"\r\n",i+="时间:"+l.last_time+"\r\n群成员:\r\n",l.child){var u=l.child[c];i+=u.phone+"\t"+u.name+"\r\n",r+=1}i+="\r\n---------------------------------------------------------------------\r\n",o+=i,s.file(l.group_name+"_"+l.child.length+".txt",i)}s.file("合计("+e.details.length+"群)("+r+"人).txt",o),s.generateAsync({type:"blob"}).then((function(t){var a=t,s=new Blob([a],{type:"application/zip"}),o=URL.createObjectURL(s),n=document.createElement("a");n.href=o,n.download=e.group_name+"_合计("+e.details.length+"群)("+r+"人).zip",n.click(),URL.revokeObjectURL(o)}))}));console.log(t)}},show_log_message:function(e,t){var a=this,s=this;this.time_&&clearInterval(this.time_),s.message_drawer=!0,s.message_data="",this.$http.post(ue,{task_id:t}).then((function(e){s.message_data=e.data.data,a.$nextTick((function(){setTimeout((function(){var e=document.getElementById("textarea_id");e.scrollTop=e.scrollHeight}),13)}))})),e.status&&(this.time_=setInterval((function(){s.message_drawer?a.$http.post(ue,{task_id:t}).then((function(e){s.message_data=e.data.data,a.$nextTick((function(){setTimeout((function(){var e=document.getElementById("textarea_id");e.scrollTop=e.scrollHeight}),13)}))})):clearInterval(s.time_)}),2e3))},loadData:function(){var e=this;this.listLoading=!0,this.$http.post(Q+"?limit=100",{limit:100}).then((function(t){e.listLoading=!1,e.tableData.rows=t.data.list,e.tableData.pagination.total=t.data.total}))},load_thread_log:function(e,t){var a=this;console.log("load_thread_log",t.length);var s=e.thread_name;if(t.length>0){if(!this.tableData.data_time_[s]){var o=this;this.tableData.data_time_[s]=setInterval((function(){o.tableData.rows[0].status||clearInterval(o.tableData.data_time_[s]),a.$http.post(de,{task_id:e.task_id,thread_name:e.thread_name}).then((function(e){a.tableData.thread_log[s]=e.data.data;var t=document.getElementById("thread_message");t&&(t.scrollTop=t.scrollHeight)}))}),2e3)}}else this.tableData.data_time_[s]&&clearInterval(this.tableData.data_time_[s])},load_task:function(e){var t=this;this.tableData.data_Detail[e.task_id]||this.$http.post(se,{task_id:e.task_id}).then((function(a){t.listLoading=!1,t.tableData.data_Detail[e.task_id]=a.data.list,e.details=a.data.list,t.tableData.rows=t.tableData.rows.slice(0)}))}},created:function(){var e=this;this.loadData();var t=this;this.interval_=setInterval((function(){t.$http.post(Q+"?limit=100",{limit:100},{limit:100}).then((function(a){t.listLoading=!1,t.tableData.rows=a.data.list,t.tableData.pagination.total=a.data.total,e.$nextTick((function(){setTimeout((function(){var e=document.getElementById("thread_message");e&&(e.scrollTop=e.scrollHeight)}),30)}))}))}),15e3)}},Pt=Bt,Ft=Object(m["a"])(Pt,At,Et,!1,null,"bb7bfd1a",null),Jt=Ft.exports,Wt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"消息","close-on-click-modal":!1,visible:e.message_drawer,width:300,center:""},on:{"update:visible":function(t){e.message_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.message_data,callback:function(t){e.message_data=t},expression:"message_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.message_drawer=!1}}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"新增公共客户","close-on-click-modal":!1,visible:e.customer_drawer,width:300,center:""},on:{"update:visible":function(t){e.customer_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:10,placeholder:""},model:{value:e.customer_data,callback:function(t){e.customer_data=t},expression:"customer_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.update3}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"搜索","close-on-click-modal":!1,visible:e.search_drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.search_drawer=t}}},[a("el-divider"),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",size:e.small},model:{value:e.search_data,callback:function(t){e.search_data=t},expression:"search_data"}}),a("el-col",{staticStyle:{"margin-top":"10px","text-align":"center"}},[a("h",{staticStyle:{"text-align":"center"}},[e._v("更新日期")])],1),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",shortcuts:e.shortcuts,size:e.small},model:{value:e.search_update_date,callback:function(t){e.search_update_date=t},expression:"search_update_date"}}),a("el-select",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.search_type,callback:function(t){e.search_type=t},expression:"search_type"}},[a("el-option",{attrs:{value:"0",label:"未使用"}}),a("el-option",{attrs:{value:"1",label:"已使用"}}),a("el-option",{attrs:{value:"2",label:"风控账号"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.search_drawer=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.searchData}},[e._v("搜 索")])],1)],1),a("el-row",[a("el-col",{staticStyle:{"margin-top":"10px","margin-bottom":"10px"},attrs:{lg:{span:11},xs:{span:24}}},[a("h1",[e._v("群设置")]),a("el-input",{attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("每个账号建")]},proxy:!0},{key:"append",fn:function(){return[e._v("个群")]},proxy:!0}]),model:{value:e.group_num,callback:function(t){e.group_num=t},expression:"group_num"}},[e._v("> "),e._v("> ")]),a("el-input",{staticStyle:{"margin-top":"10px"},attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"append",fn:function(){return[e._v("个线程")]},proxy:!0}]),model:{value:e.group_thread,callback:function(t){e.group_thread=t},expression:"group_thread"}},[e._v("> ")])],1),a("el-col",{staticStyle:{"margin-top":"10px","margin-bottom":"10px"},attrs:{lg:{span:11,offset:1},xs:{span:24}}},[a("h1",[e._v("建群日志")]),a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.just_create_group_task_log,callback:function(t){e.just_create_group_task_log=t},expression:"just_create_group_task_log"}})],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-col",{attrs:{offset:"10"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.create_task()}}},[e._v("创建任务"+e._s(0==this.user_info.user_group?"":"(剩余"+this.user_info.group_count+"次)"))])],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-row",[a("el-col",{attrs:{xs:{span:24},lg:{span:4}}},[a("p",{staticStyle:{width:"200px",float:"left"}},[e._v(" 还有"),a("h",{staticStyle:{color:"#108ee9"}},[e._v(e._s(this.useTableData.rows.length))]),e._v("个账号未使用 ")],1)]),a("el-col",{attrs:{xs:{span:24},lg:{span:2}}},[a("h"),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.search_drawer=!0}}},[e._v("搜索")]),a("h")],1),e._e(),a("el-col",{attrs:{xs:{span:24},lg:{span:18}}},[a("p",{staticStyle:{float:"right"}},[e._v(" 共"+e._s("group_list"==e.token_tab?this.groupInfos.rows.length:this.useTableData.rows.length)+"个"+e._s("group_list"==e.token_tab?"群":"账号")+" ")])])],1),a("el-tabs",{staticClass:"demo-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.token_tab,callback:function(t){e.token_tab=t},expression:"token_tab"}},[a("el-tab-pane",{attrs:{label:"建群账号",name:"group_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.useTableData.listLoading,expression:"useTableData.listLoading"}],ref:"use_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.useTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"},on:{click:e.del_group_token}},[e._v("删除")])]],2),a("el-tab-pane",{attrs:{label:"搜索账号",name:"search_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.searchTableData.listLoading,expression:"searchTableData.listLoading"}],ref:"search_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.searchTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.add_to_group_token}},[e._v("添加")])]],2),a("el-tab-pane",{attrs:{label:"已建群",name:"group_list"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.groupInfos.listLoading,expression:"groupInfos.listLoading"}],ref:"use_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.groupInfos.rows,border:""}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"group_name",label:"群名称",width:"130"}}),a("u-table-column",{attrs:{prop:"group_ticket",label:"邀请码"}}),a("u-table-column",{attrs:{prop:"group_mid",label:"mid"}}),a("u-table-column",{attrs:{prop:"创建时间",label:"create_time"}})],1)]],2)],1)],1)],1)},Ht=[],Gt={name:"GroupsJustCreate",data:function(){return{user_info:l.getUserInfo(),tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[]},useTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},searchTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},groupInfos:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},group_thread:1,group_num:1,customer_drawer:!1,sync_salesman:!1,token_tab:"group_token",customer_data:"",just_create_group_task_log:"",proxy_url:"",single_add_salesman:!1,message_data:"",message_drawer:!1,use_customer:!1,create_type:!0,search_drawer:!1,search_data:"",search_update_date:"",search_type:"",password:"",socket:null,is_sign:!0}},methods:{handleSelectionChange:function(e){this.select_num=e.length},update3:function(){var e=this,t=this.customer_data.split("\n");this.$confirm("是否新增,共计"+t.length+"个客户","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){e.$http.post(Te,{list:t,delete:!1}).then((function(t){var a=t.data;e.customer_drawer=!1,a["success"]?(e.$message({message:a["message"],type:"success"}),e.get_not_use_count()):e.$message.error(a["message"])}))}))},update1:function(){this.$refs.filElem.dispatchEvent(new MouseEvent("click"))},exports_customer:function(){this.$http.post(xe,{},{timeout:6e4}).then((function(e){if(e.data.success){var t=e.data.data,a=t,s="";for(var o in a)s+=a[o]+"\r\n";var r=new Blob([s],{}),n=URL.createObjectURL(r),l=document.createElement("a");l.href=n,l.download="公共客户_合计("+a.length+"人).txt",l.click(),URL.revokeObjectURL(n)}}))},update2:function(){var e=this;this.add_list_user_drawer=!0;var t=new Promise((function(t){for(var a=e.$refs.filElem.files,s=0;s>2&1?t.row.group_count+"":t.row.group_count+"(停用)")+" ")]}}])}),a("el-table-column",{attrs:{prop:"group_success",label:"拉群成功",width:"80"}}),a("el-table-column",{attrs:{prop:"group_fail",label:"拉群失败",width:"80"}}),a("el-table-column",{attrs:{prop:"sift_count",label:"剩余筛选",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.authority>>1&1?t.row.sift_count+"":t.row.sift_count+"(停用)")+" ")]}}])}),a("el-table-column",{attrs:{prop:"sift_success",label:"筛选成功",width:"80"}}),a("el-table-column",{attrs:{prop:"sift_fail",label:"筛选失败",width:"80"}}),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"正常":"停用")+" ")]}}])}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{ref:"popover-"+t.$index,attrs:{placement:"bottom",trigger:"click"}},[a("p",[e._v("是否"+e._s(0==t.row.status?"停用":"启用")+"?")]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.changeStatus(t.$index,t.row)}}},[e._v("确定")])],1),a("el-button",{attrs:{slot:"reference",size:"small",type:"danger"},slot:"reference"},[e._v(" "+e._s(0==t.row.status?"停用":"启用")+" ")])],1),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"default"},on:{click:function(a){return e.showAuthority(t.$index,t.row)}}},[e._v("编辑 ")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"default"},on:{click:function(a){return e.showRecharge(t.$index,t.row)}}},[e._v("充值 ")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"small",type:"default"},on:{click:function(a){return e.showChangePassword(t.$index,t.row)}}},[e._v("更改密码 ")]),a("el-popover",{ref:"popover-"+t.$index,staticStyle:{"margin-left":"10px"},attrs:{placement:"bottom",trigger:"click"}},[a("p",[e._v("是否删除?")]),a("div",{staticStyle:{"text-align":"center",margin:"0"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.delAdmin(t.$index,t.row)}}},[e._v("确定")])],1),a("el-button",{attrs:{slot:"reference",size:"small",type:"danger"},slot:"reference"},[e._v(" 删除 ")])],1)]}}])})],1)],1)],1)],1)},ta=[],aa={data:function(){return{proxy_url:"",phone_url:"",sms_url:"",dialogWidth:0,edit_admin:{},listLoading:!1,change_password_drawer:!1,edit_authority:!1,edit_recharge:!1,add_user_drawer:!1,tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],check_loading:{}},user:{id:"",superior:"1",username:"",password:""}}},methods:{loadData:function(){var e=this;this.listLoading=!0,this.$http.post(ze,{limit:this.tableData.pagination.pageSize,order_id:this.searchKey,start_time:null==this.start_time?"":this.start_time[0],end_time:null==this.start_time?"":this.start_time[1],pager:this.tableData.pagination.pageNo}).then((function(t){e.listLoading=!1,null!=t&&(window.console.log("成功"),window.console.log(t.data),e.tableData.rows=t.data.list,e.tableData.pagination.total=t.data.total)}))},handleClose:function(e){this.$refs["popover-".concat(e)].doClose()},addUser:function(){var e=this;this.listLoading=!0,this.$http.post(Ae,this.user).then((function(t){e.add_user_drawer=!1,e.listLoading=!1,null!=t&&(t.data.success?(e.$message({message:"添加成功",type:"success"}),e.loadData()):e.$message.error(t.data.message))}))},change_password:function(){var e=this;this.listLoading=!0,this.$http.post(Ee,this.user).then((function(t){e.add_user_drawer=!1,e.listLoading=!1,null!=t&&(t.data.success?(e.$message({message:"修改成功",type:"success"}),e.change_password_drawer=!1,e.loadData()):e.$message.error(t.data.message))}))},changeStatus:function(e,t){var a=this;this.listLoading=!0,this.$http.post(Ue,t).then((function(e){null!=e&&(e.data.success?(a.$message({message:"操作成功",type:"success"}),a.loadData()):a.$message.error(e.data.message))}))},delAdmin:function(e,t){var a=this;this.listLoading=!0,this.$http.post(Be,t).then((function(e){null!=e&&(e.data.success?(a.$message({message:"操作成功",type:"success"}),a.loadData()):a.$message.error(e.data.message))}))},recharge:function(){var e=this;this.listLoading=!0,this.$http.post(je,{sift_count:this.edit_admin.sift_count,register_count:this.edit_admin.register_count,group_count:this.edit_admin.group_count,id:this.edit_admin.id}).then((function(t){null!=t&&(t.data.success?(e.edit_recharge=!1,e.$message({message:t.data.message,type:"success"}),e.loadData(),e.loadUserInfo()):e.$message.error(t.data.message))}))},loadUserInfo:function(){var e=this;this.$http.post(Ce,{}).then((function(t){var a=t.data.data;a&&(console.log("user-info",a),e.sms_url=a["get_sms_url"],e.phone_url=a["get_phone_url"],e.proxy_url=a["proxy_url"],e.group_create_count=a.group_create_count,l.setUserInfo(a))}))},showAuthority:function(e,t){this.edit_admin={register_enable:(1&t.authority)>0,sift_enable:(t.authority>>1&1)>0,group_enable:(t.authority>>2&1)>0,id:t.id,user_group:t.user_group},this.edit_authority=!0},showRecharge:function(e,t){this.edit_admin={user_group:t.user_group,register_count:0,sift_count:0,group_count:0,id:t.id},this.edit_recharge=!0},showChangePassword:function(e,t){this.user.username=t.username,this.user.id=t.id,this.change_password_drawer=!0},editAuthority:function(){var e=this;this.listLoading=!0,this.$http.post(Pe,this.edit_admin).then((function(t){e.edit_authority=!1,e.listLoading=!1,null!=t&&(t.data.success?(e.$message({message:"操作成功",type:"success"}),e.loadData()):e.$message.error(t.data.message))}))},setDialogWidth:function(){var e=document.body.clientWidth,t=600;this.dialogWidth=e0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"},on:{click:e.del_group_token}},[e._v("删除")])]],2),a("el-tab-pane",{attrs:{label:"搜索账号",name:"search_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.searchTableData.listLoading,expression:"searchTableData.listLoading"}],ref:"search_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.searchTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.add_to_group_token}},[e._v("添加")])]],2),a("el-tab-pane",{attrs:{label:"养号日志",name:"nursing_task"}},[[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.nursing_message,callback:function(t){e.nursing_message=t},expression:"nursing_message"}})]],2)],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-col",{staticStyle:{"text-align":"center"}},[a("el-input",{attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("添加")]},proxy:!0},{key:"append",fn:function(){return[e._v("个好友")]},proxy:!0}]),model:{value:e.add_friend_num,callback:function(t){e.add_friend_num=t},expression:"add_friend_num"}},[e._v("> "),e._v("> ")]),a("el-input",{attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("创建")]},proxy:!0},{key:"append",fn:function(){return[e._v("个线程")]},proxy:!0}]),model:{value:e.group_thread,callback:function(t){e.group_thread=t},expression:"group_thread"}},[e._v("> "),e._v("> ")]),a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"},attrs:{"inline-prompt":"","active-text":"同步","inactive-text":"搜索"},model:{value:e.sync,callback:function(t){e.sync=t},expression:"sync"}})],1),a("el-col",{staticStyle:{"margin-top":"10px","text-align":"center"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.create_task()}}},[e._v("创建任务")])],1)],1)],1)},ca=[],ua={name:"NursingAccount",data:function(){return{user_info:l.getUserInfo(),tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[]},useTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},searchTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},nursingTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},group_thread:1,add_friend_num:1,group_num:1,customer_drawer:!1,sync:!1,sync_salesman:!1,token_tab:"group_token",customer_data:"",proxy_url:"",single_add_salesman:!1,message_data:"",nursing_message:"",message_drawer:!1,use_customer:!1,create_type:!0,search_drawer:!1,search_data:"",search_update_date:"",search_type:"",password:"",socket:null,is_sign:!0}},methods:{handleSelectionChange:function(e){this.select_num=e.length},update3:function(){var e=this,t=this.customer_data.split("\n");this.$confirm("是否新增,共计"+t.length+"个客户","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){e.$http.post(Te,{list:t,delete:!1}).then((function(t){var a=t.data;e.customer_drawer=!1,a["success"]?e.$message({message:a["message"],type:"success"}):e.$message.error(a["message"])}))}))},update1:function(){this.$refs.filElem.dispatchEvent(new MouseEvent("click"))},loadData:function(e){var t=this;console.log(e),this.listLoading=!0,this.useTableData.listLoading=!0,this.$http.post(X,{create_time:"",status:-1,search_type:-1,in_group:3,limit:1e7,page:1}).then((function(e){t.useTableData.listLoading=!1,t.useTableData.rows=e.data.list}))},searchData:function(){var e=this;this.search_drawer=!1,this.searchTableData.listLoading=!0;var t="";try{var a=this.create_time.getFullYear(),s=String(this.create_time.getMonth()+1).padStart(2,"0"),o=String(this.create_time.getDate()).padStart(2,"0");t="".concat(a,"-").concat(s,"-").concat(o)}catch(m){console.log(m)}var r=void 0,n=void 0,l=void 0,i=void 0;if(2==this.search_data.length){r=this.search_data[0];var c=r.getFullYear(),u=("0"+(r.getMonth()+1)).slice(-2),d=("0"+r.getDate()).slice(-2);r="".concat(c,"-").concat(u,"-").concat(d),n=this.search_data[1],c=n.getFullYear(),u=("0"+(n.getMonth()+1)).slice(-2),d=("0"+n.getDate()).slice(-2),n="".concat(c,"-").concat(u,"-").concat(d)}if(2==this.search_update_date.length){l=this.search_update_date[0];var p=l.getFullYear(),_=("0"+(l.getMonth()+1)).slice(-2),h=("0"+l.getDate()).slice(-2);l="".concat(p,"-").concat(_,"-").concat(h),i=this.search_update_date[1],p=i.getFullYear(),_=("0"+(i.getMonth()+1)).slice(-2),h=("0"+i.getDate()).slice(-2),i="".concat(p,"-").concat(_,"-").concat(h)}this.$http.post(X,{create_time:t,status:-1,in_group:0,limit:300,search_type:this.search_type,search_date:[r,n],search_update_date:[l,i],page:1}).then((function(t){e.searchTableData.listLoading=!1,e.searchTableData.rows=t.data.list}))},get_not_use_count:function(){var e=this;this.$http.post(Se,{}).then((function(t){e.not_use_count=t.data.count,e.customer_count=t.data.customer_count}))},get_just_create_task_log:function(){var e=this;this.$http.post(De,{}).then((function(t){e.nursing_message=t.data.message}))},create_task:function(){var e=this;0!=this.group_thread?0!=this.group_num?this.$confirm("是否创建养号任务","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){var t={thread_num:e.group_thread,sync:e.sync,add_friend_num:e.add_friend_num};console.log(t),e.$http.post(ne,t).then((function(t){t.data.success?(e.$message({message:"创建成功",type:"success"}),e.message_data="",e.loadUserInfo(),e.$router.go(0)):e.$message.error(t.data.message)}))})):this.$message.error("建群数不能为0"):this.$message.error("线程数不能为0")},add_to_group_token:function(){var e=this,t=this.$refs.search_table.getCheckboxRecords();0!=t.length?this.$confirm("是否添加到建群token中?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=new Array,s=0;s0?a("h3",[e._v("共"+e._s(e.lines)+"条数据")]):e._e(),a("el-button",{attrs:{type:"primary"},on:{click:e.create_sift_task}},[e._v("确 定")])],1)],2),a("el-button",{on:{click:e.show_create_sift_task}},[e._v(" 创建任务"+e._s(0==this.user_info.user_group?"":"(剩余"+this.user_info.sift_count+"条)")+" ")]),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],staticStyle:{width:"100%"},attrs:{data:e.tableData.rows}},[a("el-table-column",{attrs:{label:"创建时间",prop:"create_time"}}),a("el-table-column",{attrs:{label:"名称",prop:"task_name"}}),a("el-table-column",{attrs:{label:"所有数据",prop:"leave_group"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.all_count)+" ")]}}])}),a("el-table-column",{attrs:{label:"完成数据",prop:"leave_group"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.current_count)+" ")]}}])}),a("el-table-column",{attrs:{label:"筛选后数据",prop:"leave_group"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(t.row.true_count)+" ")]}}])}),a("el-table-column",{attrs:{label:"进度",prop:"progress"},scopedSlots:e._u([{key:"default",fn:function(e){return[a("el-progress",{attrs:{percentage:e.row.progress,height:20}})]}}])}),a("el-table-column",{attrs:{label:"状态",prop:"status",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-popover",{attrs:{placement:"top-start",title:"提示",width:200,trigger:"hover",content:"已经扣除的次数不会消失,请等待处理完成"},scopedSlots:e._u([{key:"reference",fn:function(){return[a("el-button",{key:"plain",attrs:{type:"text"}},[e._v(" "+e._s(100==t.row.progress?"完成":0==t.row.status?"准备中":1==t.row.status?"处理中":2==t.row.status?"运行中":3==t.row.status?"余额不足":"已停止"))])]},proxy:!0}],null,!0)})]}}])}),a("el-table-column",{attrs:{label:"进度",prop:"progress"},scopedSlots:e._u([{key:"header",fn:function(){return[a("el-button",{attrs:{round:"",type:"primary",icon:"el-icon-refresh-right"},on:{click:e.loadData}},[e._v("刷新 ")])]},proxy:!0},{key:"default",fn:function(t){return[100!=t.row.progress&&-1==t.row.status?a("el-button",{attrs:{size:"small",type:"default"},on:{click:function(a){return e.pause_continue_task(t.row)}}},[e._v("继续 ")]):e._e(),100==t.row.progress||-1==t.row.status?a("el-popover",{ref:"popover-"+t.$index,attrs:{placement:"bottom",trigger:"click"}},[a("p",[e._v("是否确定删除?")]),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){return e.handleClose(t.$index)}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.del_sift(t.row)}}},[e._v("确定")])],1),a("el-button",{attrs:{slot:"reference",size:"small",type:"danger"},slot:"reference"},[e._v("删除 ")])],1):e._e(),100==t.row.progress?a("el-popover",{ref:"popoverRef",attrs:{trigger:"click",title:"下载数据","virtual-triggering":""},scopedSlots:e._u([{key:"reference",fn:function(){return[a("el-button",{attrs:{size:"small",type:"default"}},[e._v("下载 ")])]},proxy:!0}],null,!0)},[a("span",[a("el-row",{staticStyle:{"margin-top":"10px"}},[a("el-col",{attrs:{xs:{span:6},lg:{span:4}}},[a("el-checkbox",{attrs:{label:"手机号",size:"large"},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}})],1),a("el-col",{attrs:{xs:{span:6},lg:{span:4}}},[a("el-checkbox",{staticStyle:{"margin-left":"20px"},attrs:{label:"mid",size:"large"},model:{value:e.mid,callback:function(t){e.mid=t},expression:"mid"}})],1),a("el-col",{attrs:{xs:{span:6},lg:{span:4}}},[a("el-checkbox",{staticStyle:{"margin-left":"20px"},attrs:{label:"昵称",size:"large"},model:{value:e.nickname,callback:function(t){e.nickname=t},expression:"nickname"}})],1),a("el-col",{attrs:{xs:{span:6},lg:{span:4}}},[a("el-checkbox",{staticStyle:{"margin-left":"20px"},attrs:{label:"头像",size:"large"},model:{value:e.header_url,callback:function(t){e.header_url=t},expression:"header_url"}})],1)],1),a("el-button",{staticStyle:{"margin-top":"10px"},attrs:{size:"small",type:"default"},on:{click:function(a){return e.download(t.row)}}},[e._v("下载 ")])],1)]):e._e()]}}])})],1)],1)},va=[],wa=(a("c19f"),a("b680"),a("69a0")),ya={name:"CheckPhoneTask",data:function(){return{progress:!1,progressPercent:0,importStatus:"",task_name:"",file_name:"",dialogImportVisible:!1,fileData:"",fileList:[],create_task_drawer:!1,message_drawer:!1,listLoading:!1,message_data:"",customer_data:"",user_info:l.getUserInfo(),cc:"",list:[{cc:"HK",hni:"45406",carrierName:"Hutchison Telecom",name:"香港"},{cc:"US",hni:"310260",carrierName:"AT&T",name:"美国"},{cc:"VN",hni:"45204",carrierName:"Viettel",name:"越南"},{cc:"ID",hni:"51010",carrierName:"Telkomsel",name:"印度尼西亚"},{cc:"IN",hni:"40401",carrierName:"Vodafone Idea",name:"印度"},{cc:"JP",hni:"44010",carrierName:"NTT Docomo",name:"日本"},{cc:"TW",hni:"46692",carrierName:"Chunghwa Telecom",name:"台湾"},{cc:"KR",hni:"45008",carrierName:"KT",name:"韩国"},{cc:"MY",hni:"50212",carrierName:"Maxis",name:"马来西亚"},{cc:"TH",hni:"52001",carrierName:"Advanced Info Service",name:"泰国"},{cc:"SG",hni:"52501",carrierName:"Singtel",name:"新加坡"},{cc:"PH",hni:"51502",carrierName:"Globe Telecom",name:"菲律宾"},{cc:"AU",hni:"50501",carrierName:"Telstra",name:"澳大利亚"},{cc:"NZ",hni:"53005",carrierName:"Spark New Zealand",name:"新西兰"},{cc:"CA",hni:"302610",carrierName:"Rogers Wireless",name:"加拿大"},{cc:"MX",hni:"334020",carrierName:"Telcel",name:"墨西哥"},{cc:"BR",hni:"72405",carrierName:"Claro",name:"巴西"},{cc:"AR",hni:"722310",carrierName:"Movistar",name:"阿根廷"},{cc:"PE",hni:"71610",carrierName:"Claro",name:"秘鲁"}],task_id:"",phone:!0,mid:!0,nickname:!0,header_url:!0,time_:null,upload_url:Ie,progressFlag:!1,loadProgress:0,lines:0,tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[]}}},methods:{uploadFile:function(e){var t=this;return Object(qe["a"])(regeneratorRuntime.mark((function a(){var s,o,r,n,l,i,c;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:s=1048576,o=e.file,r=0,n=o.size,l=t,l.progressFlag=!0,i=new FileReader,c=new wa["ArrayBuffer"],i.onload=function(e){c.append(e.target.result);var t=c.end();console.log(t);var a=new ArrayBuffer;l.$http.post(Ie,a,{headers:{file:t}}).then((function(e){if(e.data.success){if(e.data.data===n){l.loadProgress=100,l.file_name=t;var a=new FileReader;return a.onload=function(e){var t=e.target.result,a=t.split("\n"),s=a.length;l.lines=s},void a.readAsText(o)}var i=new FileReader;i.onload=Object(qe["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this.result,console.log("读取到数据:".concat(a.byteLength," 字节")),r+=a.byteLength,r0?this.create_task_drawer=!0:this.$message.error("您没有筛号的数量了")},create_sift_task:function(){var e=this;if(""!=this.task_name)if(""!=this.file_name){var t=new Date,a=t.getFullYear(),s=t.getMonth()+1,o=t.getDate(),r="".concat(a,"-").concat(this.formatTime(s),"-").concat(this.formatTime(o));this.$http.post(Le,{task_name:this.task_name,cc:this.cc,file_name:this.file_name,create_time:r}).then((function(t){t.data.success?(e.$message({message:"创建成功",type:"success"}),e.$refs.upload.clearFiles(),e.create_task_drawer=!1,e.lines=0,e.loadProgress=0,e.progressFlag=!1,e.task_name=""):e.$message.error(t.data.message)}))}else this.$message.error({message:"请先上传文件"});else this.$message.error({message:"请输入任务名"})},loadData:function(){var e=this;0==this.tableData.rows.length&&(this.listLoading=!0),this.$http.post(Oe,{}).then((function(t){e.listLoading=!1,e.tableData.rows=t.data.data})),this.$http.post(Ce,{}).then((function(t){var a=t.data.data;a&&(l.setUserInfo(a),e.user_info=l.getUserInfo(),window.localStorage.setItem("user-info",JSON.stringify(a)))}))}},created:function(){var e=this;this.interval_=setInterval((function(){e.loadData()}),5e3),this.loadData()}},ka=ya,xa=Object(m["a"])(ka,ba,va,!1,null,"c4603a30",null),Sa=xa.exports,$a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-row",[a("el-col",{attrs:{xs:{span:22,offset:1},sm:{span:12,offset:6},lg:{span:8,offset:8},type:"flex",justify:"center"}},[a("div",{staticClass:"login"},[a("el-row",{attrs:{slot:"body",gutter:0},slot:"body"},[a("el-col",{attrs:{span:24}},[a("div",{staticClass:"login-form"},[a("div",{staticClass:"card-block"},[a("h1",[e._v("Line管理系统")]),a("p",{staticClass:"text-muted"},[e._v("请输入用户名/密码登录")]),a("div",{staticClass:"input-group m-b-1"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-user"},[e._v("用户名")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.username,expression:"form.username"}],staticClass:"form-control",attrs:{type:"text",placeholder:"username"},domProps:{value:e.form.username},on:{input:function(t){t.target.composing||e.$set(e.form,"username",t.target.value)}}})]),a("div",{staticClass:"input-group m-b-2"},[a("span",{staticClass:"input-group-addon"},[a("i",{staticClass:"fa fa-lock"},[e._v("密码")])]),a("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"form-control",attrs:{type:"password",placeholder:"password"},domProps:{value:e.form.password},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.login.apply(null,arguments)},input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]),a("div",{staticClass:"row"},[a("el-row",[a("el-col",{attrs:{span:24}},[a("el-button",{staticClass:"btn btn-primary m-b-2",staticStyle:{width:"70%",display:"block",margin:"0 auto"},attrs:{type:"primary"},on:{click:e.login}},[e._v("登录")])],1)],1)],1)])])])],1)],1)])],1)},Da=[],Ta={name:"login",data:function(){return{form:{username:"",password:""}}},components:{},methods:{login:function(){var e=this;console.log("axios",this.$http.post),this.$http.post(z,this.form).then((function(t){console.log("axios",t);var a=t.data;0==a["code"]?e.loginSuccess(a):alert(t.data["message"])}))},loginSuccess:function(e){var t=e.data.login_token;l.login(t),console.log("登陆成功"),window.localStorage.setItem("user-info",JSON.stringify(e.data)),this.$router.push({path:"./index"})}}},Ca=Ta,Na=(a("cff4"),Object(m["a"])(Ca,$a,Da,!1,null,null,null)),Ia=Na.exports,La=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"处理通知",visible:e.message_drawer,width:e.dialogWidth,"close-on-click-modal":!1,center:""},on:{"update:visible":function(t){e.message_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:10,readonly:"",placeholder:""},model:{value:e.message_data,callback:function(t){e.message_data=t},expression:"message_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.message_drawer=!1}}},[e._v("确 定")])],1)],1),a("imp-panel",[a("el-row",[a("el-col",{staticStyle:{"margin-top":"10px","margin-bottom":"10px"},attrs:{lg:{span:24},xs:{span:24}}},[a("h1",[e._v("系统设置")]),e.user_info.user_group<1?a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#1983f6","margin-top":"10px","margin-left":"10px"},attrs:{"inline-prompt":"true","active-text":"开启筛号注册","inactive-text":"关闭筛号注册"},model:{value:e.sift_register,callback:function(t){e.sift_register=t},expression:"sift_register"}}):e._e(),e.user_info.user_group<1?a("el-input",{staticStyle:{"margin-top":"20px"},attrs:{placeholder:"取号地址"},model:{value:e.phone_url,callback:function(t){e.phone_url=t},expression:"phone_url"}},[a("template",{slot:"prepend"},[e._v("取号地址:")])],2):e._e(),e.user_info.user_group<1?a("el-input",{staticStyle:{"margin-top":"20px"},attrs:{placeholder:"取码地址"},model:{value:e.sms_url,callback:function(t){e.sms_url=t},expression:"sms_url"}},[a("template",{slot:"prepend"},[e._v("取码地址:")])],2):e._e(),e.user_info.user_group<1?a("el-input",{staticStyle:{"margin-top":"20px"},attrs:{placeholder:"拉群号",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("每个号最多建")]},proxy:!0},{key:"append",fn:function(){return[e._v("群")]},proxy:!0}],null,!1,196553033),model:{value:e.group_create_count,callback:function(t){e.group_create_count=t},expression:"group_create_count"}},[e._v("> "),e._v("> ")]):e._e(),a("el-input",{staticStyle:{"margin-top":"20px"},attrs:{placeholder:"不填不修改"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}},[a("template",{slot:"prepend"},[e._v("登录密码:")])],2),e.user_info.user_group<1?a("h3",[e._v("代理地址:")]):e._e(),e.user_info.user_group<1?a("el-input",{attrs:{placeholder:"代理地址",type:"textarea",rows:5},model:{value:e.proxy_url,callback:function(t){e.proxy_url=t},expression:"proxy_url"}}):e._e()],1)],1),a("el-row",{staticStyle:{"margin-top":"100px"}},[a("el-col",{attrs:{offset:"11"}},[a("el-button",{staticStyle:{width:"100px"},attrs:{type:"primary"},on:{click:function(t){return e.save_info()}}},[e._v("保存设置")])],1)],1)],1)],1)},Ma=[],Oa={data:function(){return{user_info:l.getUserInfo(),proxy_url:"",phone_url2:"",api_urls:"",phone_url:"",sms_url:"",password:"",sift_register:!1,group_create_count:5}},methods:{loadData:function(){var e=this;this.$http.post(Ce,{}).then((function(t){var a=t.data.data;a&&(console.log("user-info",a),e.sms_url=a["get_sms_url"],e.phone_url=a["get_phone_url"],e.proxy_url=a["proxy_url"],e.api_urls=a["api_urls"],e.sift_register=a["sift_register"],e.group_create_count=a.group_create_count,l.setUserInfo(a),window.localStorage.setItem("user-info",JSON.stringify(a)))}))},save_info:function(){var e=this,t={sms_url:this.sms_url,phone_url:this.phone_url,proxy_url:this.proxy_url,password:this.password,group_create_count:this.group_create_count,api_urls:this.api_urls,sift_register:this.sift_register};this.$http.post(Ne,t).then((function(t){if(t.data.success){e.$message({message:"保存成功",type:"success"});var a=window.localStorage.getItem("user-info");a&&(a=JSON.parse(a),a["group_create_count"]=e.group_create_count,a["get_sms_url"]=e.sms_url,a["get_phone_url"]=e.phone_url,a["proxy_url"]=e.proxy_url,a["sift_register"]=e.sift_register,window.localStorage.setItem("user-info",JSON.stringify(a)))}else e.$message.error("保存失败")}))}},created:function(){this.loadData();var e=window.localStorage.getItem("user-info");e&&(e=JSON.parse(e),console.log("created",e),this.group_create_count=e["group_create_count"],this.sms_url=e["get_sms_url"],this.phone_url=e["get_phone_url"],this.proxy_url=e["proxy_url"],this.sift_register=e["sift_register"])}},Ra=Oa,za=(a("561e"),Object(m["a"])(Ra,La,Ma,!1,null,null,null)),Aa=za.exports,Ea=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"私信任务",name:"SendMessageTask"}},[a("SendMessageTask")],1)],1),a("router-view")],1)},Ua=[],ja=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"消息","close-on-click-modal":!1,visible:e.message_drawer,width:300,center:""},on:{"update:visible":function(t){e.message_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.message_data,callback:function(t){e.message_data=t},expression:"message_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.message_drawer=!1}}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"新增公共客户","close-on-click-modal":!1,visible:e.customer_drawer,width:300,center:""},on:{"update:visible":function(t){e.customer_drawer=t}}},[a("el-input",{attrs:{type:"textarea",rows:10,placeholder:""},model:{value:e.customer_data,callback:function(t){e.customer_data=t},expression:"customer_data"}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.update3}},[e._v("确 定")])],1)],1),a("el-dialog",{attrs:{title:"搜索","close-on-click-modal":!1,visible:e.search_drawer,width:e.dialogWidth,center:""},on:{"update:visible":function(t){e.search_drawer=t}}},[a("el-divider"),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",size:e.small},model:{value:e.search_data,callback:function(t){e.search_data=t},expression:"search_data"}}),a("el-col",{staticStyle:{"margin-top":"10px","text-align":"center"}},[a("h",{staticStyle:{"text-align":"center"}},[e._v("更新日期")])],1),a("el-date-picker",{staticStyle:{width:"100%"},attrs:{type:"daterange","unlink-panels":"","range-separator":"To","start-placeholder":"开始日期","end-placeholder":"结束日期",shortcuts:e.shortcuts,size:e.small},model:{value:e.search_update_date,callback:function(t){e.search_update_date=t},expression:"search_update_date"}}),a("el-select",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请选择",clearable:""},model:{value:e.search_type,callback:function(t){e.search_type=t},expression:"search_type"}},[a("el-option",{attrs:{value:"0",label:"未使用"}}),a("el-option",{attrs:{value:"1",label:"已使用"}}),a("el-option",{attrs:{value:"2",label:"风控账号"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.search_drawer=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.searchData}},[e._v("搜 索")])],1)],1),a("el-row",{},[a("el-row",[a("el-col",{attrs:{xs:{span:24},lg:{span:4}}},[a("p",{staticStyle:{width:"200px",float:"left"}},[e._v(" 还有"),a("h",{staticStyle:{color:"#108ee9"}},[e._v(e._s(this.useTableData.rows.length))]),e._v("个账号未使用 ")],1)]),a("el-col",{attrs:{xs:{span:24},lg:{span:2}}},[a("h"),a("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){e.search_drawer=!0}}},[e._v("搜索")]),a("h")],1),e._e(),a("el-col",{attrs:{xs:{span:24},lg:{span:18}}},[a("p",{staticStyle:{float:"right"}},[e._v(" 共"+e._s("group_list"==e.token_tab?this.groupInfos.rows.length:this.useTableData.rows.length)+"个"+e._s("group_list"==e.token_tab?"群":"账号")+" ")])])],1),a("el-tabs",{staticClass:"demo-tabs",attrs:{type:"border-card"},on:{"tab-click":e.handleClick},model:{value:e.token_tab,callback:function(t){e.token_tab=t},expression:"token_tab"}},[a("el-tab-pane",{attrs:{label:"养号账号",name:"group_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.useTableData.listLoading,expression:"useTableData.listLoading"}],ref:"use_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.useTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"},on:{click:e.del_group_token}},[e._v("删除")])]],2),a("el-tab-pane",{attrs:{label:"搜索账号",name:"search_token"}},[[a("u-table",{directives:[{name:"loading",rawName:"v-loading",value:e.searchTableData.listLoading,expression:"searchTableData.listLoading"}],ref:"search_table",staticStyle:{width:"100%"},attrs:{"use-virtual":"","row-height":30,height:500,"max-height":"500",id:"out-table",data:e.searchTableData.rows,border:""},on:{"selection-change":e.handleSelectionChange}},[a("u-table-column",{attrs:{fixed:"",prop:"id",type:"selection",width:"50"}}),a("u-table-column",{attrs:{prop:"phone_num",label:"手机号",width:"130"}}),a("u-table-column",{attrs:{prop:"password",label:"密码",width:"130"}}),a("u-table-column",{attrs:{prop:"cc",label:"国家",width:"50"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"auth_key",label:"auth_key"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"access_token_v3",label:"access_token_v3"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"refresh_token",label:"refresh_token"}}),a("u-table-column",{attrs:{"show-overflow-tooltip":"",prop:"login_session_id",label:"login_session_id"}}),a("u-table-column",{attrs:{prop:"create_time",label:"创建时间",width:"130"}}),a("u-table-column",{attrs:{prop:"update_time",label:"更新时间",width:"130"}}),a("u-table-column",{attrs:{prop:"status",label:"状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.status?"未使用":t.row.status>0?"已使用"+t.row.status+"次":"使用失败"+Math.abs(t.row.status)+"次")+" ")]}}])}),a("u-table-column",{attrs:{prop:"nursing_status",label:"检测状态",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(" "+e._s(0==t.row.nursing_status?"未检测":t.row.nursing_status>0?"账号存活":"账号风控")+" ")]}}])})],1),a("el-button",{attrs:{type:"primary",icon:"el-icon-plus"},on:{click:e.add_to_group_token}},[e._v("添加")])]],2),a("el-tab-pane",{attrs:{label:"养号日志",name:"nursing_task"}},[[a("el-input",{attrs:{type:"textarea",rows:6,readonly:"",placeholder:""},model:{value:e.nursing_message,callback:function(t){e.nursing_message=t},expression:"nursing_message"}})]],2)],1)],1),a("el-row",{staticStyle:{"margin-top":"50px"}},[a("el-col",{staticStyle:{"text-align":"center"}},[a("el-input",{attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("添加")]},proxy:!0},{key:"append",fn:function(){return[e._v("个好友")]},proxy:!0}]),model:{value:e.add_friend_num,callback:function(t){e.add_friend_num=t},expression:"add_friend_num"}},[e._v("> "),e._v("> ")]),a("el-input",{attrs:{placeholder:"",type:"number"},scopedSlots:e._u([{key:"prepend",fn:function(){return[e._v("创建")]},proxy:!0},{key:"append",fn:function(){return[e._v("个线程")]},proxy:!0}]),model:{value:e.group_thread,callback:function(t){e.group_thread=t},expression:"group_thread"}},[e._v("> "),e._v("> ")]),a("el-switch",{staticClass:"ml-2",staticStyle:{"--el-switch-on-color":"#13ce66","--el-switch-off-color":"#ff4949"},attrs:{"inline-prompt":"","active-text":"同步","inactive-text":"搜索"},model:{value:e.sync,callback:function(t){e.sync=t},expression:"sync"}})],1),a("el-col",{staticStyle:{"margin-top":"10px","text-align":"center"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.create_task()}}},[e._v("创建任务")])],1)],1)],1)},Ba=[],Pa={name:"SendMessageTask",data:function(){return{user_info:l.getUserInfo(),tableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[]},useTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},searchTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},nursingTableData:{pagination:{total:0,pageNo:1,pageSize:10,parentId:0},rows:[],listLoading:!1},group_thread:1,add_friend_num:1,group_num:1,customer_drawer:!1,sync:!1,sync_salesman:!1,token_tab:"group_token",customer_data:"",proxy_url:"",single_add_salesman:!1,message_data:"",nursing_message:"",message_drawer:!1,use_customer:!1,create_type:!0,search_drawer:!1,search_data:"",search_update_date:"",search_type:"",password:"",socket:null,is_sign:!0}},methods:{handleSelectionChange:function(e){this.select_num=e.length},update3:function(){var e=this,t=this.customer_data.split("\n");this.$confirm("是否新增,共计"+t.length+"个客户","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){e.$http.post(Te,{list:t,delete:!1}).then((function(t){var a=t.data;e.customer_drawer=!1,a["success"]?e.$message({message:a["message"],type:"success"}):e.$message.error(a["message"])}))}))},update1:function(){this.$refs.filElem.dispatchEvent(new MouseEvent("click"))},loadData:function(e){var t=this;console.log(e),this.listLoading=!0,this.useTableData.listLoading=!0,this.$http.post(X,{create_time:"",status:-1,search_type:-1,in_group:3,limit:1e7,page:1}).then((function(e){t.useTableData.listLoading=!1,t.useTableData.rows=e.data.list}))},searchData:function(){var e=this;this.search_drawer=!1,this.searchTableData.listLoading=!0;var t="";try{var a=this.create_time.getFullYear(),s=String(this.create_time.getMonth()+1).padStart(2,"0"),o=String(this.create_time.getDate()).padStart(2,"0");t="".concat(a,"-").concat(s,"-").concat(o)}catch(m){console.log(m)}var r=void 0,n=void 0,l=void 0,i=void 0;if(2==this.search_data.length){r=this.search_data[0];var c=r.getFullYear(),u=("0"+(r.getMonth()+1)).slice(-2),d=("0"+r.getDate()).slice(-2);r="".concat(c,"-").concat(u,"-").concat(d),n=this.search_data[1],c=n.getFullYear(),u=("0"+(n.getMonth()+1)).slice(-2),d=("0"+n.getDate()).slice(-2),n="".concat(c,"-").concat(u,"-").concat(d)}if(2==this.search_update_date.length){l=this.search_update_date[0];var p=l.getFullYear(),_=("0"+(l.getMonth()+1)).slice(-2),h=("0"+l.getDate()).slice(-2);l="".concat(p,"-").concat(_,"-").concat(h),i=this.search_update_date[1],p=i.getFullYear(),_=("0"+(i.getMonth()+1)).slice(-2),h=("0"+i.getDate()).slice(-2),i="".concat(p,"-").concat(_,"-").concat(h)}this.$http.post(X,{create_time:t,status:-1,in_group:0,limit:300,search_type:this.search_type,search_date:[r,n],search_update_date:[l,i],page:1}).then((function(t){e.searchTableData.listLoading=!1,e.searchTableData.rows=t.data.list}))},get_not_use_count:function(){var e=this;this.$http.post(Se,{}).then((function(t){e.not_use_count=t.data.count,e.customer_count=t.data.customer_count}))},get_just_create_task_log:function(){var e=this;this.$http.post(De,{}).then((function(t){e.nursing_message=t.data.message}))},create_task:function(){var e=this;0!=this.group_thread?0!=this.group_num?this.$confirm("是否创建养号任务","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then((function(){var t={thread_num:e.group_thread,sync:e.sync,add_friend_num:e.add_friend_num};console.log(t),e.$http.post(ne,t).then((function(t){t.data.success?(e.$message({message:"创建成功",type:"success"}),e.message_data="",e.loadUserInfo(),e.$router.go(0)):e.$message.error(t.data.message)}))})):this.$message.error("建群数不能为0"):this.$message.error("线程数不能为0")},add_to_group_token:function(){var e=this,t=this.$refs.search_table.getCheckboxRecords();0!=t.length?this.$confirm("是否添加到建群token中?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){for(var a=new Array,s=0;s>1&1?a():a("/SettingManager"):"/groupsManager"==e.path?l.getUserInfo()&&l.getUserInfo().authority>>2&1?a():a("/SettingManager"):"/SendMessage"==e.path?l.getUserInfo()&&l.getUserInfo().user_group<2?a():a("/SettingManager"):"/registerManager"==e.path?l.getUserInfo()&&1&l.getUserInfo().authority?a():a("/SettingManager"):l.getUserInfo()&&2==l.getUserInfo().user_group?(console.log("route.path",e.path),"/CheckPhoneTask"!==e.path&&"/SettingManager"!==e.path?(a({path:"/CheckPhoneTask"}),console.log("/CheckPhoneTask")):a()):a():a({path:"/login",query:{redirect:e.fullPath}})}));var Za=Xa,Qa=a("5c96"),es=a.n(Qa);a("0fae");s["default"].config.productionTip=!1,s["default"].prototype.$http=u,s["default"].prototype.$qs=r.a,s["default"].use(es.a),new s["default"]({router:Za,render:function(e){return e(f)}}).$mount("#app")},6603:function(e,t,a){"use strict";a("c8b6")},"6b96":function(e,t,a){"use strict";a("4933")},"87b0":function(e,t,a){},9125:function(e,t,a){},9586:function(e,t,a){"use strict";a("f7be")},"9ee8":function(e,t,a){"use strict";a("c099")},c099:function(e,t,a){},c7d0:function(e,t,a){},c8b6:function(e,t,a){},c906:function(e,t,a){},cff4:function(e,t,a){"use strict";a("06b3")},dfc1:function(e,t,a){},f3e6:function(e,t,a){"use strict";a("fc54")},f7be:function(e,t,a){},fc54:function(e,t,a){}}); //# sourceMappingURL=app.dc2de6e8.js.map