中建四(指挥中心)

This commit is contained in:
骆乐 2022-09-17 17:01:58 +08:00
parent 03501b6c0f
commit 0d547661ed
2 changed files with 21 additions and 4 deletions

View File

@ -3,6 +3,8 @@
/* --------------指挥中心------------ */
// 项目信息
export const listProjectInfo = data => post('xmgl/project/getProjectInfoBySn', data);
// 人员概览
export const getPersonnelNumApi = data => get('xmgl/workerInfo/getPersonnelSituationNum',data)
// 安全管理
export const resourceManagement = params => get('xmgl/hiddenDangerInspectRecord/getPollingFinishDays', params);
// 质量管理-整改问题

View File

@ -6,18 +6,33 @@
<script>
import echarts from 'echarts4'
import { getPersonnelNumApi } from '@/assets/js/api/zhongjianFourth'
import Card from '../components/Card'
export default {
components: { Card },
data() {
return {}
return {
projectSn: "",
xdata:{
sumNumber:"",
realNameNumber:'',
lwNumber:'',
attendanceNumber:"",
exitNumber:""
}
}
},
mounted() {
this.initChart()
this.getData()
},
methods: {
getData(){
getPersonnelNumApi({ projectSn: this.$store.state.projectSn }).then((res)=>{
this.xdata = res.result
this.initChart()
})
},
initChart() {
const myChart = echarts.init(this.$refs.chart)
const option = {
@ -57,7 +72,7 @@ export default {
series: [
{
name: '报警',
data: [150, 80, 70, 110, 130],
data: Object.values(this.xdata),
type: 'bar',
barWidth: '25%',
itemStyle: {