修复数据管理统计图表
This commit is contained in:
parent
f5ead8ecde
commit
644e15018b
|
@ -40,6 +40,10 @@
|
|||
data () {
|
||||
return {
|
||||
description: '数据统计',
|
||||
cleaningVarianceData:[],
|
||||
totalNumberCataloguesData:[],
|
||||
catalogingStorageData:[],
|
||||
typeStorage:[]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -59,10 +63,42 @@
|
|||
|
||||
},
|
||||
getTables(){
|
||||
this.cleaningVarianceData =[['product', '原始库', '标准库']];
|
||||
getAction("/dataAnalysis/getClnDiffStats",{}).then((res)=>{
|
||||
if(res.success){
|
||||
res.result.schemaNames.forEach(row => {
|
||||
this.cleaningVarianceData.push([row, parseInt(res.result.numRowOriMap[row]),parseInt(res.result.numRowStaMap[row]) ])
|
||||
})
|
||||
this.getcleaningVariance();
|
||||
}
|
||||
});
|
||||
this.totalNumberCataloguesData =[];
|
||||
getAction("/dataAnalysis/getTagStats",{}).then((res)=>{
|
||||
if(res.success){
|
||||
res.result.tagNames.forEach(row => {
|
||||
this.totalNumberCataloguesData.push([row, parseInt(res.result.tagNumRow[row]) ])
|
||||
})
|
||||
this.gettotalNumberCatalogues();
|
||||
}
|
||||
});
|
||||
this.catalogingStorageData =[];
|
||||
getAction("/dataAnalysis/getDataTypeAnalysis",{}).then((res)=>{
|
||||
if(res.success){
|
||||
res.result.typeName.forEach(row => {
|
||||
this.catalogingStorageData.push({ value: parseInt(res.result.numRowMap[row]), name: row })
|
||||
})
|
||||
this.getcatalogingStorage();
|
||||
}
|
||||
});
|
||||
this.typeStorage =[]
|
||||
getAction("/dataAnalysis/getTagNumRowStats",{}).then((res)=>{
|
||||
if(res.success){
|
||||
res.result.tagNames.forEach(row => {
|
||||
this.typeStorage.push({ value: parseInt(res.result.tagNumRow[row]), name: row })
|
||||
})
|
||||
this.gettypeStorage();
|
||||
}
|
||||
});
|
||||
},
|
||||
getcleaningVariance(){
|
||||
var myChart = this.$echarts.init(this.$refs.cleaningVariance);
|
||||
|
@ -108,16 +144,7 @@
|
|||
},
|
||||
},
|
||||
dataset: {
|
||||
source: [
|
||||
['product', '原始库', '标准库'],
|
||||
['平台', 43.3, 85.8],
|
||||
['编队', 83.1, 73.4],
|
||||
['航空兵', 86.4, 65.2],
|
||||
['陆战队', 72.4, 53.9],
|
||||
['作战', 72.4, 53.9],
|
||||
['反潜', 72.4, 53.9],
|
||||
['舰炮', 72.4, 53.9]
|
||||
]
|
||||
source: this.cleaningVarianceData
|
||||
},
|
||||
// Declare several bar series, each will be mapped
|
||||
// to a column of dataset.source by default.
|
||||
|
@ -131,15 +158,7 @@
|
|||
var option = {
|
||||
tooltip: {},
|
||||
dataset: {
|
||||
source: [
|
||||
['product', ''],
|
||||
['侦察预警', 43.3],
|
||||
['指挥控制', 83.1],
|
||||
['火力打击', 86.4],
|
||||
['支援保障', 72.4],
|
||||
['装备运行状态', 72.4],
|
||||
['作战环境', 72.4]
|
||||
]
|
||||
source: this.totalNumberCataloguesData
|
||||
},
|
||||
grid:{
|
||||
left:'40px',
|
||||
|
@ -198,15 +217,7 @@
|
|||
name: '占比',
|
||||
type: 'pie',
|
||||
radius: '80%',
|
||||
data: [
|
||||
{ value: 1048, name: '平台' },
|
||||
{ value: 735, name: '编队' },
|
||||
{ value: 580, name: '航空兵' },
|
||||
{ value: 484, name: '陆战队' },
|
||||
{ value: 300, name: '作战' },
|
||||
{ value: 735, name: '反潜' },
|
||||
{ value: 580, name: '舰炮' }
|
||||
],
|
||||
data: this.catalogingStorageData,
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
shadowBlur: 10,
|
||||
|
@ -231,14 +242,7 @@
|
|||
name: '占比',
|
||||
type: 'pie',
|
||||
radius: '80%',
|
||||
data: [
|
||||
{ value: 1048, name: '侦察预警' },
|
||||
{ value: 735, name: '指挥控制' },
|
||||
{ value: 580, name: '火力打击' },
|
||||
{ value: 484, name: '支援保障' },
|
||||
{ value: 300, name: '装备运行状态' },
|
||||
{ value: 300, name: '作战环境' }
|
||||
],
|
||||
data: this.typeStorage,
|
||||
emphasis: {
|
||||
itemStyle: {
|
||||
shadowBlur: 10,
|
||||
|
|
Loading…
Reference in New Issue
Block a user