中建四(指挥中心):设备管理接口对接
This commit is contained in:
parent
0d547661ed
commit
ec6c77d17f
@ -5,6 +5,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 getPersonnelNumApi = data => get('xmgl/workerInfo/getPersonnelSituationNum',data)
|
||||||
|
// 设备管理
|
||||||
|
export const getDevNumberApi = data => get('xmgl/dev/getNumber',data)
|
||||||
// 安全管理
|
// 安全管理
|
||||||
export const resourceManagement = params => get('xmgl/hiddenDangerInspectRecord/getPollingFinishDays', params);
|
export const resourceManagement = params => get('xmgl/hiddenDangerInspectRecord/getPollingFinishDays', params);
|
||||||
// 质量管理-整改问题
|
// 质量管理-整改问题
|
||||||
|
|||||||
@ -10,20 +10,32 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import echarts from 'echarts4'
|
import echarts from 'echarts4'
|
||||||
|
import { getDevNumberApi } 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 {
|
||||||
|
towerNumber:"",
|
||||||
|
lifterNumber:"",
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initChart('firstChart', 7, '塔吊设备数', require('../assets/images/command-center/icon-tower.png'))
|
this.getData()
|
||||||
this.initChart('secondChart', 4, '升降机设备数', require('../assets/images/command-center/icon-lifter.png'))
|
|
||||||
this.initChart('thirdChart', 5, '视频设备数', require('../assets/images/command-center/icon-video.png'))
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getData(){
|
||||||
|
getDevNumberApi({ projectSn: this.$store.state.projectSn }).then((res)=>{
|
||||||
|
if(res.code == 200){
|
||||||
|
this.towerNumber = res.result.towerNumber
|
||||||
|
this.lifterNumber = res.result.lifterNumber
|
||||||
|
this.initChart('firstChart', this.towerNumber, '塔吊设备数', require('../assets/images/command-center/icon-tower.png'))
|
||||||
|
this.initChart('secondChart', this.lifterNumber, '升降机设备数', require('../assets/images/command-center/icon-lifter.png'))
|
||||||
|
this.initChart('thirdChart', 5, '视频设备数', require('../assets/images/command-center/icon-video.png'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
initChart(ref, value, title = '默认标题', image) {
|
initChart(ref, value, title = '默认标题', image) {
|
||||||
const myChart = echarts.init(this.$refs[ref])
|
const myChart = echarts.init(this.$refs[ref])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user