|
@@ -152,8 +152,8 @@ class IndexService extends CrudService {
|
|
|
const data = statusList.map(i => {
|
|
|
const { label, value } = i;
|
|
|
const r = res.find(f => f._id === value);
|
|
|
- const obj = { label, count: 0 };
|
|
|
- if (r) obj.count = r.count;
|
|
|
+ const obj = { label, value: 0 };
|
|
|
+ if (r) obj.value = r.value;
|
|
|
return obj;
|
|
|
});
|
|
|
return data;
|