chunk-8ab1c732.acbc4cff.js 17 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8ab1c732"],{"0877":function(t,e,n){"use strict";n("c2ad")},"137c":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",{staticClass:"link--mallki",class:t.className,attrs:{href:"#"}},[t._v(" "+t._s(t.text)+" "),n("span",{attrs:{"data-letters":t.text}}),n("span",{attrs:{"data-letters":t.text}})])},a=[],o={props:{className:{type:String,default:""},text:{type:String,default:"vue-element-admin"}}},s=o,r=(n("8c05"),n("4ac2")),l=Object(r["a"])(s,i,a,!1,null,null,null);e["a"]=l.exports},"1a57":function(t,e,n){"use strict";n("bdb1")},"1d1f":function(t,e,n){},"1d56":function(t,e,n){"use strict";n("36d1")},"2f79":function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return r})),n.d(e,"d",(function(){return l}));n("b4fb");var i=n("b775");function a(t){return Object(i["a"])({url:"/analyze/analyse/task?token=".concat(encodeURIComponent(t)),method:"get"})}function o(t){return Object(i["a"])({url:"/analyze/progress?token=".concat(encodeURIComponent(t)),method:"get"})}function s(t){return Object(i["a"])({url:"/analyze/analyse/BugSubmitInfo?token=".concat(encodeURIComponent(t),"&piece=10"),method:"get"})}function r(t){return Object(i["a"])({url:"/analyze/analyse/BugInfo?token=".concat(encodeURIComponent(t)),method:"get"})}function l(t,e){return Object(i["a"])({url:"/analyze/analyse/people?token=".concat(encodeURIComponent(t),"&workId=").concat(e),method:"get"})}},"36d1":function(t,e,n){},"4a51":function(t,e,n){"use strict";n("cd8a")},"501e":function(t,e,n){"use strict";n("75f4")},"66af":function(t,e,n){},"75f4":function(t,e,n){},"8c05":function(t,e,n){"use strict";n("d475")},"9e4c":function(t,e,n){"use strict";n("66af")},a3fa:function(t,e,n){"use strict";n("e564")},a836:function(t,e,n){"use strict";n("1d1f")},b24d:function(t,e,n){"use strict";n("da77")},bdb1:function(t,e,n){},c2ad:function(t,e,n){},cd8a:function(t,e,n){},d475:function(t,e,n){},da77:function(t,e,n){},e496:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"dashboard-editor-container"},[n("div",{staticClass:"board-title"},[t._v(t._s(t.peopleInfo.name)+"用户详情数据展示")]),n("el-row",{staticClass:"people-main",attrs:{gutter:20}},[n("el-col",{staticStyle:{"min-height":"100%"},attrs:{xs:24,sm:24,lg:16}},[n("el-row",{staticStyle:{background:"transparent"},attrs:{gutter:20}},[n("el-col",{staticStyle:{display:"flex","flex-direction":"column"},attrs:{xs:24,sm:24,lg:10}},[n("info-card",{staticClass:"info-card",staticStyle:{"margin-bottom":"20px"},attrs:{info:t.peopleInfo}})],1),n("el-col",{attrs:{xs:24,sm:24,lg:14}},[t.labels&&t.labels.length?n("word-cloud",{staticClass:"word-cloud",attrs:{info:t.labels}}):t._e()],1)],1),n("el-row",{staticStyle:{height:"calc(100vh - 90px - 480px)","min-height":"400px"},attrs:{gutter:20}},[n("el-col",{staticStyle:{height:"100%"},attrs:{xs:24,sm:24,lg:9}},[n("div",{staticClass:"chart-wrapper card-shadow",staticStyle:{height:"99%"}},[t.userRadar&&t.userRadar.data?n("raddar-chart",{attrs:{info:t.userRadar}}):t._e()],1)]),n("el-col",{staticStyle:{height:"100%"},attrs:{xs:24,sm:24,lg:15}},[n("div",{staticClass:"chart-wrapper card-shadow scroll-bar-component",staticStyle:{height:"98%"}},[t.bugList&&t.bugList.length?n("transaction-table",{attrs:{list:t.bugList}}):t._e()],1)])],1)],1),n("el-col",{staticStyle:{height:"100%"},attrs:{xs:24,sm:24,lg:8}},[t.timeLineList&&t.timeLineList.length?n("TimeLine",{staticClass:"card-shadow scroll-bar-component time-line-component",attrs:{list:t.timeLineList}}):t._e()],1)],1)],1)},a=[],o=n("efe28"),s=(n("053b"),n("2eeb"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{height:"100%"}},[n("div",{staticClass:"chart-title"},[t._v("个人能力雷达图")]),n("div",{class:t.className,style:{height:t.height,width:t.width},attrs:{id:"radderChart"}})])}),r=[],l=n("4d28"),d=n.n(l),u=n("ed08"),f={data:function(){return{$_sidebarElm:null,$_resizeHandler:null}},mounted:function(){var t=this;this.$_resizeHandler=Object(u["b"])((function(){t.chart&&t.chart.resize()}),100),this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},beforeDestroy:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},activated:function(){this.$_initResizeEvent(),this.$_initSidebarResizeEvent()},deactivated:function(){this.$_destroyResizeEvent(),this.$_destroySidebarResizeEvent()},methods:{$_initResizeEvent:function(){window.addEventListener("resize",this.$_resizeHandler)},$_destroyResizeEvent:function(){window.removeEventListener("resize",this.$_resizeHandler)},$_sidebarResizeHandler:function(t){"width"===t.propertyName&&this.$_resizeHandler()},$_initSidebarResizeEvent:function(){this.$_sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.$_sidebarElm&&this.$_sidebarElm.addEventListener("transitionend",this.$_sidebarResizeHandler)},$_destroySidebarResizeEvent:function(){this.$_sidebarElm&&this.$_sidebarElm.removeEventListener("transitionend",this.$_sidebarResizeHandler)}}};n("d8ac");var h={mixins:[f],props:{className:{type:String,default:"chart"},width:{type:String,default:"100%"},height:{type:String,default:"300px"},info:{type:Object,default:{}}},data:function(){return{chart:null}},mounted:function(){var t=this;this.$nextTick((function(){t.initChart()}))},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=d.a.init(document.getElementById("radderChart"),"macarons"),this.chart.setOption({tooltip:{},radar:{name:{textStyle:{color:"#fff",backgroundColor:"#baadde",borderRadius:3,padding:[3,5]}},indicator:this.info.labels.map((function(t){return{name:[t],max:10}}))},series:[{type:"radar",data:[{value:this.info.data,name:"个人能力雷达图"}]}]})}}},m=h,p=(n("501e"),n("4ac2")),g=Object(p["a"])(m,s,r,!1,null,null,null),b=g.exports,v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-table",{staticStyle:{"padding-top":"15px"},attrs:{data:t.list}},[n("el-table-column",{attrs:{label:"Bug分类",align:"center",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.bug_category)+" ")]}}])}),n("el-table-column",{attrs:{label:"Bug描述"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.title)+" ")]}}])}),n("el-table-column",{attrs:{label:"严重程度",align:"center",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.severity)+" ")]}}])})],1)},_=[],y={props:["list"],data:function(){return{}}},x=y,w=Object(p["a"])(x,v,_,!1,null,null,null),C=w.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("section",{staticClass:"todoapp"},[n("header",{staticClass:"header"},[n("input",{staticClass:"new-todo",attrs:{autocomplete:"off",placeholder:"Todo List"},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.addTodo(e)}}})]),n("section",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"main"},[n("input",{staticClass:"toggle-all",attrs:{id:"toggle-all",type:"checkbox"},domProps:{checked:t.allChecked},on:{change:function(e){return t.toggleAll({done:!t.allChecked})}}}),n("label",{attrs:{for:"toggle-all"}}),n("ul",{staticClass:"todo-list"},t._l(t.filteredTodos,(function(e,i){return n("todo",{key:i,attrs:{todo:e},on:{toggleTodo:t.toggleTodo,editTodo:t.editTodo,deleteTodo:t.deleteTodo}})})),1)]),n("footer",{directives:[{name:"show",rawName:"v-show",value:t.todos.length,expression:"todos.length"}],staticClass:"footer"},[n("span",{staticClass:"todo-count"},[n("strong",[t._v(t._s(t.remaining))]),t._v(" "+t._s(t._f("pluralize")(t.remaining,"item"))+" left ")]),n("ul",{staticClass:"filters"},t._l(t.filters,(function(e,i){return n("li",{key:i},[n("a",{class:{selected:t.visibility===i},on:{click:function(e){e.preventDefault(),t.visibility=i}}},[t._v(t._s(t._f("capitalize")(i)))])])})),0)])])},S=[],T=(n("dbb3"),n("77ad"),n("6db4"),n("ea69"),n("08ba"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{staticClass:"todo",class:{completed:t.todo.done,editing:t.editing}},[n("div",{staticClass:"view"},[n("input",{staticClass:"toggle",attrs:{type:"checkbox"},domProps:{checked:t.todo.done},on:{change:function(e){return t.toggleTodo(t.todo)}}}),n("label",{domProps:{textContent:t._s(t.todo.text)},on:{dblclick:function(e){t.editing=!0}}}),n("button",{staticClass:"destroy",on:{click:function(e){return t.deleteTodo(t.todo)}}})]),n("input",{directives:[{name:"show",rawName:"v-show",value:t.editing,expression:"editing"},{name:"focus",rawName:"v-focus",value:t.editing,expression:"editing"}],staticClass:"edit",domProps:{value:t.todo.text},on:{keyup:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.doneEdit(e)},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.cancelEdit(e)}],blur:t.doneEdit}})])}),E=[],$={name:"Todo",directives:{focus:function(t,e,n){var i=e.value,a=n.context;i&&a.$nextTick((function(){t.focus()}))}},props:{todo:{type:Object,default:function(){return{}}}},data:function(){return{editing:!1}},methods:{deleteTodo:function(t){this.$emit("deleteTodo",t)},editTodo:function(t){var e=t.todo,n=t.value;this.$emit("editTodo",{todo:e,value:n})},toggleTodo:function(t){this.$emit("toggleTodo",t)},doneEdit:function(t){var e=t.target.value.trim(),n=this.todo;e?this.editing&&(this.editTodo({todo:n,value:e}),this.editing=!1):this.deleteTodo({todo:n})},cancelEdit:function(t){t.target.value=this.todo.text,this.editing=!1}}},z=$,O=Object(p["a"])(z,T,E,!1,null,null,null),L=O.exports,R="todos",j={all:function(t){return t},active:function(t){return t.filter((function(t){return!t.done}))},completed:function(t){return t.filter((function(t){return t.done}))}},D=[{text:"star this repository",done:!1},{text:"fork this repository",done:!1},{text:"follow author",done:!1},{text:"vue-element-admin",done:!0},{text:"vue",done:!0},{text:"element-ui",done:!0},{text:"axios",done:!0},{text:"webpack",done:!0}],N={components:{Todo:L},filters:{pluralize:function(t,e){return 1===t?e:e+"s"},capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},data:function(){return{visibility:"all",filters:j,todos:D}},computed:{allChecked:function(){return this.todos.every((function(t){return t.done}))},filteredTodos:function(){return j[this.visibility](this.todos)},remaining:function(){return this.todos.filter((function(t){return!t.done})).length}},methods:{setLocalStorage:function(){window.localStorage.setItem(R,JSON.stringify(this.todos))},addTodo:function(t){var e=t.target.value;e.trim()&&(this.todos.push({text:e,done:!1}),this.setLocalStorage()),t.target.value=""},toggleTodo:function(t){t.done=!t.done,this.setLocalStorage()},deleteTodo:function(t){this.todos.splice(this.todos.indexOf(t),1),this.setLocalStorage()},editTodo:function(t){var e=t.todo,n=t.value;e.text=n,this.setLocalStorage()},clearCompleted:function(){this.todos=this.todos.filter((function(t){return!t.done})),this.setLocalStorage()},toggleAll:function(t){var e=this,n=t.done;this.todos.forEach((function(t){t.done=n,e.setLocalStorage()}))}}},I=N,H=(n("0877"),Object(p["a"])(I,k,S,!1,null,null,null)),M=H.exports,P=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{staticClass:"box-card-component",staticStyle:{"margin-left":"8px"}},[n("div",{staticClass:"box-card-header",attrs:{slot:"header"},slot:"header"},[n("img",{attrs:{src:"https://wpimg.wallstcn.com/e7d23d71-cf19-4b90-a1cc-f56af8c0903d.png"}})]),n("div",{staticStyle:{position:"relative"}},[n("pan-thumb",{staticClass:"panThumb",attrs:{image:t.avatar}}),n("mallki",{attrs:{"class-name":"mallki-text",text:"报告数据情况"}}),n("div",{staticClass:"progress-item",staticStyle:{"padding-top":"35px"}},[n("span",[t._v("点赞报告数")]),n("el-progress",{attrs:{percentage:70}})],1),n("div",{staticClass:"progress-item"},[n("span",[t._v("点踩报告数")]),n("el-progress",{attrs:{percentage:18}})],1),n("div",{staticClass:"progress-item"},[n("span",[t._v("被fork报告数")]),n("el-progress",{attrs:{percentage:12}})],1)],1)])},U=[],A=n("52c1"),B={filters:{statusFilter:function(t){var e={success:"success",pending:"danger"};return e[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(o["a"])({},Object(A["c"])(["name","avatar","roles"]))},Y=B,F=(n("a836"),n("9e4c"),Object(p["a"])(Y,P,U,!1,null,"99244bfe",null)),W=F.exports,J=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{staticClass:"box-card-component"},[n("div",{staticStyle:{position:"relative"}},[n("mallki",{attrs:{"class-name":"mallki-text",text:"用户基本信息"}}),n("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",staticStyle:{"padding-top":"35px","margin-top":"10px"},attrs:{"status-icon":"","label-width":"120px"}},[n("el-form-item",{attrs:{label:"用户头像:"}},[n("el-avatar",{attrs:{size:50,src:t.info.photoUrl}})],1),n("el-form-item",{attrs:{label:"用户姓名:"}},[t._v(" "+t._s(t.info.name)+" ")]),n("el-form-item",{attrs:{label:"所在城市:"}},[t._v(" "+t._s(t.info.province)+" "+t._s(t.info.city)+" ")]),n("el-form-item",{attrs:{label:"所在学校:"}},[t._v(" "+t._s(t.info.school)+" ")]),n("el-form-item",{attrs:{label:"注册时间:"}},[t._v(" "+t._s(t.$moment(t.info.registerTime).format("YYYY-MM-DD HH:mm"))+" ")]),n("el-form-item",{attrs:{label:"最后登录:"}},[t._v(" "+t._s(t.$moment(t.info.lastActivate).format("YYYY-MM-DD HH:mm"))+" ")])],1)],1)])},q=[],G=n("137c"),K={components:{Mallki:G["a"]},props:["info"],filters:{statusFilter:function(t){c;var e={success:"success",pending:"danger"};return e[t]}},data:function(){return{statisticsData:{article_count:1024,pageviews_count:1024}}},computed:Object(o["a"])({},Object(A["c"])(["name","avatar","roles"]))},Q=K,V=(n("b24d"),n("a3fa"),Object(p["a"])(Q,J,q,!1,null,"a94bdcee",null)),X=V.exports,Z=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticStyle:{height:"457px",width:"100%"},attrs:{id:"userWordCloud"}})},tt=[],et=(n("658d"),n("52d4"),{name:"WordCloud",mixins:[f],props:["info"],data:function(){return{chart:null}},mounted:function(){this.initChart()},beforeDestroy:function(){this.chart&&(this.chart.dispose(),this.chart=null)},methods:{initChart:function(){this.chart=d.a.init(document.getElementById("userWordCloud"),{width:"auto",height:"500px"});var t={backgroundColor:"#fff",series:[{type:"wordCloud",gridSize:10,sizeRange:[14,60],rotationRange:[0,0],textStyle:{normal:{color:function(){return"rgb("+Math.round(255*Math.random())+", "+Math.round(255*Math.random())+", "+Math.round(255*Math.random())+")"}}},grid:{x:10,y:10,x2:10,y2:10,height:"500px",width:"100%"},left:0,top:0,right:0,bottom:0,width:"100%",height:"100%",data:this.info}]};this.chart.setOption(t)}}}),nt=et,it=(n("4a51"),Object(p["a"])(nt,Z,tt,!1,null,"3c6059aa",null)),at=it.exports,ot=n("2f79"),st=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",[n("timeline",t._l(t.list,(function(e){return n("timeline-item",{attrs:{"bg-color":"#9dd8e0"}},[n("span",{staticClass:"bug-time"},[t._v(t._s(e.timestamp))]),n("el-card",{staticStyle:{"background-color":"#eeeeee"}},[n("div",[t._v(t._s(e.content))])])],1)})),1)],1)},rt=[],lt=n("07de"),ct={name:"TimeLine",props:["list"],components:{Timeline:lt["Timeline"],TimelineItem:lt["TimelineItem"],TimelineTitle:lt["TimelineTitle"]}},dt=ct,ut=(n("1d56"),Object(p["a"])(dt,st,rt,!1,null,"2f7d2090",null)),ft=ut.exports,ht={name:"People",components:{RaddarChart:b,TransactionTable:C,TodoList:M,BoxCard:W,TimeLine:ft,InfoCard:X,WordCloud:at},data:function(){return{peopleInfo:{},bugList:[],userRadar:{},timeLineList:[],labels:[]}},computed:Object(o["a"])({},Object(A["c"])(["getPeopleData"])),methods:Object(o["a"])(Object(o["a"])({},Object(A["b"])(["setPeopleData"])),{},{getData:function(){var t=this,e=this.$route.query,n=e.token,i=e.workId;Object(ot["d"])(n,i).then((function(e){t.setPeopleData(e),t.handlePeopleData()}))},handlePeopleData:function(){var t=this.getPeopleData;this.topData={reportNum:t.reportNum||0,bugNum:t.bugNum||0,workerNum:t.workerNum||0,forkNum:t.forkNum||0},this.peopleInfo={photoUrl:t.photoUrl||"",province:t.province||"",school:t.school||"",city:t.city||"",workerNum:t.workerNum||0,name:t.name||"",registerTime:t.registerTime||new Date,lastActivate:t.lastActivate||new Date,firstActivate:t.firstActivate||new Date},this.bugList=t.bugList||[],this.timeLineList=t.timeLine||[],this.userRadar=t.userRadar||{};var e=t.labels&&t.labels.map((function(t){return{name:t,value:Math.random()}}));this.labels=e||[]}}),mounted:function(){this.getData()}},mt=ht,pt=(n("1a57"),Object(p["a"])(mt,i,a,!1,null,"9ce44068",null));e["default"]=pt.exports},e564:function(t,e,n){}}]);