Commit b53d9134 authored by lizhichao's avatar lizhichao
parents ef32955b 2bb5fda9
......@@ -28,11 +28,11 @@ public class ArtemisController {
*/
static {
// 代理API网关nginx服务器ip端口
ArtemisConfig.host = "222.223.203.154:1443";
ArtemisConfig.host = "27.128.189.137:1443";
// 秘钥appkey
ArtemisConfig.appKey = "24786595";
ArtemisConfig.appKey = "28616162";
// 秘钥appSecret
ArtemisConfig.appSecret = "AxzrQTvNWvSVKjKbYGOn";
ArtemisConfig.appSecret = "5ueTWDOJ21jRbpHACAzF";
}
/**
* 能力开放平台的网站路径
......
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM7.87702 10.0747H8.51843V12.6673H7.87702V10.0747ZM6.44436 10.0747H7.08576V12.6673H6.44436V10.0747ZM11.9546 3.71455V11.9051H12.6666V12.6673H9.08258V9.82425C9.08258 9.61425 8.90732 9.44314 8.69265 9.44314H5.86777C5.6531 9.44314 5.47732 9.61476 5.47732 9.82425V12.6673H3.33325V11.9045H4.04518V7.14714C4.04668 7.04491 4.08859 6.94743 4.16176 6.87602C4.23492 6.8046 4.33338 6.76506 4.43562 6.76603H6.74717V5.96907C6.74854 5.86675 6.79039 5.76914 6.86357 5.69761C6.93675 5.62608 7.03529 5.58647 7.13762 5.58744H8.62991C8.73223 5.58647 8.83077 5.62608 8.90395 5.69761C8.97713 5.76914 9.01899 5.86675 9.02035 5.96907V6.76655H9.6405V3.71507C9.642 3.61284 9.68392 3.51536 9.75708 3.44395C9.83025 3.37253 9.92871 3.33299 10.0309 3.33396H11.5642C11.6663 3.33299 11.7647 3.37246 11.8379 3.44377C11.911 3.51507 11.953 3.61241 11.9546 3.71455ZM5.59243 8.88417H8.96954H8.97161V8.12195H5.59243V8.88417Z" fill="#F0C41B"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M15.3722 6.834C15.1015 4.93477 14.1804 3.19959 12.7769 1.94502C11.3734 0.690454 9.58101 0.000131564 7.72679 0C5.67751 0 3.71218 0.842855 2.26312 2.34315C0.81407 3.84344 0 5.87827 0 8C0 10.1217 0.81407 12.1566 2.26312 13.6569C3.71218 15.1571 5.67751 16 7.72679 16C9.58101 15.9999 11.3734 15.3095 12.7769 14.055C14.1804 12.8004 15.1015 11.0652 15.3722 9.166H16V6.834H15.3722ZM1.80758 7.43825C1.93429 6.00989 2.5388 4.67218 3.51672 3.65617C4.49464 2.64015 5.78456 2.00963 7.1637 1.8735V3.09475C6.09685 3.22628 5.10407 3.72664 4.346 4.51488C3.58792 5.30312 3.10888 6.33313 2.9864 7.43825H1.80758ZM7.1637 14.1267C5.79162 13.9913 4.50762 13.3665 3.53132 12.3591C2.55502 11.3518 1.94707 10.0246 1.81145 8.6045H2.99147C3.12256 9.70097 3.60475 10.7203 4.36104 11.4998C5.11733 12.2792 6.10408 12.7738 7.1637 12.9045V14.1267ZM6.96377 8.3395V11.0005H6.01216V4.988H9.97214V5.83H6.9628V7.49725H9.80143V8.33925L6.96377 8.3395ZM8.28988 14.1267V12.9052C9.34949 12.7746 10.3362 12.28 11.0925 11.5005C11.8488 10.7211 12.331 9.70172 12.4621 8.60525H13.6421C13.5062 10.0252 12.8982 11.3521 11.9219 12.3592C10.9456 13.3663 9.66179 13.991 8.28988 14.1265V14.1267ZM12.4672 7.43825C12.3447 6.33313 11.8657 5.30312 11.1076 4.51488C10.3495 3.72664 9.35672 3.22628 8.28988 3.09475V1.8735C9.66897 2.00969 10.9588 2.64023 11.9367 3.65624C12.9146 4.67225 13.5191 6.00992 13.6457 7.43825H12.4672Z" fill="#FA8167"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM2.28254 8.28605C2.12709 8.22097 2 8.29979 2 8.46079V12.4697C2 12.631 2.12709 12.7092 2.28254 12.6447L3.47843 12.1448C3.63415 12.08 3.76097 11.8957 3.76097 11.7344V11.0845H6.1841C6.30883 11.0846 6.43098 11.0508 6.53617 10.9871C6.64136 10.9234 6.7252 10.8324 6.77782 10.7249L7.33799 9.57378L6.15328 9.05008L5.76602 9.84574H3.76151V9.19578C3.76151 9.03478 3.63442 8.85019 3.47897 8.78538L2.28254 8.28605ZM12.4657 10.1644L13.2825 8.5046L11.2971 9.64793L12.4657 10.1644ZM13.7598 6.9755L5.64275 3.3884C5.4943 3.32316 5.32474 3.31631 5.171 3.36933C5.01726 3.42235 4.89177 3.53096 4.82185 3.67151L3.41243 6.53631C3.34391 6.67718 3.33689 6.83811 3.39291 6.98388C3.44893 7.12966 3.56343 7.24839 3.71133 7.31409L9.06405 9.67956C9.37195 9.81541 9.86121 9.79 10.1514 9.62304L13.7914 7.52668C14.0816 7.35972 14.0671 7.11187 13.7598 6.9755Z" fill="#36E7C7"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 0C5.87827 0 3.84344 0.842855 2.34315 2.34315C0.842855 3.84344 0 5.87827 0 8C0 10.1217 0.842855 12.1566 2.34315 13.6569C3.84344 15.1571 5.87827 16 8 16C10.1217 16 12.1566 15.1571 13.6569 13.6569C15.1571 12.1566 16 10.1217 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0V0ZM12.8 10.8H12V12H10.8V12.8H9.2V12H7.2V12.8H5.6V12H4.4V10.8H3.6V5.2H4.4V4H5.6V3.6H6.8V4H7.6V3.6H8.8V4H9.6V3.6H10.8V4H12V5.2H12.8V10.8ZM4.8 10.8H11.6V4.8H4.8V10.8ZM10.8 5.2H11.2V10.4H10.8V5.2ZM10 5.2H10.4V10.4H10V5.2ZM9.2 5.2H9.6V10.4H9.2V5.2ZM8.4 5.2H8.8V10.4H8.4V5.2ZM7.6 5.2H8V10.4H7.6V5.2ZM6.8 5.2H7.2V10.4H6.8V5.2ZM6 5.2H6.4V10.4H6V5.2ZM5.2 5.2H5.6V10.4H5.2V5.2Z" fill="#74C5FF"/>
</svg>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM10.7962 6.01159C10.7962 7.54306 9.55466 8.78489 8.0229 8.78489C6.49113 8.78489 5.24959 7.54335 5.24959 6.01159C5.24959 4.48012 6.49113 3.23828 8.0229 3.23828C9.55466 3.23828 10.7962 4.47982 10.7962 6.01159ZM8.02293 9.70834C8.86456 9.70834 9.66557 9.42494 10.3118 8.91474V8.91504C11.9892 9.55093 12.7593 11.7307 12.7593 12.7244H3.2382C3.2382 11.7218 4.00245 9.52662 5.71357 8.89844C6.3628 9.41841 7.17152 9.70834 8.02293 9.70834Z" fill="#00FFFF"/>
</svg>
......@@ -104,8 +104,8 @@ export default {
this.map.mouseAddMarker();
}
} else {
console.log(this.pipePath.length)
if (this.pipePath.length > 0) {
//console.log(this.pipePath.length)
if (this.pipePath!=null && this.pipePath.length > 0) {
this.map.addPipeLine({ path: this.pipePath });
} else {
this.map.mouseAddPipeline();
......
<!--
* @Author: your name
* @Date: 2022-01-26 20:07:52
* @LastEditTime: 2022-02-25 18:34:00
* @LastEditTime: 2022-02-26 14:16:23
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
......@@ -63,19 +63,19 @@
<div class="tbody flex">
<div class="first zzz">{{ "流量计与压力表" }}</div>
<div class="">{{ deviceData.pressureFlows.length }}</div>
<div class="">
<div v-unValue class="">
{{ (Math.random() * deviceData.pressureFlows.length) >> 1 }}
</div>
<div class="">
<div v-unValue class="">
{{ (Math.random() * deviceData.pressureFlows.length) >> 1 }}
</div>
<div class="">
<div v-unValue class="">
{{ (Math.random() * deviceData.pressureFlows.length) >> 1 }}
</div>
<div class="">
<div v-unValue class="">
{{ (Math.random() * deviceData.pressureFlows.length) >> 1 }}
</div>
<div class="last zzz">
<div v-unValue class="last zzz">
{{
deviceData.pressureFlows.filter((item) => {
return item.deviceState == 2;
......@@ -118,6 +118,8 @@ export default {
this.companyType[item.conpanyId] = item.companyName;
});
}
console.log(this.deviceData)
},
methods: {
close() {
......
<!--
* @Author: your name
* @Date: 2022-01-27 14:25:45
* @LastEditTime: 2022-02-17 10:12:02
* @LastEditTime: 2022-02-26 14:16:16
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /hello-world/src/views/components/User.vue
......@@ -22,7 +22,7 @@
<div class="group flex">
<div class="left">联系方式:</div>
<div class="right">{{ deviceData.phone }}</div>
<div v-unValue class="right">{{ deviceData.phone }}</div>
</div>
<div class="group flex">
......@@ -32,16 +32,15 @@
</div>
</div>
<div class="group flex">
<!-- <div class="group flex">
<div class="left">所属公司:</div>
<div class="right">{{ companyType[deviceData.companyType] }}</div>
</div>
</div> -->
</div>
</template>
<script>
import { companyType } from "@/utils/mapClass/config.js";
import { mapGetters } from "vuex";
export default {
data() {
......
This diff is collapsed.
/*
* @Author: your name
* @Date: 2022-01-11 13:45:12
* @LastEditTime: 2022-02-26 09:55:44
* @LastEditTime: 2022-02-26 13:59:03
* @LastEditors: Please set LastEditors
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @FilePath: /test/hello-world/src/utils/mapClass.js
......@@ -444,19 +444,38 @@ export class EditorMap {
if (!this.infowindow) return;
this.infowindow.close();
}
allilter(companyArr, typeArr) {
for (let pipeItem in this.pipeArr) {
this.pipeArr[pipeItem].forEach((pipe) => {
const data = pipe.getExtData();
if (companyArr.indexOf(data.companyType + "") >= 0) {
pipe.show();
} else {
pipe.hide();
}
});
}
for (let deviceItem in this.allDevice) {
this.allDevice[deviceItem].forEach((device) => {
const data = device.getExtData();
// 设备过滤受到bigwindow页面的的两种制约,companyArr, typeArr 两个数组制约显示隐藏
// 燃气没有公司,所以没有device.companyType不收到公司的控制
const companyHas = companyArr.indexOf(data.companyType + "") >= 0;
// 设备存在
const deviceHas = typeArr.indexOf(data.iconType + "") >= 0;
// 必须设备存在数组里,才会显示设备 !data.companyType代表用户不受公司制约
if (deviceHas && (companyHas || !data.companyType)) {
device.show();
} else {
device.hide();
}
});
}
}
// 根据公司过滤是否显示 公司由一个数组传过来
companyFilter(companyArr) {
for (let pipeItem in this.pipeArr) {
// 如果item属于数组说明要显示,凑则就是隐藏
// if (companyArr.indexOf(+pipeItem+'') >= 0) {
// this.pipeArr[pipeItem].forEach((pipe) => {
// pipe.show();
// });
// } else {
// this.pipeArr[pipeItem].forEach((pipe) => {
// pipe.hide();
// });
// }
this.pipeArr[pipeItem].forEach((pipe) => {
const data = pipe.getExtData();
if (companyArr.indexOf(data.companyType + "") >= 0) {
......@@ -467,25 +486,14 @@ export class EditorMap {
});
}
for (let deviceItem in this.allDevice) {
// if (companyArr.indexOf(+deviceItem+'') >= 0) {
// this.allDevice[deviceItem].forEach((device) => {
// device.show();
// });
// } else {
// this.allDevice[deviceItem].forEach((device) => {
// device.hide();
// });
// }
console.log(this.allDevice);
this.allDevice[deviceItem].forEach((device) => {
const data = device.getExtData();
// 燃气没有公司,所以没有device.companyType不收到公司的控制
const companyHas = companyArr.indexOf(data.companyType + "") >= 0;
if (
companyArr.indexOf(data.companyType + "") >= 0 ||
!data.companyType
) {
// 必须设备存在数组里,才会显示设备 !data.companyType代表用户不受公司制约
if (companyHas || !data.companyType) {
device.show();
} else {
device.hide();
......@@ -493,10 +501,33 @@ export class EditorMap {
});
}
}
// 根据设备类型隐藏展示
iconTypeFilter(typeArr) {
for (let deviceItem in this.allDevice) {
this.allDevice[deviceItem].forEach((device) => {
if (typeArr.indexOf(deviceItem + "") >= 0) {
device.show();
} else {
device.hide();
}
});
}
}
// 公司改变,先调用设备方法,在调用公司方法
companyChange(companyArr, typeArr) {
this.iconTypeFilter(typeArr);
this.companyFilter(companyArr);
}
// 设备选择,先调用公司方法,在调用设备方法覆盖
deviceChange(companyArr, typeArr) {
this.companyFilter(companyArr);
this.iconTypeFilter(typeArr);
}
// 卫星图切换
satellite = null;
changeMap(bool) {
// 卫星
// 卫星,
if (!bool) {
if (this.satellite) return;
this.satellite = new AMap.TileLayer.Satellite();
......
......@@ -38,7 +38,7 @@
<!-- 设备按钮 -->
<div class="typelist-div">
<div class="list" v-for="(item,index) in arr" :key="index" :class="item.ischeck==true?'active':''" @click="sel1(index,item)">
{{item.name}}
<img :src="item.imgurl" style="margin-top: 2px;float: left;margin-right: 3px;" /> {{item.name}}
</div>
</div>
......@@ -183,27 +183,32 @@ export default {
{
val:1,
ischeck:false,
imgurl: require('@/assets/image/tyxsub.svg'),
name: "调压箱"
},
{
val:2,
ischeck:false,
imgurl: require('@/assets/image/fmjsub.svg'),
name: "阀门井"
},
{
val:3,
ischeck:false,
name: "场站"
imgurl: require('@/assets/image/czsub.svg'),
name: "场 站"
},
{
val:4,
ischeck:false,
name: "用户"
imgurl: require('@/assets/image/usersub.svg'),
name: "用 户"
},
{
val:5,
ischeck:false,
name: "监控"
imgurl: require('@/assets/image/jksub.svg'),
name: "监 控"
}
],
selarr1:[],
......@@ -354,15 +359,13 @@ export default {
let arr=[...this.arr];
let selarr1=[...this.selarr1];
if(arr[index].ischeck==false){
arr[index].ischeck=true;
selarr1.push(item)
arr[index].ischeck=true;
selarr1.push(item)
}else{
arr[index].ischeck=false;
var index11=selarr1.indexOf(index)
selarr1.splice(index11,1)
arr[index].ischeck=false;
var index11=selarr1.indexOf(index)
selarr1.splice(index11,1)
}
this.arr=arr;
this.selarr1=selarr1;
......@@ -547,25 +550,27 @@ export default {
height: 50px;
z-index: 9999;
position: fixed;
bottom: 20%;
left: 40%;
top: 0;
margin-top: 120px;
right: 450px;
}
.list{
z-index: 9999;
float: left;
margin-left: 10px;
margin-left: 15px;
color: #fff;
width: 80px;
height: 30px;
line-height: 30px;
line-height: auto;
text-align: center;
background: linear-gradient(86deg, #112238 0%, #086187 62%, #112238 100%);
box-shadow: inset 0px 1px 2px 1px #125C9B;
font-size: 14px;
padding: 5px 7px;
}
.list.active{
background: linear-gradient(86deg, #112238 0%, #32A3D3 62%, #112238 100%);
box-shadow: inset 0px 1px 2px 1px #125C9B;
color: #2ee7e7;
font-size: 14px;
}
</style>
......@@ -269,6 +269,8 @@ export default {
coordinateslist:null,
// 遮罩层
loading: true,
pipeList:[],
// 导出遮罩层
exportLoading: false,
// 选中数组
......
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