Merge pull request 'lukeyan' (#117) from lukeyan into master

Reviewed-on: #117
pull/125/head
lukeyan 1 year ago
commit 8f64bd3a9d

84
package-lock.json generated

@ -19,7 +19,9 @@
"js-cookie": "^3.0.1",
"less": "3.9.0",
"less-loader": "7",
"swiper": "4.5.1",
"vue": "^2.6.11",
"vue-awesome-swiper": "3.1.3",
"vue-router": "3",
"vuex": "3"
},
@ -6631,6 +6633,19 @@
"url": "https://github.com/cheeriojs/dom-serializer?sponsor=1"
}
},
"node_modules/dom7": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz",
"integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==",
"dependencies": {
"ssr-window": "^2.0.0"
}
},
"node_modules/dom7/node_modules/ssr-window": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz",
"integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A=="
},
"node_modules/domain-browser": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/domain-browser/-/domain-browser-1.2.0.tgz",
@ -13872,6 +13887,11 @@
"node": ">=0.10.0"
}
},
"node_modules/ssr-window": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-1.0.1.tgz",
"integrity": "sha512-dgFqB+f00LJTEgb6UXhx0h+SrG50LJvti2yMKMqAgzfUmUXZrLSv2fjULF7AWGwK25EXu8+smLR3jYsJQChPsg=="
},
"node_modules/ssri": {
"version": "6.0.2",
"resolved": "https://registry.npmmirror.com/ssri/-/ssri-6.0.2.tgz",
@ -14299,6 +14319,19 @@
"url": "https://github.com/sponsors/ljharb"
}
},
"node_modules/swiper": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/swiper/-/swiper-4.5.1.tgz",
"integrity": "sha512-se6I7PWWu950NAMXXT+ENtF/6SVb8mPyO+bTfNxbQBILSeLqsYp3Ndap+YOA0EczOIUlea274PKejT6gKZDseA==",
"hasInstallScript": true,
"dependencies": {
"dom7": "^2.1.3",
"ssr-window": "^1.0.1"
},
"engines": {
"node": ">= 4.7.0"
}
},
"node_modules/table": {
"version": "5.4.6",
"resolved": "https://registry.npmmirror.com/table/-/table-5.4.6.tgz",
@ -15264,6 +15297,19 @@
"csstype": "^3.1.0"
}
},
"node_modules/vue-awesome-swiper": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/vue-awesome-swiper/-/vue-awesome-swiper-3.1.3.tgz",
"integrity": "sha512-E7suzkyApO8vNZbgdEnjSmnpsmQZyRvSVXJ7sey3XYwKPOkLhH3+GnHroBw+5PZIQXvWBwdCeQsPG1xQ1r1Rhg==",
"dependencies": {
"object-assign": "^4.1.1",
"swiper": "^4.0.7"
},
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
}
},
"node_modules/vue-eslint-parser": {
"version": "7.11.0",
"resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-7.11.0.tgz",
@ -21046,6 +21092,21 @@
"entities": "^2.0.0"
}
},
"dom7": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/dom7/-/dom7-2.1.5.tgz",
"integrity": "sha512-xnhwVgyOh3eD++/XGtH+5qBwYTgCm0aW91GFgPJ3XG+jlsRLyJivnbP0QmUBFhI+Oaz9FV0s7cxgXHezwOEBYA==",
"requires": {
"ssr-window": "^2.0.0"
},
"dependencies": {
"ssr-window": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-2.0.0.tgz",
"integrity": "sha512-NXzN+/HPObKAx191H3zKlYomE5WrVIkoCB5IaSdvKokxTpjBdWfr0RaP+1Z5KOfDT0ZVz+2tdtiBkhsEQ9p+0A=="
}
}
},
"domain-browser": {
"version": "1.2.0",
"resolved": "https://registry.npmmirror.com/domain-browser/-/domain-browser-1.2.0.tgz",
@ -26316,6 +26377,11 @@
"tweetnacl": "~0.14.0"
}
},
"ssr-window": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/ssr-window/-/ssr-window-1.0.1.tgz",
"integrity": "sha512-dgFqB+f00LJTEgb6UXhx0h+SrG50LJvti2yMKMqAgzfUmUXZrLSv2fjULF7AWGwK25EXu8+smLR3jYsJQChPsg=="
},
"ssri": {
"version": "6.0.2",
"resolved": "https://registry.npmmirror.com/ssri/-/ssri-6.0.2.tgz",
@ -26634,6 +26700,15 @@
}
}
},
"swiper": {
"version": "4.5.1",
"resolved": "https://registry.npmjs.org/swiper/-/swiper-4.5.1.tgz",
"integrity": "sha512-se6I7PWWu950NAMXXT+ENtF/6SVb8mPyO+bTfNxbQBILSeLqsYp3Ndap+YOA0EczOIUlea274PKejT6gKZDseA==",
"requires": {
"dom7": "^2.1.3",
"ssr-window": "^1.0.1"
}
},
"table": {
"version": "5.4.6",
"resolved": "https://registry.npmmirror.com/table/-/table-5.4.6.tgz",
@ -27347,6 +27422,15 @@
}
}
},
"vue-awesome-swiper": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/vue-awesome-swiper/-/vue-awesome-swiper-3.1.3.tgz",
"integrity": "sha512-E7suzkyApO8vNZbgdEnjSmnpsmQZyRvSVXJ7sey3XYwKPOkLhH3+GnHroBw+5PZIQXvWBwdCeQsPG1xQ1r1Rhg==",
"requires": {
"object-assign": "^4.1.1",
"swiper": "^4.0.7"
}
},
"vue-eslint-parser": {
"version": "7.11.0",
"resolved": "https://registry.npmmirror.com/vue-eslint-parser/-/vue-eslint-parser-7.11.0.tgz",

@ -6038,12 +6038,11 @@ window.BMAP_AUTHENTIC_KEY = "iSZit9hpxlgGq28nmIyFk8lQQ21widby";
anchor: new M(10, 25),
infoWindowAnchor: new M(10, 0)
})
, Bd = new nd(I.pa + "marker_red_sprite.png", new M(20, 11), {
anchor: new M(6, 11),
imageOffset: new M(-19, -13)
, Bd = new nd(I.pa + "marker_red_sprite.png", new M(50, 120), {
anchor: new M(50, 120),
imageOffset: new M(-10, 40)
});
function W(a, b) {
kb.call(this);
b = b || {};
this.point = a;
this.Tq = this.map = p;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -28,7 +28,6 @@ export default {
this.companyList = res.data
this.initMap()
})
},
methods: {
goBack() {
@ -170,7 +169,7 @@ export default {
that.companyList.forEach((item) => {
var point = new BMap.Point(item.longitude, item.latitude);
console.log(point, 'point');
console.log(point, 'point123');
var marker = new BMap.Marker(point); //
map.addOverlay(marker);
var content = item.companyName;
@ -180,7 +179,7 @@ export default {
})
label.setStyle({ backgroundColor: ' rgba(0, 0, 0, 0)', border: '0', color: '#0060ce', fontSize: '16px' })
map.addOverlay(label);
marker.addEventListener("click", function () {
label.addEventListener("click", function () {
map.removeOverlay(that.label1);
topMapOne({ companyId: item.companyId, companyName: item.companyName }).then(res => {
that.label1 = new BMap.Label();

@ -7,6 +7,7 @@ const request = axios.create({
// baseURL: 'http://172.18.113.50:8080/zhapi',
//baseURL: 'http://172.18.113.13:8080/zhapi', // 孙强
//baseURL: 'http://192.168.0.188:8888/zhapi',
//baseURL: 'http://121.41.91.94:12002/zhapi',
baseURL: `http://${window.location.host}/zhapi`,
timeout: 50000,
headers: { 'content-type': 'application/json' },

@ -3,7 +3,7 @@
<div class="supermarket_body">
<div class="supermarket_title">
<div class="supermarket_title_01" @click="back_list"></div>
<div v-if="is_flag != '0'" class="supermarket_title_02">>>处置详情</div>
<div v-if="is_flag != '0'" class="supermarket_title_02">>>人员背景审查</div>
</div>
<div class="supermarket_list">
<div v-if="is_flag === '0'" class="list_boxs">

@ -235,7 +235,7 @@ export default {
// }
.pagination_body {
width: 44vw;
height: 4vh;
height: 4.5vh;
display: flex;
flex-direction: row-reverse;
// border: 0.1px solid #2f6363;

@ -139,7 +139,7 @@ export default {
}
.pagination_body {
width: 44vw;
height: 4vh;
height: 4.5vh;
display: flex;
flex-direction: row-reverse;
// border: 0.1px solid #2f6363;

@ -5,12 +5,13 @@
</template>
<script>
import MapLine from "../../../public/zhenhaiLine.json"
import MapPoint from "../../../public/zhenhaiPoint.json"
import styleJson from "../../../public/custom_map_config.json"
import MapLine from "../../../public/zhenhaiLine.json";
import MapPoint from "../../../public/zhenhaiPoint.json";
import styleJson from "../../../public/custom_map_config.json";
import { topMap } from "@/api/offLineMap";
export default {
name: 'zhenhaimap',
props: ['companyInfoList', 'deviceVideoInfoList'],
name: "zhenhaimap",
props: ["companyInfoList", "deviceVideoInfoList"],
data() {
return {
dongtaiPoint: [121.604192, 29.977299],
@ -20,50 +21,55 @@ export default {
villageSumList: [],
flag: true,
companyList: [],
}
};
},
mounted() {
this.$nextTick(() => {
this.initMap()
})
this.initMap();
});
topMap({ scoreType: "season" }).then((res) => {
this.companyList = res.data;
});
},
watch: {
companyInfoList: {
handler(newVal) {
this.WaringList = newVal
this.initMap()
this.WaringList = newVal;
this.initMap();
},
immediate: true
immediate: true,
},
deviceVideoInfoList: {
handler(newVal) {
this.VideoInfoList = newVal
this.initMap()
this.VideoInfoList = newVal;
this.initMap();
},
immediate: true,
},
immediate: true
}
},
methods: {
goBack() {
this.initMap()
this.initMap();
this.$emit('goBack')
this.$emit("goBack");
},
initMap() {
var BMap = window.BMap
var BMap = window.BMap;
// console.log(BMap, 'BMap');
var map = new BMap.Map('container', {
var map = new BMap.Map("container", {
style: {
styleJson
}
styleJson,
},
});
// console.log(this.WaringList, 'waringList');
let that = this
map.centerAndZoom(new BMap.Point(this.dongtaiPoint[0], this.dongtaiPoint[1]), 13);
map.setMinZoom(12)
map.setMaxZoom(19)
let that = this;
map.centerAndZoom(
new BMap.Point(this.dongtaiPoint[0], this.dongtaiPoint[1]),
13
);
map.setMinZoom(12);
map.setMaxZoom(19);
map.enableScrollWheelZoom(true);
// hjrequest({
// url: '/yc/dt/statistical/village',
@ -77,28 +83,28 @@ export default {
showBoundaryEx(MapLine.features[i]);
}
var label = new BMap.Label();
showPoint()
showPic()
showPoint();
showPic();
function showBoundaryEx(city) {
var paths = []
var list = city.geometry.coordinates
var paths = [];
var list = city.geometry.coordinates;
// console.log(list.length, 'list[0].length')
//console.log(list[1], 'list[1].length')
var polygon = {}
var polygon = {};
if (list.length > 1) {
for (let a = 0; a < list.length; a++) {
paths = []
paths = [];
for (let i = 0; i < list[a][0].length; i++) {
let lat = list[a][0][i][1],
lng = list[a][0][i][0];
paths.push(new BMap.Point(lng, lat));
}
polygon = new BMap.Polygon(paths, {
fillColor: '#3b4c44',
fillColor: "#3b4c44",
strokeColor: "#0f1423",
fillOpacity: 0.6,
strokeWeight: 1
strokeWeight: 1,
}); //
map.addOverlay(polygon); //
}
@ -112,10 +118,10 @@ export default {
}
// console.log(list, 'length');
polygon = new BMap.Polygon(paths, {
fillColor: '#3b4c44',
fillColor: "#3b4c44",
strokeColor: "#0f1423",
fillOpacity: 0.6,
strokeWeight: 1
strokeWeight: 1,
}); //
map.addOverlay(polygon); //
}
@ -126,79 +132,130 @@ export default {
});
polygon.addEventListener("mouseout", function () {
map.removeOverlay(label);
polygon.setFillColor('#3b4c44');
polygon.setFillColor("#3b4c44");
});
// _1
polygon.addEventListener("click", function () {
if (city.properties.name == "骆驼街道") {
map.centerAndZoom(new BMap.Point(121.58887, 29.986122), 15);
} else if (city.properties.name == "招宝山街道") {
map.centerAndZoom(new BMap.Point(121.713707, 29.95656), 15);
} else if (city.properties.name == "蛟川街道") {
map.centerAndZoom(new BMap.Point(121.686105, 29.947339), 15);
} else if (city.properties.name == "庄市街道") {
map.centerAndZoom(new BMap.Point(121.627037, 29.925579), 15);
} else if (city.properties.name == "贵驷街道") {
map.centerAndZoom(new BMap.Point(121.624142, 29.985606), 15);
} else if (city.properties.name == "澥浦镇") {
map.centerAndZoom(new BMap.Point(121.607133, 30.037162), 15);
} else if (city.properties.name == "九龙湖镇") {
map.centerAndZoom(new BMap.Point(121.558532, 30.039457), 15);
}
// _2
that.companyList.forEach((item) => {
var point = new BMap.Point(item.longitude, item.latitude);
var marker = new BMap.Marker(point); //
map.addOverlay(marker);
var content = item.companyName;
var label = new BMap.Label(content, {
//
position: point, //
offset: new BMap.Size(-10, -50), //
});
label.setStyle({
backgroundColor: " rgba(0, 0, 0, 0)",
border: "0",
color: "#0060ce",
fontSize: "16px",
});
map.addOverlay(label);
})
});
}
function showPoint() {
// console.log(MapPoint, 'MapPoint');
for (let i = 0; i < MapPoint.features.length; i++) {
var opts = {
position: new BMap.Point(MapPoint.features[i].geometry.coordinates[0], MapPoint.features[i].geometry.coordinates[1]), //
offset: new BMap.Size(-30, -30) //
position: new BMap.Point(
MapPoint.features[i].geometry.coordinates[0],
MapPoint.features[i].geometry.coordinates[1]
), //
offset: new BMap.Size(-30, -30), //
};
//
var label1 = new BMap.Label(MapPoint.features[i].properties.name, opts);
var label1 = new BMap.Label(
MapPoint.features[i].properties.name,
opts
);
//
label1.setStyle({
color: 'orange',
borderRadius: '5px',
borderColor: '#ccc',
padding: '10px',
fontSize: '16px',
height: '20px',
lineHeight: '20px',
backgroundColor: 'rgba(0,0,0,0)',
border: '0',
fontFamily: '微软雅黑'
color: "orange",
borderRadius: "5px",
borderColor: "#ccc",
padding: "10px",
fontSize: "16px",
height: "20px",
lineHeight: "20px",
backgroundColor: "rgba(0,0,0,0)",
border: "0",
fontFamily: "微软雅黑",
});
map.addOverlay(label1);
}
}
function showPic() {
// console.log(that.WaringList, 'that.WaringList');
that.WaringList.forEach(item => {
that.WaringList.forEach((item) => {
//
var myIcon = new BMap.Icon("pbImg/企业icon悬浮.png", new BMap.Size(80, 80));
myIcon.setImageUrl("pbImg/企业icon悬浮.png")
var myIcon = new BMap.Icon(
"pbImg/企业icon悬浮.png",
new BMap.Size(80, 80)
);
myIcon.setImageUrl("pbImg/企业icon悬浮.png");
// Marker使
var marker = new BMap.Marker(new BMap.Point(item.longitude, item.latitude), {
icon: myIcon
});
var marker = new BMap.Marker(
new BMap.Point(item.longitude, item.latitude),
{
icon: myIcon,
}
);
// console.log(marker, 'marker');
map.addOverlay(marker);
marker.addEventListener("click", function () {
that.$emit('showCompanyData', item)
that.$emit("showCompanyData", item);
});
});
})
//that.flexPoint()
console.log(that.VideoInfoList, 'that.VideoInfoList');
that.VideoInfoList.forEach(item => {
console.log(that.VideoInfoList, "that.VideoInfoList");
that.VideoInfoList.forEach((item) => {
//
var myIcon = new BMap.Icon("pbImg/监控icon悬浮.png", new BMap.Size(80, 80));
myIcon.setImageUrl("pbImg/监控icon悬浮.png")
var myIcon = new BMap.Icon(
"pbImg/监控icon悬浮.png",
new BMap.Size(80, 80)
);
myIcon.setImageUrl("pbImg/监控icon悬浮.png");
// Marker使
var marker = new BMap.Marker(new BMap.Point(item.longitude, item.latitude), {
icon: myIcon
});
var marker = new BMap.Marker(
new BMap.Point(item.longitude, item.latitude),
{
icon: myIcon,
}
);
// console.log(marker, 'marker');
map.addOverlay(marker);
marker.addEventListener("click", function () {
that.$emit('showCameraData', item)
that.$emit("showCameraData", item);
});
});
})
}
},
flexPoint() {
var pointAll = document.querySelectorAll('.BMap_Marker.BMap_noprint')
console.log(pointAll, 'pointAll');
}
}
}
var pointAll = document.querySelectorAll(".BMap_Marker.BMap_noprint");
console.log(pointAll, "pointAll");
},
},
};
</script>
<style scoped lang="less">
@ -206,10 +263,8 @@ export default {
width: 100%;
height: 100%;
border: 1px solid #000000;
}
// /deep/ .BMap_Marker {
// z-index: 1000;
// background: url('../../../public/dongtai/awrni.png') no-repeat !important;
@ -227,6 +282,5 @@ export default {
justify-content: center;
align-items: center;
z-index: 50;
}
</style>

@ -5,30 +5,57 @@
<img src="../assets/companyFile/编组 7212.png" />
</div>
<div class="headText">镇海平安企业园区</div>
<el-menu :default-active="activeIndex" class="el-menu-demo topMenu" mode="horizontal" @select="handleSelect"
:router="true">
<el-menu
:default-active="activeIndex"
class="el-menu-demo topMenu"
mode="horizontal"
@select="handleSelect"
:router="true"
>
<div class="shu"></div>
<el-menu-item index="1" route="/home/safetyIndex">综合指数</el-menu-item>
<el-menu-item index="1" route="/home/safetyIndex"
>综合指数</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="2" route="/home/realtimeWarning">实时预警</el-menu-item>
<el-menu-item index="2" route="/home/realtimeWarning"
>实时预警</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="3" route="/home/closeLoopDispose">闭环处置</el-menu-item>
<el-menu-item index="3" route="/home/closeLoopDispose"
>闭环处置</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="4" route="/home/factorResources">要素资源</el-menu-item>
<el-menu-item index="4" route="/home/factorResources"
>要素资源</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="5" route="/home/enterpriseArchives">企业档案</el-menu-item>
<el-menu-item index="5" route="/home/enterpriseArchives"
>企业档案</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="6" route="/home/applySupermarket">应用超市</el-menu-item>
<el-menu-item index="6" route="/home/applySupermarket"
>应用超市</el-menu-item
>
<div class="shu"></div>
<el-menu-item index="7" route="/home/systemManagement/safeIndex">系统管理</el-menu-item>
<el-menu-item index="7" route="/home/systemManagement/safeIndex"
>系统管理</el-menu-item
>
<div class="shu"></div>
</el-menu>
<div class="jingGuan">
<div class="jgtx">
<div class="jgtx" @click="check_user">
<img src="../assets/companyFile/12110.png" />
</div>
&nbsp;&nbsp; 王警官
</div>
<div class="user_box" v-show="user_show">
<div class="user_box_body">
<!-- 用户个人中心 -->
<div class="user_center">修改密码</div>
<!-- 用户退出登录 -->
<div class="user_check_login" @click="logout">退</div>
</div>
</div>
</div>
<router-view />
</div>
@ -36,18 +63,37 @@
<script>
export default {
name: "Head",
data() {
return {
activeIndex: "1",
activeIndex2: "1",
user_show: false,
};
},
created() {
this.activeIndex = sessionStorage.getItem('activeIndex') ? sessionStorage.getItem('activeIndex') : '1'
this.activeIndex = sessionStorage.getItem("activeIndex")
? sessionStorage.getItem("activeIndex")
: "1";
},
methods: {
handleSelect(key) {
sessionStorage.setItem('activeIndex', key)
sessionStorage.setItem("activeIndex", key);
},
// 退
check_user() {
if (this.user_show) {
this.user_show = false;
} else {
this.user_show = true;
}
},
// 退
logout() {
// token
window.sessionStorage.clear();
//
this.$router.push("/login");
},
},
};
@ -113,7 +159,47 @@ export default {
}
}
}
.user_box {
position: absolute;
top: 70px;
right: 10px;
width: 180px;
height: 100px;
// border: 0.1px solid #33cccc;
padding: 10px;
background: url("~@/assets/archives/023.png") no-repeat;
background-size: 100% 100%;
z-index: 2;
.user_box_body {
width: 160px;
height: 80px;
// border: 0.1px solid #33cccc;
}
.user_center {
width: 160px;
height: 40px;
color: #d9e7ff;
text-align: center;
line-height: 40px;
cursor: pointer;
}
.user_check_login {
width: 160px;
height: 40px;
color: #d9e7ff;
text-align: center;
line-height: 40px;
cursor: pointer;
}
.user_center:hover,
.user_center:focus {
text-shadow: 0 0 20px rgba(21, 255, 198, 0.64);
}
.user_check_login:hover,
.user_check_login:focus {
text-shadow: 0 0 20px rgba(21, 255, 198, 0.64);
}
}
/deep/.el-menu {
border: 0;
background-color: rgba(0, 0, 0, 0);
@ -164,12 +250,12 @@ export default {
justify-content: center;
align-items: center;
padding: 10px 20px;
background: url('~@/assets/companyFile/Rectangle Copy 4.png') no-repeat;
background: url("~@/assets/companyFile/Rectangle Copy 4.png") no-repeat;
background-size: 100% 100%;
font-size: 16px;
color: #D9E7FF;
color: #d9e7ff;
letter-spacing: 3px;
text-align: center;
font-weight: 400;
@ -183,7 +269,7 @@ export default {
}
.is-active {
background: url('~@/assets/companyFile/891771.png') no-repeat;
background: url("~@/assets/companyFile/891771.png") no-repeat;
background-size: 100% 100%;
}

@ -3,43 +3,79 @@
<div class="box">
<div class="title">实时预警</div>
<div class="leftBox">
<div class="shuoming"><img src="../../assets/realtimeWarning/消息.png"
alt="">&nbsp;实时预警根据平安指数配置的预警规则辖区内的企业达到预警分值后产生即时预警</div>
<zhmap class="map" :waringList="waringList" @zhuanchuzhi="chuzhi" v-if="waringList && waringList.length">
<div class="shuoming">
<img
src="../../assets/realtimeWarning/消息.png"
alt=""
/>&nbsp;
</div>
<zhmap
class="map"
:waringList="waringList"
@zhuanchuzhi="chuzhi"
v-if="waringList && waringList.length"
>
</zhmap>
</div>
<div class="rightBox">
<div class="totalTitle">
<div class="titleText">预警列表</div><span>&nbsp; <span class="redText">{{ total }}</span> </span>
<div class="titleText">预警列表</div>
<span
>&nbsp; <span class="redText">{{ total }}</span> </span
>
<div class="searchBox">
<el-form :model="formInline" class="search">
<el-form-item class="formItem">
<el-input v-model.trim="formInline.searchParams" placeholder="企业名称/预警指标" clearable
class="formIpt"></el-input>
<el-input
v-model.trim="formInline.searchParams"
placeholder="企业名称/预警指标"
clearable
class="formIpt"
></el-input>
</el-form-item>
<el-button type="primary" @click="getList()"></el-button>
</el-form>
</div>
</div>
<div class="bottomBody">
<div class="yujingItem" v-for="(item, index) in waringList" :key="index">
<div
class="yujingItem"
v-for="(item, index) in waringList"
:key="index"
>
<div class="yujingTop">
<div class="companyName">{{ item.companyName }}</div>
<div class="impBtnList">
<div :class="{ 'shewei': a == '剧毒' || a == '易制毒', 'zhongdian': a == '消防重点' || a == '所管消防', 'zhibao': a == '放射源' || a == '易制爆', 'zhian': a == '治安重点' || a == '创安单位' }"
v-for="a in item.companyTypeList" :key="a">{{ a }}
<div
:class="{
shewei: a == '剧毒' || a == '易制毒',
zhongdian: a == '消防重点' || a == '所管消防',
zhibao: a == '放射源' || a == '易制爆',
zhian: a == '治安重点' || a == '创安单位',
}"
v-for="a in item.companyTypeList"
:key="a"
>
{{ a }}
</div>
</div>
</div>
<div class="yujingBottom">
<div class="bottomTOP">
<div class="topItem"><span>一级指标</span><span class="numValue">{{ item.levelIndexOne
}}</span></div>
<div class="topItem">
<span>一级指标</span
><span class="numValue">{{ item.levelIndexOne }}</span>
</div>
<div class="topItem"><span>预警指标</span>
<el-tooltip :content="item.levelIndexThree + '异常'" placement="top-start">
<span class="numValue">{{ item.levelIndexThree
}}异常</span>
<div class="topItem">
<span>预警指标</span>
<el-tooltip
:content="item.levelIndexThree + '异常'"
placement="top-start"
>
<span class="numValue"
>{{ item.levelIndexThree }}异常</span
>
</el-tooltip>
</div>
</div>
@ -51,23 +87,39 @@
</div>
</div>
<div class="block">
<el-pagination style="float:right;margin:5px;" class="msg-pagination-container" :background="true"
@size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="pageNum"
:page-sizes="[10]" layout="total, prev, pager, next, jumper" :total="total">
<el-pagination
style="float: right; margin: 5px"
class="msg-pagination-container"
:background="true"
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page="pageNum"
:page-sizes="[10]"
layout="total, prev, pager, next, jumper"
:total="total"
>
</el-pagination>
</div>
</div>
<el-dialog title="选择处置部门" :visible.sync="diaVisible" class="picForm" @closed="closeDia()">
<el-dialog
title="选择处置部门"
:visible.sync="diaVisible"
class="picForm"
@closed="closeDia()"
>
<div class="czTitle">可选择多个部门联合处置</div>
<div class="czBody" v-if="deptList && deptList.length">
<el-checkbox-group v-model="checkedDepts">
<el-checkbox v-for="city in deptList" :label="city.deptId" :key="city.deptId">{{ city.deptName
}}</el-checkbox>
<el-checkbox
v-for="city in deptList"
:label="city.deptId"
:key="city.deptId"
>{{ city.deptName }}</el-checkbox
>
</el-checkbox-group>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="diaVisible = false">
</el-button>
<el-button @click="diaVisible = false"> </el-button>
<el-button type="primary" @click="addForm()"> </el-button>
</div>
</el-dialog>
@ -76,8 +128,12 @@
</template>
<script>
import { mapList, deptList, addCommonApprovalProcess } from '@/api/realtimeWarning'
import zhmap from './map.vue'
import {
mapList,
deptList,
addCommonApprovalProcess,
} from "@/api/realtimeWarning";
import zhmap from "./map.vue";
export default {
components: {
zhmap,
@ -93,54 +149,60 @@ export default {
pageNum: 1,
total: 0,
formInline: {},
}
};
},
created() {
this.getList()
this.getList();
},
methods: {
getList() {
mapList({ pageSize: this.pageSize, pageNum: this.pageNum, ...this.formInline }).then(res => {
this.waringList = res.data
this.total = res.total
})
mapList({
pageSize: this.pageSize,
pageNum: this.pageNum,
...this.formInline,
}).then((res) => {
this.waringList = res.data;
this.total = res.total;
});
},
handleSizeChange(val) {
this.pageNum = 1;
this.pageSize = val;
this.getList()
this.getList();
},
handleCurrentChange(val) {
this.pageNum = val;
this.getList()
this.getList();
},
chuzhi(val) {
//console.log(val)
this.chuzhiData = val
deptList().then(res => {
console.log(res, 'res');
this.deptList = res.data
this.diaVisible = true
})
this.chuzhiData = val;
deptList().then((res) => {
console.log(res, "res");
this.deptList = res.data;
this.diaVisible = true;
});
},
closeDia() {
this.checkedDepts = []
this.checkedDepts = [];
},
addForm() {
console.log(this.checkedDepts, 'this.checkedDepts');
addCommonApprovalProcess({ approveDeptCodes: this.checkedDepts, safeCompanyAlarm: { id: this.chuzhiData.id } }).then(res => {
console.log(this.checkedDepts, "this.checkedDepts");
addCommonApprovalProcess({
approveDeptCodes: this.checkedDepts,
safeCompanyAlarm: { id: this.chuzhiData.id },
}).then((res) => {
if (res.code == 200) {
this.$message.success(res.msg)
this.diaVisible = false
this.getList()
this.$message.success(res.msg);
this.diaVisible = false;
this.getList();
} else {
this.$message.error(res.msg)
this.$message.error(res.msg);
}
})
}
}
}
});
},
},
};
</script>
<style lang="less" scoped>
@ -157,7 +219,7 @@ export default {
height: 100%;
position: relative;
padding: 70px 25px 20px;
background: url('~@/assets/realtimeWarning/231.png') no-repeat;
background: url("~@/assets/realtimeWarning/231.png") no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
display: flex;
@ -167,7 +229,7 @@ export default {
top: 25px;
left: 25px;
font-size: 18px;
color: #FFFFFF;
color: #ffffff;
letter-spacing: 1px;
font-weight: 500;
}
@ -177,7 +239,7 @@ export default {
height: 100%;
margin-right: 20px;
box-sizing: border-box;
background: url('~@/assets/realtimeWarning/矩形备份 289981.png') no-repeat;
background: url("~@/assets/realtimeWarning/矩形备份 289981.png") no-repeat;
background-size: 100% 100%;
padding: 20px;
position: relative;
@ -188,7 +250,7 @@ export default {
left: 20px;
height: 40px;
width: calc(100% - 40px);
background: rgba(15, 17, 19, 0.40);
background: rgba(15, 17, 19, 0.4);
z-index: 999999999;
padding: 0 10px;
display: flex;
@ -199,11 +261,9 @@ export default {
font-weight: 400;
img {
width: 20px;
height: 20px;
}
}
.map {
@ -216,7 +276,7 @@ export default {
width: 570px;
height: 100%;
box-sizing: border-box;
background: url('~@/assets/realtimeWarning/矩形备份 289981.png') no-repeat;
background: url("~@/assets/realtimeWarning/矩形备份 289981.png") no-repeat;
background-size: 100% 100%;
position: relative;
@ -227,14 +287,14 @@ export default {
padding: 0 20px;
display: flex;
align-items: center;
color: #EBFFF4;
color: #ebfff4;
.titleText {
font-size: 16px;
color: #EBFFF4;
color: #ebfff4;
letter-spacing: 2px;
width: 120px;
text-shadow: 0 0 9px rgba(21, 255, 195, 0.60);
text-shadow: 0 0 9px rgba(21, 255, 195, 0.6);
font-weight: 400;
}
@ -253,8 +313,8 @@ export default {
/deep/.el-input__inner {
// background: url('~@/assets/companyFile/2121.png') no-repeat;
background: #3B4450;
border: 1px solid #5B748C;
background: #3b4450;
border: 1px solid #5b748c;
color: rgba(234, 246, 255, 0.7);
height: 35px;
@ -269,7 +329,6 @@ export default {
}
/deep/.el-form-item {
margin: 0;
.el-form-item__content {
@ -277,12 +336,11 @@ export default {
}
.el-form-item__label {
color: #EAF6FF;
color: #eaf6ff;
letter-spacing: 1px;
text-align: center;
font-weight: 400;
}
}
/deep/.el-button--primary {
@ -293,10 +351,10 @@ export default {
text-align: center;
background: rgba(0, 0, 0, 0);
border: 0;
background: url('~@/assets/companyFile/2121.png') no-repeat;
background: url("~@/assets/companyFile/2121.png") no-repeat;
background-size: 100% 100%;
font-size: 14px;
color: #F8FBFF;
color: #f8fbff;
letter-spacing: 0.89px;
font-weight: 500;
}
@ -307,11 +365,11 @@ export default {
line-height: 30px;
padding: 0;
text-align: center;
background: #3B4450;
background: #3b4450;
border: 0;
font-size: 14px;
color: #F8FBFF;
color: #f8fbff;
letter-spacing: 0.89px;
font-weight: 500;
}
@ -319,10 +377,10 @@ export default {
.redText {
font-size: 16px;
color: #FF9191;
color: #ff9191;
letter-spacing: 2px;
font-weight: 400
font-weight: 400;
}
}
@ -335,7 +393,6 @@ export default {
&::-webkit-scrollbar {
width: 6px;
}
// ,
@ -347,13 +404,12 @@ export default {
//
&::-webkit-scrollbar-track {
background: transparent;
}
.yujingItem {
height: 158px;
width: 100%;
background: rgba(108, 128, 151, 0.20);
background: rgba(108, 128, 151, 0.2);
border: 1px solid rgba(73, 84, 97, 1);
position: relative;
margin-bottom: 1ch;
@ -364,10 +420,9 @@ export default {
width: 100%;
padding: 0 14px 5px;
.companyName {
font-size: 16px;
color: #30C4FF;
color: #30c4ff;
letter-spacing: 1.14px;
font-weight: 500;
margin-right: 20px;
@ -392,10 +447,11 @@ export default {
height: 26px;
line-height: 26px;
width: auto;
background: url('~@/assets/companyFile/编组 11991.png') no-repeat;
background: url("~@/assets/companyFile/编组 11991.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #B5EBFF;
color: #b5ebff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
@ -406,10 +462,11 @@ export default {
height: 26px;
line-height: 26px;
width: auto;
background: url('~@/assets/companyFile/编组 11222221.png') no-repeat;
background: url("~@/assets/companyFile/编组 11222221.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #E3DEFF;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
@ -420,10 +477,11 @@ export default {
height: 26px;
line-height: 26px;
width: auto;
background: url('~@/assets/companyFile/编组 11991备份 10.png') no-repeat;
background: url("~@/assets/companyFile/编组 11991备份 10.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #E3DEFF;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
@ -434,16 +492,16 @@ export default {
height: 26px;
line-height: 26px;
width: auto;
background: url('~@/assets/companyFile/编组 11991备份 21.png') no-repeat;
background: url("~@/assets/companyFile/编组 11991备份 21.png")
no-repeat;
padding: 0 5px;
font-size: 14px;
color: #E3DEFF;
color: #e3deff;
letter-spacing: 0.44px;
font-weight: 400;
background-size: 100% 100%;
margin-right: 10px;
}
}
}
@ -456,7 +514,7 @@ export default {
width: 50px;
line-height: 20px;
font-size: 14px;
color: #30C4FF;
color: #30c4ff;
letter-spacing: 1px;
font-weight: 400;
}
@ -467,7 +525,6 @@ export default {
padding: 0 14px 5px;
overflow: hidden;
.bottomTOP {
width: 100%;
height: 50%;
@ -496,7 +553,6 @@ export default {
text-overflow: ellipsis;
span {
width: 70px;
}
@ -510,13 +566,12 @@ export default {
.numValue {
font-size: 14px;
color: #FFFFFF;
color: #ffffff;
letter-spacing: 0;
font-weight: 400;
white-space: nowrap;
text-overflow: ellipsis;
}
}
}
}
@ -538,13 +593,12 @@ export default {
color: #ccc;
}
}
}
.picForm {
/deep/ .el-dialog {
background-color: rgba(0, 0, 0, 0);
background: url('~@/assets/realtimeWarning/导入弹窗.png') no-repeat;
background: url("~@/assets/realtimeWarning/导入弹窗.png") no-repeat;
background-size: 100% 100%;
width: 461px;
height: 412px;
@ -553,7 +607,7 @@ export default {
.el-dialog__title {
font-size: 16px;
color: #EBFFF4;
color: #ebfff4;
letter-spacing: 2px;
text-shadow: 0 0 9px rgba(21, 255, 195, 0.77);
@ -570,7 +624,7 @@ export default {
opacity: 0.7;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #EAF6FF;
color: #eaf6ff;
letter-spacing: 1px;
font-weight: 400;
margin-bottom: 12px;
@ -579,7 +633,7 @@ export default {
.czBody {
width: 440px;
height: 232px;
background: rgba(108, 128, 151, 0.20);
background: rgba(108, 128, 151, 0.2);
border: 1px solid #495461;
overflow: auto;
@ -603,32 +657,35 @@ export default {
width: 80%;
height: 34px;
opacity: 0.7;
background-image: linear-gradient(180deg, rgba(234, 241, 248, 0.10) 0%, rgba(208, 222, 238, 0.10) 100%);
border: 1px solid #5B748C;
background-image: linear-gradient(
180deg,
rgba(234, 241, 248, 0.1) 0%,
rgba(208, 222, 238, 0.1) 100%
);
border: 1px solid #5b748c;
margin: 16px 15px 0;
font-size: 14px;
color: #EAF6FF;
color: #eaf6ff;
letter-spacing: 1px;
padding: 7px;
}
.is-checked {
color: #37FDC7;
background: rgba(13, 251, 246, 0.10);
border: 1px solid #37FDC7;
color: #37fdc7;
background: rgba(13, 251, 246, 0.1);
border: 1px solid #37fdc7;
box-sizing: border-box;
}
.el-checkbox__input.is-checked+.el-checkbox__label {
color: #37FDC7;
.el-checkbox__input.is-checked + .el-checkbox__label {
color: #37fdc7;
}
.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
background-color: rgba(13, 251, 246, 0.10);
background-color: rgba(13, 251, 246, 0.1);
border-color: rgba(255, 251, 246, 0.6);
}
}
@ -640,10 +697,14 @@ export default {
height: 35px;
opacity: 0.8;
background: rgba(0, 0, 0, 0);
background-image: linear-gradient(180deg, rgba(234, 241, 248, 0.10) 0%, rgba(208, 222, 238, 0.10) 100%);
background-image: linear-gradient(
180deg,
rgba(234, 241, 248, 0.1) 0%,
rgba(208, 222, 238, 0.1) 100%
);
border: 1px solid rgba(91, 116, 140, 1);
border-radius: 4px;
color: #E3DEFF
color: #e3deff;
}
.el-button--primary {
@ -651,13 +712,12 @@ export default {
height: 35px;
background: rgba(0, 0, 0, 0);
border: 0;
background: url('~@/assets/realtimeWarning/2121.png') no-repeat;
background: url("~@/assets/realtimeWarning/2121.png") no-repeat;
background-size: 100% 100%;
}
}
}
}
}
}
</style>

@ -1,18 +1,17 @@
<template>
<div>
<div class="bmap" id="container" ref="container"></div>
</div>
</template>
<script>
import MapLine from "../../../public/zhenhaiLine.json"
import MapPoint from "../../../public/zhenhaiPoint.json"
import styleJson from "../../../public/custom_map_config.json"
import MapLine from "../../../public/zhenhaiLine.json";
import MapPoint from "../../../public/zhenhaiPoint.json";
import styleJson from "../../../public/custom_map_config.json";
import { topMap } from "@/api/offLineMap";
export default {
name: 'zhenhaimap',
props: ['waringList'],
name: "zhenhaimap",
props: ["waringList"],
data() {
return {
dongtaiPoint: [121.604192, 29.977299],
@ -21,34 +20,39 @@ export default {
villageSumList: [],
flag: true,
companyList: [],
}
};
},
mounted() {
this.$nextTick(() => {
this.initMap()
})
this.initMap();
});
topMap({ scoreType: "season" }).then((res) => {
this.companyList = res.data;
});
},
methods: {
goBack() {
this.initMap()
this.initMap();
this.$emit('goBack')
this.$emit("goBack");
},
initMap() {
var BMap = window.BMap
var BMap = window.BMap;
// console.log(BMap, 'BMap');
var map = new BMap.Map('container', {
var map = new BMap.Map("container", {
style: {
styleJson
}
styleJson,
},
});
// console.log(this.WaringList, 'waringList');
let that = this
map.centerAndZoom(new BMap.Point(this.dongtaiPoint[0], this.dongtaiPoint[1]), 13);
map.setMinZoom(12)
map.setMaxZoom(19)
let that = this;
map.centerAndZoom(
new BMap.Point(this.dongtaiPoint[0], this.dongtaiPoint[1]),
13
);
map.setMinZoom(12);
map.setMaxZoom(19);
map.enableScrollWheelZoom(true);
// hjrequest({
// url: '/yc/dt/statistical/village',
@ -62,29 +66,29 @@ export default {
showBoundaryEx(MapLine.features[i]);
}
var label = new BMap.Label();
showPoint()
showPic()
showPoint();
showPic();
function showBoundaryEx(city) {
var paths = []
var list = city.geometry.coordinates
var paths = [];
var list = city.geometry.coordinates;
// console.log(list.length, 'list[0].length')
//console.log(list[1], 'list[1].length')
var polygon = {}
var polygon = {};
if (list.length > 1) {
for (let a = 0; a < list.length; a++) {
paths = []
paths = [];
for (let i = 0; i < list[a][0].length; i++) {
let lat = list[a][0][i][1],
lng = list[a][0][i][0];
paths.push(new BMap.Point(lng, lat));
}
polygon = new BMap.Polygon(paths, {
fillColor: '#3b4c44',
fillColor: "#3b4c44",
strokeColor: "#0f1423",
fillOpacity: 0.6,
strokeWeight: 1
strokeWeight: 1,
}); //
map.addOverlay(polygon); //
}
@ -98,10 +102,10 @@ export default {
}
// console.log(list, 'length');
polygon = new BMap.Polygon(paths, {
fillColor: '#3b4c44',
fillColor: "#3b4c44",
strokeColor: "#0f1423",
fillOpacity: 0.6,
strokeWeight: 1
strokeWeight: 1,
}); //
map.addOverlay(polygon); //
}
@ -112,67 +116,176 @@ export default {
});
polygon.addEventListener("mouseout", function () {
map.removeOverlay(label);
polygon.setFillColor('#3b4c44');
polygon.setFillColor("#3b4c44");
});
// _1
polygon.addEventListener("click", function () {
if (city.properties.name == "骆驼街道") {
map.centerAndZoom(new BMap.Point(121.58887, 29.986122), 15);
} else if (city.properties.name == "招宝山街道") {
map.centerAndZoom(new BMap.Point(121.713707, 29.95656), 15);
} else if (city.properties.name == "蛟川街道") {
map.centerAndZoom(new BMap.Point(121.686105, 29.947339), 15);
} else if (city.properties.name == "庄市街道") {
map.centerAndZoom(new BMap.Point(121.627037, 29.925579), 15);
} else if (city.properties.name == "贵驷街道") {
map.centerAndZoom(new BMap.Point(121.624142, 29.985606), 15);
} else if (city.properties.name == "澥浦镇") {
map.centerAndZoom(new BMap.Point(121.607133, 30.037162), 15);
} else if (city.properties.name == "九龙湖镇") {
map.centerAndZoom(new BMap.Point(121.558532, 30.039457), 15);
}
// _2
that.companyList.forEach((item) => {
var point = new BMap.Point(item.longitude, item.latitude);
var marker = new BMap.Marker(point); //
map.addOverlay(marker);
var content = item.companyName;
var label = new BMap.Label(content, {
//
position: point, //
offset: new BMap.Size(-10, -50), //
});
label.setStyle({
backgroundColor: " rgba(0, 0, 0, 0)",
border: "0",
color: "#0060ce",
fontSize: "16px",
});
map.addOverlay(label);
label.addEventListener("click", function () {
var label_ponit = new BMap.Label(); //
label_ponit.setStyle({
color: "blue",
borderRadius: "5px",
borderColor: "#ccc",
padding: "10px",
fontSize: "16px",
fontFamily: "微软雅黑",
transform: "translateX(-50%) translateY(calc(-100% - 10px))",
});
//
label_ponit.setPosition(
new BMap.Point(item.longitude, item.latitude)
);
label_ponit.setOffset(new BMap.Size(130, -10));
label_ponit.setStyle({
width: "340px",
height: "238px",
background: "url(pbImg/气泡弹窗1.png) no-repeat",
backgroundSize: "100% 100%",
border: "0",
color: "#fff",
zIndex: 2000000000,
});
label_ponit.setContent(`
<div style='width:100%;display:flex;justify-content: space-between;align-items: center;'> <h4 style='margin:12px;font-size: 14px;color: #FFE6D9;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; '>${item.companyName}</h4><div class='closeBtn' style='background: url(pbImg/关闭.png) no-repeat;width:20px;height:20px;background-size: 100% 100%;margin-right:10px;"'></div></div>
<div style='margin:0 auto;font-size: 14px;width:316px;height:108px;padding:0 12px;background: rgba(108,128,151,0.20);border: 1px solid rgba(73,84,97,1);'>
<h4 style='height:33%;opacity: 0.8;margin:0;line-height:38px;font-weight:300;'><span style="color:#D0DEEE;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">一级指标</span>${item.levelIndexOne}</h4>
<h4 style='height:33%;opacity: 0.8;margin:0;line-height:38px;font-weight:300;'><span style="color:#D0DEEE;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">预警指标</span>"${item.levelIndexThree}"异常</h4>
<h4 style='height:33%;opacity: 0.8;margin:0;line-height:38px;font-weight:300;'><span style="color:#D0DEEE;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">预警时间</span>${item.alarmTime}</h4>
<div class='zhuanchuzhiBtn' style='width:80px;height:34px;font-size: 14px;
color: #FFFFFF;
text-align:center;
line-height:34px;
background: url(pbImg/2121.png) no-repeat;
margin-top:20px;
background-size: 100% 100%;
letter-spacing: 0;
margin-left:80px;
font-weight: 400;'>转处置</div>
</div>
`);
map.addOverlay(label_ponit);
let btn = document.querySelector(".zhuanchuzhiBtn");
//console.log(btn, 'btn');
btn.addEventListener("click", () => {
//console.log(item, 'item');
that.$emit("zhuanchuzhi", item);
});
let closebtn = document.querySelector(".closeBtn");
//console.log(btn, 'btn');
closebtn.addEventListener("click", () => {
map.removeOverlay(label_ponit);
});
});
});
});
}
function showPoint() {
// console.log(MapPoint, 'MapPoint');
for (let i = 0; i < MapPoint.features.length; i++) {
var opts = {
position: new BMap.Point(MapPoint.features[i].geometry.coordinates[0], MapPoint.features[i].geometry.coordinates[1]), //
offset: new BMap.Size(-30, -30) //
position: new BMap.Point(
MapPoint.features[i].geometry.coordinates[0],
MapPoint.features[i].geometry.coordinates[1]
), //
offset: new BMap.Size(-30, -30), //
};
//
var label1 = new BMap.Label(MapPoint.features[i].properties.name, opts);
var label1 = new BMap.Label(
MapPoint.features[i].properties.name,
opts
);
//
label1.setStyle({
color: 'orange',
borderRadius: '5px',
borderColor: '#ccc',
padding: '10px',
fontSize: '16px',
height: '20px',
lineHeight: '20px',
backgroundColor: 'rgba(0,0,0,0)',
border: '0',
fontFamily: '微软雅黑'
color: "orange",
borderRadius: "5px",
borderColor: "#ccc",
padding: "10px",
fontSize: "16px",
height: "20px",
lineHeight: "20px",
backgroundColor: "rgba(0,0,0,0)",
border: "0",
fontFamily: "微软雅黑",
});
map.addOverlay(label1);
}
}
function showPic() {
// console.log(that.WaringList, 'that.WaringList');
that.WaringList.forEach(item => {
that.WaringList.forEach((item) => {
//
var myIcon = new BMap.Icon("public/dongtai/awrni.png", new BMap.Size(80, 80));
myIcon.setImageUrl("/dongtai/awrni.png")
var myIcon = new BMap.Icon(
"public/dongtai/awrni.png",
new BMap.Size(80, 80)
);
myIcon.setImageUrl("/dongtai/awrni.png");
// Marker使
var marker = new BMap.Marker(new BMap.Point(item.longitude, item.latitude), {
icon: myIcon
});
// console.log(marker, 'marker');
var marker = new BMap.Marker(
new BMap.Point(item.longitude, item.latitude),
{
icon: myIcon,
}
);
console.log(marker, "marker");
map.addOverlay(marker);
marker.addEventListener("click", function () {
var label = new BMap.Label();
label.setStyle({
color: 'blue',
borderRadius: '5px',
borderColor: '#ccc',
padding: '10px',
fontSize: '16px',
fontFamily: '微软雅黑',
transform: 'translateX(-50%) translateY(calc(-100% - 10px))'
color: "blue",
borderRadius: "5px",
borderColor: "#ccc",
padding: "10px",
fontSize: "16px",
fontFamily: "微软雅黑",
transform: "translateX(-50%) translateY(calc(-100% - 10px))",
});
//
label.setPosition(new BMap.Point(item.longitude, item.latitude));
label.setOffset(new BMap.Size(130, -10))
label.setStyle({ width: '340px', height: '238px', background: 'url(pbImg/气泡弹窗1.png) no-repeat', backgroundSize: '100% 100%', border: '0', color: '#fff', zIndex: 2000000000, })
label.setOffset(new BMap.Size(130, -10));
label.setStyle({
width: "340px",
height: "238px",
background: "url(pbImg/气泡弹窗1.png) no-repeat",
backgroundSize: "100% 100%",
border: "0",
color: "#fff",
zIndex: 2000000000,
});
label.setContent(`
<div style='width:100%;display:flex;justify-content: space-between;align-items: center;'> <h4 style='margin:12px;font-size: 14px;color: #FFE6D9;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; '>${item.companyName}</h4><div class='closeBtn' style='background: url(pbImg/关闭.png) no-repeat;width:20px;height:20px;background-size: 100% 100%;margin-right:10px;"'></div></div>
<div style='margin:0 auto;font-size: 14px;width:316px;height:108px;padding:0 12px;background: rgba(108,128,151,0.20);border: 1px solid rgba(73,84,97,1);'>
@ -192,33 +305,31 @@ font-weight: 400;'>转处置</div>
</div>
`);
map.addOverlay(label);
let btn = document.querySelector('.zhuanchuzhiBtn')
let btn = document.querySelector(".zhuanchuzhiBtn");
//console.log(btn, 'btn');
btn.addEventListener('click', () => {
btn.addEventListener("click", () => {
//console.log(item, 'item');
that.$emit('zhuanchuzhi', item)
})
let closebtn = document.querySelector('.closeBtn')
that.$emit("zhuanchuzhi", item);
});
let closebtn = document.querySelector(".closeBtn");
//console.log(btn, 'btn');
closebtn.addEventListener('click', () => {
closebtn.addEventListener("click", () => {
map.removeOverlay(label);
})
});
// label.addEventListener('mouseout', function () {
// map.removeOverlay(label);
// })
});
})
});
//that.flexPoint()
}
},
flexPoint() {
var pointAll = document.querySelectorAll('.BMap_Marker.BMap_noprint')
console.log(pointAll, 'pointAll');
}
}
}
var pointAll = document.querySelectorAll(".BMap_Marker.BMap_noprint");
console.log(pointAll, "pointAll");
},
},
};
</script>
<style scoped lang="less">
@ -226,13 +337,11 @@ font-weight: 400;'>转处置</div>
width: 100%;
height: 100%;
border: 1px solid #000000;
}
/deep/ .BMap_Marker {
z-index: 1000;
background: url('../../../public/dongtai/awrni.png') no-repeat !important;
background: url("../../../public/dongtai/awrni.png") no-repeat !important;
background-size: 100% 100% !important;
}
@ -247,6 +356,5 @@ font-weight: 400;'>转处置</div>
justify-content: center;
align-items: center;
z-index: 50;
}
</style>

@ -5,73 +5,134 @@
<div class="toprightIcon"></div>
<div class="topHead">
<div class="topHeadItem" @click="goMore('平安')">
平安&nbsp;&nbsp;<span class="blue">{{ statisticsAlarmData.safeSum }}</span><span
class="jia">&nbsp;</span>
平安&nbsp;&nbsp;<span class="blue">{{
statisticsAlarmData.safeSum
}}</span
><span class="jia">&nbsp;</span>
</div>
<div class="shu"></div>
<div class="topHeadItem" @click="goMore('石化总数')">
石化企业总数&nbsp;&nbsp;<span class="yellow">{{ statisticsAlarmData.companySum }}</span><span
class="jia">&nbsp;</span>
石化企业总数&nbsp;&nbsp;<span class="yellow">{{
statisticsAlarmData.companySum
}}</span
><span class="jia">&nbsp;</span>
</div>
<div class="shu"></div>
<div class="topHeadItem" @click="goMore('预警')">
预警&nbsp;&nbsp;<span class="red">{{ statisticsAlarmData.alarmSum }}</span><span
class="jia">&nbsp;</span>
预警&nbsp;&nbsp;<span class="red">{{
statisticsAlarmData.alarmSum
}}</span
><span class="jia">&nbsp;</span>
</div>
</div>
<div class="topBottom">
<div class="topBottomItem" @click="goMore('剧毒')">
<img src="../../assets/safetyIndex/涉危企业.png" alt="">
<img src="../../assets/safetyIndex/涉危企业.png" alt="" />
<div class="itemBox">
<div class="qiye">{{ statisticsDangerData[0] ? statisticsDangerData[0].companyTypeName : '' }}</div>
<div class="qiyeshu"><span class="qiyenum">{{
statisticsDangerData[0] ? statisticsDangerData[0].companyTypeSum : 0 }}</span>
&nbsp;</div>
<div class="qiye">
{{
statisticsDangerData[0]
? statisticsDangerData[0].companyTypeName
: ""
}}
</div>
<div class="qiyeshu">
<span class="qiyenum">{{
statisticsDangerData[0]
? statisticsDangerData[0].companyTypeSum
: 0
}}</span>
&nbsp;
</div>
</div>
</div>
<div class="topBottomItem" @click="goMore('易制爆')">
<img src="../../assets/safetyIndex/易制爆企业2.png" alt="">
<img src="../../assets/safetyIndex/易制爆企业2.png" alt="" />
<div class="itemBox">
<div class="qiye">{{ statisticsDangerData[2] ? statisticsDangerData[2].companyTypeName : '' }}</div>
<div class="qiyeshu"><span class="qiyenum">{{
statisticsDangerData[1] ? statisticsDangerData[1].companyTypeSum : 0 }}</span>
&nbsp;</div>
<div class="qiye">
{{
statisticsDangerData[2]
? statisticsDangerData[2].companyTypeName
: ""
}}
</div>
<div class="qiyeshu">
<span class="qiyenum">{{
statisticsDangerData[1]
? statisticsDangerData[1].companyTypeSum
: 0
}}</span>
&nbsp;
</div>
</div>
</div>
<div class="topBottomItem" @click="goMore('易制毒')">
<img src="../../assets/safetyIndex/易制毒2.png" alt="">
<img src="../../assets/safetyIndex/易制毒2.png" alt="" />
<div class="itemBox">
<div class="qiye">{{ statisticsDangerData[1] ? statisticsDangerData[1].companyTypeName : '' }}</div>
<div class="qiyeshu"><span class="qiyenum">{{
statisticsDangerData[2] ? statisticsDangerData[2].companyTypeSum : 0 }}</span>
&nbsp;</div>
<div class="qiye">
{{
statisticsDangerData[1]
? statisticsDangerData[1].companyTypeName
: ""
}}
</div>
<div class="qiyeshu">
<span class="qiyenum">{{
statisticsDangerData[2]
? statisticsDangerData[2].companyTypeSum
: 0
}}</span>
&nbsp;
</div>
</div>
</div>
<div class="topBottomItem" @click="goMore('放射源')">
<img src="../../assets/safetyIndex/放射源2.png" alt="">
<img src="../../assets/safetyIndex/放射源2.png" alt="" />
<div class="itemBox">
<div class="qiye">{{ statisticsDangerData[3] ? statisticsDangerData[3].companyTypeName : '' }}</div>
<div class="qiyeshu"><span class="qiyenum">{{
statisticsDangerData[3] ? statisticsDangerData[3].companyTypeSum : 0 }}</span>
&nbsp;</div>
<div class="qiye">
{{
statisticsDangerData[3]
? statisticsDangerData[3].companyTypeName
: ""
}}
</div>
<div class="qiyeshu">
<span class="qiyenum">{{
statisticsDangerData[3]
? statisticsDangerData[3].companyTypeSum
: 0
}}</span>
&nbsp;
</div>
</div>
</div>
</div>
</div>
<el-select v-model="Selectvalue" placeholder="请选择" class="topSelect" v-if="Selectvalue == '排名'">
<el-option label="排名" value="排名">
</el-option>
<el-option label="地图" value="地图">
</el-option>
<el-select
v-model="Selectvalue"
placeholder="请选择"
class="topSelect"
v-if="Selectvalue == '排名'"
>
<el-option label="排名" value="排名"> </el-option>
<el-option label="地图" value="地图"> </el-option>
</el-select>
<el-select v-model="Selectvalue" placeholder="请选择" class="topSelect1" v-else>
<el-option label="排名" value="排名">
</el-option>
<el-option label="地图" value="地图">
</el-option>
<el-select
v-model="Selectvalue"
placeholder="请选择"
class="topSelect1"
v-else
>
<el-option label="排名" value="排名"> </el-option>
<el-option label="地图" value="地图"> </el-option>
</el-select>
<div class="middleBox" v-if="Selectvalue == '排名'">
<el-tabs type="border-card" class="topTabs" v-model="topTabsName" @tab-click="gettopSort()">
<el-tabs
type="border-card"
class="topTabs"
v-model="topTabsName"
@tab-click="gettopSort()"
>
<el-tab-pane label="月度" name="month"></el-tab-pane>
<el-tab-pane label="季度" name="season"></el-tab-pane>
<el-tab-pane label="年度" name="year"></el-tab-pane>
@ -79,56 +140,65 @@
<div class="second" v-if="topSortData.length > 1" @click="toCanban(1)">
<div class="mingci">
<img src="../../assets/safetyIndex/第二名.png" alt="">&nbsp;
<img src="../../assets/safetyIndex/第二名.png" alt="" />&nbsp;
总得分&nbsp;<span>{{ topSortData[1].score }}</span>
</div>
<div class="tupian">
<img :src="topSortData[1].picUrl" alt="">
<img :src="topSortData[1].picUrl" alt="" />
</div>
<div class="companyMsg">
<div class="mingcheng">
企业名称&nbsp;&nbsp;<span>{{ topSortData[1].companyName }}</span>
</div>
<div class="mingcheng">
企业地址&nbsp;&nbsp; <el-tooltip :content="topSortData[1].companyAddress" placement="top-start"><span>{{
topSortData[1].companyAddress }}</span></el-tooltip>
企业地址&nbsp;&nbsp;
<el-tooltip
:content="topSortData[1].companyAddress"
placement="top-start"
><span>{{ topSortData[1].companyAddress }}</span></el-tooltip
>
</div>
</div>
</div>
<div class="third" v-if="topSortData.length > 2" @click="toCanban(0)">
<div class="mingci">
<img src="../../assets/safetyIndex/第三名.png" alt="">&nbsp;
<img src="../../assets/safetyIndex/第三名.png" alt="" />&nbsp;
总得分&nbsp;<span>{{ topSortData[2].score }}</span>
</div>
<div class="tupian">
<img :src="topSortData[2].picUrl" alt="">
<img :src="topSortData[2].picUrl" alt="" />
</div>
<div class="companyMsg">
<div class="mingcheng">
企业名称&nbsp;&nbsp;<span>{{ topSortData[2].companyName }}</span>
</div>
<div class="mingcheng">
企业地址&nbsp;&nbsp;<el-tooltip :content="topSortData[2].companyAddress" placement="top-start"><span>{{
topSortData[2].companyAddress }}</span></el-tooltip>
企业地址&nbsp;&nbsp;<el-tooltip
:content="topSortData[2].companyAddress"
placement="top-start"
><span>{{ topSortData[2].companyAddress }}</span></el-tooltip
>
</div>
</div>
</div>
<div class="first" v-if="topSortData.length" @click="toCanban(2)">
<div class="mingci">
<img src="../../assets/safetyIndex/第一名.png" alt="">&nbsp;
<img src="../../assets/safetyIndex/第一名.png" alt="" />&nbsp;
总得分&nbsp;<span>{{ topSortData[0].score }}</span>
</div>
<div class="tupian">
<img :src="topSortData[0].picUrl" alt="">
<img :src="topSortData[0].picUrl" alt="" />
</div>
<div class="companyMsg">
<div class="mingcheng">
企业名称&nbsp;&nbsp;<span>{{ topSortData[0].companyName }}</span>
</div>
<div class="mingcheng">
企业地址&nbsp;&nbsp;<el-tooltip :content="topSortData[0].companyAddress" placement="top-start"><span>{{
topSortData[0].companyAddress }}</span></el-tooltip>
企业地址&nbsp;&nbsp;<el-tooltip
:content="topSortData[0].companyAddress"
placement="top-start"
><span>{{ topSortData[0].companyAddress }}</span></el-tooltip
>
</div>
</div>
</div>
@ -137,76 +207,84 @@
</div>
</template>
<script>
import { statisticsAlarm, statisticsDanger, statisticsDetail, topSort } from '@/api/safetyIndex'
import offLineMap from '@/components/offLineMap'
import {
statisticsAlarm,
statisticsDanger,
statisticsDetail,
topSort,
} from "@/api/safetyIndex";
import offLineMap from "@/components/offLineMap";
export default {
data() {
return {
Selectvalue: '排名',
topTabsName: 'month',
Selectvalue: "排名",
topTabsName: "month",
statisticsAlarmData: {},
statisticsDangerData: [],
statisticsDetailData: {},
topSortData: [],
}
};
},
components: {
offLineMap
offLineMap,
},
created() {
this.getStatisticsAlarm()
this.getstatisticsDanger()
this.getStatisticsAlarm();
this.getstatisticsDanger();
// this.getstatisticsDetail()
this.gettopSort()
this.gettopSort();
},
methods: {
getStatisticsAlarm() {
statisticsAlarm().then(res => {
this.statisticsAlarmData = res.data
})
statisticsAlarm().then((res) => {
this.statisticsAlarmData = res.data;
});
},
getstatisticsDanger() {
statisticsDanger().then(res => {
this.statisticsDangerData = res.data
})
statisticsDanger().then((res) => {
this.statisticsDangerData = res.data;
});
},
getstatisticsDetail() {
statisticsDetail().then(res => {
this.statisticsDetailData = res.data
})
statisticsDetail().then((res) => {
this.statisticsDetailData = res.data;
});
},
gettopSort() {
this.$emit('tabChange', this.topTabsName)
topSort({ scoreType: this.topTabsName }).then(res => {
this.topSortData = res.data
})
this.$emit("tabChange", this.topTabsName);
topSort({ scoreType: this.topTabsName }).then((res) => {
this.topSortData = res.data;
});
},
goMore(val) {
console.log(val, 'val');
this.$router.push({ path: '/home/enterpriseRank', query: { companyParamName: val } })
console.log(val, "val");
this.$router.push({
path: "/home/enterpriseRank",
query: { companyParamName: val },
});
},
toCanban(index) {
sessionStorage.setItem('companyID', this.topSortData[index].companyId)
sessionStorage.setItem("companyID", this.topSortData[index].companyId);
this.$router.push({
path: '/home/companyCanban',
})
path: "/home/companyCanban",
});
},
toArchives(val) {
sessionStorage.setItem('companyID', val.companyId)
sessionStorage.setItem("companyID", val.companyId);
this.$router.push({
path: '/home/companyCanban',
})
}
path: "/home/companyCanban",
});
},
}
},
};
</script>
<style lang="less" scoped>
.toubu {
width: 100%;
height: calc(58.84% + 20px);
background: url('~@/assets/safetyIndex/主屏板块4.png') no-repeat;
background: url("~@/assets/safetyIndex/主屏板块4.png") no-repeat;
background-size: 100% 100%;
padding: 35px 20px 20px;
box-sizing: border-box;
@ -220,7 +298,7 @@ export default {
.topBox {
width: 100%;
height: 30%;
background: url('~@/assets/safetyIndex/90981.png') no-repeat;
background: url("~@/assets/safetyIndex/90981.png") no-repeat;
background-size: 100% 100%;
box-sizing: border-box;
position: relative;
@ -231,7 +309,7 @@ export default {
width: 18px;
height: 18px;
position: absolute;
background: url('~@/assets/safetyIndex/装饰6710.png') no-repeat;
background: url("~@/assets/safetyIndex/装饰6710.png") no-repeat;
background-size: 100% 100%;
left: 18px;
top: 15px;
@ -241,7 +319,7 @@ export default {
width: 18px;
height: 18px;
position: absolute;
background: url('~@/assets/safetyIndex/装饰6710.png') no-repeat;
background: url("~@/assets/safetyIndex/装饰6710.png") no-repeat;
background-size: 100% 100%;
right: 18px;
top: 15px;
@ -261,13 +339,13 @@ export default {
align-items: center;
justify-content: center;
font-size: 16px;
color: #D0DEEE;
color: #d0deee;
letter-spacing: 1.14px;
font-weight: 500;
.blue {
font-size: 20px;
color: #66D9FF;
color: #66d9ff;
letter-spacing: 1.25px;
text-align: right;
font-weight: 700;
@ -275,7 +353,7 @@ export default {
.yellow {
font-size: 20px;
color: #FEF699;
color: #fef699;
letter-spacing: 1.25px;
text-align: right;
font-weight: 700;
@ -284,7 +362,7 @@ export default {
.red {
font-family: AlimamaShuHeiTi;
font-size: 20px;
color: #FA3737;
color: #fa3737;
letter-spacing: 1.25px;
text-align: right;
font-weight: 700;
@ -292,19 +370,23 @@ export default {
.jia {
font-size: 12px;
color: #FFFFFF;
color: #ffffff;
letter-spacing: 1.25px;
line-height: 18px;
font-weight: 600;
opacity: 0.5;
}
}
.shu {
width: 1px;
height: 40px;
background-image: linear-gradient(180deg, rgba(71, 88, 99, 0.00) 0%, #79919D 48%, rgba(69, 88, 97, 0.00) 100%);
background-image: linear-gradient(
180deg,
rgba(71, 88, 99, 0) 0%,
#79919d 48%,
rgba(69, 88, 97, 0) 100%
);
}
}
@ -318,7 +400,7 @@ export default {
.topBottomItem {
height: 100%;
width: calc(25% - 15px);
background: url('~@/assets/safetyIndex/23111.png') no-repeat;
background: url("~@/assets/safetyIndex/23111.png") no-repeat;
background-size: 100% 100%;
display: flex;
justify-content: space-around;
@ -335,7 +417,7 @@ export default {
.qiye {
font-size: 14px;
color: #C4E5FF;
color: #c4e5ff;
letter-spacing: 0.78px;
font-weight: 500;
}
@ -349,15 +431,14 @@ export default {
.qiyenum {
font-size: 20px;
color: #EBF9FF;
color: #ebf9ff;
letter-spacing: 1px;
line-height: 37px;
text-shadow: 0 0 9px #159AFF;
text-shadow: 0 0 9px #159aff;
font-weight: 700;
}
}
}
}
}
}
@ -378,18 +459,14 @@ export default {
.el-input__inner {
height: 30px;
background: url('~@/assets/safetyIndex/选择框.png') no-repeat;
background: url("~@/assets/safetyIndex/选择框.png") no-repeat;
background-size: 100% 100%;
font-size: 14px;
color: #C4E5FF;
color: #c4e5ff;
letter-spacing: 1px;
text-align: center;
font-weight: 400;
border: 0;
}
}
}
@ -414,15 +491,11 @@ export default {
// background-size: 100% 100%;
background: rgba(38, 88, 76, 0.8);
font-size: 14px;
color: #C4E5FF;
color: #c4e5ff;
letter-spacing: 1px;
text-align: center;
font-weight: 400;
border: 0;
}
}
}
@ -442,7 +515,7 @@ export default {
.second {
width: 31.34%;
height: 80%;
background: url('~@/assets/safetyIndex/39088132.png') no-repeat;
background: url("~@/assets/safetyIndex/39088132.png") no-repeat;
background-size: 100% 100%;
padding: 5px 27px 12px 10px;
box-sizing: border-box;
@ -464,7 +537,7 @@ export default {
span {
font-size: 16px;
color: #FFFCEB;
color: #fffceb;
letter-spacing: 2px;
line-height: 16px;
text-shadow: 0 0 9px rgba(255, 236, 21, 0.58);
@ -506,7 +579,7 @@ export default {
span {
font-size: 14px;
color: #D0DEEE;
color: #d0deee;
letter-spacing: 0.75px;
font-weight: 500;
}
@ -517,7 +590,7 @@ export default {
.third {
width: 31.34%;
height: 80%;
background: url('~@/assets/safetyIndex/编组 352111.png') no-repeat;
background: url("~@/assets/safetyIndex/编组 352111.png") no-repeat;
background-size: 100% 100%;
padding: 5px 10px 12px 27px;
box-sizing: border-box;
@ -539,7 +612,7 @@ export default {
span {
font-size: 16px;
color: #FFFCEB;
color: #fffceb;
letter-spacing: 2px;
line-height: 16px;
text-shadow: 0 0 9px rgba(255, 31, 21, 0.75);
@ -581,13 +654,12 @@ export default {
span {
font-size: 14px;
color: #D0DEEE;
color: #d0deee;
letter-spacing: 0.75px;
font-weight: 500;
}
}
}
}
.first {
@ -598,7 +670,7 @@ export default {
left: 50%;
top: 30px;
margin-left: -20.5%;
background: url('~@/assets/safetyIndex/编组 3521.png') no-repeat;
background: url("~@/assets/safetyIndex/编组 3521.png") no-repeat;
background-size: 100% 100%;
padding: 10px 16px 16px;
text-align: center;
@ -610,7 +682,7 @@ export default {
color: rgba(235, 249, 255, 0.8);
font-size: 14px;
color: #EBF9FF;
color: #ebf9ff;
letter-spacing: 1.75px;
font-weight: 400;
@ -621,10 +693,10 @@ export default {
span {
font-size: 20px;
color: #EBF9FF;
color: #ebf9ff;
letter-spacing: 2.5px;
line-height: 37px;
text-shadow: 0 0 9px #159AFF;
text-shadow: 0 0 9px #159aff;
font-weight: 700;
}
}
@ -663,7 +735,7 @@ export default {
span {
font-size: 14px;
color: #D0DEEE;
color: #d0deee;
letter-spacing: 0.75px;
font-weight: 500;
}
@ -671,22 +743,19 @@ export default {
}
}
.topTabs {
position: absolute;
top: 0;
left: 0;
}
/deep/.el-tabs--border-card {
background: rgba(0, 0, 0, 0);
border: 0;
height: 30px;
width: calc(100% - 40px);
margin: 0;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .12), 0 0 6px 0 rgba(0, 0, 0, .04);
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
.el-tabs__header {
display: inline-block;
@ -700,21 +769,20 @@ export default {
display: inline-block;
width: auto;
display: flex;
}
.el-tabs__item {
width: 70px;
height: 30px;
border: 0;
color: #8FABBF;
color: #8fabbf;
padding: 5px;
box-sizing: border-box;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
background: url('~@/assets/safetyIndex/编组 6221.png') no-repeat;
background: url("~@/assets/safetyIndex/编组 6221.png") no-repeat;
background-size: 100% 100%;
.paneInner {
@ -724,21 +792,14 @@ export default {
display: flex;
justify-content: center;
align-items: center;
}
}
.el-tabs__item.is-active {
background: url('~@/assets/safetyIndex/90866.png') no-repeat;
background: url("~@/assets/safetyIndex/90866.png") no-repeat;
background-size: 100% 100%;
border: 0;
color: #4BFFAD;
color: #4bffad;
padding: 5px;
box-sizing: border-box;

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save