Commit cc209a4b authored by 纪泽龙's avatar 纪泽龙

Merge branch 'develop_jzl'

parents 5e03faaa 456d5bf2
...@@ -200,9 +200,9 @@ export default { ...@@ -200,9 +200,9 @@ export default {
deviceId: "", deviceId: "",
alarm: {}, alarm: {},
list: [ list: [
{ a: "我我我我我我", b: 2, c: 3, d: 4 }, { a: "我我我我我我", b: 2, c: 3, d: 4 },
{ a: "我我我我我我我", b: 2, c: 3, d: 4 }, { a: "我我我我我", b: 2, c: 3, d: 4 },
{ a: "我我我我我我我", b: 2, c: 3, d: 4 }, { a: "我我我我", b: 2, c: 3, d: 4 },
], ],
}; };
}, },
......
...@@ -63,21 +63,56 @@ ...@@ -63,21 +63,56 @@
<!-- 报警状态 --> <!-- 报警状态 -->
<div class="warn-wrapper" v-if="true"> <div class="warn-wrapper" v-if="true">
<div class="warn-content"> <!-- 阀门井跟调压箱 报警-->
<div> <template v-if="data.deviceType == 1 || data.deviceType == 2">
报警状态:<span <div class="windowwarn-content tab" v-if="list.length > 0">
>报警({{ data.alarmType ? data.alarmType : "-" }})</span <div class="foot">
> <div class="thead flex">
</div> <div class="first">设备名称</div>
<div> <div>设备状态</div>
详细信息:<span>{{ data.alarmValue ? data.alarmValue : "-" }}</span> <div>设备浓度</div>
<div>报警状态</div>
</div>
<template v-if="list.length > 0">
<div
class="tbody flex"
v-for="deviceData in list"
:key="deviceData.a"
>
<div class="first zzz">
{{ deviceData.a || "-" }}
</div>
<div class="">
{{ deviceData.b || "-" }}
</div>
<div class="">
{{ deviceData.c || "-" }}
</div>
<div class="">
{{ deviceData.d || "-" }}
</div>
</div>
</template>
</div>
</div> </div>
<div v-if="!orderId"> <div v-else class="windowwarn-content tab nomal">暂无设备</div>
工单编号:<span>{{ data.orderId ? data.orderId : "-" }}</span> </template>
<!-- 流量计跟压力表报警 -->
<template v-if="data.deviceType == 3 || data.deviceType == 4">
<div class="warn-content">
<div>
报警状态:<span
>报警({{ data.alarmType ? data.alarmType : "-" }})</span
>
</div>
<div>
详细信息:<span>{{ data.alarmValue ? data.alarmValue : "-" }}</span>
</div>
<div v-if="!orderId">
工单编号:<span>{{ data.orderId ? data.orderId : "-" }}</span>
</div>
</div> </div>
</div>
<template v-if="data.deviceType == 3 || data.deviceType == 4">
<div <div
v-if="data.deviceType == 3" v-if="data.deviceType == 3"
class="windowwarn-content" class="windowwarn-content"
...@@ -193,6 +228,12 @@ export default { ...@@ -193,6 +228,12 @@ export default {
3: "流量计", 3: "流量计",
4: "智能燃气表", 4: "智能燃气表",
}, },
list:[
{ a: "我我我我我我我", b: 2, c: 3, d: 4 },
{ a: "我我我我我我", b: 2, c: 3, d: 4 },
{ a: "我我我我我", b: 2, c: 3, d: 4 },
],
loading: null, loading: null,
}; };
}, },
...@@ -343,6 +384,54 @@ export default { ...@@ -343,6 +384,54 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.windowwarn-content { .windowwarn-content {
&.tab {
border-bottom: 1px solid #e2e2e2;
padding: 10px 5px 2px 5px;
max-height: 150px;
padding-bottom: 5px;
overflow-y: auto;
&::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.foot {
color: #ffffff;
.thead,
.tbody {
display: flex;
border: 1px solid #cccccc;
border-right: none;
div {
font-size: 12px !important;
flex: 1;
text-align: left;
border-right: 1px solid #cccccc;
box-sizing: border-box;
padding: 0 5px;
}
.first {
flex: 1;
font-size: 12px !important;
}
.last {
border-right: none;
}
}
.tbody {
border-top: none;
}
.thead {
div {
background-color: rgba(255, 255, 255, 0.1);
}
}
}
}
// 无设备的样式
&.nomal {
text-align: center;
padding-bottom: 10px;
}
div { div {
font-size: 14px; font-size: 14px;
font-wwight: 400; font-wwight: 400;
......
...@@ -925,6 +925,30 @@ export default { ...@@ -925,6 +925,30 @@ export default {
require(`@/assets/images/ylb.gif`) require(`@/assets/images/ylb.gif`)
); );
} }
}else if (device.getExtData().deviceType == 1) {
if (endTime || dealStatus == 4) {
this.gaoMap.changeMarkIcon(
device,
require(`@/assets/images/tiaoyaxiang.png`)
);
} else {
this.gaoMap.changeMarkIcon(
device,
require(`@/assets/images/ylb.gif`)
);
}
}else if (device.getExtData().deviceType == 2) {
if (endTime || dealStatus == 4) {
this.gaoMap.changeMarkIcon(
device,
require(`@/assets/images/famenjing.png`)
);
} else {
this.gaoMap.changeMarkIcon(
device,
require(`@/assets/images/ylb.gif`)
);
}
} }
} }
}); });
......
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