occupy 或 occupy 中数据为-1 或小于0的数据则过滤 #15

Open
opened 2024-11-29 12:13:02 +08:00 by yunhorn · 1 comment
Owner

例如正常数据为 data: [0,1,0,1], 但服务器可能只计算某一个位置的数据,其他数据都为-1, 这时候数据会为 data: [0,-1,-1,-1] , 前端需要进行过滤,只处理 >=0 的数据.

例如正常数据为 data: [0,1,0,1], 但服务器可能只计算某一个位置的数据,其他数据都为-1, 这时候数据会为 data: [0,-1,-1,-1] , 前端需要进行过滤,只处理 >=0 的数据.
jeff was assigned by yunhorn 2024-11-29 12:13:02 +08:00
Author
Owner

但这只适合处理显示每一个数据的情况, 如果是显示一个总的空闲数字的情况似乎不适合

但这只适合处理显示每一个数据的情况, 如果是显示一个总的空闲数字的情况似乎不适合
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: smartoilets-front/projects#15
No description provided.