1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5a119396"],{"004c":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("page-layout",{attrs:{avatar:t.avatar}},[e("div",{attrs:{slot:"headerContent"},slot:"headerContent"},[e("div",{staticClass:"title"},[t._v(t._s(t.timeFix)+","+t._s(t.nickname())),e("span",{staticClass:"welcome-text"},[t._v(","+t._s(t.welcome()))])]),e("div",[t._v("前端工程师 | 蚂蚁金服 - 某某某事业群 - VUE平台")])]),e("div",{attrs:{slot:"extra"},slot:"extra"},[e("a-row",{staticClass:"more-info"},[e("a-col",{attrs:{span:8}},[e("head-info",{attrs:{title:"项目数",content:"56",center:!1,bordered:!1}})],1),e("a-col",{attrs:{span:8}},[e("head-info",{attrs:{title:"团队排名",content:"8/24",center:!1,bordered:!1}})],1),e("a-col",{attrs:{span:8}},[e("head-info",{attrs:{title:"项目访问",content:"2,223",center:!1}})],1)],1)],1),e("div",[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{xl:16,lg:24,md:24,sm:24,xs:24}},[e("a-card",{staticClass:"project-list",staticStyle:{"margin-bottom":"24px"},attrs:{loading:t.loading,bordered:!1,title:"进行中的项目","body-style":{padding:0}}},[e("a",{attrs:{slot:"extra"},slot:"extra"},[t._v("全部项目")]),e("div",t._l(t.projects,(function(a,i){return e("a-card-grid",{key:i,staticClass:"project-card-grid"},[e("a-card",{attrs:{bordered:!1,"body-style":{padding:0}}},[e("a-card-meta",[e("div",{staticClass:"card-title",attrs:{slot:"title"},slot:"title"},[e("a-avatar",{attrs:{size:"small",src:a.cover}}),e("a",[t._v(t._s(a.title))])],1),e("div",{staticClass:"card-description",attrs:{slot:"description"},slot:"description"},[t._v("\n "+t._s(a.description)+"\n ")])]),e("div",{staticClass:"project-item"},[e("a",{attrs:{href:"/#/"}},[t._v("科学搬砖组")]),e("span",{staticClass:"datetime"},[t._v("9小时前")])])],1)],1)})),1)]),e("a-card",{attrs:{loading:t.loading,title:"动态",bordered:!1}},[e("a-list",t._l(t.activities,(function(a,i){return e("a-list-item",{key:i},[e("a-list-item-meta",[e("a-avatar",{attrs:{slot:"avatar",src:a.user.avatar},slot:"avatar"}),e("div",{attrs:{slot:"title"},slot:"title"},[e("span",[t._v(t._s(a.user.nickname))]),t._v(" \n 在 "),e("a",{attrs:{href:"#"}},[t._v(t._s(a.project.name))]),t._v(" \n "),e("span",[t._v(t._s(a.project.action))]),t._v(" \n "),e("a",{attrs:{href:"#"}},[t._v(t._s(a.project.event))])]),e("div",{attrs:{slot:"description"},slot:"description"},[t._v(t._s(a.time))])],1)],1)})),1)],1)],1),e("a-col",{staticStyle:{padding:"0 12px"},attrs:{xl:8,lg:24,md:24,sm:24,xs:24}},[e("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"快速开始 / 便捷导航",bordered:!1,"body-style":{padding:0}}},[e("div",{staticClass:"item-group"},[e("a",[t._v("操作一")]),e("a",[t._v("操作二")]),e("a",[t._v("操作三")]),e("a",[t._v("操作四")]),e("a",[t._v("操作五")]),e("a",[t._v("操作六")]),e("a-button",{attrs:{size:"small",type:"primary",ghost:"",icon:"plus"}},[t._v("添加")])],1)]),e("a-card",{staticStyle:{"margin-bottom":"24px"},attrs:{title:"XX 指数",loading:t.radarLoading,bordered:!1,"body-style":{padding:0}}},[e("div",{staticStyle:{"min-height":"400px"}},[e("radar",{attrs:{data:t.radarData}})],1)]),e("a-card",{attrs:{loading:t.loading,title:"团队",bordered:!1}},[e("div",{staticClass:"members"},[e("a-row",t._l(t.teams,(function(a,i){return e("a-col",{key:i,attrs:{span:12}},[e("a",[e("a-avatar",{attrs:{size:"small",src:a.avatar}}),e("span",{staticClass:"member"},[t._v(t._s(a.name))])],1)])})),1)],1)])],1)],1)],1)])},r=[],s=a("ca00"),n=a("2f62"),o=a("b445"),c=a("81d1"),l=a("3981"),d=a("0fea");function u(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,i)}return a}function p(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?u(Object(a),!0).forEach((function(e){v(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):u(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function v(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var f=a("7104"),m={name:"Workplace",components:{PageLayout:o["default"],HeadInfo:c["default"],Radar:l["default"]},data:function(){return{timeFix:Object(s["j"])(),avatar:"",user:{},projects:[],loading:!0,radarLoading:!0,activities:[],teams:[],axis1Opts:{dataKey:"item",line:null,tickLine:null,grid:{lineStyle:{lineDash:null},hideFirstLine:!1}},axis2Opts:{dataKey:"score",line:null,tickLine:null,grid:{type:"polygon",lineStyle:{lineDash:null}}},scale:[{dataKey:"score",min:0,max:80}],axisData:[{item:"引用",a:70,b:30,c:40},{item:"口碑",a:60,b:70,c:40},{item:"产量",a:50,b:60,c:40},{item:"贡献",a:40,b:50,c:40},{item:"热度",a:60,b:70,c:40},{item:"引用",a:70,b:50,c:40}],radarData:[]}},computed:{userInfo:function(){return this.$store.getters.userInfo}},created:function(){this.user=this.userInfo,this.avatar=Object(d["e"])(this.userInfo.avatar),Object(d["g"])().then((function(t){})),Object(d["h"])().then((function(t){}))},mounted:function(){this.getProjects(),this.getActivity(),this.getTeams(),this.initRadar()},methods:p(p({},Object(n["c"])(["nickname","welcome"])),{},{getProjects:function(){var t=this;this.$http.get("/api/list/search/projects").then((function(e){t.projects=e.result&&e.result.data,t.loading=!1}))},getActivity:function(){var t=this;this.$http.get("/api/workplace/activity").then((function(e){t.activities=e.result}))},getTeams:function(){var t=this;this.$http.get("/api/workplace/teams").then((function(e){t.teams=e.result}))},initRadar:function(){var t=this;this.radarLoading=!0,this.$http.get("/api/workplace/radar").then((function(e){var a=(new f.View).source(e.result);a.transform({type:"fold",fields:["个人","团队","部门"],key:"user",value:"score"}),t.radarData=a.rows,t.radarLoading=!1}))}})},h=m,g=(a("4fc0"),a("2877")),y=Object(g["a"])(h,i,r,!1,null,"4d77897f",null);e["default"]=y.exports},"1c43":function(t,e,a){},3981:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("v-chart",{attrs:{forceFit:!0,height:t.height,data:t.data,padding:[20,20,95,20],scale:t.scale}},[e("v-tooltip"),e("v-axis",{attrs:{dataKey:t.axis1Opts.dataKey,line:t.axis1Opts.line,tickLine:t.axis1Opts.tickLine,grid:t.axis1Opts.grid}}),e("v-axis",{attrs:{dataKey:t.axis2Opts.dataKey,line:t.axis2Opts.line,tickLine:t.axis2Opts.tickLine,grid:t.axis2Opts.grid}}),e("v-legend",{attrs:{dataKey:"user",marker:"circle",offset:30}}),e("v-coord",{attrs:{type:"polar",radius:"0.8"}}),e("v-line",{attrs:{position:"item*score",color:"user",size:2}}),e("v-point",{attrs:{position:"item*score",color:"user",size:4,shape:"circle"}})],1)},r=[],s={dataKey:"item",line:null,tickLine:null,grid:{lineStyle:{lineDash:null},hideFirstLine:!1}},n={dataKey:"score",line:null,tickLine:null,grid:{type:"polygon",lineStyle:{lineDash:null}}},o=[{dataKey:"score",min:0,max:100},{dataKey:"user",alias:"类型"}],c=[{item:"示例一",score:40},{item:"示例二",score:20},{item:"示例三",score:67},{item:"示例四",score:43},{item:"示例五",score:90}],l={name:"Radar",props:{height:{type:Number,default:254},dataSource:{type:Array,default:function(){return[]}}},data:function(){return{axis1Opts:s,axis2Opts:n,scale:o,data:c}},watch:{dataSource:function(t){0===t.length?this.data=c:this.data=t}}},d=l,u=a("2877"),p=Object(u["a"])(d,i,r,!1,null,"f48462e2",null);e["default"]=p.exports},"4fc0":function(t,e,a){"use strict";a("1c43")},"81d1":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"head-info",class:t.center&&"center"},[e("span",[t._v(t._s(t.title))]),e("p",[t._v(t._s(t.content))]),t.bordered?e("em"):t._e()])},r=[],s={name:"HeadInfo",props:{title:{type:String,default:""},content:{type:String,default:""},bordered:{type:Boolean,default:!1},center:{type:Boolean,default:!0}}},n=s,o=(a("c5b5"),a("2877")),c=Object(o["a"])(n,i,r,!1,null,"35671dcd",null);e["default"]=c.exports},c5b5:function(t,e,a){"use strict";a("d8dd")},d8dd:function(t,e,a){}}]);
|