Commit c34f2ae6 authored by zhengke's avatar zhengke

修改

parent 2c1fbe0a
<style> <style>
#timeleft div { #timeleft div {
height: 65px; height: 80px;
color: #333333; color: #333333;
} }
...@@ -55,6 +55,11 @@ ...@@ -55,6 +55,11 @@
color:#F28C1D; color:#F28C1D;
background-color: #FCE8D2; background-color: #FCE8D2;
} }
.timecenter_Line{
border-left:1px solid #366595;
position:absolute;
left:130px;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
...@@ -74,7 +79,7 @@ ...@@ -74,7 +79,7 @@
</div> </div>
</div> </div>
<div class="col-4" id="timecenter"> <div class="col-4" id="timecenter">
<div style="height:80px; border-left:1px solid #366595; position:absolute; left:130px;"> <div class="timecenter_Line" :style="{'height':getHeight(dataList.resultList)}">
<ul> <ul>
<li class="cicle1" v-for="(item,index) in dataList.resultList" :class="{'reCordRed':item.ColorType==1,'reCordBlue':item.ColorType==2, <li class="cicle1" v-for="(item,index) in dataList.resultList" :class="{'reCordRed':item.ColorType==1,'reCordBlue':item.ColorType==2,
'reCordOrange':item.ColorType==3}" :style="{'top':getTop(index)}"> 'reCordOrange':item.ColorType==3}" :style="{'top':getTop(index)}">
...@@ -163,6 +168,9 @@ ...@@ -163,6 +168,9 @@
}, },
getTop(index) { getTop(index) {
return index * 77 + 'px'; return index * 77 + 'px';
},
getHeight(data){
return (data.length-1)*80+'px'
} }
}, },
} }
......
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