| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[74],{533:function(t,e,n){},674:function(t,e,n){"use strict";n(533)},794:function(t,e,n){"use strict";n.r(e);n(18);var r=n(6),o=(n(30),{data:function(){return{userInfo:{},active:!1,back:!1,nonActive:!1,loyal:!1,lost:!1,activePeriod:"",equipment:{computer:0,mobile:0},incomeCount:{package:0,cloud:0,hire:0},income:null,certs:[],total:0,pageSize:20,page:1,uid:this.$route.query.uid,realNameAuditTimes:0,signAuditTimes:0,activeName:"login",loginData:[],searchData:[],liaotianData:[],renzhengData:[],pingData:[],otherData:[]}},created:function(){this.loadPersona(),this.loadCerts(),this.loadLoginLog()},methods:{formatDate:function(time){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("0"===time)return"--";var e=new Date(1e3*time),n=e.getFullYear(),r=e.getMonth()+1,o=e.getDate(),l=e.getHours(),c=e.getMinutes(),_=e.getSeconds();return l<10&&(l="0"+l),c<10&&(c="0"+c),_<10&&(_="0"+_),""==t?n+"-"+r+"-"+o+" "+l+":"+c+":"+_:n+"-"+r+"-"+o+" "+l+":"+c},loadPersona:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/user/persona",{uid:t.uid});case 2:n=e.sent,t.userInfo=n.data.userInfo,t.active=n.data.active,t.nonActive=n.data.nonActive,t.loyal=n.data.loyal,t.back=n.data.return,t.lost=n.data.lost,t.incomeCount=n.data.incomeCount,t.income=n.data.income,t.realNameAuditTimes=n.data.realNameAuditTimes,t.signAuditTimes=n.data.signAuditTimes,t.activePeriod=n.data.activePeriod,t.equipment=n.data.equipment;case 14:case"end":return e.stop()}}),e)})))()},loadCerts:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$post("/api/admin/cert/getUserList",{uid:t.uid,page:1,page_size:100});case 2:n=e.sent,t.certs=n.data.list;case 4:case"end":return e.stop()}}),e)})))()},loadLoginLog:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.t0=t.activeName,e.next="login"===e.t0?3:"search"===e.t0?9:"liaotian"===e.t0?15:"renzheng"===e.t0?21:"ping"===e.t0?27:"other"===e.t0?33:39;break;case 3:return e.next=5,t.$post("/api/admin/user/lastSevenDaysLoginLog",{uid:t.uid,page:t.page});case 5:return n=e.sent,t.loginData=n.data.list,t.pageData(n),e.abrupt("break",39);case 9:return e.next=11,t.$post("/api/admin/user/searchLog",{uid:t.uid,page:t.page});case 11:return n=e.sent,t.searchData=n.data.list,t.pageData(n),e.abrupt("break",39);case 15:return e.next=17,t.$post("/api/admin/user/chatLog",{uid:t.uid,page:t.page});case 17:return n=e.sent,t.liaotianData=n.data.list,t.pageData(n),e.abrupt("break",39);case 21:return e.next=23,t.$post("/api/admin/cert/getUserList",{uid:t.uid,page:t.page});case 23:return n=e.sent,t.renzhengData=n.data.list,t.pageData(n),e.abrupt("break",39);case 27:return e.next=29,t.$post("/api/admin/user/pingLog",{uid:t.uid,page:t.page});case 29:return n=e.sent,t.pingData=n.data.list,t.pageData(n),e.abrupt("break",39);case 33:return e.next=35,t.$post("/api/admin/user/behaviorLog",{uid:t.uid,page:t.page});case 35:return n=e.sent,t.otherData=n.data.list,t.pageData(n),e.abrupt("break",39);case 39:case"end":return e.stop()}}),e)})))()},pageData:function(t){this.pageSize=1*t.data.pageSize,this.total=1*t.data.total},goUserBill:function(){window.location.href="/main/user_bills?user="+this.uid},clickCheckCert:function(t){window.open(this.$store.state.domainConfig.rooterUrl+"/main/dev_check_detail?uid=".concat(t.uid,"&cert_id=").concat(t.cert_id))},goSignVerify:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/outsourcecoderitem?uid=".concat(this.uid))},goRealNameVerify:function(t){window.open(this.$store.state.domainConfig.siteUrl+"/rooter/realnameVerifyAuditItem?uid=".concat(this.uid))},clickUserID:function(t){console.log(t),window.open(this.$store.state.domainConfig.siteUrl+"/rooter/user/".concat(t))},changePagination:function(t){this.page=t,this.loadLoginLog()},handleClick:function(t,e){this.clearData(),this.loadLoginLog()},clearData:function(){this.page=1,this.total=0}}}),l=o,c=(n(674),n(4)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"title"},[t._v("程序员用户画像")]),t._v(" "),e("div",[e("div",[e("span",{staticClass:"sub-title"},[t._v("自由工作评级:F"+t._s(t.userInfo.freework_level))])]),t._v(" "),e("div",[e("span",{staticClass:"sub-title"},[t._v("活跃度:")]),t._v(" "),e("span",{staticClass:"i-content"},[t.active?e("span",[t._v("活跃用户")]):t._e(),t._v(" "),t.lost?e("span",[t._v("流失用户")]):t._e(),t._v(" "),t.nonActive?e("span",[t._v("不活跃用户")]):t._e(),t._v(" "),t.back?e("span",[t._v("回流用户")]):t._e(),t._v(" "),t.loyal?e("span",[t._v("忠实用户")]):t._e()])]),t._v(" "),e("div",[e("span",{staticClass:"sub-title"},[t._v("活跃时间段(最近7天):")]),t._v(" "),e("span",{staticClass:"i-content"},[t.active?e("span",[t._v(t._s(t.activePeriod))]):t._e()])]),t._v(" "),e("div",[e("span",{staticClass:"sub-title"},[t._v("常用设备(最近7天):")]),t._v(" "),e("span",{staticClass:"i-content"},[e("span",[t._v("手机("+t._s(t.equipment.computer)+"次),电脑("+t._s(t.equipment.mobile)+"次)")])])]),t._v(" "),e("div",[e("span",{staticClass:"sub-title"},[t._v("收入情况:")]),t._v(" "),e("span",{staticClass:"i-content income"},[e("span",[t._v("整包"+t._s(t.incomeCount.package/100)+"元")]),t._v(" "),e("span",[t._v("云端"+t._s(t.incomeCount.cloud/100)+"元")]),t._v(" "),e("span",[t._v("雇佣"+t._s(t.incomeCount.hire/100)+"元")]),t._v(" "),e("span",{staticClass:"clickable",on:{click:function(e){return t.goUserBill()}}},[t._v("查看详细记录>>")])])])]),t._v(" "),e("div",{staticClass:"title"},[t._v("基本信息及身份特征")]),t._v(" "),e("div",{staticClass:"content"},[e("div",{staticClass:"dev-main clear"},[e("div",{staticClass:"dev-left"},[e("div",{staticClass:"grid-content"},[e("img",{staticClass:"dev-head point",attrs:{src:t.userInfo.icon_url,alt:""},on:{click:function(e){return t.clickUserID(t.userInfo.uid)}}}),t._v(" "),e("p",{staticClass:"blackc"},[t._v(t._s(t.userInfo.uid))]),t._v(" "),e("p",{staticClass:"lblack font13"},[t._v("¥"+t._s(t.userInfo.work_price))]),t._v(" "),"2"==t.userInfo.realname_re?e("p",[e("span",{staticClass:"state-of"},[t._v("已签约")])]):t._e()])]),t._v(" "),e("div",{staticClass:"dev-center"},[e("div",{staticClass:"grid-content"},[e("div",{staticClass:"clear"},[e("div",{staticClass:"floatl"},[e("span",{staticClass:"lblue point blod",on:{click:function(e){return t.clickUserID(t.userInfo.uid)}}},[t._v(t._s(t.userInfo.nickname))]),t._v(" "),t.userInfo.realname?e("span",{staticClass:"lblack font13"},[t._v("("+t._s(t.userInfo.realname)+")")]):t._e(),t._v(" "),e("span",{staticClass:"blod"},[t._v(t._s(t.userInfo.occupation_name))]),t._v(" "),t.userInfo.direction_name?e("span",[t._v("/"+t._s(t.userInfo.direction_name))]):t._e()]),t._v(" "),e("div",{staticClass:"floatr dev-mark clear"},[1==t.userInfo.in_black_list?e("span",{staticClass:"dev-dark"},[t._v(t._s("黑名单"))]):t._e(),t._v(" "),t.userInfo.city_op_name?e("span",[t._v(t._s(t.userInfo.city_op_name))]):t._e(),t._v(" "),t.userInfo.industry_name?e("span",[t._v(t._s(t.userInfo.industry_name))]):t._e(),t._v(" "),t.userInfo.work_year_name?e("span",[t._v(t._s(t.userInfo.work_year_name))]):t._e(),t._v(" "),e("span",[t._v(t._s(0==t.userInfo.on_project&&0==t.userInfo.on_job&&0==t.userInfo.on_hire?"空闲":"工作中"))])])]),t._v(" "),e("div",{staticClass:"dev-infor"},[e("p",[e("span",{staticClass:"blod black"},[t._v("技能:")]),t._v(" "),e("span",[t._v(t._s(t.userInfo.skill_description))])]),t._v(" "),e("p",[e("span",{staticClass:"blod black"},[t._v("项目:")]),t._v(" "),t._l(t.userInfo.works,(function(n,r){return e("span",{key:n.uid},[t._v("\n "+t._s(n.name)+"\n "),r!=t.userInfo.works.length-1?e("span",[t._v(",")]):t._e()])}))],2),t._v(" "),e("p",[e("span",{staticClass:"blod black"},[t._v("公司:")]),t._v(" "),e("span",[t._v(t._s(t.userInfo.company))]),t._v(" "),e("span",[t._v(t._s(t.userInfo.title))])]),t._v(" "),e("p",{staticStyle:{"padding-top":"22px"}},[e("span",{staticClass:"blod black"},[t._v("认证:")]),t._v(" "),t._l(t.userInfo.certTags,(function(n,r){return e("span",{key:n.uid},[t._v("\n "+t._s(n.tag_name)+"\n "),r!=t.userInfo.certTags.length-1?e("span",[t._v(",")]):t._e()])}))],2)])])]),t._v(" "),e("div",{staticClass:"dev-right"},[e("div",{staticClass:"grid-content"},[e("div",{staticClass:"dev-detail"},[e("p",[e("span",{staticClass:"blod black"},[t._v("意愿:")]),t._v(" "),e("span",[t._v(t._s(t.userInfo.willing))])]),t._v(" "),e("p",[e("span",{staticClass:"blod black"},[t._v("接单:")]),t._v(" "),1==t.userInfo.work_status?e("span",[0==t.userInfo.work_option?e("span",[t._v("接受所有派单及预约机会")]):t._e(),t._v(" "),3==t.userInfo.work_option?e("span",[t._v("只接受平台派单和认证企业预约")]):t._e(),t._v(" "),1==t.userInfo.work_option?e("span",[t._v("只接受平台派单")]):t._e()]):e("span",[e("span",[t._v("不接单")])])]),t._v(" "),e("p",[e("span",{staticClass:"blod black"},[t._v("数量:")]),t._v(" "),t.userInfo.doing_project_num?e("span",[t._v("项目:"+t._s(t.userInfo.doing_project_num)+",")]):t._e(),t._v(" "),t.userInfo.doing_job_num?e("span",[t._v("云端:"+t._s(t.userInfo.doing_job_num)+",")]):t._e(),t._v(" "),t.userInfo.doing_hire_num?e("span",[t._v("雇佣:"+t._s(t.userInfo.doing_hire_num)+",")]):t._e()]),t._v(" "),e("p",[e("span",{staticClass:"blod black"},[t._v("权重:")]),t._v(" "),e("span",[t._v(t._s(t.userInfo.appoint_weight))])]),t._v(" "),e("p",{staticStyle:{"padding-top":"22px"}},[e("span",{staticClass:"blod black"},[t._v("评价:")]),t._v(" "),e("el-rate",{staticClass:"inlineb",staticStyle:{"vertical-align":"top"},attrs:{disabled:"",colors:["#99A9BF","#F7BA2A","#FF9900"]},model:{value:t.userInfo.rating,callback:function(e){t.$set(t.userInfo,"rating",e)},expression:"userInfo.rating"}}),t._v(" "),t.userInfo.rating_count?e("span",{staticClass:"lblack"},[t._v("("+t._s(t.userInfo.rating_count)+")")]):t._e()],1)])])])])]),t._v(" "),e("div",{staticClass:"title"},[t._v("企业用户行为特征")]),t._v(" "),e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[e("el-tab-pane",{attrs:{label:"登录(7天内)",name:"login"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.loginData}},[e("el-table-column",{attrs:{prop:"loginTypeName",label:"登录方式"}}),t._v(" "),e("el-table-column",{attrs:{prop:"client_type",label:"登录名称"},scopedSlots:t._u([{key:"default",fn:function(n){return["android"==n.row.client_type||"ios"==n.row.client_type?e("span",[t._v("手机")]):e("span",[t._v("电脑")])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"loginTimeFormat",label:"登录时间"}}),t._v(" "),e("el-table-column",{attrs:{prop:"client_type",label:"登录环境"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.client_type)+" "+t._s(e.row.version))]}}])})],1)],1),t._v(" "),e("el-tab-pane",{attrs:{label:"搜索记录",name:"search"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.searchData}},[e("el-table-column",{attrs:{prop:"keyword",label:"关键词"}}),t._v(" "),e("el-table-column",{attrs:{prop:"created_at",label:"操作时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.created_at,"Y-m-d H:i")))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"app_type",label:"操作设备"}})],1)],1),t._v(" "),e("el-tab-pane",{attrs:{label:"聊天(7天内)",name:"liaotian"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.liaotianData}},[e("el-table-column",{attrs:{prop:"demander_uid",label:"发起者"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"lblue point blod",on:{click:function(e){return t.clickUserID(n.row.demander_uid)}}},[t._v(t._s(n.row.demander_uid))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"developer_uid",label:"被发起者"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",{staticClass:"lblue point blod",on:{click:function(e){return t.clickUserID(n.row.developer_uid)}}},[t._v(t._s(n.row.developer_uid))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"发起时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.create_time,"Y-m-d H:i")))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"chat_total_time",label:"聊天时长"}})],1)],1),t._v(" "),e("el-tab-pane",{attrs:{label:"认证记录",name:"renzheng"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.renzhengData}},[e("el-table-column",{attrs:{prop:"name",label:"项目名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"cert_status_name",label:"认证状态"}}),t._v(" "),e("el-table-column",{attrs:{prop:"certified_times",label:"认证通过次数"}}),t._v(" "),e("el-table-column",{attrs:{prop:"uid",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("el-button",{attrs:{type:"text"},on:{click:function(e){return t.clickCheckCert(n.row)}}},[t._v("查看详情>>")])]}}])})],1)],1),t._v(" "),e("el-tab-pane",{attrs:{label:"ping单记录",name:"ping"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.pingData}},[e("el-table-column",{attrs:{prop:"create_time",label:"操作时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.create_time)))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"client_type",label:"操作设备"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.client_type)+" "+t._s(e.row.version))]}}])})],1)],1),t._v(" "),e("el-tab-pane",{attrs:{label:"其它行为操作记录",name:"other"}},[e("el-table",{staticStyle:{width:"100%"},attrs:{border:"",data:t.otherData}},[e("el-table-column",{attrs:{prop:"name",label:"行为名称"}}),t._v(" "),e("el-table-column",{attrs:{prop:"create_time",label:"发生时间"},scopedSlots:t._u([{key:"default",fn:function(n){return[e("span",[t._v(t._s(t.formatDate(n.row.create_time,"Y-m-d H:i")))])]}}])}),t._v(" "),e("el-table-column",{attrs:{prop:"client_type",label:"操作设备"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.client_type)+" "+t._s(e.row.version))]}}])})],1)],1)],1),t._v(" "),e("div",{staticStyle:{"margin-top":"20px"}},[e("el-pagination",{attrs:{background:"","current-page":t.page,"page-size":t.pageSize,layout:"total, prev, pager, next, jumper",total:t.total},on:{"current-change":t.changePagination,"update:currentPage":function(e){t.page=e},"update:current-page":function(e){t.page=e}}})],1)],1)}),[],!1,null,null,null);e.default=component.exports}}]);
|