Commit b7d3c925 authored by 高滢's avatar 高滢

feat(大屏): 信息安全

parent 26fb3919
...@@ -58,3 +58,10 @@ export function getCodeImg() { ...@@ -58,3 +58,10 @@ export function getCodeImg() {
timeout: 20000 timeout: 20000
}) })
} }
export function getQuantityStatistics(){
return request({
url:'/home/statistics/quantityStatisticsNew',
method:'post'
})
}
...@@ -95,6 +95,7 @@ import pieChart from '../components/homeComponents/pieChart.vue' ...@@ -95,6 +95,7 @@ import pieChart from '../components/homeComponents/pieChart.vue'
import table from '../components/homeComponents/table.vue' import table from '../components/homeComponents/table.vue'
import table2 from '../components/homeComponents/table2.vue' import table2 from '../components/homeComponents/table2.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import {getQuantityStatistics} from "@/api/login";
export default { export default {
name: 'HomePage', name: 'HomePage',
components: { components: {
...@@ -196,7 +197,19 @@ export default { ...@@ -196,7 +197,19 @@ export default {
cumputed: { cumputed: {
...mapGetters(['roles']) ...mapGetters(['roles'])
}, },
created() {}, created() {
getQuantityStatistics().then(res=>{
let numberStatisticsList = res.data.numberStatisticsList
this.info[0].number = numberStatisticsList[0]['keypointNum']
this.info[1].number = numberStatisticsList[0]['detailsNum']
this.info[2].number = numberStatisticsList[0]['sceneNum']
this.info[3].number = numberStatisticsList[0]['usecaseNum']
this.soft[0].number = numberStatisticsList[1]['keypointNum']
this.soft[1].number = numberStatisticsList[1]['detailsNum']
this.soft[2].number = numberStatisticsList[1]['sceneNum']
this.soft[3].number = numberStatisticsList[1]['usecaseNum']
})
},
mounted() { mounted() {
let role = this.$store.state.user.roles[0] let role = this.$store.state.user.roles[0]
this.bottom.push() this.bottom.push()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment