修复演示平台bug
This commit is contained in:
parent
9da6687fbc
commit
7ede199f04
@ -40,7 +40,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://124.71.178.44:100/' // 河南
|
||||
// tag: 本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.174:6023/' // 老大本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地1
|
||||
// axios.defaults.baseURL = 'http://192.168.34.116:6023/' // 邱平毅本地1
|
||||
// axios.defaults.baseURL = 'http://192.168.34.116:18070/' // 邱平毅本地2
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023' // 邱平毅本地3
|
||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||
@ -55,7 +55,6 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://120.196.217.6:7000/'; // 鹤洲
|
||||
// axios.defaults.baseURL = 'http://182.90.224.237:7000/'; // 广西
|
||||
// axios.defaults.baseURL = 'http://120.196.217.6:7000/' //鹤洲
|
||||
|
||||
// axios.defaults.baseURL = 'http://117.156.17.59:9090/'; //
|
||||
// axios.defaults.baseURL = 'http://120.236.247.200:9000/'; //横琴线上
|
||||
// axios.defaults.baseURL = 'http://223.82.100.80:9000/'; //南昌地铁
|
||||
@ -77,6 +76,8 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://218.92.215.138:9090/' //盐城 新佳城小区 123456
|
||||
// axios.defaults.baseURL = 'http://36.137.53.203:9090/' //盐城 gdjt 123456789
|
||||
// axios.defaults.baseURL = 'http://183.234.150.152:9090/' //华发 huaxin 123456789
|
||||
// axios.defaults.baseURL = 'http://139.9.66.234:7072/' //三江集团
|
||||
// axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台
|
||||
} else if (process.env.NODE_ENV == 'debug') {
|
||||
axios.defaults.baseURL = 'https://www.ceshi.com'
|
||||
} else if (process.env.NODE_ENV == 'production') {
|
||||
|
||||
@ -12,12 +12,7 @@
|
||||
<div class="blockBox">
|
||||
<!-- 智能设备 -->
|
||||
<smartDevices :totalCount="totalDevNum" :devices="deviceData">
|
||||
<div
|
||||
v-if="COMPANY == 'longguang'"
|
||||
style="width: 100%; height: 100%"
|
||||
class="echart2"
|
||||
ref="echart2"
|
||||
></div>
|
||||
<div v-if="COMPANY == 'longguang'" style="width: 100%; height: 100%" class="echart2" ref="echart2"></div>
|
||||
</smartDevices>
|
||||
</div>
|
||||
</div>
|
||||
@ -30,8 +25,7 @@
|
||||
@click="optionListIndex = item.index"
|
||||
:class="{
|
||||
selectOptionList_item: item.index == optionListIndex,
|
||||
selectOptionList_item2:
|
||||
item.index == optionListIndex && enabledProjectV2 == 4
|
||||
selectOptionList_item2: item.index == optionListIndex && enabledProjectV2 == 4
|
||||
}"
|
||||
v-for="(item, index) in $t('message.companyDiagram.optionList')"
|
||||
:key="index"
|
||||
@ -47,26 +41,19 @@
|
||||
controls
|
||||
loop
|
||||
></video>
|
||||
<div
|
||||
@mouseenter="showChangeImg = true"
|
||||
@mouseleave="showChangeImg = false"
|
||||
v-if="optionListIndex == 2"
|
||||
class="imgBox"
|
||||
>
|
||||
<div @mouseenter="showChangeImg = true" @mouseleave="showChangeImg = false" v-if="optionListIndex == 2" class="imgBox">
|
||||
<el-upload
|
||||
v-if="showChangeImg"
|
||||
style="position: absolute; left: 420px; top: 230px"
|
||||
:action="$store.state.UPLOADURL"
|
||||
:on-success="(file) => handleSuccessTwo(file, 1)"
|
||||
:on-error="(file) => handleError(file, 1)"
|
||||
:beforeUpload="(file) => handleBeforeUpload(file, 1)"
|
||||
:on-success="file => handleSuccessTwo(file, 1)"
|
||||
:on-error="file => handleError(file, 1)"
|
||||
:beforeUpload="file => handleBeforeUpload(file, 1)"
|
||||
name="files"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<!-- 更换图片 -->
|
||||
<span style="border: 1px solid #ffffff; padding: 5px">{{
|
||||
$t('message.companyDiagram.changeImg')
|
||||
}}</span>
|
||||
<span style="border: 1px solid #ffffff; padding: 5px">{{ $t('message.companyDiagram.changeImg') }}</span>
|
||||
</el-upload>
|
||||
<img
|
||||
style="
|
||||
@ -80,10 +67,7 @@
|
||||
/>
|
||||
<!-- <img style="width: 686px;;margin-left: 113px;margin-top: 16px;height: 430px" src="@/assets/images/aa5cd03a486a3faaeb9cf4b8d06405e.png" alt="">-->
|
||||
</div>
|
||||
<div
|
||||
class="placeholderBox placeholderBox2"
|
||||
v-if="projectData.videoUrl == ''"
|
||||
>
|
||||
<div class="placeholderBox placeholderBox2" v-if="projectData.videoUrl == ''">
|
||||
<img src="@/assets/images/noData3.png" alt="" srcset="" />
|
||||
<p>
|
||||
{{ $t('message.videoManage.empty') }},
|
||||
@ -91,9 +75,9 @@
|
||||
style="display: inline-block"
|
||||
class="upload-demo"
|
||||
:action="$store.state.UPLOADURL"
|
||||
:on-success="(file) => handleSuccess(file, 1)"
|
||||
:on-error="(file) => handleError(file, 1)"
|
||||
:beforeUpload="(file) => handleBeforeUpload(file, 1)"
|
||||
:on-success="file => handleSuccess(file, 1)"
|
||||
:on-error="file => handleError(file, 1)"
|
||||
:beforeUpload="file => handleBeforeUpload(file, 1)"
|
||||
name="files"
|
||||
:show-file-list="false"
|
||||
>
|
||||
@ -106,29 +90,23 @@
|
||||
v-if="projectData.videoUrl && optionListIndex == 1"
|
||||
class="changeVideoBox"
|
||||
:action="$store.state.UPLOADURL"
|
||||
:on-success="(file) => handleSuccess(file, 1)"
|
||||
:on-error="(file) => handleError(file, 1)"
|
||||
:beforeUpload="(file) => handleBeforeUpload(file, 1)"
|
||||
:on-success="file => handleSuccess(file, 1)"
|
||||
:on-error="file => handleError(file, 1)"
|
||||
:beforeUpload="file => handleBeforeUpload(file, 1)"
|
||||
name="files"
|
||||
:show-file-list="false"
|
||||
>
|
||||
<!-- 更换视频 -->
|
||||
<span class="changeVideoBtn">{{
|
||||
$t('message.companyDiagram.changeVideo')
|
||||
}}</span>
|
||||
<span class="changeVideoBtn">{{ $t('message.companyDiagram.changeVideo') }}</span>
|
||||
</el-upload>
|
||||
<!-- <video src="http://183.95.84.34:18081/itbgp/file/loginBgVideo.mp4" class="topInner" controls loop></video> -->
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<!-- 进度情况 -->
|
||||
<div v-if="enabledProjectV2 == 3" class="blockTitle blockTitle4">
|
||||
<i></i>{{ $t('message.companyDiagram.planStatus') }}
|
||||
</div>
|
||||
<div v-if="enabledProjectV2 == 3" class="blockTitle blockTitle4"><i></i>{{ $t('message.companyDiagram.planStatus') }}</div>
|
||||
<div class="bottomInner">
|
||||
<div class="timeBox">
|
||||
<div class="blockTitle blockTitle2">
|
||||
<i></i>{{ $t('message.companyDiagram.countDown') }}
|
||||
</div>
|
||||
<div class="blockTitle blockTitle2"><i></i>{{ $t('message.companyDiagram.countDown') }}</div>
|
||||
<div>
|
||||
<div class="timeInner">
|
||||
<!-- 项目总天数 -->
|
||||
@ -151,17 +129,11 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="splitLine">
|
||||
<img
|
||||
src="@/assets/images/carOverview/line4.png"
|
||||
alt=""
|
||||
width="100%"
|
||||
/>
|
||||
<img src="@/assets/images/carOverview/line4.png" alt="" width="100%" />
|
||||
</div>
|
||||
<div class="stageContent">
|
||||
<!-- 里程碑 -->
|
||||
<div class="blockTitle blockTitle2">
|
||||
<i></i>{{ $t('message.companyDiagram.milestone') }}
|
||||
</div>
|
||||
<div class="blockTitle blockTitle2"><i></i>{{ $t('message.companyDiagram.milestone') }}</div>
|
||||
<div class="stageBox">
|
||||
<vue-scroll :ops="ops" ref="stageScroll">
|
||||
<div
|
||||
@ -169,19 +141,12 @@
|
||||
v-for="(item, index) in stageList"
|
||||
:key="index"
|
||||
:class="
|
||||
projectData.constructionStage - 1 > index
|
||||
? 'finish'
|
||||
: projectData.constructionStage - 1 == index
|
||||
? 'ongoing'
|
||||
: ''
|
||||
projectData.constructionStage - 1 > index ? 'finish' : projectData.constructionStage - 1 == index ? 'ongoing' : ''
|
||||
"
|
||||
>
|
||||
<div class="statusImg"></div>
|
||||
<p>{{ item.name }}</p>
|
||||
<div
|
||||
class="line"
|
||||
v-show="stageList.length != index + 1"
|
||||
></div>
|
||||
<div class="line" v-show="stageList.length != index + 1"></div>
|
||||
</div>
|
||||
</vue-scroll>
|
||||
</div>
|
||||
@ -192,30 +157,15 @@
|
||||
<div class="fullHeight aside">
|
||||
<div class="blockBox">
|
||||
<!-- 环境监测 -->
|
||||
<div
|
||||
v-if="COMPANY == 'longguang' || enabledProjectV2 == 3"
|
||||
class="blockTitle"
|
||||
>
|
||||
<div v-if="COMPANY == 'longguang' || enabledProjectV2 == 3" class="blockTitle">
|
||||
{{ $t('message.companyDiagram.environmentMonitor') }}
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="COMPANY == 'longguang' || enabledProjectV2 == 3"
|
||||
class="blockContent"
|
||||
>
|
||||
<airQulityChart
|
||||
:show="false"
|
||||
:size="small"
|
||||
class="airQulityChart"
|
||||
></airQulityChart>
|
||||
<div v-if="COMPANY == 'longguang' || enabledProjectV2 == 3" class="blockContent">
|
||||
<airQulityChart :show="false" :size="small" class="airQulityChart"></airQulityChart>
|
||||
<!-- 天气显示 -->
|
||||
<div style="overflow: hidden" class="weatherBox">
|
||||
<div
|
||||
class="weatherItem"
|
||||
v-for="(item, index) in weatherList"
|
||||
:key="index"
|
||||
v-if="index < 2"
|
||||
>
|
||||
<div class="weatherItem" v-for="(item, index) in weatherList" :key="index" v-if="index < 2">
|
||||
<p>
|
||||
<span>{{ item.day }}</span>
|
||||
<!-- <span>({{ item.week }})</span> -->
|
||||
@ -260,16 +210,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<!-- 安全管理 -->
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="blockTitle"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="blockTitle">
|
||||
{{ $t('message.companyDiagram.safeManage') }}
|
||||
</div>
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="blockContent"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="blockContent">
|
||||
<safeManage></safeManage>
|
||||
<!-- <div class="safeChart" ref="safeChart"></div> -->
|
||||
</div>
|
||||
@ -277,10 +221,7 @@
|
||||
<!-- </div>-->
|
||||
<div class="blockBox">
|
||||
<!-- 质量管理 -->
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="blockTitle"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="blockTitle">
|
||||
{{ $t('message.companyDiagram.qualityManage') }}
|
||||
</div>
|
||||
<!-- 设备报警 -->
|
||||
@ -294,10 +235,7 @@
|
||||
class="qulityChart"
|
||||
ref="qulityChart"
|
||||
></div> -->
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="descBox fullHeight"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="descBox fullHeight">
|
||||
<qualityManage></qualityManage>
|
||||
<!-- 此处剪切了一部分 -->
|
||||
</div>
|
||||
@ -305,10 +243,7 @@
|
||||
<div class="attendance-cards2" v-else>
|
||||
<div class="attendance-cards-item">
|
||||
<div class="cards-item-left">
|
||||
<img
|
||||
src="../../../assets/images/longguang2/tower_crane.png"
|
||||
alt=""
|
||||
/>
|
||||
<img src="../../../assets/images/longguang2/tower_crane.png" alt="" />
|
||||
<p>塔吊</p>
|
||||
</div>
|
||||
<div class="cards-item-right">
|
||||
@ -319,10 +254,7 @@
|
||||
</div>
|
||||
<div class="attendance-cards-item">
|
||||
<div class="cards-item-left">
|
||||
<img
|
||||
src="../../../assets/images/longguang2/elevator.png"
|
||||
alt=""
|
||||
/>
|
||||
<img src="../../../assets/images/longguang2/elevator.png" alt="" />
|
||||
<p>升降机</p>
|
||||
</div>
|
||||
<div class="cards-item-right">
|
||||
@ -333,10 +265,7 @@
|
||||
</div>
|
||||
<div class="attendance-cards-item">
|
||||
<div class="cards-item-left">
|
||||
<img
|
||||
src="../../../assets/images/longguang2/env_monitoring.png"
|
||||
alt=""
|
||||
/>
|
||||
<img src="../../../assets/images/longguang2/env_monitoring.png" alt="" />
|
||||
<p>环境监测</p>
|
||||
</div>
|
||||
<div class="cards-item-right">
|
||||
@ -347,10 +276,7 @@
|
||||
</div>
|
||||
<div class="attendance-cards-item">
|
||||
<div class="cards-item-left">
|
||||
<img
|
||||
src="../../../assets/images/longguang2/video_monitoring.png"
|
||||
alt=""
|
||||
/>
|
||||
<img src="../../../assets/images/longguang2/video_monitoring.png" alt="" />
|
||||
<p>AI视频监测</p>
|
||||
</div>
|
||||
<div class="cards-item-right">
|
||||
@ -390,39 +316,24 @@
|
||||
</div>
|
||||
<div class="blockBox">
|
||||
<!-- 环境监测 -->
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="blockTitle"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="blockTitle">
|
||||
{{ $t('message.companyDiagram.environmentMonitor') }}
|
||||
</div>
|
||||
<!-- 报警列表 -->
|
||||
<div v-else class="blockTitle">
|
||||
{{ $t('message.companyDiagram.alarmRecord') }}
|
||||
</div>
|
||||
<div
|
||||
v-if="COMPANY != 'longguang' && enabledProjectV2 != 3"
|
||||
class="blockContent"
|
||||
>
|
||||
<div v-if="COMPANY != 'longguang' && enabledProjectV2 != 3" class="blockContent">
|
||||
<!-- 环境监测 -->
|
||||
<environmentWatch :show="true" :size="small"></environmentWatch>
|
||||
</div>
|
||||
<div v-else class="blockContent alarmBlockContent">
|
||||
<vue-scroll>
|
||||
<!-- 报警列表内容 -->
|
||||
<div
|
||||
class="list_item"
|
||||
v-for="item in alarmList"
|
||||
:key="item.id"
|
||||
v-if="alarmList.length"
|
||||
>
|
||||
<div class="list_item" v-for="item in alarmList" :key="item.id" v-if="alarmList.length">
|
||||
<!-- <img :src="$store.state.FILEURL+item.imageUrl" class="img" > --><!-- @click="bigImg($store.state.FILEURL+item.imageUrl) -->
|
||||
|
||||
<el-image
|
||||
class="img_box"
|
||||
:src="$store.state.FILEURL + item.imageUrl"
|
||||
:preview-src-list="srcList"
|
||||
></el-image>
|
||||
<el-image class="img_box" :src="$store.state.FILEURL + item.imageUrl" :preview-src-list="srcList"></el-image>
|
||||
|
||||
<!-- <big-img :imgSrc="$store.state.FILEURL+item.imageUrl" v-show="img" :img.sync='img'></big-img> -->
|
||||
<div class="box">
|
||||
@ -448,10 +359,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="placeholderBox placeholderBox2"
|
||||
v-if="alarmList.length == 0"
|
||||
>
|
||||
<div class="placeholderBox placeholderBox2" v-if="alarmList.length == 0">
|
||||
<img src="@/assets/images/noData3.png" alt="" srcset="" />
|
||||
<!-- 暂无数据 -->
|
||||
<p>{{ $t('message.companyDiagram.noData') }}</p>
|
||||
@ -486,10 +394,7 @@ import {
|
||||
getRealTimeDustNoiseDataApi,
|
||||
environmentDevList
|
||||
} from '@/assets/js/api/environmentManage'
|
||||
import {
|
||||
eidtProjectShowConfig,
|
||||
queryBySnData
|
||||
} from '@/assets/js/api/projectSummary.js'
|
||||
import { eidtProjectShowConfig, queryBySnData } from '@/assets/js/api/projectSummary.js'
|
||||
import ProjectInfo from './homePage/projectInfo'
|
||||
import PersonOverview from './homePage/personOverview'
|
||||
|
||||
@ -710,7 +615,7 @@ export default {
|
||||
{
|
||||
itemStyle: {
|
||||
normal: {
|
||||
color: function (params) {
|
||||
color: function(params) {
|
||||
var colorList = ['#4378d8', '#a65d23', '#913211', '#199d83']
|
||||
return colorList[params.dataIndex]
|
||||
}
|
||||
@ -720,8 +625,7 @@ export default {
|
||||
data: [
|
||||
this.statisticsCount.devcount.videoNum,
|
||||
this.statisticsCount.devcount.ufaceDevNum,
|
||||
this.statisticsCount.devcount.lifterDevNum +
|
||||
this.statisticsCount.devcount.towerDevNum,
|
||||
this.statisticsCount.devcount.lifterDevNum + this.statisticsCount.devcount.towerDevNum,
|
||||
this.statisticsCount.devcount.environmentDevNum
|
||||
],
|
||||
type: 'bar',
|
||||
@ -744,7 +648,7 @@ export default {
|
||||
},
|
||||
loadWeather() {
|
||||
var _this = this
|
||||
getWeatherDataApi({ cityid: '' }).then((res) => {
|
||||
getWeatherDataApi({ cityid: '' }).then(res => {
|
||||
console.log(res)
|
||||
var json = JSON.parse(res.result)
|
||||
var list = json.data
|
||||
@ -753,9 +657,7 @@ export default {
|
||||
list.forEach((element, index) => {
|
||||
// element.week=getWeek(element.date)
|
||||
// element.date = element.date.substring(5,element.date.length)
|
||||
element.url = require('@/assets/images/weather/' +
|
||||
element.wea_img +
|
||||
'.png')
|
||||
element.url = require('@/assets/images/weather/' + element.wea_img + '.png')
|
||||
this.weatherList.push(element)
|
||||
})
|
||||
})
|
||||
@ -763,16 +665,14 @@ export default {
|
||||
//获取环境设备列表--环境监测实时数据--下拉
|
||||
getDevList() {
|
||||
console.log(22222222222222)
|
||||
environmentDevList({ projectSn: this.$store.state.projectSn }).then(
|
||||
(result) => {
|
||||
// console.log('列表', result)
|
||||
console.log(result)
|
||||
if (result.result.length > 0) {
|
||||
this.currentDevDetail = result.result[0]
|
||||
this.getRealTimeDustNoiseData()
|
||||
}
|
||||
environmentDevList({ projectSn: this.$store.state.projectSn }).then(result => {
|
||||
// console.log('列表', result)
|
||||
console.log(result)
|
||||
if (result.result.length > 0) {
|
||||
this.currentDevDetail = result.result[0]
|
||||
this.getRealTimeDustNoiseData()
|
||||
}
|
||||
)
|
||||
})
|
||||
},
|
||||
// 获取环境监测空气质量
|
||||
getRealTimeDustNoiseData() {
|
||||
@ -781,7 +681,7 @@ export default {
|
||||
projectSn: this.$store.state.projectSn
|
||||
}
|
||||
console.log(data)
|
||||
getRealTimeDustNoiseDataApi(data).then((res) => {
|
||||
getRealTimeDustNoiseDataApi(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 200) {
|
||||
console.log(res.result)
|
||||
@ -814,7 +714,7 @@ export default {
|
||||
sn: this.$store.state.projectSn
|
||||
}
|
||||
// 获取塔吊报警数据
|
||||
getAllTowerDangerInfo(data).then((res) => {
|
||||
getAllTowerDangerInfo(data).then(res => {
|
||||
if (res.code === 200) {
|
||||
let { result } = res
|
||||
this.totalTowerDev = result.devCount.devNum
|
||||
@ -823,7 +723,7 @@ export default {
|
||||
})
|
||||
// getAiVideoInfo
|
||||
// 获取升降机报警数据
|
||||
getAllLifterDangerInfo(data).then((res) => {
|
||||
getAllLifterDangerInfo(data).then(res => {
|
||||
if (res.code === 200) {
|
||||
let { result } = res
|
||||
this.totalLifterDev = result.devCount.devNum
|
||||
@ -831,7 +731,7 @@ export default {
|
||||
}
|
||||
})
|
||||
// 获取环境监测报警数据
|
||||
getEnvironmentInfo(data).then((res) => {
|
||||
getEnvironmentInfo(data).then(res => {
|
||||
if (res.code === 200) {
|
||||
let { result } = res
|
||||
this.environmentDevNum = result.devTotal.devNum
|
||||
@ -839,7 +739,7 @@ export default {
|
||||
}
|
||||
})
|
||||
// 获取AI设备报警数据
|
||||
getAiVideoInfo(data).then((res) => {
|
||||
getAiVideoInfo(data).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
let { result } = res
|
||||
@ -848,21 +748,11 @@ export default {
|
||||
}
|
||||
})
|
||||
// 获取报警列表数据
|
||||
getAIDangerList(data).then((res) => {
|
||||
getAIDangerList(data).then(res => {
|
||||
if (res.code === 200) {
|
||||
let { result } = res
|
||||
let type = [
|
||||
'烟感',
|
||||
'明火',
|
||||
'人员倒地',
|
||||
'未戴安全帽',
|
||||
'区域入侵',
|
||||
'越界入侵',
|
||||
'人员聚集衣',
|
||||
'反光衣',
|
||||
'裸土覆盖'
|
||||
]
|
||||
this.alarmList = result.slice(0, 3).map((x) => {
|
||||
let type = ['烟感', '明火', '人员倒地', '未戴安全帽', '区域入侵', '越界入侵', '人员聚集衣', '反光衣', '裸土覆盖']
|
||||
this.alarmList = result.slice(0, 3).map(x => {
|
||||
return {
|
||||
createTime: x.createTime,
|
||||
hardwareName: x.hardwareName,
|
||||
@ -873,7 +763,7 @@ export default {
|
||||
alarmType: type[x.alarmType - 1]
|
||||
}
|
||||
})
|
||||
result.slice(0, 3).forEach((x) => {
|
||||
result.slice(0, 3).forEach(x => {
|
||||
this.srcList.push(`${this.$store.state.FILEURL}${x.imageUrl}`)
|
||||
})
|
||||
console.log(this.alarmList)
|
||||
@ -887,51 +777,46 @@ export default {
|
||||
projectSn: this.$store.state.projectSn
|
||||
}
|
||||
console.log('当前的参数', data)
|
||||
getProjectDetail(data).then((res) => {
|
||||
getProjectDetail(data).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.projectData = res.result
|
||||
console.log('projectData', this.projectData)
|
||||
if (parseInt(this.projectData.constructionStage) > 4) {
|
||||
this.$refs['stageScroll'].scrollTo(
|
||||
{ x: (this.projectData.constructionStage - 4) * 230 },
|
||||
500
|
||||
)
|
||||
this.$refs['stageScroll'].scrollTo({ x: (this.projectData.constructionStage - 4) * 230 }, 500)
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
//统计企业下项目各人员统计
|
||||
getWorkerStatisticsCount(type) {
|
||||
getWorkerStatisticsCountApi({ sn: this.$store.state.projectSn }).then(
|
||||
(res) => {
|
||||
console.log(res)
|
||||
this.statisticsCount = res.result
|
||||
console.log('----------------', this.statisticsCount)
|
||||
this.totalDevNum =
|
||||
this.statisticsCount.devcount.ufaceDevNum +
|
||||
this.statisticsCount.devcount.videoNum +
|
||||
this.statisticsCount.devcount.environmentDevNum +
|
||||
this.statisticsCount.devcount.towerDevNum +
|
||||
this.statisticsCount.devcount.lifterDevNum
|
||||
const device = this.statisticsCount.devcount
|
||||
this.deviceData = [
|
||||
{ label: 'projectSummary.ufaceDevNum', value: device.ufaceDevNum },
|
||||
{
|
||||
label: 'projectSummary.environmentDevNum',
|
||||
value: device.environmentDevNum
|
||||
},
|
||||
{ label: 'companyDiagram.videoDevNum', value: device.videoNum },
|
||||
{ label: 'companyDiagram.towerDevNum', value: device.towerDevNum }
|
||||
]
|
||||
if (type == 1) {
|
||||
this.createdEchart2()
|
||||
}
|
||||
clearInterval(this.interval1)
|
||||
this.interval1 = setTimeout(() => {
|
||||
this.getWorkerStatisticsCount()
|
||||
}, 5000)
|
||||
getWorkerStatisticsCountApi({ sn: this.$store.state.projectSn }).then(res => {
|
||||
console.log(res)
|
||||
this.statisticsCount = res.result
|
||||
console.log('----------------', this.statisticsCount)
|
||||
this.totalDevNum =
|
||||
this.statisticsCount.devcount.ufaceDevNum +
|
||||
this.statisticsCount.devcount.videoNum +
|
||||
this.statisticsCount.devcount.environmentDevNum +
|
||||
this.statisticsCount.devcount.towerDevNum +
|
||||
this.statisticsCount.devcount.lifterDevNum
|
||||
const device = this.statisticsCount.devcount
|
||||
this.deviceData = [
|
||||
{ label: 'projectSummary.ufaceDevNum', value: device.ufaceDevNum },
|
||||
{
|
||||
label: 'projectSummary.environmentDevNum',
|
||||
value: device.environmentDevNum
|
||||
},
|
||||
{ label: 'companyDiagram.videoDevNum', value: device.videoNum },
|
||||
{ label: 'companyDiagram.towerDevNum', value: device.towerDevNum }
|
||||
]
|
||||
if (type == 1) {
|
||||
this.createdEchart2()
|
||||
}
|
||||
)
|
||||
clearInterval(this.interval1)
|
||||
this.interval1 = setTimeout(() => {
|
||||
this.getWorkerStatisticsCount()
|
||||
}, 5000)
|
||||
})
|
||||
},
|
||||
// 文件上传 之前
|
||||
handleBeforeUpload(file, type) {
|
||||
@ -984,7 +869,7 @@ export default {
|
||||
showTitle: this.$t('message.companyDiagram.resultImg'), //'效果图'
|
||||
configValue: url
|
||||
}
|
||||
eidtProjectShowConfig(data).then((res) => {
|
||||
eidtProjectShowConfig(data).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.getQueryBySnData()
|
||||
}
|
||||
@ -994,7 +879,7 @@ export default {
|
||||
queryBySnData({
|
||||
projectSn: this.$store.state.projectSn,
|
||||
showType: 3
|
||||
}).then((res) => {
|
||||
}).then(res => {
|
||||
console.log(this.fileUrl + this.imgUrl)
|
||||
this.imgUrl = res.result.configValue
|
||||
})
|
||||
@ -1004,7 +889,7 @@ export default {
|
||||
editProjectInfo({
|
||||
projectId: this.projectData.projectId,
|
||||
videoUrl: url
|
||||
}).then((res) => {
|
||||
}).then(res => {
|
||||
this.$message.success(this.$t('message.companyDiagram.uploadSuccess')) //"上传成功"
|
||||
this.projectData.videoUrl = url
|
||||
})
|
||||
@ -1032,16 +917,10 @@ export default {
|
||||
background: linear-gradient(rgba(5, 11, 59, 0.3), rgba(36, 100, 206, 0.3));
|
||||
}
|
||||
&:nth-child(2n) {
|
||||
background: linear-gradient(
|
||||
rgba(6, 248, 179, 0.06),
|
||||
rgba(21, 25, 33, 0.06)
|
||||
);
|
||||
background: linear-gradient(rgba(6, 248, 179, 0.06), rgba(21, 25, 33, 0.06));
|
||||
}
|
||||
&:first-child {
|
||||
background: linear-gradient(
|
||||
rgba(21, 25, 33, 0.12),
|
||||
rgba(6, 248, 179, 0.12)
|
||||
);
|
||||
background: linear-gradient(rgba(21, 25, 33, 0.12), rgba(6, 248, 179, 0.12));
|
||||
}
|
||||
.imgBox {
|
||||
height: 36px;
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
<script>
|
||||
import LeftOne from './leftOne'
|
||||
import LeftTwo from './leftTwo'
|
||||
import LeftThree from './LeftThree'
|
||||
import LeftThree from './leftThree'
|
||||
import LeftFour from './leftFour'
|
||||
import Center from './center'
|
||||
import CenterBOne from './centerBOne'
|
||||
|
||||
@ -81,17 +81,22 @@
|
||||
>{{company == 'longguang'? $t("message.lifter.viewLiftOperator") : $t("message.lifter.viewDriverList") }}</el-button
|
||||
>
|
||||
</div>
|
||||
<vue-scroll style="height: 86%;">
|
||||
<div class="driver_info" v-if="company == 'longguang' || item.idCard == realTimeDevData.driverIdCard" v-for="item in driverList">
|
||||
<img
|
||||
<vue-scroll style="height: 86%;" >
|
||||
<div class="driver_info" v-for="(item,index) in driverList" :key="index">
|
||||
<div v-if="company == 'longguang' || item.idCard == realTimeDevData.driverIdCard">
|
||||
<img
|
||||
class="imgHead"
|
||||
:src="fileUrl + item.fieldAcquisitionUrl"
|
||||
v-if="item.fieldAcquisitionUrl"
|
||||
width=""
|
||||
/>
|
||||
<img src="@/assets/images/profile_photo.png" v-else />
|
||||
<div>{{ $t("message.lifter.fullName") }}:{{ item.workerName }}</div>
|
||||
<div>{{ $t("message.lifter.contactNumber") }}:{{ item.emergentPhone }}</div>
|
||||
/>
|
||||
<img src="@/assets/images/profile_photo.png" v-else />
|
||||
<div>{{ $t("message.lifter.fullName") }}:{{ item.workerName }}</div>
|
||||
<div>{{ $t("message.lifter.contactNumber") }}:{{ item.emergentPhone }}</div>
|
||||
</div>
|
||||
<div class="noMessage" v-else>
|
||||
暂无数据
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="driver_info" v-for="item in driverList">-->
|
||||
<!-- <img-->
|
||||
@ -457,10 +462,12 @@ export default {
|
||||
this.lifterList = res.result;
|
||||
if(res.result.length>0){
|
||||
this.devSn = res.result[0].devSn;
|
||||
this.getListData();
|
||||
this.getSelectLifterBySn();
|
||||
this.getRecentWorkList();
|
||||
this.getTodayLifterCurrentDataList();
|
||||
setTimeout(() => {
|
||||
this.getListData();
|
||||
},1000)
|
||||
}
|
||||
|
||||
}
|
||||
@ -474,6 +481,7 @@ export default {
|
||||
}
|
||||
getSelectLifterBySnApi(data).then(res=>{
|
||||
this.maxHeight = res.result.lifter.maxHeight
|
||||
console.log("9999999999999999",this.maxHeight);
|
||||
if(res.code==200){
|
||||
this.videoList = res.result.videoList;
|
||||
this.devonline=res.result.lifter.devonline
|
||||
@ -495,7 +503,7 @@ export default {
|
||||
if (res.code == 200) {
|
||||
if (res.result) {
|
||||
this.realTimeData = res.result;
|
||||
console.log(this.maxHeight);
|
||||
console.log("66666666666666666666",this.maxHeight);
|
||||
if (!this.maxHeight){
|
||||
this.$message.error(this.$t('message.lifter.theHeightIsZero'));
|
||||
return
|
||||
@ -778,7 +786,11 @@ export default {
|
||||
.driver_info {
|
||||
/*text-align: center;*/
|
||||
line-height: 25px;
|
||||
margin-top: 100px;
|
||||
.noMessage{
|
||||
height: 315px;
|
||||
line-height: 315px;
|
||||
text-align: center;
|
||||
}
|
||||
.imgHead{
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user