|
@@ -40,10 +40,20 @@
|
|
<div class="name">
|
|
<div class="name">
|
|
<CusEllipsis :value="item.name"/>
|
|
<CusEllipsis :value="item.name"/>
|
|
</div>
|
|
</div>
|
|
- <div class="bar">
|
|
|
|
- <div class="bar-able" :style="`width: calc(100% * ${(item.able / (qyfb[0].able + qyfb[0].unable)).toFixed(1)})`">{{item.able}}</div>
|
|
|
|
- <div class="bar-unable" :style="`width: calc(100% * ${(item.unable / (qyfb[0].able + qyfb[0].unable)).toFixed(1)})`">{{item.unable}}</div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <el-popover placement="right" trigger="hover" effect="dark" popper-class="__power-qyfb-popper">
|
|
|
|
+ <template #reference>
|
|
|
|
+ <div class="bar __hover">
|
|
|
|
+ <div class="bar-able" :style="`width: calc(100% * ${(item.able / (qyfb[0].able + qyfb[0].unable)).toFixed(1)})`">{{item.able}}</div>
|
|
|
|
+ <div class="bar-unable" :style="`width: calc(100% * ${(item.unable / (qyfb[0].able + qyfb[0].unable)).toFixed(1)})`">{{item.unable}}</div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ <div>
|
|
|
|
+ {{ item.name }}<br/>
|
|
|
|
+ 总数:{{item.able + item.unable}}<br/>
|
|
|
|
+ 可调度:{{item.able}}<br/>
|
|
|
|
+ 未上线:{{item.unable}}
|
|
|
|
+ </div>
|
|
|
|
+ </el-popover>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
@@ -393,8 +403,10 @@ export default defineComponent({
|
|
>div{
|
|
>div{
|
|
padding: 0 6px;
|
|
padding: 0 6px;
|
|
font-size: 12px;
|
|
font-size: 12px;
|
|
- color: #FFFFFF;
|
|
|
|
- min-width: fit-content;
|
|
|
|
|
|
+ //color: #FFFFFF;
|
|
|
|
+ //min-width: fit-content;
|
|
|
|
+ color: transparent;
|
|
|
|
+ min-width: 10px;
|
|
}
|
|
}
|
|
.bar-able {
|
|
.bar-able {
|
|
height: 100%;
|
|
height: 100%;
|