Commit 52f66de3 authored by 张浩然's avatar 张浩然

3/16 周二

parent 9af5795c
...@@ -18,3 +18,13 @@ export function sendRiskSM(data) { ...@@ -18,3 +18,13 @@ export function sendRiskSM(data) {
}); });
} }
// 获取隐患
export function getRiskListByCompanycode(data) {
return request5({
url: "api/hiddenTroubleCheck/getRiskListByCompanycode",
method: "get",
params: data
});
}
...@@ -81,3 +81,13 @@ export function findPersonnelReal(data) { ...@@ -81,3 +81,13 @@ export function findPersonnelReal(data) {
params: data params: data
}); });
} }
// 内部位移沉降
export function wkkNeiBuWeiYiChenJiang(data) {
return request5({
url: "api/wkkNeiBuWeiYiChenJiang",
method: "get",
params: data
});
}
<template> <template>
<div class="base-left"> <div class="base-left">
<div class="base_left_box"> <div class="base_left_box">
<img src="@/assets/images/error.png" @click="onClickDel" />
<img src="@/assets/images/error.png" @click="onClickDel">
<div class="base_left_box_line"> <div class="base_left_box_line">
<div class="title">基础信息</div> <div class="title">基础信息</div>
<el-row class="text"> <el-row class="text">
<el-col :span="8">名称</el-col> <el-col :span="8">名称</el-col>
<el-col class="text_right" :span="16">{{dataObj.name}}</el-col> <el-col class="text_right" :span="16">{{ dataObj.name }}</el-col>
</el-row> </el-row>
<el-row class="text"> <el-row class="text">
<el-col :span="8">地理位置</el-col> <el-col :span="8">地理位置</el-col>
<el-col class="text_right" :span="16">{{ dataObj.address}}</el-col> <el-col class="text_right" :span="16">{{ dataObj.address }}</el-col>
</el-row> </el-row>
</div> </div>
<div class="base_left_box_line"> <div class="base_left_box_line">
<div class="title">监测类型</div> <div class="title">监测类型</div>
<el-row class="text"> <el-row class="text">
...@@ -58,6 +55,16 @@ ...@@ -58,6 +55,16 @@
<el-col class="text_look" :span="12"><span @click="onTextLook(5, 'bmwy')">查看</span></el-col> <el-col class="text_look" :span="12"><span @click="onTextLook(5, 'bmwy')">查看</span></el-col>
</el-row> </el-row>
<el-row class="text">
<el-col :span="12">内部位移沉降</el-col>
<el-col class="text_look" :span="12"><span @click="onTextLook(8, 'nbwy')">查看</span></el-col>
</el-row>
<el-row class="text">
<el-col :span="12">内部位移倾斜</el-col>
<el-col class="text_look" :span="12"><span @click="onTextLook(9, 'nbwyqx')">查看</span></el-col>
</el-row>
<el-row class="text"> <el-row class="text">
<el-col :span="12">预警值</el-col> <el-col :span="12">预警值</el-col>
<el-col class="text_look" :span="12"><span @click="onTextLook(7, 'yjz')">查看</span></el-col> <el-col class="text_look" :span="12"><span @click="onTextLook(7, 'yjz')">查看</span></el-col>
...@@ -72,36 +79,30 @@ ...@@ -72,36 +79,30 @@
<el-col :span="12">三维</el-col> <el-col :span="12">三维</el-col>
<el-col class="text_look" :span="12"><span @click="onClickthree">查看</span></el-col> <el-col class="text_look" :span="12"><span @click="onClickthree">查看</span></el-col>
</el-row> </el-row>
</div> </div>
<div class="base_left_box_line"> <div class="base_left_box_line">
<div class="title">视频监控 <span class="position_look" @click="onClickVideo">更多</span> </div> <div class="title">视频监控 <span class="position_look" @click="onClickVideo">更多</span></div>
<div class="palyer2" v-loading="loading"> <div class="palyer2" v-loading="loading">
<LivePlayer v-if="isVideoUrl" ref="player2" :videoUrl="videoUrl" live /> <LivePlayer v-if="isVideoUrl" ref="player2" :videoUrl="videoUrl" live />
<LivePlayer v-else ref="player2" live /> <LivePlayer v-else ref="player2" live />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import LivePlayer from '@liveqing/liveplayer' import LivePlayer from '@liveqing/liveplayer'
import eventBus from "@/utils/eventbus" import eventBus from '@/utils/eventbus'
import { randNum } from "@/utils" import { randNum } from '@/utils'
import { grouptree, start } from '@/api' import { grouptree, start } from '@/api'
import mixin_index from '@/mixins' import mixin_index from '@/mixins'
export default { export default {
mixins: [mixin_index], mixins: [mixin_index],
data() { data() {
return { return {
dataObj: '', dataObj: '',
...@@ -119,8 +120,8 @@ export default { ...@@ -119,8 +120,8 @@ export default {
mounted() { mounted() {
this.$once('hook:beforeDestroy', () => { this.$once('hook:beforeDestroy', () => {
eventBus.$off("dialog_show", null) eventBus.$off('dialog_show', null)
eventBus.$off("dialog_show_video", null) eventBus.$off('dialog_show_video', null)
}) })
}, },
...@@ -132,7 +133,6 @@ export default { ...@@ -132,7 +133,6 @@ export default {
grouptree({ grouptree({
serial, serial,
}).then(res => { }).then(res => {
for (let item of res) { for (let item of res) {
if (item.name == name) { if (item.name == name) {
var code = item.code var code = item.code
...@@ -145,21 +145,17 @@ export default { ...@@ -145,21 +145,17 @@ export default {
return return
} }
grouptree( grouptree({
{
serial, serial,
pcode: code pcode: code,
} }).then(res => {
).then(res => {
this.parentSerial = res[0].serial this.parentSerial = res[0].serial
this.list = res this.list = res
start( start({
{
serial: this.parentSerial, serial: this.parentSerial,
code: res[0].code, code: res[0].code,
} }).then(res => {
).then(res => {
this.isVideoUrl = true this.isVideoUrl = true
setTimeout(() => { setTimeout(() => {
...@@ -167,9 +163,7 @@ export default { ...@@ -167,9 +163,7 @@ export default {
}, 1000) }, 1000)
this.videoUrl = res.WS_FLV this.videoUrl = res.WS_FLV
}) })
}) })
}) })
}) })
}, },
...@@ -179,9 +173,9 @@ export default { ...@@ -179,9 +173,9 @@ export default {
const para = { const para = {
index, index,
activeName: params, activeName: params,
dataObj: this.dataObj dataObj: this.dataObj,
} }
eventBus.$emit("dialog_show", para); eventBus.$emit('dialog_show', para)
}, },
// 查看环境监测 // 查看环境监测
...@@ -195,28 +189,22 @@ export default { ...@@ -195,28 +189,22 @@ export default {
parentSerial: this.parentSerial, parentSerial: this.parentSerial,
list: this.list, list: this.list,
} }
eventBus.$emit("dialog_show_video", e); eventBus.$emit('dialog_show_video', e)
} },
}, },
computed: { computed: {
compony_info() { compony_info() {
return this.$store.state.compony_info; return this.$store.state.compony_info
}, },
}, },
watch: { watch: {
compony_info(e) { compony_info(e) {
this.onGrouptree(e.name) this.onGrouptree(e.name)
this.dataObj = e; this.dataObj = e
} },
} },
} }
</script> </script>
...@@ -275,7 +263,7 @@ export default { ...@@ -275,7 +263,7 @@ export default {
.palyer2 { .palyer2 {
height: auto; height: auto;
margin-top: 0.5vh margin-top: 0.5vh;
} }
} }
} }
......
...@@ -4,15 +4,14 @@ ...@@ -4,15 +4,14 @@
<div class="title">企业风险等级综合评估</div> <div class="title">企业风险等级综合评估</div>
<div class="page"> <div class="page">
<div class="page_div" v-for="(item, index) in zaixiandongtaijiance" :key="index"> <div class="page_div" v-for="(item, index) in zaixiandongtaijiance" :key="index">
<div class="page_div_son"> <div class="page_div_son" @click="getRiskListByCompanycodeList(item)">
<span class="text" :title="item.message">{{ item.name }}风险等级 <span class="text">
<span>{{ item.name }}风险等级</span>
<span v-if="!item.riskLevel">正常</span> <span v-if="!item.riskLevel">正常</span>
<span v-if="item.riskLevel == 4">四级</span> <span v-if="item.riskLevel == 4">四级</span>
<span v-if="item.riskLevel == 3">三级</span> <span v-if="item.riskLevel == 3">三级</span>
<span v-if="item.riskLevel == 2">二级</span> <span v-if="item.riskLevel == 2">二级</span>
<span v-if="item.riskLevel == 1">一级</span> <span v-if="item.riskLevel == 1">一级</span>
</span> </span>
</div> </div>
</div> </div>
...@@ -22,11 +21,11 @@ ...@@ -22,11 +21,11 @@
<div class="top"> <div class="top">
<div class="title"> <div class="title">
<span>风险报警</span> <span>风险报警</span>
<span class="btn_send">一键发送</span> <span class="btn_send" @click="onSendRiskSM">一键发送</span>
</div> </div>
<div class="page"> <div class="page">
<div class="page_div" v-for="(item, index) in zaixiandongtaijiance2" :key="index"> <div class="page_div" v-for="(item, index) in zaixiandongtaijiance2" :key="index">
<div class="page_div_son page_div_son2 "> <div class="page_div_son page_div_son2">
<span class="text" :title="item.message">{{ item.name + item.msg }}</span> <span class="text" :title="item.message">{{ item.name + item.msg }}</span>
</div> </div>
</div> </div>
...@@ -39,22 +38,99 @@ ...@@ -39,22 +38,99 @@
</div> </div>
<div ref="myCharts" class="charts_div"></div> <div ref="myCharts" class="charts_div"></div>
</div> </div>
<div class="dialog" v-if="is_dialog">
<img src="@/assets/images/error.png" class="error" @click="is_dialog = false" />
<div v-for="(warnData, index) in warnDataList" :key="index">
<div class="title">{{ warnData.name }}</div>
<div>
<el-row class="page_text">
<el-col :span="8">排查人</el-col>
<el-col class="text_right" :span="16">{{ warnData.pcr }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">填报人</el-col>
<el-col class="text_right" :span="16">{{ warnData.tbr }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患来源</el-col>
<el-col class="text_right" :span="16">{{ warnData.yhly }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患地点</el-col>
<el-col class="text_right" :span="16">{{ warnData.yhdd }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患部位</el-col>
<el-col class="text_right" :span="16">{{ warnData.yhbw }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患类别</el-col>
<el-col class="text_right" :span="16">{{ warnData.yhlb }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患描述</el-col>
<el-col class="text_right" :span="16">{{ warnData.yhms }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">整改期限</el-col>
<el-col class="text_right" :span="16">{{ warnData.zgqx }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="10">整改实际完成日期</el-col>
<el-col class="text_right" :span="14">{{ warnData.zgwcrq }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">整改类型</el-col>
<el-col class="text_right" :span="16">{{ warnData.zglx }}</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患整改前图片</el-col>
<el-col class="text_right" :span="16">
<img :src="warnData.yhzgqtp" alt="" style="width: 3vw" />
</el-col>
</el-row>
<el-row class="page_text">
<el-col :span="8">隐患整改后图片</el-col>
<el-col class="text_right" :span="16">
<img :src="warnData.yhzghtp" alt="" style="width: 3vw" />
</el-col>
</el-row>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
import { getFXData, sendRiskSM } from '@/api/fengxian' import { getFXData, sendRiskSM, getRiskListByCompanycode } from '@/api/fengxian'
import { dept } from '@/api'
export default { export default {
data() { data() {
return { return {
zaixiandongtaijiance: [], zaixiandongtaijiance: [],
zaixiandongtaijiance2: [], zaixiandongtaijiance2: [],
is_dialog: false,
warnDataList: [],
} }
}, },
mounted() { mounted() {
this.zaixiandongtaijiance = this.$store.state.deptData
// getFXData().then(res => {}) // getFXData().then(res => {})
this.zaixiandongtaijiance2 = [ this.zaixiandongtaijiance2 = [
...@@ -70,9 +146,24 @@ export default { ...@@ -70,9 +146,24 @@ export default {
] ]
this.init() this.init()
this.initDept()
}, },
methods: { methods: {
initDept() {
dept().then(res => {
this.zaixiandongtaijiance = []
res.content.map(item => {
if (item.name == '东乌珠穆沁旗应急管理局') {
return
}
this.zaixiandongtaijiance.push(item)
})
})
},
init() { init() {
const myChart = echarts.init(this.$refs.myCharts) const myChart = echarts.init(this.$refs.myCharts)
...@@ -193,11 +284,33 @@ export default { ...@@ -193,11 +284,33 @@ export default {
// 一键发送 // 一键发送
onSendRiskSM() { onSendRiskSM() {
sendRiskSM().then(res => {})
this.$message({ this.$message({
message: '发送成功', message: '发送成功',
type: 'success', type: 'success',
}) })
sendRiskSM().then(res => {})
},
// 获取隐患
getRiskListByCompanycodeList(e) {
console.log(e)
getRiskListByCompanycode({
companycode: e.companycode,
}).then(res => {
this.warnDataList = res.content.map(item => {
if (item.hiddenYhzghtpSet.length > 0) {
item.yhzghtp = 'data:image/jpeg;base64,' + item.hiddenYhzghtpSet[0].yhzghtp
}
if (item.hiddenYhzgqtpSet.length > 0) {
item.yhzgqtp = 'data:image/jpeg;base64,' + item.hiddenYhzgqtpSet[0].yhzgqtp
}
return item
})
})
this.is_dialog = true
}, },
}, },
} }
...@@ -285,5 +398,69 @@ export default { ...@@ -285,5 +398,69 @@ export default {
height: 25vh; height: 25vh;
} }
} }
.dialog {
position: absolute;
right: 100%;
top: 0;
padding: 2vw 1vw;
width: 20vw;
height: 82vh;
overflow-y: auto;
background-image: url('~@/assets/images/kuang.png');
background-size: 100% 100%;
color: #fff;
@include scrollbar;
.error {
position: absolute;
width: 1vw;
top: 1.4vw;
right: 1.4vw;
cursor: pointer;
}
.page_text {
line-height: 2.2;
.text_right {
text-align: right;
}
}
.page_line {
color: #fff;
}
.page_div {
color: #07c1f7;
font-size: 1.5vh;
margin-bottom: 1vh;
.page_div_text {
line-height: 1.7;
color: #fff;
}
.page_div_text2 {
height: 37vh;
overflow-y: auto;
@include scrollbar;
}
}
.text {
margin-top: 2vh;
text-align: center;
}
.btn {
position: absolute;
bottom: 30px;
left: 0;
right: 0;
margin: auto;
background-image: linear-gradient(#f97f21, #ffa921);
}
}
} }
</style> </style>
...@@ -172,6 +172,64 @@ ...@@ -172,6 +172,64 @@
</el-table> </el-table>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="内部位移沉降" name="nbwy">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
<strong>结束时间</strong>
<el-date-picker v-model="stop_time" @change="onChangeStop" type="datetime" placeholder="选择日期"></el-date-picker>
<!-- <strong>监测站</strong>
<el-select v-model="bmwy_value" placeholder="请选择" @change="changeSelect">
<el-option v-for="item in bmwy_options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> -->
<el-button type="primary" @click="onClickSelect">查询</el-button>
<!-- <el-button type="primary" @click="onvisi('bmwy')">可视化</el-button> -->
</div>
<el-table :data="nbwy_tableList" height="58vh">
<el-table-column property="wkk_name" label="尾矿库">
<template>
{{ wkk_name }}
</template>
</el-table-column>
<el-table-column property="sensorName" label="传感器名称"></el-table-column>
<el-table-column property="sedimentationValue" label="沉降值"></el-table-column>
<el-table-column property="acquisitionTime" label="时间"></el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="内部位移倾斜" name="nbwyqx">
<div class="func_comm">
<strong>开始时间</strong>
<el-date-picker v-model="start_time" @change="onChangeStart" type="datetime" placeholder="选择日期"></el-date-picker>
<strong>结束时间</strong>
<el-date-picker v-model="stop_time" @change="onChangeStop" type="datetime" placeholder="选择日期"></el-date-picker>
<!-- <strong>监测站</strong>
<el-select v-model="bmwy_value" placeholder="请选择" @change="changeSelect">
<el-option v-for="item in bmwy_options" :key="item.value" :label="item.label" :value="item.value"> </el-option>
</el-select> -->
<el-button type="primary" @click="onClickSelect">查询</el-button>
<!-- <el-button type="primary" @click="onvisi('bmwy')">可视化</el-button> -->
</div>
<el-table :data="nbwyqx_tableList" height="58vh">
<el-table-column property="wkk_name" label="尾矿库">
<template>
{{ wkk_name }}
</template>
</el-table-column>
<el-table-column property="sensorName" label="传感器名称"></el-table-column>
<el-table-column property="inclineValue" label="倾斜值"></el-table-column>
<el-table-column property="acquisitionTime" label="时间"></el-table-column>
</el-table>
</el-tab-pane>
<el-tab-pane label="预警值" name="yjz"> <el-tab-pane label="预警值" name="yjz">
<el-table :data="yjz_tableList" height="60vh"> <el-table :data="yjz_tableList" height="60vh">
<el-table-column label="企业名称"> <el-table-column label="企业名称">
...@@ -207,7 +265,7 @@ ...@@ -207,7 +265,7 @@
<script> <script>
import { wkk, getRYDWData } from '@/api' import { wkk, getRYDWData } from '@/api'
import { jiangYuLiang, jinRunXian, ganTan, kuShuiWei, biaoMianWeiYi, wkkAlarmMsg, findPersonnelReal } from '@/api/weikuangku' import { jiangYuLiang, jinRunXian, ganTan, kuShuiWei, biaoMianWeiYi, wkkAlarmMsg, findPersonnelReal, neiBuWeiYiQingXie, wkkNeiBuWeiYiChenJiang } from '@/api/weikuangku'
import { mapState } from 'vuex' import { mapState } from 'vuex'
import eventBus from '@/utils/eventbus' import eventBus from '@/utils/eventbus'
import { timeParse, randNum } from '@/utils' import { timeParse, randNum } from '@/utils'
...@@ -260,6 +318,20 @@ export default { ...@@ -260,6 +318,20 @@ export default {
bmwy_cur_page: 1, bmwy_cur_page: 1,
bmwy_tableList: [], bmwy_tableList: [],
// 内部位移沉降
nbwy_value: '',
nbwy_sheet: '',
nbwy_options: '',
nbwy_cur_page: 1,
nbwy_tableList: [],
// 内部位移倾斜
nbwyqx_value: '',
nbwyqx_sheet: '',
nbwyqx_options: '',
nbwyqx_cur_page: 1,
nbwyqx_tableList: [],
yjz_tableList: [], yjz_tableList: [],
yj_tableList: [], yj_tableList: [],
...@@ -268,6 +340,8 @@ export default { ...@@ -268,6 +340,8 @@ export default {
rydw_cur_page: 0, rydw_cur_page: 0,
comm_total: 0, comm_total: 0,
companycode: '',
} }
}, },
...@@ -287,12 +361,12 @@ export default { ...@@ -287,12 +361,12 @@ export default {
this.activeName = data.activeName this.activeName = data.activeName
this.dialogTableVisible = true this.dialogTableVisible = true
this.wkk_name = data.dataObj.name this.wkk_name = data.dataObj.name
this.companycode = data.dataObj.companycode
wkkAlarmMsg({ wkkAlarmMsg({
page: 0, page: 0,
size: 1000, size: 1000,
sort: 'id,desc', sort: 'id,desc',
company: this.wkk_name, companycode: this.companycode,
}).then(res => { }).then(res => {
this.yj_tableList = res.content.map(item => { this.yj_tableList = res.content.map(item => {
item.level = item.level + '' item.level = item.level + ''
...@@ -342,6 +416,8 @@ export default { ...@@ -342,6 +416,8 @@ export default {
this.jyl_cur_page = 0 this.jyl_cur_page = 0
this.rydw_cur_page = 0 this.rydw_cur_page = 0
this.bmwy_cur_page = 0 this.bmwy_cur_page = 0
this.nbwy_cur_page = 0
this.nbwyqx_cur_page = 0
this.VisiblePagination = false this.VisiblePagination = false
this.comm_total = 0 this.comm_total = 0
...@@ -378,6 +454,16 @@ export default { ...@@ -378,6 +454,16 @@ export default {
this.bmwy_value = e this.bmwy_value = e
this.bmwyData() this.bmwyData()
} }
if (this.activeName == 'nbwy') {
this.nbwy_value = e
this.nbwyData()
}
if (this.activeName == 'nbwyqx') {
this.nbwyqx_value = e
this.nbwyqxData()
}
}, },
// 点击查询 // 点击查询
...@@ -407,6 +493,14 @@ export default { ...@@ -407,6 +493,14 @@ export default {
if (this.activeName == 'bmwy') { if (this.activeName == 'bmwy') {
this.bmwyData() this.bmwyData()
} }
if (this.activeName == 'nbwy') {
this.nbwyData()
}
if (this.activeName == 'nbwyqx') {
this.nbwyqxData()
}
}, },
// 开始时间 // 开始时间
...@@ -445,6 +539,15 @@ export default { ...@@ -445,6 +539,15 @@ export default {
if (e.name == 'bmwy') { if (e.name == 'bmwy') {
this.bmwyData() this.bmwyData()
} }
if (e.name == 'nbwy') {
this.nbwyData()
}
if (e.name == 'nbwyqx') {
this.nbwyqxData()
}
}, },
// 人员定位 // 人员定位
...@@ -476,7 +579,7 @@ export default { ...@@ -476,7 +579,7 @@ export default {
size: 10, size: 10,
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
order: 'desc', order: 'acquisition,desc',
}).then(res => { }).then(res => {
this.rydw_tableList = res.content this.rydw_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -491,10 +594,11 @@ export default { ...@@ -491,10 +594,11 @@ export default {
sort: 'id,desc', sort: 'id,desc',
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
company: this.wkk_name, companycode: this.companycode,
} }
jiangYuLiang(params).then(res => { jiangYuLiang(params).then(res => {
this.jyl_tableList = []
if (res.content.length > 0) { if (res.content.length > 0) {
this.jyl_tableList = res.content this.jyl_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -517,10 +621,11 @@ export default { ...@@ -517,10 +621,11 @@ export default {
sort: 'id,desc', sort: 'id,desc',
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
company: this.wkk_name, companycode: this.companycode,
} }
jinRunXian(params).then(res => { jinRunXian(params).then(res => {
this.jrx_tableList = []
if (res.content.length > 0) { if (res.content.length > 0) {
this.jrx_tableList = res.content this.jrx_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -543,9 +648,10 @@ export default { ...@@ -543,9 +648,10 @@ export default {
sort: 'id,desc', sort: 'id,desc',
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
company: this.wkk_name, companycode: this.companycode,
} }
ganTan(params).then(res => { ganTan(params).then(res => {
this.gt_tableList = []
if (res.content.length > 0) { if (res.content.length > 0) {
this.gt_tableList = res.content this.gt_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -568,10 +674,11 @@ export default { ...@@ -568,10 +674,11 @@ export default {
sort: 'id,desc', sort: 'id,desc',
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
company: this.wkk_name, companycode: this.companycode,
} }
kuShuiWei(params).then(res => { kuShuiWei(params).then(res => {
this.ksw_tableList = []
if (res.content.length > 0) { if (res.content.length > 0) {
this.ksw_tableList = res.content this.ksw_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -594,10 +701,11 @@ export default { ...@@ -594,10 +701,11 @@ export default {
sort: 'id,desc', sort: 'id,desc',
startTime: this.start_time, startTime: this.start_time,
endTime: this.stop_time, endTime: this.stop_time,
company: this.wkk_name, companycode: this.companycode,
} }
biaoMianWeiYi(params).then(res => { biaoMianWeiYi(params).then(res => {
this.bmwy_tableList = []
if (res.content.length > 0) { if (res.content.length > 0) {
this.bmwy_tableList = res.content this.bmwy_tableList = res.content
this.comm_total = res.totalElements this.comm_total = res.totalElements
...@@ -612,6 +720,58 @@ export default { ...@@ -612,6 +720,58 @@ export default {
}) })
}, },
// 内部位移沉降
nbwyData() {
this.nbwy_tableList = []
let params = {
page: this.nbwy_cur_page,
size: 10,
sort: 'id,desc',
startTime: this.start_time,
endTime: this.stop_time,
companycode: this.companycode,
}
wkkNeiBuWeiYiChenJiang(params).then(res => {
this.nbwy_tableList = res.content
this.comm_total = res.totalElements
this.ksw_sheet = [
{
tHeader: ['尾矿库名称', '监测站', '监测值', '时间'],
table: this.nbwy_tableList,
keys: ['wkk_name', 'sensor_name', 'water_level_value', 'insert_time'],
},
]
})
},
// 内部位移倾斜
nbwyqxData() {
this.nbwyqx_tableList = []
let params = {
page: this.nbwyqx_cur_page,
size: 10,
sort: 'id,desc',
startTime: this.start_time,
endTime: this.stop_time,
companycode: this.companycode,
}
neiBuWeiYiQingXie(params).then(res => {
this.nbwyqx_tableList = res.content
this.comm_total = res.totalElements
this.ksw_sheet = [
{
tHeader: ['尾矿库名称', '监测站', '监测值', '时间'],
table: this.nbwy_tableList,
keys: ['wkk_name', 'sensor_name', 'water_level_value', 'insert_time'],
},
]
})
},
// 换页 // 换页
currentChange(e) { currentChange(e) {
var e = e - 1 var e = e - 1
...@@ -644,6 +804,16 @@ export default { ...@@ -644,6 +804,16 @@ export default {
this.bmwy_cur_page = e this.bmwy_cur_page = e
this.bmwyData() this.bmwyData()
} }
if (this.activeName == 'nbwy') {
this.nbwy_cur_page = e
this.nbwyData()
}
if (this.activeName == 'nbwyqx') {
this.nbwyqx_cur_page = e
this.nbwyqxData()
}
}, },
}, },
......
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=renderer content=webkit><meta name=force-rendering content=webkit><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1"><title>安全生产风险智能监测系统</title><script src=./js/liveplayer-lib.min.js></script><script src="https://webapi.amap.com/maps?v=1.4.15&key=bfa930cbec820fc1c16f8f54348f98e3&plugin=Map3D,AMap.DistrictSearch,AMap.Geocoder,AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch"></script><link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css><script src=https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js></script><script src=https://www.thingjs.com/static/historyVersion/thing.min.js></script><script src=https://www.thingjs.com/static/release/thing.widget.min.js></script><link href=static/css/chunk-2179b226.5a2d9eeb.css rel=prefetch><link href=static/css/chunk-86a8c330.993ce4e6.css rel=prefetch><link href=static/css/chunk-c692b744.b52443eb.css rel=prefetch><link href=static/js/chunk-00f444cb.2de59d4f.js rel=prefetch><link href=static/js/chunk-2179b226.c2078801.js rel=prefetch><link href=static/js/chunk-573f826d.d0671cb7.js rel=prefetch><link href=static/js/chunk-86a8c330.4f73b8a0.js rel=prefetch><link href=static/js/chunk-9cff3828.c3cc64da.js rel=prefetch><link href=static/js/chunk-c692b744.43227dd7.js rel=prefetch><link href=static/css/app.6f0067ad.css rel=preload as=style><link href=static/css/chunk-vendors.e977a650.css rel=preload as=style><link href=static/js/app.a0da5e93.js rel=preload as=script><link href=static/js/chunk-vendors.21454246.js rel=preload as=script><link href=static/css/chunk-vendors.e977a650.css rel=stylesheet><link href=static/css/app.6f0067ad.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-vendors.21454246.js></script><script src=static/js/app.a0da5e93.js></script></body></html> <!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta name=renderer content=webkit><meta name=force-rendering content=webkit><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><meta name=viewport content="width=device-width,initial-scale=1"><title>安全生产风险智能监测系统</title><script src=./js/liveplayer-lib.min.js></script><script src="https://webapi.amap.com/maps?v=1.4.15&key=bfa930cbec820fc1c16f8f54348f98e3&plugin=Map3D,AMap.DistrictSearch,AMap.Geocoder,AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch"></script><link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css><script src=https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js></script><script src=https://www.thingjs.com/static/historyVersion/thing.min.js></script><script src=https://www.thingjs.com/static/release/thing.widget.min.js></script><link href=static/css/chunk-2179b226.b972431f.css rel=prefetch><link href=static/css/chunk-86a8c330.993ce4e6.css rel=prefetch><link href=static/css/chunk-c692b744.b52443eb.css rel=prefetch><link href=static/js/chunk-00f444cb.2de59d4f.js rel=prefetch><link href=static/js/chunk-2179b226.657e2b95.js rel=prefetch><link href=static/js/chunk-573f826d.d0671cb7.js rel=prefetch><link href=static/js/chunk-86a8c330.55279ec4.js rel=prefetch><link href=static/js/chunk-9cff3828.c3cc64da.js rel=prefetch><link href=static/js/chunk-c692b744.f5a17c72.js rel=prefetch><link href=static/css/app.6f0067ad.css rel=preload as=style><link href=static/css/chunk-vendors.e977a650.css rel=preload as=style><link href=static/js/app.62b0a7cc.js rel=preload as=script><link href=static/js/chunk-vendors.21454246.js rel=preload as=script><link href=static/css/chunk-vendors.e977a650.css rel=stylesheet><link href=static/css/app.6f0067ad.css rel=stylesheet></head><body><div id=app></div><script src=static/js/chunk-vendors.21454246.js></script><script src=static/js/app.62b0a7cc.js></script></body></html>
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment