|
|
@@ -156,7 +156,7 @@
|
|
|
</view>
|
|
|
<view class="pagination">
|
|
|
<text class="pagination-btn prev-btn" @click="prevPage">上一页</text>
|
|
|
- <text class="pagination-info">{{currentPage}}/{{totalPages}}</text>
|
|
|
+ <text class="pagination-info">{{currentPage}}/{{totalPages || 1}}</text>
|
|
|
<text class="pagination-btn next-btn" @click="nextPage">下一页</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -287,11 +287,6 @@ export default {
|
|
|
components: {
|
|
|
floatButton,
|
|
|
},
|
|
|
- computed:{
|
|
|
- totalPages(){
|
|
|
- return Math.ceil(this.totalPage / this.page_size)
|
|
|
- }
|
|
|
- },
|
|
|
data() {
|
|
|
return {
|
|
|
setting,
|
|
|
@@ -362,6 +357,9 @@ export default {
|
|
|
this.equipStateDict = Circulation
|
|
|
},
|
|
|
computed: {
|
|
|
+ totalPages(){
|
|
|
+ return Math.ceil(this.totalPage / this.page_size)
|
|
|
+ },
|
|
|
formatDevImg() {
|
|
|
return `https://s3.hnyfwlw.com/webstaticimg/bigdata_app/image/${this.devImg}.png`;
|
|
|
},
|
|
|
@@ -380,7 +378,6 @@ export default {
|
|
|
},
|
|
|
deviceInfo:{
|
|
|
handler(newVal, oldVal){
|
|
|
- console.log(newVal.device_model,'device_modeldevice_modeldevice_model')
|
|
|
if (newVal.device_model == '11'){
|
|
|
this.devImg = 'cbd4.1'
|
|
|
this.isShowPhoto = true
|
|
|
@@ -783,6 +780,7 @@ export default {
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
transition: all 0.3s ease;
|
|
|
+ background: #ffffff;
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
.general-icon{
|
|
|
width: 50rpx;
|
|
|
@@ -800,6 +798,7 @@ export default {
|
|
|
width: 80rpx;
|
|
|
height: 80rpx;
|
|
|
border-radius: 50%;
|
|
|
+ background: #ffffff;
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
|
display:flex;
|
|
|
align-items: center;
|