Commit 2f8c698d authored by zhangjianqian's avatar zhangjianqian

应急处置修改

parent 189d95a3
<template> <template>
<ul class="timeline-wrapper"> <ul class="timeline-wrapper">
<li class="timeline-item" >
<div class="timeline-box">
<div class="out-circle">
<div class="in-circle"></div>
</div>
<div class="long-line"></div>
</div>
<div class="timeline-content">
<div class="timeline-date el-form-div">
<div style="width: 180px">{{nowItem.createTime}}</div>
<div >事件发布</div>
</div>
<div class="timeline-title">{{ nowItem.eventName}}</div>
<div class="timeline-title">地址:{{ nowItem.address}}</div>
</div>
</li>
<li class="timeline-item" v-for="t in timelineList" :key="t.id"> <li class="timeline-item" v-for="t in timelineList" :key="t.id">
<div class="timeline-box"> <div class="timeline-box">
<div class="out-circle"> <div class="out-circle">
...@@ -8,7 +24,11 @@ ...@@ -8,7 +24,11 @@
<div class="long-line"></div> <div class="long-line"></div>
</div> </div>
<div class="timeline-content"> <div class="timeline-content">
<div class="timeline-date">{{t.createTime}}</div> <div class="timeline-date el-form-div">
<div style="width: 180px">{{t.createTime}}</div>
<div v-if="t.eventType==2">预案指引</div>
<div v-if="t.eventType==1">信息处置</div>
</div>
<div class="timeline-title">{{ t.management}}</div> <div class="timeline-title">{{ t.management}}</div>
<div class="timeline-desc"> <div class="timeline-desc">
<span <span
...@@ -36,8 +56,8 @@ ...@@ -36,8 +56,8 @@
default: () => { default: () => {
return [] return []
} }
} },
nowItem:{}
}, },
methods: { methods: {
checkFile(url) { checkFile(url) {
...@@ -53,7 +73,12 @@ ...@@ -53,7 +73,12 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
.el-form-div{
display:flex;
flex-direction:row;
justify-content:flex-start;
width: 100%;
}
/* 时间线 */ /* 时间线 */
.timeline-item { .timeline-item {
position: relative; position: relative;
......
...@@ -114,9 +114,9 @@ ...@@ -114,9 +114,9 @@
> >
<img <img
:src="item.imgurl" :src="item.imgurl"
style="margin-top: 6px;float: left; margin-right: 3px;width: 18px;height: 18px;margin-left: 10px;" style="margin-top: 8px;float: left; margin-right: 3px;width: 18px;height: 18px;margin-left: 10px;"
/> />
{{ item.name }} {{ item.name }} ({{ item.num }})
</div> </div>
</div> </div>
...@@ -365,36 +365,42 @@ export default { ...@@ -365,36 +365,42 @@ export default {
arr2: [ arr2: [
{ {
val: 10, val: 10,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-jydw.png"), imgurl: require("@/assets/image/yj-jydw.png"),
name: "救援队伍", name: "救援队伍",
}, },
{ {
val: 11, val: 11,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-wz.png"), imgurl: require("@/assets/image/yj-wz.png"),
name: "救援物资", name: "救援物资",
}, },
{ {
val: 12, val: 12,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-cl.png"), imgurl: require("@/assets/image/yj-cl.png"),
name: "救援车辆", name: "救援车辆",
}, },
{ {
val: 13, val: 13,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-yy.png"), imgurl: require("@/assets/image/yj-yy.png"),
name: "医 院", name: "医 院",
}, },
{ {
val: 15, val: 15,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-xf.png"), imgurl: require("@/assets/image/yj-xf.png"),
name: "消防队伍", name: "消防队伍",
}, },
{ {
val: 16, val: 16,
num:0,
ischeck: false, ischeck: false,
imgurl: require("@/assets/image/yj-xj.png"), imgurl: require("@/assets/image/yj-xj.png"),
name: "巡检人员", name: "巡检人员",
...@@ -536,6 +542,12 @@ export default { ...@@ -536,6 +542,12 @@ export default {
listDevice(params).then(response => { listDevice(params).then(response => {
response.rows.forEach((item) => { response.rows.forEach((item) => {
item.iconType = item.deviceType+9; item.iconType = item.deviceType+9;
if(item.deviceType<5){
this.arr2[item.deviceType-1].num++;
}else {
this.arr2[item.deviceType-2].num++;
}
}); });
this.deviceList = response.rows; this.deviceList = response.rows;
//console.log(this.deviceList) //console.log(this.deviceList)
...@@ -1009,7 +1021,7 @@ export default { ...@@ -1009,7 +1021,7 @@ export default {
.typelist-div { .typelist-div {
width: 450px; width: 450px;
height: 50px; height: 50px;
z-index: 9999; z-index: 999;
position: fixed; position: fixed;
top: 0; top: 0;
margin-top: 80px; margin-top: 80px;
...@@ -1017,16 +1029,17 @@ export default { ...@@ -1017,16 +1029,17 @@ export default {
} }
.typelist-div2{ .typelist-div2{
width: 150px; width: 150px;
height: 50px; height: 230px;
z-index: 9999; z-index: 999;
position: fixed; position: fixed;
margin-top: 80px; margin-top: 80px;
margin-left: 10px; margin-left: 10px;
background: white;
margin-left: 15px;
} }
.list { .list {
z-index: 9999; z-index: 9999;
float: left; float: left;
margin-left: 15px;
color: #000000; color: #000000;
line-height: auto; line-height: auto;
background: #ffffff; background: #ffffff;
......
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