Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
fudax committed Feb 17, 2020
2 parents 67e59ed + 119c22f commit 749fd99
Show file tree
Hide file tree
Showing 54 changed files with 5,915 additions and 5,915 deletions.
468 changes: 234 additions & 234 deletions src/components/sep/analysis/DefectDirection.vue

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions src/components/sep/analysis/DefectFixCost.vue
Original file line number Diff line number Diff line change
@@ -1,85 +1,85 @@
<template>
<div id="fcostCharts" style="width: 99%; height: 300px;"></div>
</template>

<script>
let echarts = require("echarts/lib/echarts");
require("echarts/lib/chart/pie");
require("echarts/lib/component/tooltip");
require("echarts/lib/component/toolbox");
require("echarts/lib/component/title");
require("echarts/lib/component/legend");
import sepp from "@/assets/theme/charts/sepp";
export default {
data: function () {
return {
chartsOptions: ""
};
},
props: ["dfcosts"],
created() {
let _self = this;
let legendData = [];
let fcostData = [];
for (let i = 0; i < _self.dfcosts.length; i++) {
legendData.push(_self.dfcosts[i].fixCosts);
fcostData.push({
value: _self.dfcosts[i].num,
name: _self.dfcosts[i].fixCosts
});
}
_self.chartsOptions = {
title: {
text: "缺陷修复时效分析",
top: "5px",
left: "10px"
},
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: "vertical",
right: 10,
bottom: 10,
data: legendData
},
toolbox: {
right: 0,
top: 0,
show: true,
feature: {
dataView: {
show: true,
readOnly: false
},
restore: {
show: true
},
saveAsImage: {
show: true
}
},
padding: 10
},
series: [{
name: "修复耗时",
type: "pie",
radius: "60%",
center: ["40%", "50%"],
data: fcostData
}]
};
},
mounted() {
let _self = this;
let charts = document.getElementById("fcostCharts");
let dataCharts = echarts.init(charts, sepp);
dataCharts.setOption(_self.chartsOptions);
}
};
</script>
<template>
<div id="fcostCharts" style="width: 99%; height: 300px;"></div>
</template>

<script>
let echarts = require("echarts/lib/echarts");
require("echarts/lib/chart/pie");
require("echarts/lib/component/tooltip");
require("echarts/lib/component/toolbox");
require("echarts/lib/component/title");
require("echarts/lib/component/legend");
import sepp from "@/assets/theme/charts/sepp";
export default {
data: function () {
return {
chartsOptions: ""
};
},
props: ["dfcosts"],
created() {
let _self = this;
let legendData = [];
let fcostData = [];
for (let i = 0; i < _self.dfcosts.length; i++) {
legendData.push(_self.dfcosts[i].fixCosts);
fcostData.push({
value: _self.dfcosts[i].num,
name: _self.dfcosts[i].fixCosts
});
}
_self.chartsOptions = {
title: {
text: "缺陷修复时效分析",
top: "5px",
left: "10px"
},
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: "vertical",
right: 10,
bottom: 10,
data: legendData
},
toolbox: {
right: 0,
top: 0,
show: true,
feature: {
dataView: {
show: true,
readOnly: false
},
restore: {
show: true
},
saveAsImage: {
show: true
}
},
padding: 10
},
series: [{
name: "修复耗时",
type: "pie",
radius: "60%",
center: ["40%", "50%"],
data: fcostData
}]
};
},
mounted() {
let _self = this;
let charts = document.getElementById("fcostCharts");
let dataCharts = echarts.init(charts, sepp);
dataCharts.setOption(_self.chartsOptions);
}
};
</script>
170 changes: 85 additions & 85 deletions src/components/sep/analysis/DefectFixTimes.vue
Original file line number Diff line number Diff line change
@@ -1,85 +1,85 @@
<template>
<div id="ftimeCharts" style="width: 99%; height: 300px;"></div>
</template>

<script>
let echarts = require("echarts/lib/echarts");
require("echarts/lib/chart/pie");
require("echarts/lib/component/tooltip");
require("echarts/lib/component/toolbox");
require("echarts/lib/component/title");
require("echarts/lib/component/legend");
import sepp from "@/assets/theme/charts/sepp";
export default {
data: function () {
return {
chartsOptions: ""
};
},
props: ["dftimes"],
created() {
let _self = this;
let legendData = [];
let ftimeData = [];
for (let i = 0; i < _self.dftimes.length; i++) {
legendData.push(_self.dftimes[i].fixedTimes);
ftimeData.push({
value: _self.dftimes[i].num,
name: _self.dftimes[i].fixedTimes
});
}
_self.chartsOptions = {
title: {
text: "缺陷修复次数分析",
top: "5px",
left: "10px"
},
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: "vertical",
right: 10,
bottom: 10,
data: legendData
},
toolbox: {
right: 0,
top: 0,
show: true,
feature: {
dataView: {
show: true,
readOnly: false
},
restore: {
show: true
},
saveAsImage: {
show: true
}
},
padding: 10
},
series: [{
name: "修复次数",
type: "pie",
radius: "60%",
center: ["40%", "50%"],
data: ftimeData
}]
};
},
mounted() {
let _self = this;
let charts = document.getElementById("ftimeCharts");
let dataCharts = echarts.init(charts, sepp);
dataCharts.setOption(_self.chartsOptions);
}
};
</script>
<template>
<div id="ftimeCharts" style="width: 99%; height: 300px;"></div>
</template>

<script>
let echarts = require("echarts/lib/echarts");
require("echarts/lib/chart/pie");
require("echarts/lib/component/tooltip");
require("echarts/lib/component/toolbox");
require("echarts/lib/component/title");
require("echarts/lib/component/legend");
import sepp from "@/assets/theme/charts/sepp";
export default {
data: function () {
return {
chartsOptions: ""
};
},
props: ["dftimes"],
created() {
let _self = this;
let legendData = [];
let ftimeData = [];
for (let i = 0; i < _self.dftimes.length; i++) {
legendData.push(_self.dftimes[i].fixedTimes);
ftimeData.push({
value: _self.dftimes[i].num,
name: _self.dftimes[i].fixedTimes
});
}
_self.chartsOptions = {
title: {
text: "缺陷修复次数分析",
top: "5px",
left: "10px"
},
tooltip: {
trigger: "item",
formatter: "{a} <br/>{b}: {c} ({d}%)"
},
legend: {
orient: "vertical",
right: 10,
bottom: 10,
data: legendData
},
toolbox: {
right: 0,
top: 0,
show: true,
feature: {
dataView: {
show: true,
readOnly: false
},
restore: {
show: true
},
saveAsImage: {
show: true
}
},
padding: 10
},
series: [{
name: "修复次数",
type: "pie",
radius: "60%",
center: ["40%", "50%"],
data: ftimeData
}]
};
},
mounted() {
let _self = this;
let charts = document.getElementById("ftimeCharts");
let dataCharts = echarts.init(charts, sepp);
dataCharts.setOption(_self.chartsOptions);
}
};
</script>
Loading

0 comments on commit 749fd99

Please sign in to comment.