深基坑系统(基坑配置):布点

This commit is contained in:
骆乐 2022-08-26 09:13:33 +08:00
parent d6f574e146
commit 7d7dc1d0c3
5 changed files with 45 additions and 31 deletions

BIN
dist.zip

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

View File

@ -45,8 +45,8 @@ export default new Vuex.Store({
// UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试 // UPLOADURL:'http://10.0.1.43:6023/upload/image',//测试
// FILEURL:'http://10.0.1.43:6023/image/',//测试 // FILEURL:'http://10.0.1.43:6023/image/',//测试
BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', // BASEURL: baseUrl ? baseUrl : window.location.protocol + '//' + window.location.host + '/', //
// UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', // UPLOADURL: window.location.protocol + '//' + window.location.host + '/upload/image', //
// FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口 FILEURL: window.location.protocol + '//' + window.location.host + '/image/', //测试 // tag: 本地测试接口
/* 2022-05-16 */ /* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码 // tag: 部署河南项目时,需要打开这两行代码
// UPLOADURL: 'http://124.71.178.44:100/upload/image', // UPLOADURL: 'http://124.71.178.44:100/upload/image',
@ -56,8 +56,8 @@ export default new Vuex.Store({
// UPLOADURL: 'http://192.168.34.125:6023/upload/image', // UPLOADURL: 'http://192.168.34.125:6023/upload/image',
// FILEURL: 'http://192.168.34.125:6023/image/', // FILEURL: 'http://192.168.34.125:6023/image/',
// 邱平毅的 // 邱平毅的
UPLOADURL: 'http://192.168.34.216:6023/upload/image', // UPLOADURL: 'http://192.168.34.216:6023/upload/image',
FILEURL: 'http://192.168.34.216:6023/image/', // FILEURL: 'http://192.168.34.216:6023/image/',
// UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式 // UPLOADURL:'http://'+"61.190.32.219:9050"+'/upload/image',//正式
// FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式 // FILEURL:'http://'+"61.190.32.219:9050"+'/image/',//正式

View File

@ -632,7 +632,7 @@
:label="item.targetName" :label="item.targetName"
></el-table-column> ></el-table-column>
<!-- 采集时间 --> <!-- 采集时间 -->
<el-table-column prop="receiveTime" :label="$t('message.deepFoundConfig.gatherTime')"></el-table-column> <!-- <el-table-column prop="receiveTime" :label="$t('message.deepFoundConfig.gatherTime')"></el-table-column> -->
<!-- 报警状态 --> <!-- 报警状态 -->
<el-table-column :label="$t('message.deepFoundConfig.alarmStatus')"> <el-table-column :label="$t('message.deepFoundConfig.alarmStatus')">
<template slot-scope="scope"> <template slot-scope="scope">
@ -930,12 +930,17 @@
<i class="el-icon-error" @click="item.showDetail = false"></i> <i class="el-icon-error" @click="item.showDetail = false"></i>
<div class="point-title">{{item.measurePointName}}</div> <div class="point-title">{{item.measurePointName}}</div>
<div class="point-content"> <div class="point-content">
<!-- <div v-for="(item2,index2) in item.detailList" :key="index2">
<p>传感器编号{{item2.sensorSn}}</p>
<p>传感器名称{{item2.sensorTypeName == null ? '无' : item2.sensorTypeName }}</p>
<p>采集时间{{item2.receiveTime == null ? '无' : item2.receiveTime}}</p>
</div> -->
<p <p
v-for="(item2,index2) in item.detailList" v-for="(item2,index2) in item.detailList"
:key="index2" :key="index2"
>{{item2.keyName}}{{item.currentdata[item2.key]}}</p> >{{item2.keyName}}{{item.currentdata[item2.key]}}</p>
<!-- 采集时间 --> <!-- 采集时间 -->
<p>{{$t('message.deepFoundConfig.gatherTime')}}{{item.currentdata['receiveTime']}}</p> <!-- <p>{{$t('message.deepFoundConfig.gatherTime')}}{{item.currentdata['receiveTime']}}</p> -->
</div> </div>
</div> </div>
<div <div
@ -1522,19 +1527,21 @@ export default {
planeFigureId: val.id, planeFigureId: val.id,
deepExcavationId: val.deepExcavationId deepExcavationId: val.deepExcavationId
}).then(res => { }).then(res => {
console.log(res); console.log('点点点',res);
if (res.code == 200) { if (res.code == 200) {
res.result.forEach(item => { res.result.forEach(item => {
item.status = "block"; item.status = "block";
(item.transform = ""), (item.showDetail = false); (item.transform = ""), (item.showDetail = false);
let arr = []; let arr = [];
let obj = JSON.parse(item.dataField); // let obj = JSON.parse(item.dataField);
for (let key in obj) { // let obj = item.sensorlist
arr.push({ // for (let key in obj) {
key: key, // arr.push({
keyName: obj[key] // key: key,
}); // keyName: obj[key]
} // });
// }
item.detailList = arr; item.detailList = arr;
}); });
this.pointList = res.result; this.pointList = res.result;

View File

@ -146,17 +146,23 @@
:class="{'left': item.left, 'bottom': item.bottom}" :class="{'left': item.left, 'bottom': item.bottom}"
v-show="item.isShow" v-show="item.isShow"
> >
<div class="point-title">{{item.measurePointName}}</div> <div class="point-title">
<p>测点编号{{item.measurePointName }}</p>
<p>测点名称{{ item.monitorTypeName}}</p>
</div>
<vue-scroll style="height: 200px"> <vue-scroll style="height: 200px">
<div class="point-content"> <div class="point-content">
<div v-for="(item2,index2) in item.sensorlist" :key="index2">
<p>传感器编号{{item2.sensorSn}}</p>
<p>传感器类型{{item2.sensorTypeName == null ? '无' : item2.sensorTypeName }}</p>
<p>采集时间{{item2.receiveTime == null ? '无' : item2.receiveTime}}</p>
</div>
<!-- 检测类型 --> <!-- 检测类型 -->
<p>{{$t('message.deepFoundConfig.detectionType')}}{{item.monitorTypeName}}</p> <!-- <p>{{$t('message.deepFoundConfig.detectionType')}}{{item.monitorTypeName}}</p>
<p <p
v-for="(item2,index2) in item.pointData" v-for="(item2,index2) in item.pointData"
:key="index2" :key="index2"
>{{item2.label}}{{item2.value}}</p> >{{item2.label}}{{item2.value}}</p>-->
<!-- 采集时间 -->
<p>{{$t('message.deepFoundConfig.gatherTime')}}{{item.dataCreateTime}}</p>
</div> </div>
</vue-scroll> </vue-scroll>
</div> </div>
@ -814,19 +820,19 @@ export default {
if (res.code == 200 && res.result) { if (res.code == 200 && res.result) {
res.result.forEach(item => { res.result.forEach(item => {
item.isShow = false; item.isShow = false;
item.status = item.currentdata.alarmState // item.status = item.currentdata.alarmState
? item.currentdata.alarmState // ? item.currentdata.alarmState
: 0; // : 0;
item.pointName = item.currentdata.measuringPointName; item.pointName = item.measurePointName;
item.dataCreateTime = item.currentdata.receiveTime; // item.dataCreateTime = item.currentdata.receiveTime;
let obj = JSON.parse(item.dataField); // let obj = JSON.parse(item.dataField);
let arr = []; let arr = [];
for (let key in obj) { // for (let key in obj) {
arr.push({ // arr.push({
value: item.currentdata[key], // value: item.currentdata[key],
label: obj[key] // label: obj[key]
}); // });
} // }
item.pointData = arr; item.pointData = arr;
}); });
this.pointList = res.result; this.pointList = res.result;
@ -1925,6 +1931,7 @@ export default {
top: 0; top: 0;
left: 0; left: 0;
.point-item { .point-item {
background-image: url("~@/assets/images/pointl.png");
position: absolute; position: absolute;
span { span {
width: 16px; width: 16px;