-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
54 changed files
with
5,915 additions
and
5,915 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.