|
@@ -39,26 +39,12 @@
|
|
|
<table-2 :data="tableData" :height="'88vh'">
|
|
|
<template v-for="(item, i) in column" :key="i" #[item]="scope">
|
|
|
<div class="bar">
|
|
|
- <div class="bar-percent" :style="{
|
|
|
- width:
|
|
|
- (scope.data.count &&
|
|
|
- scope.data.count / (scope.data.count + scope.data.time)) *
|
|
|
- 100 +
|
|
|
- 'px',
|
|
|
- }"></div>
|
|
|
- <span class="value">{{
|
|
|
- scope.data.count && scope.data.count
|
|
|
- }}</span>
|
|
|
+ <div class="bar-percent" :style="{ width: scope?.data?.countStyle }"> </div>
|
|
|
+ <span class="value">{{ scope?.data?.count }} 次数</span>
|
|
|
</div>
|
|
|
<div class="bar">
|
|
|
- <div class="bar-percent" :style="{
|
|
|
- width:
|
|
|
- (scope.data.count &&
|
|
|
- scope.data.time / (scope.data.count + scope.data.time)) *
|
|
|
- 100 +
|
|
|
- 'px',
|
|
|
- }"></div>
|
|
|
- <span class="value">{{ scope.data.count && scope.data.time }}</span>
|
|
|
+ <div class="bar-percent" :style="{ width: scope?.data?.timeStyle}"></div>
|
|
|
+ <span class="value">{{scope?.data?.time }} 分钟</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
</table-2>
|
|
@@ -210,6 +196,7 @@ export default {
|
|
|
},
|
|
|
async searchData () {
|
|
|
const { data } = await this.API.requestData({
|
|
|
+ showLoading:true,
|
|
|
baseURL: "http://192.168.1.18:8075/",
|
|
|
subUrl: "shutdown/list",
|
|
|
data: {
|