金林湾大屏安全管理
This commit is contained in:
parent
7917b5e31f
commit
d2bde9ee67
@ -44,7 +44,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||
// axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地
|
||||
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
//axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||
|
||||
@ -40,21 +40,21 @@ export default {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData() {
|
||||
listProgressOfTheTask({
|
||||
projectSn: this.$store.state.projectSn,
|
||||
isNoStart: false,
|
||||
}).then((res) => {
|
||||
// state 0未开始, 1进行中, 2已完成
|
||||
res.result.forEach((item) => {
|
||||
if (item.state == 2) {
|
||||
item.state = true;
|
||||
}
|
||||
});
|
||||
console.log("进度条的返回值", res);
|
||||
this.list = res.result;
|
||||
});
|
||||
},
|
||||
// getData() {
|
||||
// listProgressOfTheTask({
|
||||
// projectSn: this.$store.state.projectSn,
|
||||
// isNoStart: false,
|
||||
// }).then((res) => {
|
||||
// // state 0未开始, 1进行中, 2已完成
|
||||
// res.result.forEach((item) => {
|
||||
// if (item.state == 2) {
|
||||
// item.state = true;
|
||||
// }
|
||||
// });
|
||||
// console.log("进度条的返回值", res);
|
||||
// this.list = res.result;
|
||||
// });
|
||||
// },
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<Card :title="title">
|
||||
<!-- <div class="rates">
|
||||
<div class="rates">
|
||||
<div class="rate">
|
||||
<div class="chart">
|
||||
<JRingChart :title="{ text: '89%', y: '40%' }" :data="[{ value: 89 }, { value: 11 }]" :color="['#557DEE', '#182B53']" />
|
||||
<JRingChart :title="{ text: '66%', y: '40%' }" :data="[{ value: 66 }, { value: 11 }]" :color="['#557DEE', '#182B53']" />
|
||||
</div>
|
||||
<div class="label">项目整改率</div>
|
||||
</div>
|
||||
@ -15,12 +15,12 @@
|
||||
</div>
|
||||
<div class="rate">
|
||||
<div class="chart">
|
||||
<JRingChart :title="{ text: '89%', y: '40%' }" :data="[{ value: 89 }, { value: 11 }]" :color="['#FF6C7F', '#39273D']" />
|
||||
<JRingChart :title="{ text: '92%', y: '40%' }" :data="[{ value: 92 }, { value: 11 }]" :color="['#FF6C7F', '#39273D']" />
|
||||
</div>
|
||||
<div class="label">项目及时复查率</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="info">
|
||||
</div>
|
||||
<!-- <div class="info">
|
||||
<vue-scroll v-if="activityList.length > 0 ">
|
||||
<div class="info-item" v-for="(item, index) in activityList" :key="index">
|
||||
{{ `${item.rectifyPeopleAme}有一条${status[item.state]}的问题` }}
|
||||
@ -30,7 +30,7 @@
|
||||
<img src="@/assets/images/noData3.png" alt srcset />
|
||||
<p>暂无数据</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</Card>
|
||||
</template>
|
||||
|
||||
|
||||
@ -34,15 +34,20 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => {
|
||||
const totals = res.result.total
|
||||
this.series[1].data = [
|
||||
{ value: totals.weekInspectNum, name: '周检' },
|
||||
{ value: totals.monthInspectNum, name: '月检' },
|
||||
{ value: totals.otherInspectNum, name: '其他' }
|
||||
{ value: 3, name: '周检' },
|
||||
{ value: 7, name: '月检' },
|
||||
{ value: 1, name: '其他' }
|
||||
]
|
||||
this.totalNum = totals.totalNum
|
||||
})
|
||||
// selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => {
|
||||
// const totals = res.result.total
|
||||
// this.series[1].data = [
|
||||
// { value: totals.weekInspectNum, name: '周检' },
|
||||
// { value: totals.monthInspectNum, name: '月检' },
|
||||
// { value: totals.otherInspectNum, name: '其他' }
|
||||
// ]
|
||||
// this.totalNum = totals.totalNum
|
||||
// })
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@ -56,7 +56,11 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
projectSn: this.$store.state.projectSn,
|
||||
alarmList: []
|
||||
alarmList: [
|
||||
{checkPoints:'施工方案',checkContent:'施工方案整改',checkTime:'2022-12-07',rectifyPeopleAme:'张平江'},
|
||||
{checkPoints:'洞口防护',checkContent:'洞口需要防护',checkTime:'2022-12-09',rectifyPeopleAme:'马杰'}
|
||||
],
|
||||
|
||||
// yData: [
|
||||
// '未分类',
|
||||
// '临边防护',
|
||||
@ -72,10 +76,10 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => {
|
||||
console.log('待整改问题: ', res);
|
||||
this.alarmList = res.result || []
|
||||
})
|
||||
// getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => {
|
||||
// console.log('待整改问题: ', res);
|
||||
// this.alarmList = res.result || []
|
||||
// })
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -69,12 +69,13 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getCounts() {
|
||||
selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => {
|
||||
const totals = res.result.total
|
||||
const { totalNum, reviewedNum, rectificationNum, closeNum } = totals
|
||||
const ratioNum = totals.totalNum ? ((totals.closeNum / totals.totalNum) * 100).toFixed(2) : 0
|
||||
this.totals = { totalNum, reviewedNum, rectificationNum, closeNum, ratioNum }
|
||||
})
|
||||
// selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => {
|
||||
// const totals = res.result.total
|
||||
// const { totalNum, reviewedNum, rectificationNum, closeNum } = totals
|
||||
// const ratioNum = totals.totalNum ? ((totals.closeNum / totals.totalNum) * 100).toFixed(2) : 0
|
||||
// this.totals = { totalNum, reviewedNum, rectificationNum, closeNum, ratioNum }
|
||||
// })
|
||||
this.totals = { totalNum:'6', reviewedNum:'1', rectificationNum:'1', closeNum:'1', ratioNum:'84' }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
<script>
|
||||
import LeftOne from './leftOne'
|
||||
import LeftTwo from './leftTwo'
|
||||
import LeftThree from '../command/LeftThree'
|
||||
import LeftThree from '../command/leftThree'
|
||||
import LeftFour from './leftFour'
|
||||
import Center from './center'
|
||||
import CenterBOne from './centerBOne'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user