pull/26/head
xuhaoyun 1 year ago
parent 7cb47ad4e3
commit 0e28533c86

@ -0,0 +1,9 @@
import request from '@/utils/request'
//企业员工图表
export function staffStatistics(params) {
return request({
url: '/safety/index/staff/statistics',
method: 'post',
params
})
}

@ -22,8 +22,23 @@
</template> </template>
<script> <script>
import { staffStatistics } from '@/api/safetyIndex'
export default { export default {
data() {
return {
staffStatisticsList: [],
}
},
created() {
this.getstaffStatistics()
},
methods: {
getstaffStatistics() {
staffStatistics().then(res => {
this.staffStatisticsList = res.data
})
}
},
} }
</script> </script>

Loading…
Cancel
Save