金林湾大屏安全管理

This commit is contained in:
yjl 2022-12-07 13:42:49 +08:00
parent 7917b5e31f
commit d2bde9ee67
7 changed files with 54 additions and 44 deletions

View File

@ -40,13 +40,13 @@ if (process.env.NODE_ENV == 'development') {
// axios.defaults.baseURL = 'http://124.71.178.44:100/' // 河南 // axios.defaults.baseURL = 'http://124.71.178.44:100/' // 河南
// tag: 本地 // tag: 本地
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地 // axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地 axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地 // axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
// axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地 // axios.defaults.baseURL = 'http://ue6a4s.natappfree.cc' // 邱平毅vpn本地
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋 // 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://192.168.34.125:6023/' //杨意本地 http/1.1
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上 // axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地 // axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
// axios.defaults.baseURL = 'http://47.97.202.104:6023/'; // axios.defaults.baseURL = 'http://47.97.202.104:6023/';
// axios.defaults.baseURL = 'http://139.9.66.234:8/'; // axios.defaults.baseURL = 'http://139.9.66.234:8/';

View File

@ -40,21 +40,21 @@ export default {
this.getData(); this.getData();
}, },
methods: { methods: {
getData() { // getData() {
listProgressOfTheTask({ // listProgressOfTheTask({
projectSn: this.$store.state.projectSn, // projectSn: this.$store.state.projectSn,
isNoStart: false, // isNoStart: false,
}).then((res) => { // }).then((res) => {
// state 0, 1, 2 // // state 0, 1, 2
res.result.forEach((item) => { // res.result.forEach((item) => {
if (item.state == 2) { // if (item.state == 2) {
item.state = true; // item.state = true;
} // }
}); // });
console.log("进度条的返回值", res); // console.log("", res);
this.list = res.result; // this.list = res.result;
}); // });
}, // },
}, },
}; };
</script> </script>

View File

@ -1,9 +1,9 @@
<template> <template>
<Card :title="title"> <Card :title="title">
<!-- <div class="rates"> <div class="rates">
<div class="rate"> <div class="rate">
<div class="chart"> <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>
<div class="label">项目整改率</div> <div class="label">项目整改率</div>
</div> </div>
@ -15,12 +15,12 @@
</div> </div>
<div class="rate"> <div class="rate">
<div class="chart"> <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>
<div class="label">项目及时复查率</div> <div class="label">项目及时复查率</div>
</div> </div>
</div> --> </div>
<div class="info"> <!-- <div class="info">
<vue-scroll v-if="activityList.length > 0 "> <vue-scroll v-if="activityList.length > 0 ">
<div class="info-item" v-for="(item, index) in activityList" :key="index"> <div class="info-item" v-for="(item, index) in activityList" :key="index">
{{ `${item.rectifyPeopleAme}有一条${status[item.state]}的问题` }} {{ `${item.rectifyPeopleAme}有一条${status[item.state]}的问题` }}
@ -30,7 +30,7 @@
<img src="@/assets/images/noData3.png" alt srcset /> <img src="@/assets/images/noData3.png" alt srcset />
<p>暂无数据</p> <p>暂无数据</p>
</div> </div>
</div> </div> -->
</Card> </Card>
</template> </template>

View File

@ -34,15 +34,20 @@ export default {
} }
}, },
mounted() { mounted() {
selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => { this.series[1].data = [
const totals = res.result.total { value: 3, name: '周检' },
this.series[1].data = [ { value: 7, name: '月检' },
{ value: totals.weekInspectNum, name: '周检' }, { value: 1, name: '其他' }
{ value: totals.monthInspectNum, name: '月检' },
{ value: totals.otherInspectNum, 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() { data() {
return { return {

View File

@ -56,7 +56,11 @@ export default {
data() { data() {
return { return {
projectSn: this.$store.state.projectSn, projectSn: this.$store.state.projectSn,
alarmList: [] alarmList: [
{checkPoints:'施工方案',checkContent:'施工方案整改',checkTime:'2022-12-07',rectifyPeopleAme:'张平江'},
{checkPoints:'洞口防护',checkContent:'洞口需要防护',checkTime:'2022-12-09',rectifyPeopleAme:'马杰'}
],
// yData: [ // yData: [
// '', // '',
// '', // '',
@ -72,10 +76,10 @@ export default {
} }
}, },
mounted() { mounted() {
getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => { // getNewestSecurityManageDataList2Api({ projectSn: this.projectSn }).then(res => {
console.log('待整改问题: ', res); // console.log(': ', res);
this.alarmList = res.result || [] // this.alarmList = res.result || []
}) // })
}, },
} }
</script> </script>

View File

@ -69,12 +69,13 @@ export default {
}, },
methods: { methods: {
getCounts() { getCounts() {
selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => { // selectSecurityManageStatisticsApi({ projectSn: this.projectSn }).then(res => {
const totals = res.result.total // const totals = res.result.total
const { totalNum, reviewedNum, rectificationNum, closeNum } = totals // const { totalNum, reviewedNum, rectificationNum, closeNum } = totals
const ratioNum = totals.totalNum ? ((totals.closeNum / totals.totalNum) * 100).toFixed(2) : 0 // const ratioNum = totals.totalNum ? ((totals.closeNum / totals.totalNum) * 100).toFixed(2) : 0
this.totals = { totalNum, reviewedNum, rectificationNum, closeNum, ratioNum } // this.totals = { totalNum, reviewedNum, rectificationNum, closeNum, ratioNum }
}) // })
this.totals = { totalNum:'6', reviewedNum:'1', rectificationNum:'1', closeNum:'1', ratioNum:'84' }
} }
} }
} }

View File

@ -39,7 +39,7 @@
<script> <script>
import LeftOne from './leftOne' import LeftOne from './leftOne'
import LeftTwo from './leftTwo' import LeftTwo from './leftTwo'
import LeftThree from '../command/LeftThree' import LeftThree from '../command/leftThree'
import LeftFour from './leftFour' import LeftFour from './leftFour'
import Center from './center' import Center from './center'
import CenterBOne from './centerBOne' import CenterBOne from './centerBOne'