add: two new keys
This commit is contained in:
@@ -38,7 +38,7 @@ export default function LiveStocks() {
|
|||||||
? `/herd/web/api/v1/rancher/${farmid}/rancher_dashboard/`
|
? `/herd/web/api/v1/rancher/${farmid}/rancher_dashboard/`
|
||||||
: "/herd/web/api/v1/rancher/rancher_main_dashboard/",
|
: "/herd/web/api/v1/rancher/rancher_main_dashboard/",
|
||||||
queryKey: ["HerdsDashboard"],
|
queryKey: ["HerdsDashboard"],
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const handleUpdate = () => {
|
const handleUpdate = () => {
|
||||||
@@ -63,10 +63,10 @@ export default function LiveStocks() {
|
|||||||
item?.activity === "I"
|
item?.activity === "I"
|
||||||
? "صنعتی"
|
? "صنعتی"
|
||||||
: item?.activity === "V"
|
: item?.activity === "V"
|
||||||
? "روستایی"
|
? "روستایی"
|
||||||
: item?.activity === "N"
|
: item?.activity === "N"
|
||||||
? "عشایری"
|
? "عشایری"
|
||||||
: "-",
|
: "-",
|
||||||
item?.epidemiologic,
|
item?.epidemiologic,
|
||||||
parseInt(item?.light_livestock_number)?.toLocaleString(),
|
parseInt(item?.light_livestock_number)?.toLocaleString(),
|
||||||
parseInt(item?.heavy_livestock_number)?.toLocaleString(),
|
parseInt(item?.heavy_livestock_number)?.toLocaleString(),
|
||||||
@@ -156,6 +156,8 @@ export default function LiveStocks() {
|
|||||||
"تعداد دام سنگین",
|
"تعداد دام سنگین",
|
||||||
"تعداد دام سبک",
|
"تعداد دام سبک",
|
||||||
"مجموع وزن خرید از سهمیه ها",
|
"مجموع وزن خرید از سهمیه ها",
|
||||||
|
"تعداد دام های فعال",
|
||||||
|
"تعداد دام های غیرفعال",
|
||||||
"جزئیات",
|
"جزئیات",
|
||||||
]
|
]
|
||||||
: [
|
: [
|
||||||
@@ -186,6 +188,10 @@ export default function LiveStocks() {
|
|||||||
"0",
|
"0",
|
||||||
DashboardData?.total_purchase_weight?.toLocaleString() ||
|
DashboardData?.total_purchase_weight?.toLocaleString() ||
|
||||||
"0",
|
"0",
|
||||||
|
DashboardData?.total_active_livestock_count?.toLocaleString() ||
|
||||||
|
"0",
|
||||||
|
DashboardData?.total_deactive_livestock_count?.toLocaleString() ||
|
||||||
|
"0",
|
||||||
<TableButton
|
<TableButton
|
||||||
size="small"
|
size="small"
|
||||||
key={DashboardData}
|
key={DashboardData}
|
||||||
|
|||||||
Reference in New Issue
Block a user