jabin hace 2 años
padre
commit
fedd676e8f
Se han modificado 3 ficheros con 6 adiciones y 6 borrados
  1. 2 2
      pages/home/components/navigation.vue
  2. 1 1
      pages/index/index.scss
  3. 3 3
      pages/index/index.vue

+ 2 - 2
pages/home/components/navigation.vue

@@ -58,7 +58,7 @@
 		watch: {
 			workOrder: {
 				handler(newV, oldV) {
-					this.workList[0].badge = String(newV.total)
+					this.workList[0].badge = newV.total
 				},
 				deep: true
 			}
@@ -131,7 +131,7 @@
 			.badge {
 				position: absolute;
 				top: -8rpx;
-				left: 125rpx;
+				left: 130rpx;
 				font-size: 24rpx;
 				padding: 0rpx 10rpx;
 				border-radius: 38rpx;

+ 1 - 1
pages/index/index.scss

@@ -32,7 +32,7 @@ page{
 			.badge {
 				position: absolute;
 				top: -8rpx;
-				left: 125rpx;
+				left: 140rpx;
 				font-size: 24rpx;
 				padding: 0rpx 10rpx;
 				border-radius: 38rpx;

+ 3 - 3
pages/index/index.vue

@@ -329,9 +329,9 @@
 				statistics().then(res=>{
 					this.workOrder = res
 					this.operationsList.forEach(item=>{
-						if(item.name=='保养工单') item.badge = String(res.maintenanceNum)
-						if(item.name=='巡点检工单') item.badge = String(res.patrolInspection)
-						if(item.name=='量具送检工单') item.badge = String(res.quantityNum)
+						if(item.name=='保养工单') item.badge = res.maintenanceNum
+						if(item.name=='巡点检工单') item.badge = res.patrolInspection
+						if(item.name=='量具送检工单') item.badge = res.quantityNum
 						// if(item.badge)
 					})
 				})