|
|
@@ -156,51 +156,65 @@
|
|
|
{ name: '处理中', value: 30},
|
|
|
{ name: '已完成', value: 50 }
|
|
|
],
|
|
|
- // group_message:[
|
|
|
- // {
|
|
|
- // group: 1,
|
|
|
- // projects: [
|
|
|
- // {projectId:1, projectName:"abc",},
|
|
|
- // ],
|
|
|
- // members: [
|
|
|
- // {userId: 1,studentId:1, name:"aaa"},
|
|
|
- // {userId: 2,studentId: 2,name: "bbb"},
|
|
|
- // ],
|
|
|
- // commit: {
|
|
|
- // ["commit-times"]: 0,
|
|
|
- // ["valid-commit-times"]: 0,
|
|
|
- // ["buglist-commit"]: 0,
|
|
|
- // ["feature-commit"]: 0,
|
|
|
- // ["commit-msg-overview"]: [
|
|
|
- // "haha",
|
|
|
- // "init",
|
|
|
- // ],
|
|
|
- // ["commit-contribution"]: [
|
|
|
- // {name: "aaa", times: 0, proportion: 0},
|
|
|
- // {name:"bbb",times:1,proportion: 0.1},
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // test: {
|
|
|
- // ["interface-test"]: {
|
|
|
- // ["interface-test-times"]: 0,
|
|
|
- // ["interface-test-concurrency-count"]: 0,
|
|
|
- // ["interface-test-concurrency-failure"]: 0,
|
|
|
- // ["interface-test-concurrency-pass"]: 0,
|
|
|
- // ["interface-test-contribution"]: [
|
|
|
- // {name: "aaa", times: 1, proportion: 0.1},
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // },
|
|
|
- // pipeline: {
|
|
|
- // ["pipeline-deploy"]:0,
|
|
|
- // ["pipeline-pass"]:0,
|
|
|
- // ["pipeline-failure"]:0,
|
|
|
- // ["pipeline-contribution"]: [
|
|
|
- // {name: "aaa", times: 1, proportion: 0.1},
|
|
|
- // ]
|
|
|
- // },
|
|
|
- // }],
|
|
|
- group_message:[],
|
|
|
+ group_message:[
|
|
|
+ {
|
|
|
+ group: 10,
|
|
|
+ projects: [
|
|
|
+ {projectId:1, projectName:"fun_frontEnd",},
|
|
|
+ {projectId:2, projectName:"fun_backEnd",},
|
|
|
+ ],
|
|
|
+ members: [
|
|
|
+ {userId: 11,studentId: 201250076, name:"周棋秋"},
|
|
|
+ {userId: 12,studentId: 201250075,name: "田野"},
|
|
|
+ {userId: 13,studentId: 201250077,name: "金采源"},
|
|
|
+ {userId: 14,studentId: 201250230,name: "李泽玉"},
|
|
|
+ ],
|
|
|
+ commit: {
|
|
|
+ ["commit-times"]: 5,
|
|
|
+ ["valid-commit-times"]: 5,
|
|
|
+ ["buglist-commit"]: 2,
|
|
|
+ ["feature-commit"]: 3,
|
|
|
+ ["commit-msg-overview"]: [
|
|
|
+ "fix: 修改错误",
|
|
|
+ "feat: 增加评论区功能",
|
|
|
+ "feat: 增加头像上传",
|
|
|
+ "fix: 修复登录页面的错误",
|
|
|
+ "feat: 增加优惠券功能",
|
|
|
+ ],
|
|
|
+ ["commit-contribution"]: [
|
|
|
+ {name: "周棋秋", times: 0, proportion: 0},
|
|
|
+ {name:"田野",times:2, proportion: 0.4},
|
|
|
+ {name:"金采源",times:1, proportion: 0.2},
|
|
|
+ {name:"李泽玉",times:2, proportion: 0.4},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ test: {
|
|
|
+ ["interface-test"]: {
|
|
|
+ ["interface-test-times"]: 5,
|
|
|
+ ["interface-test-concurrency-count"]: 100,
|
|
|
+ ["interface-test-concurrency-failure"]: 20,
|
|
|
+ ["interface-test-concurrency-pass"]: 80,
|
|
|
+ ["interface-test-contribution"]: [
|
|
|
+ {name: "周棋秋", times: 4, proportion: 0.8},
|
|
|
+ {name:"田野",times:0, proportion: 0},
|
|
|
+ {name:"金采源",times:0, proportion: 0},
|
|
|
+ {name:"李泽玉",times:1, proportion: 0.2},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ },
|
|
|
+ pipeline: {
|
|
|
+ ["pipeline-deploy"]:10,
|
|
|
+ ["pipeline-pass"]:10,
|
|
|
+ ["pipeline-failure"]:0,
|
|
|
+ ["pipeline-contribution"]: [
|
|
|
+ {name: "周棋秋", times: 1, proportion: 0.1},
|
|
|
+ {name:"田野",times:1, proportion: 0.1},
|
|
|
+ {name:"金采源",times:2, proportion: 0.2},
|
|
|
+ {name:"李泽玉",times:6, proportion: 0.6},
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ }],
|
|
|
+ // group_message:[],
|
|
|
commitPie:[],
|
|
|
testPie:[],
|
|
|
deployPie:[],
|
|
|
@@ -216,10 +230,10 @@
|
|
|
|
|
|
async mounted () {
|
|
|
console.log('here');
|
|
|
- await this.set_group({
|
|
|
- groupId: Number(this.$route.params.groupId),
|
|
|
- })
|
|
|
- await this.initData(this.groupId);
|
|
|
+ // await this.set_group({
|
|
|
+ // groupId: Number(this.$route.params.groupId),
|
|
|
+ // })
|
|
|
+ // await this.initData(this.groupId);
|
|
|
this.getAnalysis();
|
|
|
this.getCommitPie();
|
|
|
this.getTestPie();
|
|
|
@@ -298,7 +312,7 @@
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: 'commit类型',
|
|
|
+ name: 'commit次数',
|
|
|
center: ['50%', '30%'],
|
|
|
type: 'pie', // 设置图表类型为饼图
|
|
|
radius: '55%', // 饼图的半径,外半径为可视区尺寸(容器高宽中较小一项)的 55% 长度。
|
|
|
@@ -325,7 +339,7 @@
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: 'commit类型',
|
|
|
+ name: '测试次数',
|
|
|
center: ['50%', '30%'],
|
|
|
type: 'pie', // 设置图表类型为饼图
|
|
|
radius: '55%', // 饼图的半径,外半径为可视区尺寸(容器高宽中较小一项)的 55% 长度。
|
|
|
@@ -353,7 +367,7 @@
|
|
|
},
|
|
|
series: [
|
|
|
{
|
|
|
- name: 'commit类型',
|
|
|
+ name: '部署次数',
|
|
|
center: ['50%', '30%'],
|
|
|
type: 'pie', // 设置图表类型为饼图
|
|
|
radius: '55%', // 饼图的半径,外半径为可视区尺寸(容器高宽中较小一项)的 55% 长度。
|