项目版-高支模功能完善

This commit is contained in:
yjl 2023-03-13 17:56:46 +08:00
parent e296dcf0ed
commit b789e06bd2
8 changed files with 235 additions and 165 deletions

View File

@ -1,4 +1,4 @@
// var COMPANY = ''; //通用
var COMPANY = ''; //通用
// var COMPANY='zhongjian'; //中建,和沃尔对接的插件版用这个企业
// var COMPANY='hezhan'; //合展-宿迁
// var COMPANY='nanchang'; //南昌地铁、衢州
@ -7,7 +7,7 @@
// var COMPANY='shenbai'; //沈白高铁
// COMPANY = 'henan' // 河南春笋
// COMPANY = 'xingxuan'
COMPANY = 'hengtong'//瑞士恒通
// COMPANY = 'hengtong'//瑞士恒通

View File

@ -29,4 +29,7 @@ export const selectHighFormworkPlaneFigureListApi = data => post('xmgl/highFormw
// 编辑平面图点位
export const updateFigureCoordinateApi = data => post('xmgl/highFormworkPlaneFigureCoordinate/updateFigureCoordinate', data);
// 查询点位
export const selecthighFormworkPlaneFigureCoordinateListApi = data => post('xmgl/highFormworkPlaneFigureCoordinate/selectList',data);
export const selecthighFormworkPlaneFigureCoordinateListApi = data => post('xmgl/highFormworkPlaneFigureCoordinate/selectList',data);
//分页列表查询高支模报警数据信息
export const getHighFormworkAlarmDataApi = data => get('/xmgl/highFormworkAlarmData/list', data);

View File

@ -72,8 +72,9 @@ 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://182.90.224.147:18170' //瑞士恒通线上
// axios.defaults.baseURL = 'http://182.90.224.147:18170' //瑞士恒通线上
// axios.defaults.baseURL = 'http://58.250.210.9:9090' //深汕线上
axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地
} else if (process.env.NODE_ENV == 'debug') {
axios.defaults.baseURL = 'https://www.ceshi.com'

View File

@ -127,7 +127,8 @@
</p>
<!-- <p class="color_fff">{{$store.state.ACCOUNTTYPE[$store.state.userInfo.accountType-1]}}</p> -->
<p class="color_fff" v-if="COMPANY == 'hengtong'">
{{ $store.state.userInfo.menuAuthority.roleName }}
<!-- {{ $store.state.userInfo.menuAuthority.roleName }} -->
公司管理员
</p>
<p class="color_fff" v-else>
{{ headerConfiguration }}

View File

@ -48,9 +48,9 @@ export default new Vuex.Store({
BASEURL: baseUrl
? baseUrl
: window.location.protocol + "//" + window.location.host + "/", //
UPLOADURL:
window.location.protocol + "//" + window.location.host + "/upload/image", //
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试
// UPLOADURL:
// window.location.protocol + "//" + window.location.host + "/upload/image", //
// FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试
// tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/',
/* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码
@ -63,8 +63,8 @@ export default new Vuex.Store({
// BASEURL:'http://192.168.34.116:6023/',
// UPLOADURL: 'http://192.168.34.116:6023/upload/image',
// FILEURL: 'http://192.168.34.116:6023/image/',
// UPLOADURL: 'http://124.71.67.160:8088/upload/image',
// FILEURL: 'http://124.71.67.160:8088/image/',
UPLOADURL: 'http://124.71.67.160:8088/upload/image',
FILEURL: 'http://124.71.67.160:8088/image/',
//---
// UPLOADURL: 'http://192.168.34.125:6023/upload/i·mage',
// FILEURL: 'http://192.168.34.125:6023/image/',

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -132,7 +132,7 @@ export default {
.woria {
width: 100%;
height: calc(115% - 92px);
background: url(/img/blueH.da444a96.png) no-repeat;
background: url(../assets/images/common/blueH.png) no-repeat;
background-size: 99% 101%;
// margin-top: 10px;
.woriaTwo {

View File

@ -1,6 +1,6 @@
<template>
<div class="alarm_box">
<!-- <div class="search_box">
<!-- <div class="search_box">
<div class="search_item">
<span>报警时间</span>
<el-date-picker
@ -15,170 +15,235 @@
<el-button type="warning" plain>刷新</el-button>
<el-button type="primary" plain>查询</el-button>
</div> -->
<el-table :data="tableData" class="tables" height="660">
<!-- 姓名 -->
<el-table-column
prop="name"
label="姓名"
>
</el-table-column>
<!-- 时间 -->
<el-table-column
prop="createTime"
label="时间"
>
</el-table-column>
<!-- 备注 -->
<el-table-column
prop="note"
label="备注">
</el-table-column>
<!-- 操作 -->
<el-table-column
prop="status"
label="操作"
width="200">
<template slot-scope="scope">
<div v-if="scope.row.status == '0'" class="status_item status_1">确认误报</div>
<div v-else-if="scope.row.status == '1'" class="status_item status_2">确认真实</div>
<div v-else-if="scope.row.status == '2'" class="status_item status_3">正在处理</div>
<div v-else-if="scope.row.status == '3'" class="status_item status_4">申请销警</div>
<div v-else-if="scope.row.status == '4'" class="status_item status_5">确认消警</div>
</template>
</el-table-column>
</el-table>
<el-pagination
class="pagerBox"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="filterForm.pageNo"
:page-sizes="$store.state.PAGESIZRS"
:page-size="filterForm.pageSize"
layout="total, sizes, prev, pager, next"
:total="pageTotal"
background
></el-pagination>
<el-table :data="tableData" class="tables" height="660">
<!-- 姓名 -->
<el-table-column
prop="measurePointName"
label="测量点编号"
align="center"
>
</el-table-column>
<el-table-column prop="alarmType" label="类型" align="center">
<template slot-scope="scope" v-if="scope.row.alarmType === 1">
<span class="color1">{{ getStatus(scope.row.alarmType) }}</span>
</template>
<template slot-scope="scope" v-else>
<span class="color2">{{ getStatus(scope.row.alarmType) }}</span>
</template>
</el-table-column>
<el-table-column prop="type" label="报警类型" align="center">
<template slot-scope="scope">
{{ getStatusTwo(scope.row.type) }}
</template>
</el-table-column>
<!-- 时间 -->
<el-table-column prop="createTime" label="时间" align="center">
</el-table-column>
<!-- 备注 -->
<!-- <el-table-column prop="note" label="备注" align="center">
</el-table-column> -->
<!-- 操作 -->
<!-- <el-table-column prop="status" label="操作" width="200" align="center">
<template slot-scope="scope">
<div v-if="scope.row.status == '0'" class="status_item status_1">
确认误报
</div>
<div v-else-if="scope.row.status == '1'" class="status_item status_2">
确认真实
</div>
<div v-else-if="scope.row.status == '2'" class="status_item status_3">
正在处理
</div>
<div v-else-if="scope.row.status == '3'" class="status_item status_4">
申请销警
</div>
<div v-else-if="scope.row.status == '4'" class="status_item status_5">
确认消警
</div>
</template>
</el-table-column> -->
</el-table>
<el-pagination
class="pagerBox"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="formData.pageNo"
:page-sizes="$store.state.PAGESIZRS"
:page-size="formData.pageSize"
layout="total, sizes, prev, pager, next"
:total="Number(formData.total)"
background
></el-pagination>
</div>
</template>
<script>
import { getHighFormworkAlarmDataApi } from '@/assets/js/api/highModulus.js'
export default {
data(){
return{
tableData:[{
name: '管理员',
createTime: '2021-11-23 11:00:20',
status: 0,
note: '警情确认:误报;报警测点:["A01"];报警原因:试验测试'
},{
name: '管理员',
createTime: '2021-11-23 10:35:22',
status: 2,
note: '警情确认:真实警情;报警测点:["A03"];报警原因:设备故障'
},{
name: '管理员',
createTime: '2021-11-22 18:55:10',
status: 3,
note: '警情确认:真实警情;报警测点:["A05"];报警原因:超出控制值'
},{
name: '管理员',
createTime: '2021-11-22 16:00:10',
status: 1,
note: '警情确认:真实警情;报警测点:["B01"];报警原因:超出预警值'
},
{
name: '管理员',
createTime: '2021-11-22 14:00:10',
status: 1,
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出预警值'
},
{
name: '管理员',
createTime: '2021-11-22 12:01:21',
status: 1,
note: '警情确认:真实警情;报警测点:["B05"];报警原因:超出预警值'
},
{
name: '管理员',
createTime: '2021-11-22 11:50:30',
status: 1,
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出预警值'
},
{
name: '管理员',
createTime: '2021-11-22 10:06:11',
status: 1,
note: '警情确认:真实警情;报警测点:["B11"];报警原因:超出预警值'
},
{
name: '管理员',
createTime: '2021-11-22 08:00:00',
status: 1,
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出报警值'
},{
name: '管理员',
createTime: '2021-11-21 17:06:53',
status: 4,
note: '警情确认:真实警情;报警测点:["A16"];报警原因:超出预警值'
}],
filterForm:{
pageNo: 1,
pageSize: 10,
},
timeData: [],
pageTotal: 0
}
},
created(){
this.pageTotal = this.tableData.length
},
methods:{
handleSizeChange(){
data() {
return {
// tableData: [
// {
// name: '',
// createTime: '2021-11-23 11:00:20',
// status: 0,
// note: '["A01"]'
// },
// {
// name: '',
// createTime: '2021-11-23 10:35:22',
// status: 2,
// note: '["A03"]'
// },
// {
// name: '',
// createTime: '2021-11-22 18:55:10',
// status: 3,
// note: '["A05"]'
// },
// {
// name: '',
// createTime: '2021-11-22 16:00:10',
// status: 1,
// note: '["B01"]'
// },
// {
// name: '',
// createTime: '2021-11-22 14:00:10',
// status: 1,
// note: '["A06"]'
// },
// {
// name: '',
// createTime: '2021-11-22 12:01:21',
// status: 1,
// note: '["B05"]'
// },
// {
// name: '',
// createTime: '2021-11-22 11:50:30',
// status: 1,
// note: '["A06"]'
// },
// {
// name: '',
// createTime: '2021-11-22 10:06:11',
// status: 1,
// note: '["B11"]'
// },
// {
// name: '',
// createTime: '2021-11-22 08:00:00',
// status: 1,
// note: '["A06"]'
// },
// {
// name: '',
// createTime: '2021-11-21 17:06:53',
// status: 4,
// note: '["A16"]'
// }
// ],
tableData: [],
formData: {
pageNo: 1,
pageSize: 10,
total: 0,
projectSn: ''
},
},
handleCurrentChange(){
}
timeData: []
}
},
created() {
this.formData.projectSn = this.$store.state.projectSn
this.getData()
// this.pageTotal = this.tableData.length
},
methods: {
//
getStatus(alarmType) {
if (alarmType === 1) {
return '报警'
} else {
return '预警'
}
},
getStatusTwo(type) {
if (type === 1) {
return '电量(%)'
} else if (type === 2) {
return 'X轴( °)'
} else if (type === 3) {
return 'Y轴( °)'
} else if (type === 4) {
return '压力(kN)'
} else if (type === 5) {
return '沉降(mm)'
}
},
//-
getData() {
getHighFormworkAlarmDataApi(this.formData).then((res) => {
console.log('查询高支模', res)
this.tableData = res.result.records
this.formData.total = res.result.total
})
},
handleSizeChange(val) {
this.pageSize = val
this.getData()
},
handleCurrentChange(val) {
this.pageNo = val
this.getData()
}
}
}
</script>
<style lang="less" scoped>
.alarm_box{
height: 100%;
width: 100%;
background: #fff;
.status_item{
padding: 2px 10px;
display: inline-block;
border-radius: 2px;
}
.status_1{
background: #18bc9c;
color: #fff;
}
.status_2{
background: #f39c12;
color: #fff;
}
.status_3{
background: #909399;
color: #fff;
}
.status_4{
background: #3498db;
color: #fff;
}
.status_5{
background: #18bc9c;
color: #fff;
}
.search_box{
display: flex;
padding: 20px;
.search_item{
margin-right: 20px;
}
.alarm_box {
height: 100%;
width: 100%;
background: #fff;
.status_item {
padding: 2px 10px;
display: inline-block;
border-radius: 2px;
}
.status_1 {
background: #18bc9c;
color: #fff;
}
.status_2 {
background: #f39c12;
color: #fff;
}
.status_3 {
background: #909399;
color: #fff;
}
.status_4 {
background: #3498db;
color: #fff;
}
.status_5 {
background: #18bc9c;
color: #fff;
}
.search_box {
display: flex;
padding: 20px;
.search_item {
margin-right: 20px;
}
}
.color1 {
color: red;
}
.color2 {
color: orange;
}
}
</style>