修改统计图表
This commit is contained in:
		
							parent
							
								
									dd918b4d08
								
							
						
					
					
						commit
						3410e6d9b9
					
				| 
						 | 
					@ -67,7 +67,9 @@
 | 
				
			||||||
        percent:0,
 | 
					        percent:0,
 | 
				
			||||||
        websock:{},
 | 
					        websock:{},
 | 
				
			||||||
        queryParam: {
 | 
					        queryParam: {
 | 
				
			||||||
          datatype:""
 | 
					          datatype:"",
 | 
				
			||||||
 | 
					          pageNum :1,
 | 
				
			||||||
 | 
					          pageSize:9999999,
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        dataTypedataSources: [],
 | 
					        dataTypedataSources: [],
 | 
				
			||||||
        dataSource:[
 | 
					        dataSource:[
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -73,7 +73,9 @@
 | 
				
			||||||
        percent:0,
 | 
					        percent:0,
 | 
				
			||||||
        websock:{},
 | 
					        websock:{},
 | 
				
			||||||
        queryParam: {
 | 
					        queryParam: {
 | 
				
			||||||
          datatype:""
 | 
					          datatype:"",
 | 
				
			||||||
 | 
					          pageNum :1,
 | 
				
			||||||
 | 
					          pageSize:9999999,
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        dataTypedataSources: [],
 | 
					        dataTypedataSources: [],
 | 
				
			||||||
        dataSource:[
 | 
					        dataSource:[
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,6 +30,10 @@
 | 
				
			||||||
      data () {
 | 
					      data () {
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
          description: '数据统计',
 | 
					          description: '数据统计',
 | 
				
			||||||
 | 
					          cleaningVarianceData:[],
 | 
				
			||||||
 | 
					          totalNumberCataloguesData:[],
 | 
				
			||||||
 | 
					          catalogingStorageData:[],
 | 
				
			||||||
 | 
					          typeStorage:[]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      mounted() { 
 | 
					      mounted() { 
 | 
				
			||||||
| 
						 | 
					@ -44,15 +48,44 @@
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      methods: {
 | 
					      methods: {
 | 
				
			||||||
        dataAdd(){
 | 
					        dataAdd(){
 | 
				
			||||||
        },
 | 
					 | 
				
			||||||
        getselect(){
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        getTables(){
 | 
					        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.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.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.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();
 | 
					                    this.gettypeStorage();
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        getcleaningVariance(){
 | 
					        getcleaningVariance(){
 | 
				
			||||||
          var myChart = this.$echarts.init(this.$refs.cleaningVariance);
 | 
					          var myChart = this.$echarts.init(this.$refs.cleaningVariance);
 | 
				
			||||||
| 
						 | 
					@ -66,16 +99,7 @@
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                tooltip: {},
 | 
					                tooltip: {},
 | 
				
			||||||
                dataset: {
 | 
					                dataset: {
 | 
				
			||||||
                    source: [
 | 
					                    source: this.cleaningVarianceData
 | 
				
			||||||
                        ['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]
 | 
					 | 
				
			||||||
                    ]
 | 
					 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                xAxis: { type: 'category' },
 | 
					                xAxis: { type: 'category' },
 | 
				
			||||||
                yAxis: {},
 | 
					                yAxis: {},
 | 
				
			||||||
| 
						 | 
					@ -97,15 +121,7 @@
 | 
				
			||||||
                    left: 'center'},
 | 
					                    left: 'center'},
 | 
				
			||||||
                tooltip: {},
 | 
					                tooltip: {},
 | 
				
			||||||
                dataset: {
 | 
					                dataset: {
 | 
				
			||||||
                    source: [
 | 
					                    source: this.totalNumberCataloguesData
 | 
				
			||||||
                        ['product', ''],
 | 
					 | 
				
			||||||
                        ['侦察预警', 43.3],
 | 
					 | 
				
			||||||
                        ['指挥控制', 83.1],
 | 
					 | 
				
			||||||
                        ['火力打击', 86.4],
 | 
					 | 
				
			||||||
                        ['支援保障', 72.4],
 | 
					 | 
				
			||||||
                        ['装备运行状态', 72.4],
 | 
					 | 
				
			||||||
                        ['作战环境', 72.4]
 | 
					 | 
				
			||||||
                    ]
 | 
					 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
                xAxis: { type: 'category' },
 | 
					                xAxis: { type: 'category' },
 | 
				
			||||||
                yAxis: {},
 | 
					                yAxis: {},
 | 
				
			||||||
| 
						 | 
					@ -135,12 +151,7 @@
 | 
				
			||||||
                name: '占比',
 | 
					                name: '占比',
 | 
				
			||||||
                type: 'pie',
 | 
					                type: 'pie',
 | 
				
			||||||
                radius: '50%',
 | 
					                radius: '50%',
 | 
				
			||||||
                data: [
 | 
					                data: this.catalogingStorageData,
 | 
				
			||||||
                    { value: 1048, name: '文档' },
 | 
					 | 
				
			||||||
                    { value: 735, name: '视频' },
 | 
					 | 
				
			||||||
                    { value: 580, name: '音频' },
 | 
					 | 
				
			||||||
                    { value: 484, name: '结构化数据' },
 | 
					 | 
				
			||||||
                ],
 | 
					 | 
				
			||||||
                emphasis: {
 | 
					                emphasis: {
 | 
				
			||||||
                    itemStyle: {
 | 
					                    itemStyle: {
 | 
				
			||||||
                    shadowBlur: 10,
 | 
					                    shadowBlur: 10,
 | 
				
			||||||
| 
						 | 
					@ -173,14 +184,7 @@
 | 
				
			||||||
                name: '占比',
 | 
					                name: '占比',
 | 
				
			||||||
                type: 'pie',
 | 
					                type: 'pie',
 | 
				
			||||||
                radius: '50%',
 | 
					                radius: '50%',
 | 
				
			||||||
                data: [
 | 
					                data:  this.typeStorage,
 | 
				
			||||||
                    { value: 1048, name: '侦察预警' },
 | 
					 | 
				
			||||||
                    { value: 735, name: '指挥控制' },
 | 
					 | 
				
			||||||
                    { value: 580, name: '火力打击' },
 | 
					 | 
				
			||||||
                    { value: 484, name: '支援保障' },
 | 
					 | 
				
			||||||
                    { value: 300, name: '装备运行状态' },
 | 
					 | 
				
			||||||
                    { value: 300, name: '作战环境' }
 | 
					 | 
				
			||||||
                ],
 | 
					 | 
				
			||||||
                emphasis: {
 | 
					                emphasis: {
 | 
				
			||||||
                    itemStyle: {
 | 
					                    itemStyle: {
 | 
				
			||||||
                    shadowBlur: 10,
 | 
					                    shadowBlur: 10,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -215,13 +215,13 @@
 | 
				
			||||||
            taskPageList(this.queryParam).then((res) => {
 | 
					            taskPageList(this.queryParam).then((res) => {
 | 
				
			||||||
                if (res.success) {
 | 
					                if (res.success) {
 | 
				
			||||||
                    this.dataSource = res.result.rows||res.result;
 | 
					                    this.dataSource = res.result.rows||res.result;
 | 
				
			||||||
 | 
					                    this.handleEdit(res.result.rows[0]);
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    this.$message.warning(res.message);
 | 
					                    this.$message.warning(res.message);
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        getTables(){
 | 
					        getTables(){
 | 
				
			||||||
           
 | 
					 | 
				
			||||||
            this.gettotalNumberCatalogues();
 | 
					            this.gettotalNumberCatalogues();
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        getcleaningVariance(){
 | 
					        getcleaningVariance(){
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user