iconChange
This commit is contained in:
parent
c24f736937
commit
d846e8d6ef
|
@ -5,10 +5,10 @@ NODE_ENV = development
|
||||||
VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
|
VUE_APP_TITLE = '曲阳金隅安全智能管控平台'
|
||||||
|
|
||||||
# 接口地址
|
# 接口地址
|
||||||
# VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
|
VUE_APP_API_BASEURL = http://1.203.161.103:2800/api
|
||||||
VUE_APP_WS_API = 'ws://localhost:8000'
|
#VUE_APP_WS_API = 'ws://localhost:8000'
|
||||||
VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
|
#VUE_APP_API_BASEURL = http://127.0.0.1:8000/api
|
||||||
VUE_APP_BASEURL = http://127.0.0.1:8000
|
#VUE_APP_BASEURL = http://127.0.0.1:8000
|
||||||
|
|
||||||
# 本地端口
|
# 本地端口
|
||||||
VUE_APP_PORT = 2800
|
VUE_APP_PORT = 2800
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 22 KiB |
Binary file not shown.
Before Width: | Height: | Size: 132 KiB |
Binary file not shown.
Before Width: | Height: | Size: 133 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.7 KiB |
|
@ -156,12 +156,11 @@ tool.dateFormat = function (date, fmt='yyyy-MM-dd hh:mm:ss') {
|
||||||
"s+" : date.getSeconds(), //秒
|
"s+" : date.getSeconds(), //秒
|
||||||
"q+" : Math.floor((date.getMonth()+3)/3), //季度
|
"q+" : Math.floor((date.getMonth()+3)/3), //季度
|
||||||
"S" : date.getMilliseconds(), //毫秒
|
"S" : date.getMilliseconds(), //毫秒
|
||||||
"W" : date.getDay(), //毫秒
|
|
||||||
};
|
};
|
||||||
var weeks = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
|
var weeks = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
|
||||||
|
|
||||||
if(fmt==='week'){
|
if(fmt==='week'){
|
||||||
fmt =weeks[o.w];
|
fmt =weeks[date.getDay()];
|
||||||
}else{
|
}else{
|
||||||
if(/(y+)/.test(fmt)) {
|
if(/(y+)/.test(fmt)) {
|
||||||
fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
|
fmt=fmt.replace(RegExp.$1, (date.getFullYear()+"").substr(4 - RegExp.$1.length));
|
||||||
|
|
|
@ -273,6 +273,7 @@
|
||||||
ref="saveRailDialog"
|
ref="saveRailDialog"
|
||||||
:areaId="areaId"
|
:areaId="areaId"
|
||||||
:areaName="areaName"
|
:areaName="areaName"
|
||||||
|
:areaPoints="areaPoints"
|
||||||
@success="handleSaveSuccess"
|
@success="handleSaveSuccess"
|
||||||
@closed="dialog.saveRail = false"
|
@closed="dialog.saveRail = false"
|
||||||
></save-rail-dialog>
|
></save-rail-dialog>
|
||||||
|
@ -324,6 +325,7 @@ export default {
|
||||||
query2: {},
|
query2: {},
|
||||||
areaId: null,
|
areaId: null,
|
||||||
areaName: "",
|
areaName: "",
|
||||||
|
areaPoints:[],
|
||||||
cate_: { post: "岗位", org: "单位", people: "人员" },
|
cate_: { post: "岗位", org: "单位", people: "人员" },
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -363,6 +365,13 @@ export default {
|
||||||
},
|
},
|
||||||
//围栏,添加
|
//围栏,添加
|
||||||
handleRail(row) {
|
handleRail(row) {
|
||||||
|
debugger;
|
||||||
|
// console.log(row.third_info.xx_rail.detail.polygon.points);
|
||||||
|
if(row.third_info.xx_rail){
|
||||||
|
this.areaPoints = row.third_info.xx_rail.detail.polygon.points;
|
||||||
|
}else{
|
||||||
|
|
||||||
|
}
|
||||||
this.areaId = row.id;
|
this.areaId = row.id;
|
||||||
this.areaName = row.name;
|
this.areaName = row.name;
|
||||||
this.dialog.saveRail = true;
|
this.dialog.saveRail = true;
|
||||||
|
|
|
@ -48,6 +48,9 @@
|
||||||
},
|
},
|
||||||
areaName: {
|
areaName: {
|
||||||
type: String,
|
type: String,
|
||||||
|
},
|
||||||
|
areaPoints:{
|
||||||
|
type:Array,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
@ -68,7 +71,7 @@
|
||||||
points:[],
|
points:[],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.$nextTick(()=>{
|
this.$nextTick(()=>{
|
||||||
this.loadMap();
|
this.loadMap();
|
||||||
})
|
})
|
||||||
|
@ -135,8 +138,44 @@
|
||||||
locateCallback: (feature) => {
|
locateCallback: (feature) => {
|
||||||
// console.log('locate..', feature);
|
// console.log('locate..', feature);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
window.map.addControl(drawTool2);
|
||||||
|
//当电子围栏有数据时
|
||||||
|
if(that.areaPoints.length>2){
|
||||||
|
let areaPoints = [];
|
||||||
|
let point =null;
|
||||||
|
that.areaPoints.forEach(item=>{
|
||||||
|
debugger;
|
||||||
|
|
||||||
|
let obj = {lng:345,lat:268}
|
||||||
|
console.log(obj)
|
||||||
|
let tool = new jsmap.JSMapCoordTool(window.map);
|
||||||
|
let pixel = tool.screenToMapCoordinate(obj);
|
||||||
|
debugger;
|
||||||
|
console.log(pixel)
|
||||||
|
debugger;
|
||||||
|
point = new jsmap.JSPoint(item.x,item.y,0);
|
||||||
|
areaPoints.push(point)
|
||||||
|
})
|
||||||
|
let polygonMarker = new jsmap.JSPolygonMarker({
|
||||||
|
id: that.areaId,//id
|
||||||
|
position: that.areaPoints,//坐标集合
|
||||||
|
floorId: 1,//楼层id
|
||||||
|
color: 'rgba(0,0,255,.44)',//填充颜色
|
||||||
|
strokeColor: 'rgba(0,0,255,.44)',//边线颜色
|
||||||
|
depthTest: false,//是否开启深度检测
|
||||||
|
// material: new jsmap.JSWaterMaterial(), //材质,材质属性一旦设置,color属性就会失效
|
||||||
|
allowPicking: true, //是否允许点击
|
||||||
|
displayCondition: new jsmap.JSDisplayCondition(0.0, 1000), //可见范围
|
||||||
|
properties: {
|
||||||
|
test: 'polygonTest'
|
||||||
|
},//属性设置
|
||||||
|
callback: (marker) => {
|
||||||
|
// console.log(marker);
|
||||||
|
}//回调
|
||||||
});
|
});
|
||||||
window.map.addControl(drawTool2);
|
window.map.addMarker(polygonMarker);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
closeDrawer() {
|
closeDrawer() {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,6 +11,7 @@
|
||||||
<div>
|
<div>
|
||||||
<el-badge :value="operationnumber" class="item">
|
<el-badge :value="operationnumber" class="item">
|
||||||
<el-button
|
<el-button
|
||||||
|
class="projecting"
|
||||||
icon="el-icon-document-copy"
|
icon="el-icon-document-copy"
|
||||||
type="primary"
|
type="primary"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
<div>
|
<div>
|
||||||
<el-badge :value="rpjnumber" class="item">
|
<el-badge :value="rpjnumber" class="item">
|
||||||
<el-button
|
<el-button
|
||||||
|
class="projecting"
|
||||||
icon="el-icon-document-copy"
|
icon="el-icon-document-copy"
|
||||||
type="warning"
|
type="warning"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -31,6 +33,7 @@
|
||||||
<div>
|
<div>
|
||||||
<el-badge :value="visitnumber" class="item">
|
<el-badge :value="visitnumber" class="item">
|
||||||
<el-button
|
<el-button
|
||||||
|
class="projecting"
|
||||||
icon="el-icon-document-copy"
|
icon="el-icon-document-copy"
|
||||||
type="success"
|
type="success"
|
||||||
size="small"
|
size="small"
|
||||||
|
@ -56,7 +59,7 @@
|
||||||
<div class="cockpit-count">
|
<div class="cockpit-count">
|
||||||
<div class="count-list">
|
<div class="count-list">
|
||||||
<div class="count-list-item">
|
<div class="count-list-item">
|
||||||
<div class="item-img item-img2"></div>
|
<div class="item-img item-img1"></div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<div title="员工" class="normal">内部员工</div>
|
<div title="员工" class="normal">内部员工</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
|
@ -66,7 +69,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="count-list-item">
|
<div class="count-list-item">
|
||||||
<div class="item-img item-img1"></div>
|
<div class="item-img item-img2"></div>
|
||||||
<div class="item-info">
|
<div class="item-info">
|
||||||
<div title="外来人员" class="normal">访客</div>
|
<div title="外来人员" class="normal">访客</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
|
@ -177,6 +180,11 @@ export default {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.projecting{
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
font-size: 25px;
|
||||||
|
}
|
||||||
.welcome .logo {
|
.welcome .logo {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
@ -228,26 +236,7 @@ export default {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
.item-img {
|
|
||||||
width: 50px;
|
|
||||||
height: 50px;
|
|
||||||
position: relative;
|
|
||||||
margin-right: 6px;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.item-img:after {
|
|
||||||
content: "";
|
|
||||||
width: 38px;
|
|
||||||
height: 38px;
|
|
||||||
position: absolute;
|
|
||||||
left: 7px;
|
|
||||||
top: 7px;
|
|
||||||
background: url(/public/img/rotate_line.png) no-repeat;
|
|
||||||
background-size: 100% 100%;
|
|
||||||
-webkit-animation: rotate 4s linear infinite;
|
|
||||||
animation: rotate 4s linear infinite;
|
|
||||||
}
|
|
||||||
.zuoye {
|
.zuoye {
|
||||||
background: url(/public/img/zuoye.png) no-repeat;
|
background: url(/public/img/zuoye.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
|
@ -276,33 +265,34 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
border-radius: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-img:after {
|
// .item-img:after {
|
||||||
content: "";
|
// content: "";
|
||||||
width: 38px;
|
// width: 38px;
|
||||||
height: 38px;
|
// height: 38px;
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
left: 7px;
|
// left: 7px;
|
||||||
top: 7px;
|
// top: 7px;
|
||||||
background: url(/public/img/rotate_line.png) no-repeat;
|
// background: url(/public/img/rotate_line.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
// background-size: 100% 100%;
|
||||||
-webkit-animation: rotate 4s linear infinite;
|
// -webkit-animation: rotate 4s linear infinite;
|
||||||
animation: rotate 4s linear infinite;
|
// animation: rotate 4s linear infinite;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.item-img1 {
|
.item-img1 {
|
||||||
background: url(/public/img/icon_wlry.png) no-repeat;
|
background: url(/public/img/employee.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-img2 {
|
.item-img2 {
|
||||||
background: url(/public/img/icon_nbyg.png) no-repeat;
|
background: url(/public/img/visitor.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-img3 {
|
.item-img3 {
|
||||||
background: url(/public/img/icon_cbs.png) no-repeat;
|
background: url(/public/img/remployee.png) no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue