中建四(指挥中心)
This commit is contained in:
parent
03501b6c0f
commit
0d547661ed
@ -3,6 +3,8 @@
|
|||||||
/* --------------指挥中心------------ */
|
/* --------------指挥中心------------ */
|
||||||
// 项目信息
|
// 项目信息
|
||||||
export const listProjectInfo = data => post('xmgl/project/getProjectInfoBySn', data);
|
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);
|
export const resourceManagement = params => get('xmgl/hiddenDangerInspectRecord/getPollingFinishDays', params);
|
||||||
// 质量管理-整改问题
|
// 质量管理-整改问题
|
||||||
|
|||||||
@ -6,18 +6,33 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import echarts from 'echarts4'
|
import echarts from 'echarts4'
|
||||||
|
import { getPersonnelNumApi } from '@/assets/js/api/zhongjianFourth'
|
||||||
import Card from '../components/Card'
|
import Card from '../components/Card'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: { Card },
|
components: { Card },
|
||||||
data() {
|
data() {
|
||||||
return {}
|
return {
|
||||||
|
projectSn: "",
|
||||||
|
xdata:{
|
||||||
|
sumNumber:"",
|
||||||
|
realNameNumber:'',
|
||||||
|
lwNumber:'',
|
||||||
|
attendanceNumber:"",
|
||||||
|
exitNumber:""
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initChart()
|
this.getData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData(){
|
||||||
|
getPersonnelNumApi({ projectSn: this.$store.state.projectSn }).then((res)=>{
|
||||||
|
this.xdata = res.result
|
||||||
|
this.initChart()
|
||||||
|
})
|
||||||
|
},
|
||||||
initChart() {
|
initChart() {
|
||||||
const myChart = echarts.init(this.$refs.chart)
|
const myChart = echarts.init(this.$refs.chart)
|
||||||
const option = {
|
const option = {
|
||||||
@ -57,7 +72,7 @@ export default {
|
|||||||
series: [
|
series: [
|
||||||
{
|
{
|
||||||
name: '报警',
|
name: '报警',
|
||||||
data: [150, 80, 70, 110, 130],
|
data: Object.values(this.xdata),
|
||||||
type: 'bar',
|
type: 'bar',
|
||||||
barWidth: '25%',
|
barWidth: '25%',
|
||||||
itemStyle: {
|
itemStyle: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user