123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265 |
- <template>
- <div id="app-container-ethylene">
- <div class="bg-color-black">
- <div class="d-flex pt-2 pl-2">
- <span style="color:#5cd9e8">
- <icon name="chart-area"></icon>
- </span>
- <div class="d-flex">
- <span class="fs-xl text mx-2">乙烯储罐</span>
- <div class="decoration2">
- <dv-decoration-2 :reverse="true" style="width:5px;height:2.4rem;" />
- </div>
- </div>
- </div>
- <div :style="transformdata ? 'transform: scale('+transformdata+') translate(0,0) !important;text-align: center; display: flex;justify-content: center;margin-top: 10px;align-items: center;height: 80%;' :'text-align: center; display: flex;justify-content: center;margin-top: 10px;align-items: center;height: 80%;'">
- <div class="cylindrical6">
- <div class="cylindrical6-container pos1 ">
- <div class="word">STT 1061</div>
- <!-- 进度条 -->
- <div class="progress-bar">
- <div class="progress-bar-inner bg1" :style="'width:100%'"></div>
- <!-- 数值 -->
- <div class="progress-bar-num" :style="'left: 75%;'">200</div>
- </div>
- </div>
- <div class="cylindrical6-container pos2 ">
- <div class="word">STT 1062</div>
- <!-- 进度条 -->
- <div class="progress-bar">
- <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
- <!-- 数值 -->
- <div class="progress-bar-num" :style="'left: 75%;'">200</div>
- </div>
- </div>
- <div class="cylindrical6-container pos3 ">
- <div class="word">STT 1063</div>
- <!-- 进度条 -->
- <div class="progress-bar">
- <div class="progress-bar-inner bg1" :style="'width:100%'"></div>
- <!-- 数值 -->
- <div class="progress-bar-num" :style="'left: 75%;'">200</div>
- </div>
- </div>
- <div class="cylindrical6-container pos4 ">
- <div class="word">STT 1064</div>
- <!-- 进度条 -->
- <div class="progress-bar">
- <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
- <!-- 数值 -->
- <div class="progress-bar-num" :style="'left: 75%;'">200</div>
- </div>
- </div>
- <div class="cylindrical6-container pos5 ">
- <div class="word">STT 1065</div>
- <!-- 进度条 -->
- <div class="progress-bar">
- <div class="progress-bar-inner bg2" :style="'width:100%'"></div>
- <!-- 数值 -->
- <div class="progress-bar-num" :style="'left: 75%;'">200</div>
- </div>
- </div>
- </div>
- <!-- <div style="position: relative;">
- <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<20">
- <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<40">
- <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<60">
- <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<80">
- <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtOne) && (dashboarddata.ehtOne)<100">
- <span class="modelTop pos">STT1061</span>
- <span class="ModelFont">{{ dashboarddata.ehtOne }}%</span>
- </div>
- <div style="position: relative; margin-left: 8% ;">
- <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<20">
- <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<40">
- <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<60">
- <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<80">
- <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtTwo) && (dashboarddata.ehtTwo)<100">
- <span class="modelTop pos">STT1062</span>
- <span class="ModelFont">{{ dashboarddata.ehtTwo }}%</span>
- </div>
- <div style="position: relative;margin-left: 8% ;">
- <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<20">
- <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<40">
- <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<60">
- <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<80">
- <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtThree) && (dashboarddata.ehtThree)<100">
- <span class="modelTop pos">STT1063</span>
- <span class="ModelFont">{{ dashboarddata.ehtThree }}%</span>
- </div>
- <div style="position: relative;margin-left: 8% ;">
- <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<20">
- <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<40">
- <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<60">
- <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<80">
- <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtFour) && (dashboarddata.ehtFour)<100">
- <span class="modelTop pos">STT1064</span>
- <span class="ModelFont">{{ dashboarddata.ehtFour }}%</span>
- </div>
- <div style="position: relative;margin-left: 8% ;">
- <img src="@/assets/image/cylindrical1.png" style="width:40px;height: 170px;" v-if="0<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<20">
- <img src="@/assets/image/cylindrical2.png" style="width:40px;height: 170px;" v-if="20<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<40">
- <img src="@/assets/image/cylindrical3.png" style="width:40px;height: 170px;" v-if="40<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<60">
- <img src="@/assets/image/cylindrical4.png" style="width:40px;height: 170px;" v-if="60<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<80">
- <img src="@/assets/image/cylindrical5.png" style="width:40px;height: 170px;" v-if="80<=(dashboarddata.ehtFive) && (dashboarddata.ehtFive)<100">
- <span class="modelTop pos">STT1065</span>
- <span class="ModelFont">{{ dashboarddata.ehtFive }}%</span>
- </div> -->
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- props: ['dashboarddata','transformdata'],
- data () {
- return {
- // 查询参数
- queryParams: {
- },
- }
- },
- }
- </script>
- <style lang="scss">
- #app-container-ethylene {
- padding: 0.2rem 0.2rem 0;
- height: 100%;
- min-width: 3.75rem;
- border-radius: 0.0625rem;
- .bg-color-black {
- height: 100%;
- border-radius: 0.125rem;
- width: 90%;
- margin: auto;
- }
- .text {
- color: #c3cbde;
- } //下滑线动态
- .decoration2 {
- position: absolute;
- right: 0.125rem;
- }
- .chart-box {
- margin-top: 0.2rem;
- width: 2.125rem;
- height: 2.125rem;
- .active-ring-name {
- padding-top: 0.125rem;
- }
- }
- .ModelFont {
- position: absolute;
- bottom: -13px;
- left: 0;
- }
- .modelTop{
- position: absolute;
- width: 12px;
- display: block;
- word-break: break-all;
- top: 25%;
- &.pos{
- right: 8%;
- color: #5c5b15;
- font-weight: bold;
- font-size: 12px;
- }
- }
- }
- .cylindrical6{
- background: url("../../assets/image/cylindrical6.png");
- width: 70%;
- height: 90%;
- background-size: 100% 100%;
- margin: 0 auto;
- position: relative;
- .word{
- color: #0c0d9f;
- font-size: 12px;
- font-weight: bold;
- }
- .cylindrical6-container{
- width:20%;
- position: absolute;
- &.pos1{
- top: 13%;
- left: 8%;
- }
- &.pos2{
- top: 67%;
- left: 8%;
- .progress-bar{
- margin-top:2px;
- }
- }
- &.pos3{
- top:11%;
- left: 44.7%;
- .progress-bar{
- margin-top:2px;
- }
- }
- &.pos4{
- top:67%;
- left: 44.4%;
- .progress-bar{
- margin-top:4px;
- }
- }
- &.pos5{
- top:37.7%;
- left: 73.4%;
- .progress-bar{
- margin-top:4px;
- }
- }
- }
- // 进度条
- .progress-bar{
- width: 100%;
- height: 4px;
- margin-top:1px;
- .progress-bar-inner{
- height: 100%;
- border-radius: 5px;
- &.bg1{
- background: #f87409;
- }
- &.bg2{
- background: #008aff;
- }
- }
- }
- // 数值
- .progress-bar-num{
- font-size:8px;
- color: #ffffff;
- text-align: center;
- background: #003473;
- border:1px solid #4b9afd;
- width: 20px;
- height: 10px;
- border-radius: 5px;
- position: absolute;
- top:60%;
-
- }
- }
- </style>
|