Merge branch 'dev-yjl' into 'shenzhen-dev'

项目版-高支模功能完善

See merge request !113
This commit is contained in:
袁晶琳 2023-03-13 17:57:40 +08:00
commit 119d93e1b6
8 changed files with 235 additions and 165 deletions

View File

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

View File

@ -30,3 +30,6 @@ export const selectHighFormworkPlaneFigureListApi = data => post('xmgl/highFormw
export const updateFigureCoordinateApi = data => post('xmgl/highFormworkPlaneFigureCoordinate/updateFigureCoordinate', data); 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://218.92.215.138:9090/' //盐城 新佳城小区 123456
// axios.defaults.baseURL = 'http://36.137.53.203:9090/' //盐城 gdjt 123456789 // 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://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://58.250.210.9:9090' //深汕线上
axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地
} else if (process.env.NODE_ENV == 'debug') { } else if (process.env.NODE_ENV == 'debug') {
axios.defaults.baseURL = 'https://www.ceshi.com' axios.defaults.baseURL = 'https://www.ceshi.com'

View File

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

View File

@ -48,9 +48,9 @@ export default new Vuex.Store({
BASEURL: baseUrl BASEURL: baseUrl
? baseUrl ? baseUrl
: window.location.protocol + "//" + window.location.host + "/", // : window.location.protocol + "//" + window.location.host + "/", //
UPLOADURL: // UPLOADURL:
window.location.protocol + "//" + window.location.host + "/upload/image", // // window.location.protocol + "//" + window.location.host + "/upload/image", //
FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试 // FILEURL: window.location.protocol + "//" + window.location.host + "/image/", //测试
// tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/', // tag: 本地测试接口 // BASEURL:'http://192.168.34.174:6023/',
/* 2022-05-16 */ /* 2022-05-16 */
// tag: 部署河南项目时,需要打开这两行代码 // tag: 部署河南项目时,需要打开这两行代码
@ -63,8 +63,8 @@ export default new Vuex.Store({
// BASEURL:'http://192.168.34.116:6023/', // BASEURL:'http://192.168.34.116:6023/',
// UPLOADURL: 'http://192.168.34.116:6023/upload/image', // UPLOADURL: 'http://192.168.34.116:6023/upload/image',
// FILEURL: 'http://192.168.34.116:6023/image/', // FILEURL: 'http://192.168.34.116:6023/image/',
// UPLOADURL: 'http://124.71.67.160:8088/upload/image', UPLOADURL: 'http://124.71.67.160:8088/upload/image',
// FILEURL: 'http://124.71.67.160:8088/image/', FILEURL: 'http://124.71.67.160:8088/image/',
//--- //---
// UPLOADURL: 'http://192.168.34.125:6023/upload/i·mage', // UPLOADURL: 'http://192.168.34.125:6023/upload/i·mage',
// FILEURL: 'http://192.168.34.125:6023/image/', // 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 { .woria {
width: 100%; width: 100%;
height: calc(115% - 92px); 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%; background-size: 99% 101%;
// margin-top: 10px; // margin-top: 10px;
.woriaTwo { .woriaTwo {

View File

@ -18,167 +18,232 @@
<el-table :data="tableData" class="tables" height="660"> <el-table :data="tableData" class="tables" height="660">
<!-- 姓名 --> <!-- 姓名 -->
<el-table-column <el-table-column
prop="name" prop="measurePointName"
label="姓名" label="测量点编号"
align="center"
> >
</el-table-column> </el-table-column>
<!-- 时间 --> <el-table-column prop="alarmType" label="类型" align="center">
<el-table-column <template slot-scope="scope" v-if="scope.row.alarmType === 1">
prop="createTime" <span class="color1">{{ getStatus(scope.row.alarmType) }}</span>
label="时间" </template>
> <template slot-scope="scope" v-else>
</el-table-column> <span class="color2">{{ getStatus(scope.row.alarmType) }}</span>
<!-- 备注 -->
<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> </template>
</el-table-column> </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-table>
<el-pagination <el-pagination
class="pagerBox" class="pagerBox"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="filterForm.pageNo" :current-page="formData.pageNo"
:page-sizes="$store.state.PAGESIZRS" :page-sizes="$store.state.PAGESIZRS"
:page-size="filterForm.pageSize" :page-size="formData.pageSize"
layout="total, sizes, prev, pager, next" layout="total, sizes, prev, pager, next"
:total="pageTotal" :total="Number(formData.total)"
background background
></el-pagination> ></el-pagination>
</div> </div>
</template> </template>
<script> <script>
import { getHighFormworkAlarmDataApi } from '@/assets/js/api/highModulus.js'
export default { export default {
data(){ data() {
return{ return {
tableData:[{ // tableData: [
name: '管理员', // {
createTime: '2021-11-23 11:00:20', // name: '',
status: 0, // createTime: '2021-11-23 11:00:20',
note: '警情确认:误报;报警测点:["A01"];报警原因:试验测试' // status: 0,
},{ // note: '["A01"]'
name: '管理员', // },
createTime: '2021-11-23 10:35:22', // {
status: 2, // name: '',
note: '警情确认:真实警情;报警测点:["A03"];报警原因:设备故障' // createTime: '2021-11-23 10:35:22',
},{ // status: 2,
name: '管理员', // note: '["A03"]'
createTime: '2021-11-22 18:55:10', // },
status: 3, // {
note: '警情确认:真实警情;报警测点:["A05"];报警原因:超出控制值' // name: '',
},{ // createTime: '2021-11-22 18:55:10',
name: '管理员', // status: 3,
createTime: '2021-11-22 16:00:10', // note: '["A05"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["B01"];报警原因:超出预警值' // {
}, // name: '',
{ // createTime: '2021-11-22 16:00:10',
name: '管理员', // status: 1,
createTime: '2021-11-22 14:00:10', // note: '["B01"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出预警值' // {
}, // name: '',
{ // createTime: '2021-11-22 14:00:10',
name: '管理员', // status: 1,
createTime: '2021-11-22 12:01:21', // note: '["A06"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["B05"];报警原因:超出预警值' // {
}, // name: '',
{ // createTime: '2021-11-22 12:01:21',
name: '管理员', // status: 1,
createTime: '2021-11-22 11:50:30', // note: '["B05"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出预警值' // {
}, // name: '',
{ // createTime: '2021-11-22 11:50:30',
name: '管理员', // status: 1,
createTime: '2021-11-22 10:06:11', // note: '["A06"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["B11"];报警原因:超出预警值' // {
}, // name: '',
{ // createTime: '2021-11-22 10:06:11',
name: '管理员', // status: 1,
createTime: '2021-11-22 08:00:00', // note: '["B11"]'
status: 1, // },
note: '警情确认:真实警情;报警测点:["A06"];报警原因:超出报警值' // {
},{ // name: '',
name: '管理员', // createTime: '2021-11-22 08:00:00',
createTime: '2021-11-21 17:06:53', // status: 1,
status: 4, // note: '["A06"]'
note: '警情确认:真实警情;报警测点:["A16"];报警原因:超出预警值' // },
}], // {
filterForm:{ // name: '',
// createTime: '2021-11-21 17:06:53',
// status: 4,
// note: '["A16"]'
// }
// ],
tableData: [],
formData: {
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
total: 0,
projectSn: ''
}, },
timeData: [],
pageTotal: 0 timeData: []
} }
}, },
created(){ created() {
this.pageTotal = this.tableData.length this.formData.projectSn = this.$store.state.projectSn
this.getData()
// this.pageTotal = this.tableData.length
}, },
methods:{ methods: {
handleSizeChange(){ //
getStatus(alarmType) {
if (alarmType === 1) {
return '报警'
} else {
return '预警'
}
}, },
handleCurrentChange(){ 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> </script>
<style lang="less" scoped> <style lang="less" scoped>
.alarm_box{ .alarm_box {
height: 100%; height: 100%;
width: 100%; width: 100%;
background: #fff; background: #fff;
.status_item{ .status_item {
padding: 2px 10px; padding: 2px 10px;
display: inline-block; display: inline-block;
border-radius: 2px; border-radius: 2px;
} }
.status_1{ .status_1 {
background: #18bc9c; background: #18bc9c;
color: #fff; color: #fff;
} }
.status_2{ .status_2 {
background: #f39c12; background: #f39c12;
color: #fff; color: #fff;
} }
.status_3{ .status_3 {
background: #909399; background: #909399;
color: #fff; color: #fff;
} }
.status_4{ .status_4 {
background: #3498db; background: #3498db;
color: #fff; color: #fff;
} }
.status_5{ .status_5 {
background: #18bc9c; background: #18bc9c;
color: #fff; color: #fff;
} }
.search_box{ .search_box {
display: flex; display: flex;
padding: 20px; padding: 20px;
.search_item{ .search_item {
margin-right: 20px; margin-right: 20px;
} }
} }
.color1 {
color: red;
}
.color2 {
color: orange;
}
} }
</style> </style>