|
@@ -31,65 +31,74 @@
|
|
|
</el-row>
|
|
|
|
|
|
<div class="charts">
|
|
|
- <normal-card shadow="always" >
|
|
|
+ <normal-card shadow="always" bodyStyle="{height:'400px'}">
|
|
|
<template slot="content">
|
|
|
-
|
|
|
-
|
|
|
- <div class="pie-left-content">
|
|
|
- <base-pie-chart
|
|
|
- :options="pieOptionsA"
|
|
|
- height="300px"
|
|
|
- width="100%"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div class="pie-right-content" style="padding-top:40px;">
|
|
|
- <div class="content-item-head">共有19台设备 <span class="triangle"></span> </div>
|
|
|
- <div class="content-item bg-color1" @click="showTable(1)">有效期内15台 <span class="triangle2"></span> </div>
|
|
|
- <div class="content-item bg-color3" @click="showTable(2)">已失效4台 (小于15天)<span class="triangle4"></span> </div>
|
|
|
-
|
|
|
-
|
|
|
- </div>
|
|
|
+ <div class="content-box">
|
|
|
+
|
|
|
+ <div class="content-item-head">共有19台设备 <span class="triangle"></span> </div>
|
|
|
+ <div class="pie-left-content">
|
|
|
+ <base-pie-chart
|
|
|
+ :options="pieOptionsA"
|
|
|
+ height="300px"
|
|
|
+ width="100%"
|
|
|
+ />
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="pie-right-content" style="padding-top:80px;">
|
|
|
+
|
|
|
+ <div class="content-item bg-color1" @click="showTable(1)">有效期内15台 <span class="triangle2"></span> </div>
|
|
|
+ <div class="content-item bg-color3" @click="showTable(2)">已失效4台 (小于15天)<span class="triangle4"></span> </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
|
|
|
- <div class="pie-left-content">
|
|
|
- <base-pie-chart
|
|
|
- :options="pieOptionsC"
|
|
|
- height="300px"
|
|
|
- width="100%"
|
|
|
- />
|
|
|
</div>
|
|
|
- <div class="pie-right-content">
|
|
|
- <div class="content-item" >
|
|
|
- <el-select v-model="queryParam.days" class="filter-item form-search-input fl" placeholder="时间段" >
|
|
|
- <el-option
|
|
|
- v-for="item in daysOptions"
|
|
|
- :key="item.value"
|
|
|
- :label="item.text"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+
|
|
|
+ <div class="content-box">
|
|
|
+ <div class="content-item-head">共有19台设备 <span class="triangle"></span> </div>
|
|
|
+ <div class="pie-left-content">
|
|
|
+ <base-pie-chart
|
|
|
+ :options="pieOptionsC"
|
|
|
+ height="300px"
|
|
|
+ width="100%"
|
|
|
+ />
|
|
|
</div>
|
|
|
-
|
|
|
- <div class="content-item-head">共有19台设备 <span class="triangle"></span> </div>
|
|
|
- <div class="content-item bg-color1" @click="showTable(3)">已维护14台<span class="triangle2"></span> </div>
|
|
|
- <div class="content-item bg-color3" @click="showTable(4)">未维护5台<span class="triangle4"></span> </div>
|
|
|
+ <div class="pie-right-content" style="padding-top:20px;">
|
|
|
+ <div class="content-item" >
|
|
|
+ <el-select v-model="queryParam.days" class="filter-item form-search-input fl" placeholder="时间段" >
|
|
|
+ <el-option
|
|
|
+ v-for="item in daysOptions"
|
|
|
+ :key="item.value"
|
|
|
+ :label="item.text"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="content-item bg-color1" @click="showTable(3)">已维护14台<span class="triangle2"></span> </div>
|
|
|
+ <div class="content-item bg-color3" @click="showTable(4)">未维护5台<span class="triangle4"></span> </div>
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="pie-left-content">
|
|
|
- <base-pie-chart
|
|
|
- :options="pieOptionsB"
|
|
|
- height="300px"
|
|
|
- width="100%"
|
|
|
- />
|
|
|
- </div>
|
|
|
- <div class="pie-right-content">
|
|
|
-
|
|
|
+ <div class="content-box">
|
|
|
<div class="content-item-head">有效期内30台 <span class="triangle"></span> </div>
|
|
|
- <div class="content-item bg-color1" @click="showTable(5)"> 有效使用20台(大于45天) <span class="triangle2"></span> </div>
|
|
|
- <div class="content-item bg-color2" @click="showTable(6)"> 警告失效4台(15天~45天) <span class="triangle3"></span> </div>
|
|
|
- <div class="content-item bg-color3" @click="showTable(7)"> 失效6台(0~15天) <span class="triangle4"></span> </div>
|
|
|
-
|
|
|
+ <div class="pie-left-content">
|
|
|
+ <base-pie-chart
|
|
|
+ :options="pieOptionsB"
|
|
|
+ height="300px"
|
|
|
+ width="100%"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="pie-right-content" style="padding-top:80px;">
|
|
|
+
|
|
|
+
|
|
|
+ <div class="content-item2 bg-color1" @click="showTable(5)"> 有效使用20台(大于45天) <span class="triangle2"></span> </div>
|
|
|
+ <div class="content-item2 bg-color2" @click="showTable(6)"> 警告失效4台(15天~45天) <span class="triangle3"></span> </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</normal-card>
|
|
@@ -103,7 +112,7 @@
|
|
|
<el-table-column label="出厂编号" prop="number" align="center" />
|
|
|
<el-table-column label="上次所在位置" prop="address" align="center" />
|
|
|
<el-table-column label="有效截止时间" prop="online_time" align="center" />
|
|
|
- <el-table-column label="未使用天数" prop="unused_days" align="center" />
|
|
|
+ <el-table-column label="有效天数" prop="unused_days" align="center" />
|
|
|
<el-table-column label="备注" prop="remarks" align="center" />
|
|
|
</el-table>
|
|
|
</div>
|
|
@@ -277,12 +286,14 @@ export default {
|
|
|
return {
|
|
|
color:['#91cc75', '#94a6b7'],
|
|
|
title: {
|
|
|
- text: "表A",
|
|
|
+ text: "检验状态分析",
|
|
|
textStyle: {
|
|
|
color: '#80a0b0',
|
|
|
fontSize: 16,
|
|
|
fontWeight: 600
|
|
|
- }
|
|
|
+ },
|
|
|
+ bottom:'10',
|
|
|
+ left:'center',
|
|
|
},
|
|
|
tooltip: {
|
|
|
formatter: '数量<br/>{b0}:{c0}'
|
|
@@ -309,12 +320,14 @@ export default {
|
|
|
return {
|
|
|
color:['#91cc75', '#1890ff', '#94a6b7'],
|
|
|
title: {
|
|
|
- text: "表B",
|
|
|
+ text: "有效状态分析",
|
|
|
textStyle: {
|
|
|
color: '#80a0b0',
|
|
|
fontSize: 16,
|
|
|
fontWeight: 600
|
|
|
- }
|
|
|
+ },
|
|
|
+ bottom:'10',
|
|
|
+ left:'center',
|
|
|
},
|
|
|
tooltip: {
|
|
|
formatter: '设备数量<br/>{b0}:{c0}'
|
|
@@ -341,12 +354,14 @@ export default {
|
|
|
return {
|
|
|
color:['#91cc75', '#94a6b7'],
|
|
|
title: {
|
|
|
- text: "表C",
|
|
|
+ text: "维护状态分析",
|
|
|
textStyle: {
|
|
|
color: '#80a0b0',
|
|
|
fontSize: 16,
|
|
|
fontWeight: 600
|
|
|
- }
|
|
|
+ },
|
|
|
+ bottom:'10',
|
|
|
+ left:'center',
|
|
|
},
|
|
|
tooltip: {
|
|
|
formatter: '数量<br/>{b0}:{c0}'
|
|
@@ -408,8 +423,14 @@ export default {
|
|
|
.filter-container{
|
|
|
margin-bottom: 30px;
|
|
|
}
|
|
|
+.content-box{
|
|
|
+ width: 33%;
|
|
|
+ height:100%;
|
|
|
+
|
|
|
+ float: left;
|
|
|
+}
|
|
|
.pie-left-content{
|
|
|
- width:25%;
|
|
|
+ width:50%;
|
|
|
height:100%;
|
|
|
float: left;
|
|
|
margin-bottom: 20px;
|
|
@@ -417,12 +438,12 @@ export default {
|
|
|
border-right:0px;
|
|
|
}
|
|
|
.pie-right-content{
|
|
|
- width:20%;
|
|
|
+ width:50%;
|
|
|
height:100%;
|
|
|
float: left;
|
|
|
margin-bottom: 20px;
|
|
|
// border:1px solid #1d5d99;
|
|
|
- margin-right: 20px;
|
|
|
+
|
|
|
border-left:0px;
|
|
|
|
|
|
|
|
@@ -430,8 +451,8 @@ export default {
|
|
|
.content-item-head{
|
|
|
width:90%;
|
|
|
max-width:260px;
|
|
|
- min-width:200px;
|
|
|
- margin-top:30px;
|
|
|
+ min-width:180px;
|
|
|
+ margin-top:5px;
|
|
|
background-color:#1d5d99;
|
|
|
color: #FFF;
|
|
|
height:30px;
|
|
@@ -449,6 +470,17 @@ export default {
|
|
|
.content-item{
|
|
|
width:90%;
|
|
|
max-width:260px;
|
|
|
+ min-width:180px;
|
|
|
+ height:26px;
|
|
|
+ margin-top:30px;
|
|
|
+ padding:0px 10px;
|
|
|
+ line-height:26px;
|
|
|
+
|
|
|
+ color: #FFF;
|
|
|
+}
|
|
|
+.content-item2{
|
|
|
+ width:90%;
|
|
|
+ max-width:260px;
|
|
|
min-width:200px;
|
|
|
height:26px;
|
|
|
margin-top:30px;
|