|
@@ -2,7 +2,8 @@
|
|
<!-- 钢瓶状态 -->
|
|
<!-- 钢瓶状态 -->
|
|
<div class="card_cylinder_condition">
|
|
<div class="card_cylinder_condition">
|
|
<!-- 重瓶区域 -->
|
|
<!-- 重瓶区域 -->
|
|
- <div class="card_bottle">
|
|
|
|
|
|
+ <div class="card_bottle" v-loading="bottleLoading" element-loading-text="拼命加载中"
|
|
|
|
+ element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.3)">
|
|
<div class="card_district">
|
|
<div class="card_district">
|
|
<div class="herderArea center_in title_green">重瓶区</div>
|
|
<div class="herderArea center_in title_green">重瓶区</div>
|
|
<div class="same_row_in card_add_cylinder">
|
|
<div class="same_row_in card_add_cylinder">
|
|
@@ -29,7 +30,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 空瓶区 -->
|
|
<!-- 空瓶区 -->
|
|
- <div class="card_bottle">
|
|
|
|
|
|
+ <div class="card_bottle" v-loading="emptyLoading" element-loading-text="拼命加载中"
|
|
|
|
+ element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.3)">
|
|
<div class="card_district">
|
|
<div class="card_district">
|
|
<div class="herderArea center_in title_yellow">空瓶区</div>
|
|
<div class="herderArea center_in title_yellow">空瓶区</div>
|
|
<div class="same_row_in card_add_cylinder">
|
|
<div class="same_row_in card_add_cylinder">
|
|
@@ -60,7 +62,8 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- 不合格瓶区 -->
|
|
<!-- 不合格瓶区 -->
|
|
- <div class="card_bottle">
|
|
|
|
|
|
+ <div class="card_bottle" v-loading="defectiveLoading" element-loading-text="拼命加载中"
|
|
|
|
+ element-loading-spinner="el-icon-loading" element-loading-background="rgba(0, 0, 0, 0.3)">
|
|
<div class="card_district">
|
|
<div class="card_district">
|
|
<div class="herderArea center_in title_red">不合格瓶区</div>
|
|
<div class="herderArea center_in title_red">不合格瓶区</div>
|
|
<div class="card_tabs_abnormal">
|
|
<div class="card_tabs_abnormal">
|
|
@@ -205,6 +208,9 @@
|
|
codeType: 1,
|
|
codeType: 1,
|
|
// 报废(scrap)超期(extended)
|
|
// 报废(scrap)超期(extended)
|
|
tabsStatus: 'extended',
|
|
tabsStatus: 'extended',
|
|
|
|
+ bottleLoading: false,
|
|
|
|
+ emptyLoading: false,
|
|
|
|
+ defectiveLoading: false,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -214,6 +220,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList(state) {
|
|
getList(state) {
|
|
|
|
+ this.bottleLoading = true
|
|
getCylinderStatus({
|
|
getCylinderStatus({
|
|
page: this.Pagination.PageIndex,
|
|
page: this.Pagination.PageIndex,
|
|
pageSize: this.Pagination.PageSize,
|
|
pageSize: this.Pagination.PageSize,
|
|
@@ -224,9 +231,11 @@
|
|
this.bottleData = res.data.list
|
|
this.bottleData = res.data.list
|
|
this.Pagination.Total = res.data.count
|
|
this.Pagination.Total = res.data.count
|
|
}
|
|
}
|
|
|
|
+ this.bottleLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList1(state) {
|
|
getList1(state) {
|
|
|
|
+ this.emptyLoading = true
|
|
getCylinderStatus({
|
|
getCylinderStatus({
|
|
page: this.Pagination1.PageIndex,
|
|
page: this.Pagination1.PageIndex,
|
|
pageSize: this.Pagination1.PageSize,
|
|
pageSize: this.Pagination1.PageSize,
|
|
@@ -237,9 +246,11 @@
|
|
this.bottleData1 = res.data.list
|
|
this.bottleData1 = res.data.list
|
|
this.Pagination1.Total = res.data.count
|
|
this.Pagination1.Total = res.data.count
|
|
}
|
|
}
|
|
|
|
+ this.emptyLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
getList2(state) {
|
|
getList2(state) {
|
|
|
|
+ this.defectiveLoading = true
|
|
getCylinderStatus({
|
|
getCylinderStatus({
|
|
page: this.Pagination2.PageIndex,
|
|
page: this.Pagination2.PageIndex,
|
|
pageSize: this.Pagination2.PageSize,
|
|
pageSize: this.Pagination2.PageSize,
|
|
@@ -250,6 +261,7 @@
|
|
this.bottleData2 = res.data.list
|
|
this.bottleData2 = res.data.list
|
|
this.Pagination2.Total = res.data.count
|
|
this.Pagination2.Total = res.data.count
|
|
}
|
|
}
|
|
|
|
+ this.defectiveLoading = false
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 切换显示不合格瓶/超期。报废
|
|
// 切换显示不合格瓶/超期。报废
|
|
@@ -500,7 +512,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
.card_bottle {
|
|
.card_bottle {
|
|
- padding: 10px 10px 15px 10px;
|
|
|
|
|
|
+ margin: 10px 10px 15px 10px;
|
|
flex: 1;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
|