Commit 9af5795c authored by 张浩然's avatar 张浩然

完成

parent 4a153dd9
......@@ -9,3 +9,12 @@ export function getFXData(data) {
});
}
// 一键发送
export function sendRiskSM(data) {
return request5({
url: "api/hiddenTroubleCheck/sendRiskSM",
method: "get",
params: data
});
}
......@@ -62,3 +62,12 @@ export function getYJContingencyPlanData(data) {
params: data
});
}
// 隐患 研判历史
export function findAllCheckedHiddenTrouble(data) {
return request5({
url: "api/hiddenTroubleCheck/findAllCheckedHiddenTrouble",
method: "get",
params: data
});
}
\ No newline at end of file
......@@ -15,7 +15,7 @@
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
<span @click="onClickActive(4)">管理系统</span>
<!-- <span @click="onClickActive(4)">管理系统</span> -->
</div>
</div>
......
<template>
<el-dialog class="dxkq_dialog" :visible.sync="dialogVisible" top="10vh" width="70%" :before-close="handleClose">
<div ref="myCharts" class="charts_div"></div>
<br>
<el-table :data="tableList" height="58vh">
<el-table-column property="deviceid" label="检测设备"></el-table-column>
<el-table-column property="value" label="监测值"></el-table-column>
<el-table-column property="location" label="安装位置"></el-table-column>
<el-table-column property="acquisitionTime" label="时间"></el-table-column>
</el-table>
<el-pagination layout="prev, pager, next" background :total="comm_total || 0" @current-change="currentChange"></el-pagination>
</el-dialog>
</template>
<script>
import { timeParse, randNum } from '@/utils'
import { environment } from '@/api/weikuangku'
export default {
data() {
return {
dialogVisible: false,
activeName: 'first',
tableList: [],
comm_total: 0,
page_index: 0,
}
},
mounted() {
},
methods: {
core() {
let dataX = []
let series = []
var legendData = []
var legendSelected = {}
const count = 50
const arr = [
{ name: "PM25", data: randNum(22, 23, count), nickname: "PM2.5", color: "#3A84FF", },
{ name: "PM10", data: randNum(20, 21, count), nickname: "PM10", color: "rgba(255,80,124,1)", },
{ name: "ZS", data: randNum(23, 24, count), nickname: "噪音", color: "rgba(12, 108, 227, 1)", },
{ name: "TMP", data: randNum(1, 1.4, count), nickname: "温度", color: "rgba(234, 242, 16, 1)", },
{ name: "RH", data: randNum(1, 1.2, count), nickname: "湿度", color: "rgba(8, 116, 227, 1)", },
{ name: "PA", data: randNum(97, 98, count), nickname: "气压", color: "rgba(2, 241, 137, 1)", },
{ name: "CY", data: randNum(0, 0.08, count), nickname: "臭氧", color: "rgba(22, 199, 243, 1)", },
{ name: "EYHD", data: randNum(0, 0.03, count), nickname: "二氧化氮", color: "rgba(69, 63, 197, 1)", },
{ name: "EYHL", data: randNum(0, 0.08, count), nickname: "二氧化硫", color: "rgba(220, 19, 56, 1)", },
{ name: "YYHT", data: randNum(0, 0.8, count), nickname: "一氧化碳", color: "rgba(220, 19, 56, 1)", },
{ name: "VOC", data: randNum(0, 1, count), nickname: "挥发性有机化合物(VOC)", color: "rgba(120, 255, 0, 1)", },
]
const sum = 5 * 60 * 1000
const current = Date.parse(new Date())
for (let i = 0; i < count; i++) {
dataX.push(timeParse(current - (sum * i)))
}
for (let i in arr) {
var index = 0;
if (Math.max(...arr[i].data) < 3) {
index = 1;
}
series.push({
name: arr[i].nickname,
type: "line",
smooth: true,
itemStyle: {
normal: {
color: arr[i].color,
},
handleClose() {
this.dialogVisible = false
},
yAxisIndex: index,
data: arr[i].data,
});
legendData.push(arr[i].nickname)
let nickname = arr[i].nickname
if (i < 4) {
legendSelected[nickname] = true
} else {
legendSelected[nickname] = false
}
environmentData() {
const params = {
page: this.page_index,
size: 10,
sort: 'id,desc',
item: '可燃气体'
}
setTimeout(() => {
this.myCharts(dataX, series, legendData, legendSelected)
}, 2000);
this.dialogVisible = true
},
myCharts(dataX, series, legendData, legendSelected) {
let myChart = echarts.init(this.$refs.myCharts)
var option = {
tooltip: {
trigger: "axis",
axisPointer: {
type: "cross",
},
environment(params).then(res => {
let content = res.content
this.tableList = content
this.comm_total = res.totalElements
})
},
legend: {
data: legendData,
selected: legendSelected,
bottom: "4%",
left: "center",
textStyle: {
color: "#1DD8EF",
currentChange(e) {
this.page_index = e - 1
this.environmentData()
},
},
grid: {
top: "6%",
right: "5%",
left: "5%",
bottom: "15%",
},
xAxis: [
{
type: "category",
boundaryGap: false,
axisLine: {
lineStyle: {
color: "#1DD8EF",
},
},
axisTick: {
alignWithLabel: true,
},
data: dataX,
},
],
yAxis: [
{
type: "value",
axisLine: {
lineStyle: {
color: "#1DD8EF",
},
},
splitLine: {
show: true,
lineStyle: {
color: "#11366e",
},
},
position: "left",
},
{
type: "value",
axisLine: {
lineStyle: {
color: "#1DD8EF",
},
},
splitLine: {
show: false,
},
position: "right",
},
],
series,
};
myChart.setOption(option, true);
},
handleClose() {
this.dialogVisible = false
}
},
computed: {
isDxkqDialog() {
return this.$store.state.isDxkqDialog
}
},
},
watch: {
isDxkqDialog(e) {
this.activeName = e.params
this.core()
}
}
this.dialogVisible = true
this.environmentData()
},
},
}
</script>
......@@ -192,8 +70,9 @@ export default {
height: 68vh;
}
.el-dialog, .el-pager li {
background-color: #040624;
}
// .el-dialog,
// .el-pager li {
// background-color: #040624;
// }
}
</style>
......@@ -90,7 +90,6 @@ export default {
},
onGrouptree(name) {
console.log(name)
grouptree().then(res => {
const serial = res[0].serial
this.loading = true
......
......@@ -5,7 +5,15 @@
<div class="page">
<div class="page_div" v-for="(item, index) in zaixiandongtaijiance" :key="index">
<div class="page_div_son">
<span class="text" :title="item.message">{{ item.name }}风险等级四级</span>
<span class="text" :title="item.message">{{ item.name }}风险等级
<span v-if="!item.riskLevel">正常</span>
<span v-if="item.riskLevel == 4">四级</span>
<span v-if="item.riskLevel == 3">三级</span>
<span v-if="item.riskLevel == 2">二级</span>
<span v-if="item.riskLevel == 1">一级</span>
</span>
</div>
</div>
</div>
......@@ -35,7 +43,7 @@
</template>
<script>
import { getFXData } from '@/api/fengxian'
import { getFXData, sendRiskSM } from '@/api/fengxian'
export default {
data() {
return {
......@@ -45,30 +53,9 @@ export default {
},
mounted() {
this.zaixiandongtaijiance = this.$store.state.deptData
console.log(this.$store.state.deptData)
this.zaixiandongtaijiance = [
{
name: '山金白音呼布',
},
{
name: '融冠矿业',
},
{
name: '山金阿尔哈达',
},
{
name: '锡林矿业',
},
{
name: '钨矿',
},
]
// getFXData().then(res => {})
this.zaixiandongtaijiance2 = [
{
......@@ -80,21 +67,6 @@ export default {
name: '融冠矿业',
msg: '监测站2测点通信中断',
},
{
name: '山金阿尔哈达',
msg: '监测站4测点通信中断',
},
{
name: '山金阿尔哈达',
msg: '监测站4测点通信中断',
},
{
name: '山金阿尔哈达',
msg: '监测站8测点通信中断',
},
]
this.init()
......@@ -218,6 +190,15 @@ export default {
myChart.setOption(option, true)
},
// 一键发送
onSendRiskSM() {
sendRiskSM().then(res => {})
this.$message({
message: '发送成功',
type: 'success',
})
},
},
}
</script>
......@@ -291,7 +272,7 @@ export default {
}
.btn_send {
padding: .3vh .4vw;
padding: 0.3vh 0.4vw;
font-size: 1.3vh;
color: #ffc107;
border: 1px solid;
......
......@@ -56,10 +56,7 @@ export default {
page: this.page,
size: 10,
sort: 'id,desc',
company: compony_info.name,
item: this.inputItem,
// 'insertTime': this.start_time,
// 'insertTime': this.stop_time
companycode: compony_info.companycode,
}).then(res => {
this.tableData = res.content
this.total = res.totalElements
......@@ -82,8 +79,6 @@ export default {
this.stop_time = timeParse(e) // 开始时间
},
onClickSelect() {},
handleClose() {
this.dialogVisible = false
},
......
......@@ -568,7 +568,7 @@ export default {
display: flex;
justify-content: space-between;
background-size: 100% 100%;
background-image: url('~@/assets/images/yingji_4_4.png');
background-image: url('~@/assets/images/yingji_3_3.png');
.text {
overflow: hidden;
......
......@@ -35,7 +35,7 @@
</div>
</div>
<div class="bottom" style="height: 18vh;">
<div class="bottom" style="height: 12vh;overflow-y: hidden;">
<div class="title">
<span>重大安全生产事故隐患分析</span>
</div>
......@@ -52,7 +52,7 @@
</div>
<div class="dialog" v-if="is_dialog">
<img src="@/assets/images/error.png" class="error" @click="onClickError" />
<img src="@/assets/images/error.png" class="error" @click="is_dialog = false" />
<div class="page">
<div class="text">{{ rightListDialog.name }}</div>
......@@ -73,8 +73,78 @@
<div class="title">响应措施</div>
<div class="page_div_text page_div_text2">{{ rightListDialog.annex }}</div>
</div>
</div>
</div>
<!-- <el-button class="btn" type="warning" @click="onBtn">确认启动</el-button> -->
<div class="dialog" v-if="is_dialog_info">
<img src="@/assets/images/error.png" class="error" @click="is_dialog_info = false" />
<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>
......@@ -90,8 +160,8 @@
</template>
<script>
import { emergencyPlan, undergroundSeriousHiddenTrouble, findHiddenTimeout} from '@/api'
import { getYJContingencyPlanData } from '@/api/yinhuan'
import { emergencyPlan, undergroundSeriousHiddenTrouble, findHiddenTimeout } from '@/api'
import { getYJContingencyPlanData, findAllCheckedHiddenTrouble } from '@/api/yinhuan'
import { contextList } from '@/json/yinhuan.js'
export default {
......@@ -108,7 +178,10 @@ export default {
dataList: [],
warnData: {},
big_weixianList: [], //重大安全生产事故隐患分析
is_dialog_info: false,
}
},
......@@ -130,14 +203,13 @@ export default {
this.rightList = res
})
this.onFindHiddenTimeout()
},
methods: {
// 隐患
onFindHiddenTimeout() {
findHiddenTimeout().then(res => {
findAllCheckedHiddenTrouble().then(res => {
let deptData = this.$store.state.deptData // 所有企业
this.dataList = res.content.map(item => {
for (let contx of deptData) {
......@@ -155,18 +227,23 @@ export default {
this.is_dialog = true
},
onClickError() {
this.is_dialog = false
},
onBtn() {
this.is_dialog = false
},
onContextLook(e) {
this.is_info_dialog_context = true
this.contextListParams = e
},
onClickWarning(params) {
if (params.hiddenYhzghtpSet.length > 0) {
params.yhzghtp = 'data:image/jpeg;base64,' + params.hiddenYhzghtpSet[0].yhzghtp
}
if (params.hiddenYhzgqtpSet.length > 0) {
params.yhzgqtp = 'data:image/jpeg;base64,' + params.hiddenYhzgqtpSet[0].yhzgqtp
}
this.is_dialog_info = true
this.warnData = params
},
},
}
</script>
......@@ -193,7 +270,7 @@ export default {
}
.top {
height: 20vh;
height: 22vh;
.page {
height: 85%;
......@@ -295,6 +372,14 @@ export default {
cursor: pointer;
}
.page_text {
line-height: 2.2;
.text_right {
text-align: right;
}
}
.page_line {
color: #fff;
}
......
<!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-42868b46.cec70464.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-42868b46.3b042a11.js rel=prefetch><link href=static/js/chunk-573f826d.febee051.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.46886344.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.46886344.js></script></body></html>
\ No newline at end of file
<!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>
\ No newline at end of file
(function(e){function t(t){for(var r,a,u=t[0],c=t[1],s=t[2],f=0,d=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&d.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);l&&l(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==o[u]&&(r=!1)}r&&(i.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},a={app:0},o={app:0},i=[];function u(e){return c.p+"static/js/"+({}[e]||e)+"."+{"chunk-9cff3828":"c3cc64da","chunk-00f444cb":"2de59d4f","chunk-42868b46":"3b042a11","chunk-86a8c330":"4f73b8a0","chunk-573f826d":"febee051","chunk-c692b744":"43227dd7"}[e]+".js"}function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-42868b46":1,"chunk-86a8c330":1,"chunk-c692b744":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-9cff3828":"31d6cfe0","chunk-00f444cb":"31d6cfe0","chunk-42868b46":"cec70464","chunk-86a8c330":"993ce4e6","chunk-573f826d":"31d6cfe0","chunk-c692b744":"b52443eb"}[e]+".css",o=c.p+r,i=document.getElementsByTagName("link"),u=0;u<i.length;u++){var s=i[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return t()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],f=s.getAttribute("data-href");if(f===r||f===o)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],l.parentNode.removeChild(l),n(i)},l.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(l)})).then((function(){a[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=i);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,c.nc&&f.setAttribute("nonce",c.nc),f.src=u(e);var d=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",d.name="ChunkLoadError",d.type=r,d.request=a,n[1](d)}o[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var l=f;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"365c":function(e,t,n){"use strict";var r=n("bc3a"),a=n.n(r),o=n("5c96"),i=a.a.create({baseURL:"http://39.98.150.124:9875/",timeout:3e4});i.interceptors.request.use((function(e){return e.headers["token"]||(e.headers["Authorization"]="Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIyYmUyNmEzZTg3Njc0NzAwYjQyODY2YjgzNmQwZDQ5OSIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.qlg04WGthnLo0ugvJtKBmJQXNEuxqT3F9bZDdF_iWHvx-YRsWtNY9DUZW-HOC0F_I2dCMsXVtVmed7NcBIItqA"),e})),i.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var u=i,c=a.a.create({baseURL:"http://39.98.150.124:8000/",timeout:3e4});c.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var s=c,f=a.a.create({baseURL:"http://47.92.82.212:10000/",timeout:3e4});f.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var d=f,l=a.a.create({baseURL:"http://39.98.150.124:8000/",timeout:3e4});l.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var p=l;n.d(t,"b",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return k})),n.d(t,"j",(function(){return v})),n.d(t,"o",(function(){return w})),n.d(t,"n",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return T})),n.d(t,"k",(function(){return j})),n.d(t,"r",(function(){return O})),n.d(t,"q",(function(){return D})),n.d(t,"g",(function(){return I})),n.d(t,"m",(function(){return E})),n.d(t,"f",(function(){return L})),n.d(t,"p",(function(){return P}));function h(e){return s({url:"api/dictDetail/findAll",method:"get",params:e})}function m(e){return s({url:"api/alarmSms/sendAlarmSms",method:"get",params:e})}function b(e){return s({url:"api/dept/findAll",method:"get",params:e})}function g(e){return s({url:"api/baseDataBigScreen/expert",method:"get",params:e})}function _(e){return s({url:"api/baseDataBigScreen/rescueCar",method:"get",params:e})}function k(e){return s({url:"api/baseDataBigScreen/refuge",method:"get",params:e})}function v(e){return s({url:"api/baseDataBigScreen/rescueTeam",method:"get",params:e})}function w(e){return s({url:"api/baseDataBigScreen/suppliesReserveStation",method:"get",params:e})}function y(e){return s({url:"api/baseDataBigScreen/suppliesReserve",method:"get",params:e})}function S(e){return s({url:"api/baseDataBigScreen/emergencyWarning",method:"get",params:e})}function T(e){return s({url:"api/baseDataBigScreen/emergencyPlan",method:"get",params:e})}function j(e){return s({url:"api/baseDataBigScreen/roster",method:"get",params:e})}function O(e){return s({url:"api/baseDataBigScreen/wkkAlarmMsg",method:"get",params:e})}function D(e){return u({url:"wkk",method:"post",data:e})}function I(e){return d({url:"api/v1/device/grouptree",method:"get",params:e})}function E(e){return d({url:"api/v1/stream/start",method:"get",params:e})}function L(e){return p({url:"api/hiddenTroubleCheck/findAllwarningHiddenTrouble",method:"get",params:e})}function P(e){return p({url:"/api/undergroundSeriousHiddenTrouble/warn",method:"get",params:e})}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},o=[],i={data:function(){return{}},mounted:function(){this.$store.dispatch("typeOptions")}},u=i,c=(n("5c0b"),n("2877")),s=Object(c["a"])(u,a,o,!1,null,null,null),f=s.exports,d=(n("d3b7"),n("8c4f"));r["default"].use(d["a"]);var l=[{path:"/",name:"home",components:{default:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-00f444cb"),n.e("chunk-42868b46")]).then(n.bind(null,"bb51"))}},children:[{path:"/",name:"base",components:{homeHeader:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-573f826d")]).then(n.bind(null,"7975"))},homeLeft:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-00f444cb"),n.e("chunk-86a8c330")]).then(n.bind(null,"2731"))},homeRight:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-c692b744")]).then(n.bind(null,"3cc7"))}}}]}],p=new d["a"]({routes:l}),h=p,m=(n("d81d"),n("2fa7")),b=n("2f62"),g=n("365c");r["default"].use(b["a"]);var _=new b["a"].Store({state:{title:"",appMap:"",mouseTool:"",appTileLayer:"",select_item:[],isLeft:!1,isRight:!1,deptData:[],isLtkDialog:!1,isDxkqDialog:!1,compony_info:"",BaseLeftIndex:1,is_show_huan_jing_jian_ce:!1,is_show_huan_jing_jian_ce_table:!1,showItemCharts:!1},mutations:{SET_TYPE:function(e,t){e.select_item=t},SET_deptData:function(e,t){e.deptData=t},SET_TITLE:function(e,t){e.title=t},SET_IS_LEFT:function(e,t){e.isLeft=t},SET_IS_Right:function(e,t){e.isRight=t},SET_APP_MAP:function(e,t){e.appMap=t},SET_MOUSETOOL:function(e,t){e.mouseTool=t},set_appTileLayer:function(e,t){e.appTileLayer=t},set_compony_info:function(e,t){e.compony_info=t},set_BaseLeftIndex:function(e,t){e.BaseLeftIndex=t},set_isLtkDialog:function(e,t){e.isLtkDialog=t},set_isDxkqDialog:function(e,t){e.isDxkqDialog=t},set_is_show_huan_jing_jian_ce:function(e,t){e.is_show_huan_jing_jian_ce=t},set_is_show_huan_jing_jian_ce_table:function(e,t){e.is_show_huan_jing_jian_ce_table=t},setShowItemCharts:function(e,t){e.showItemCharts=t}},actions:{typeOptions:function(e,t){var n,r=e.commit,a=(n={page:0,size:999,sort:"dictSort,asc"},Object(m["a"])(n,"sort","id,desc"),Object(m["a"])(n,"dictName","所属行业"),n);Object(g["b"])(a).then((function(e){var t=e.content.map((function(e){return{value:e.label,label:e.label,id:e.id}}));r("SET_TYPE",t)}))}}}),k=(n("f5df1"),n("5c96")),v=n.n(k),w=(n("0fae"),n("77ed")),y=n.n(w),S=n("bc3a"),T=n.n(S);r["default"].use(v.a),r["default"].use(y.a),r["default"].prototype.axios=T.a,r["default"].config.productionTip=!1,new r["default"]({router:h,store:_,render:function(e){return e(f)}}).$mount("#app")},"5c0b":function(e,t,n){"use strict";var r=n("9c0c"),a=n.n(r);a.a},"9c0c":function(e,t,n){}});
\ No newline at end of file
(function(e){function t(t){for(var r,a,u=t[0],c=t[1],s=t[2],f=0,d=[];f<u.length;f++)a=u[f],Object.prototype.hasOwnProperty.call(o,a)&&o[a]&&d.push(o[a][0]),o[a]=0;for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(e[r]=c[r]);l&&l(t);while(d.length)d.shift()();return i.push.apply(i,s||[]),n()}function n(){for(var e,t=0;t<i.length;t++){for(var n=i[t],r=!0,a=1;a<n.length;a++){var u=n[a];0!==o[u]&&(r=!1)}r&&(i.splice(t--,1),e=c(c.s=n[0]))}return e}var r={},a={app:0},o={app:0},i=[];function u(e){return c.p+"static/js/"+({}[e]||e)+"."+{"chunk-9cff3828":"c3cc64da","chunk-00f444cb":"2de59d4f","chunk-2179b226":"c2078801","chunk-86a8c330":"4f73b8a0","chunk-573f826d":"d0671cb7","chunk-c692b744":"43227dd7"}[e]+".js"}function c(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.e=function(e){var t=[],n={"chunk-2179b226":1,"chunk-86a8c330":1,"chunk-c692b744":1};a[e]?t.push(a[e]):0!==a[e]&&n[e]&&t.push(a[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-9cff3828":"31d6cfe0","chunk-00f444cb":"31d6cfe0","chunk-2179b226":"5a2d9eeb","chunk-86a8c330":"993ce4e6","chunk-573f826d":"31d6cfe0","chunk-c692b744":"b52443eb"}[e]+".css",o=c.p+r,i=document.getElementsByTagName("link"),u=0;u<i.length;u++){var s=i[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===o))return t()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],f=s.getAttribute("data-href");if(f===r||f===o)return t()}var l=document.createElement("link");l.rel="stylesheet",l.type="text/css",l.onload=t,l.onerror=function(t){var r=t&&t.target&&t.target.src||o,i=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=r,delete a[e],l.parentNode.removeChild(l),n(i)},l.href=o;var p=document.getElementsByTagName("head")[0];p.appendChild(l)})).then((function(){a[e]=0})));var r=o[e];if(0!==r)if(r)t.push(r[2]);else{var i=new Promise((function(t,n){r=o[e]=[t,n]}));t.push(r[2]=i);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,c.nc&&f.setAttribute("nonce",c.nc),f.src=u(e);var d=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+a+")",d.name="ChunkLoadError",d.type=r,d.request=a,n[1](d)}o[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},c.m=e,c.c=r,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)c.d(n,r,function(t){return e[t]}.bind(null,r));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="",c.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var d=0;d<s.length;d++)t(s[d]);var l=f;i.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"365c":function(e,t,n){"use strict";var r=n("bc3a"),a=n.n(r),o=n("5c96"),i=a.a.create({baseURL:"http://39.98.150.124:9875/",timeout:3e4});i.interceptors.request.use((function(e){return e.headers["token"]||(e.headers["Authorization"]="Bearer eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIyYmUyNmEzZTg3Njc0NzAwYjQyODY2YjgzNmQwZDQ5OSIsInVzZXIiOiJhZG1pbiIsInN1YiI6ImFkbWluIn0.qlg04WGthnLo0ugvJtKBmJQXNEuxqT3F9bZDdF_iWHvx-YRsWtNY9DUZW-HOC0F_I2dCMsXVtVmed7NcBIItqA"),e})),i.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var u=i,c=a.a.create({baseURL:"http://39.98.150.124:8000/",timeout:3e4});c.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var s=c,f=a.a.create({baseURL:"http://47.92.82.212:10000/",timeout:3e4});f.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var d=f,l=a.a.create({baseURL:"http://39.98.150.124:8000/",timeout:3e4});l.interceptors.response.use((function(e){return e.data}),(function(e){if(e.response.status){var t=e.response.status;switch(t){case 400:break;case 401:Object(o["Notification"])({title:"登录过期,请重新登录",duration:2e3,type:"warning"}),setTimeout((function(){window.localStorage.removeItem("token"),window.location="#/"}),1e3);break;default:break}return e.response.data}}));var p=l;n.d(t,"b",(function(){return h})),n.d(t,"l",(function(){return m})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return g})),n.d(t,"i",(function(){return _})),n.d(t,"h",(function(){return k})),n.d(t,"j",(function(){return v})),n.d(t,"o",(function(){return w})),n.d(t,"n",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"c",(function(){return T})),n.d(t,"k",(function(){return j})),n.d(t,"r",(function(){return O})),n.d(t,"q",(function(){return D})),n.d(t,"g",(function(){return I})),n.d(t,"m",(function(){return E})),n.d(t,"f",(function(){return L})),n.d(t,"p",(function(){return P}));function h(e){return s({url:"api/dictDetail/findAll",method:"get",params:e})}function m(e){return s({url:"api/alarmSms/sendAlarmSms",method:"get",params:e})}function b(e){return s({url:"api/dept/findAll",method:"get",params:e})}function g(e){return s({url:"api/baseDataBigScreen/expert",method:"get",params:e})}function _(e){return s({url:"api/baseDataBigScreen/rescueCar",method:"get",params:e})}function k(e){return s({url:"api/baseDataBigScreen/refuge",method:"get",params:e})}function v(e){return s({url:"api/baseDataBigScreen/rescueTeam",method:"get",params:e})}function w(e){return s({url:"api/baseDataBigScreen/suppliesReserveStation",method:"get",params:e})}function y(e){return s({url:"api/baseDataBigScreen/suppliesReserve",method:"get",params:e})}function S(e){return s({url:"api/baseDataBigScreen/emergencyWarning",method:"get",params:e})}function T(e){return s({url:"api/baseDataBigScreen/emergencyPlan",method:"get",params:e})}function j(e){return s({url:"api/baseDataBigScreen/roster",method:"get",params:e})}function O(e){return s({url:"api/baseDataBigScreen/wkkAlarmMsg",method:"get",params:e})}function D(e){return u({url:"wkk",method:"post",data:e})}function I(e){return d({url:"api/v1/device/grouptree",method:"get",params:e})}function E(e){return d({url:"api/v1/stream/start",method:"get",params:e})}function L(e){return p({url:"api/hiddenTroubleCheck/findAllwarningHiddenTrouble",method:"get",params:e})}function P(e){return p({url:"/api/undergroundSeriousHiddenTrouble/warn",method:"get",params:e})}},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var r=n("2b0e"),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},o=[],i={data:function(){return{}},mounted:function(){this.$store.dispatch("typeOptions")}},u=i,c=(n("5c0b"),n("2877")),s=Object(c["a"])(u,a,o,!1,null,null,null),f=s.exports,d=(n("d3b7"),n("8c4f"));r["default"].use(d["a"]);var l=[{path:"/",name:"home",components:{default:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-00f444cb"),n.e("chunk-2179b226")]).then(n.bind(null,"bb51"))}},children:[{path:"/",name:"base",components:{homeHeader:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-573f826d")]).then(n.bind(null,"7975"))},homeLeft:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-00f444cb"),n.e("chunk-86a8c330")]).then(n.bind(null,"2731"))},homeRight:function(){return Promise.all([n.e("chunk-9cff3828"),n.e("chunk-c692b744")]).then(n.bind(null,"3cc7"))}}}]}],p=new d["a"]({routes:l}),h=p,m=(n("d81d"),n("2fa7")),b=n("2f62"),g=n("365c");r["default"].use(b["a"]);var _=new b["a"].Store({state:{title:"",appMap:"",mouseTool:"",appTileLayer:"",select_item:[],isLeft:!1,isRight:!1,deptData:[],isLtkDialog:!1,isDxkqDialog:!1,compony_info:"",BaseLeftIndex:1,is_show_huan_jing_jian_ce:!1,is_show_huan_jing_jian_ce_table:!1,showItemCharts:!1},mutations:{SET_TYPE:function(e,t){e.select_item=t},SET_deptData:function(e,t){e.deptData=t},SET_TITLE:function(e,t){e.title=t},SET_IS_LEFT:function(e,t){e.isLeft=t},SET_IS_Right:function(e,t){e.isRight=t},SET_APP_MAP:function(e,t){e.appMap=t},SET_MOUSETOOL:function(e,t){e.mouseTool=t},set_appTileLayer:function(e,t){e.appTileLayer=t},set_compony_info:function(e,t){e.compony_info=t},set_BaseLeftIndex:function(e,t){e.BaseLeftIndex=t},set_isLtkDialog:function(e,t){e.isLtkDialog=t},set_isDxkqDialog:function(e,t){e.isDxkqDialog=t},set_is_show_huan_jing_jian_ce:function(e,t){e.is_show_huan_jing_jian_ce=t},set_is_show_huan_jing_jian_ce_table:function(e,t){e.is_show_huan_jing_jian_ce_table=t},setShowItemCharts:function(e,t){e.showItemCharts=t}},actions:{typeOptions:function(e,t){var n,r=e.commit,a=(n={page:0,size:999,sort:"dictSort,asc"},Object(m["a"])(n,"sort","id,desc"),Object(m["a"])(n,"dictName","所属行业"),n);Object(g["b"])(a).then((function(e){var t=e.content.map((function(e){return{value:e.label,label:e.label,id:e.id}}));r("SET_TYPE",t)}))}}}),k=(n("f5df1"),n("5c96")),v=n.n(k),w=(n("0fae"),n("77ed")),y=n.n(w),S=n("bc3a"),T=n.n(S);r["default"].use(v.a),r["default"].use(y.a),r["default"].prototype.axios=T.a,r["default"].config.productionTip=!1,new r["default"]({router:h,store:_,render:function(e){return e(f)}}).$mount("#app")},"5c0b":function(e,t,n){"use strict";var r=n("9c0c"),a=n.n(r);a.a},"9c0c":function(e,t,n){}});
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-573f826d"],{7975:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("div",{staticClass:"flex-btn"},[n("div",{staticClass:"base-btn"},[n("div",{staticClass:"base-btn-part"},[n("span",{class:{span_active:1==e.lineActive},on:{click:function(t){return e.onActive(1)}}},[e._v("综合数据")]),n("span",{class:{span_active:2==e.lineActive},on:{click:function(t){return e.onActive(2)}}},[e._v("风险监测")]),n("span",{class:{span_active:3==e.lineActive},on:{click:function(t){return e.onActive(3)}}},[e._v("隐患排查")])]),n("div",{staticClass:"base-btn-part"},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:e.ChangeSelect},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),n("span",{on:{click:function(t){return e.onClickActive(4)}}},[e._v("管理系统")])],1)])])])},i=[],l=(n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),n("c75e"),n("ed08")),c={data:function(){return{lineActive:1,options:[{value:"1",label:"非煤矿山"},{value:"2",label:"煤矿"},{value:"3",label:"危险化学品企业"},{value:"4",label:"冶金工贸"}],value:"1"}},mounted:function(){this.onClickActive(1,"非煤矿山")},methods:{onClickActive:function(e,t){4!==e?(this.$store.commit("SET_IS_LEFT",!1),this.$store.commit("SET_TITLE",t)):window.open("http://dwq.jingkongyun.com/")},onActive:function(e){this.lineActive=e,this.$store.commit("set_BaseLeftIndex",e);var t={itemIndex:e,randNum:Object(l["a"])(1,1e4,1)};this.$store.commit("SET_IS_LEFT",t)},ChangeSelect:function(e){var t=!0,n=!1,a=void 0;try{for(var i,l=this.options[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var c=i.value;if(c.value==e)return void this.onClickActive(c.value,c.label)}}catch(o){n=!0,a=o}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}}},o=c,s=n("2877"),u=Object(s["a"])(o,a,i,!1,null,null,null);t["default"]=u.exports},c75e:function(e,t,n){"use strict";var a=n("2b0e");t["a"]=new a["default"]({name:"eventbus"})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-573f826d"],{7975:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("div",{staticClass:"flex-btn"},[n("div",{staticClass:"base-btn"},[n("div",{staticClass:"base-btn-part"},[n("span",{class:{span_active:1==e.lineActive},on:{click:function(t){return e.onActive(1)}}},[e._v("综合数据")]),n("span",{class:{span_active:2==e.lineActive},on:{click:function(t){return e.onActive(2)}}},[e._v("风险监测")]),n("span",{class:{span_active:3==e.lineActive},on:{click:function(t){return e.onActive(3)}}},[e._v("隐患排查")])]),n("div",{staticClass:"base-btn-part"},[n("el-select",{attrs:{placeholder:"请选择"},on:{change:e.ChangeSelect},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return n("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)])])])},i=[],l=(n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0"),n("c75e"),n("ed08")),c={data:function(){return{lineActive:1,options:[{value:"1",label:"非煤矿山"},{value:"2",label:"煤矿"},{value:"3",label:"危险化学品企业"},{value:"4",label:"冶金工贸"}],value:"1"}},mounted:function(){this.onClickActive(1,"非煤矿山")},methods:{onClickActive:function(e,t){4!==e?(this.$store.commit("SET_IS_LEFT",!1),this.$store.commit("SET_TITLE",t)):window.open("http://dwq.jingkongyun.com/")},onActive:function(e){this.lineActive=e,this.$store.commit("set_BaseLeftIndex",e);var t={itemIndex:e,randNum:Object(l["a"])(1,1e4,1)};this.$store.commit("SET_IS_LEFT",t)},ChangeSelect:function(e){var t=!0,n=!1,a=void 0;try{for(var i,l=this.options[Symbol.iterator]();!(t=(i=l.next()).done);t=!0){var c=i.value;if(c.value==e)return void this.onClickActive(c.value,c.label)}}catch(o){n=!0,a=o}finally{try{t||null==l.return||l.return()}finally{if(n)throw a}}}}},o=c,s=n("2877"),u=Object(s["a"])(o,a,i,!1,null,null,null);t["default"]=u.exports},c75e:function(e,t,n){"use strict";var a=n("2b0e");t["a"]=new a["default"]({name:"eventbus"})}}]);
\ 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