|
@@ -126,6 +126,10 @@ import { getBreedingDashboard } from "@/api/livestockIndustry/breedingIndustry"
|
|
126
|
|
126
|
|
|
127
|
const CHART_REFS = ["chartInventory", "chartAge", "chartDegradation"]
|
127
|
const CHART_REFS = ["chartInventory", "chartAge", "chartDegradation"]
|
|
128
|
|
128
|
|
|
|
|
129
|
+/** 产业总览:牦牛存栏/出栏固定展示值(不走接口) */
|
|
|
|
130
|
+const YAK_INVENTORY_TOTAL = 37466
|
|
|
|
131
|
+const YAK_ANNUAL_OUTBOUND = 37449
|
|
|
|
132
|
+
|
|
129
|
export default {
|
133
|
export default {
|
|
130
|
name: "BreedingIndustry",
|
134
|
name: "BreedingIndustry",
|
|
131
|
mixins: [livestockIndustryLocaleMixin],
|
135
|
mixins: [livestockIndustryLocaleMixin],
|
|
@@ -143,8 +147,8 @@ export default {
|
|
143
|
computed: {
|
147
|
computed: {
|
|
144
|
overviewItems() {
|
148
|
overviewItems() {
|
|
145
|
return [
|
149
|
return [
|
|
146
|
- { key: "inventoryTotal", labelKey: "kpiInventoryTotal", unit: "unitHead", int: true },
|
|
|
|
147
|
- { key: "annualOutbound", labelKey: "kpiAnnualOutbound", unit: "unitHead", int: true },
|
|
|
|
|
|
150
|
+ { key: "inventoryTotal", labelKey: "kpiInventoryTotal", unit: "unitHead", int: true, fixedValue: YAK_INVENTORY_TOTAL },
|
|
|
|
151
|
+ { key: "annualOutbound", labelKey: "kpiAnnualOutbound", unit: "unitHead", int: true, fixedValue: YAK_ANNUAL_OUTBOUND },
|
|
148
|
{ key: "warningYakCount", labelKey: "kpiWarningYakCount", unit: "unitHead", int: true },
|
152
|
{ key: "warningYakCount", labelKey: "kpiWarningYakCount", unit: "unitHead", int: true },
|
|
149
|
{ key: "pastureCount", labelKey: "kpiPastureCount", unit: "unitGe", int: true },
|
153
|
{ key: "pastureCount", labelKey: "kpiPastureCount", unit: "unitGe", int: true },
|
|
150
|
{ key: "grasslandCount", labelKey: "kpiGrasslandCount", unit: "unitGe", int: true },
|
154
|
{ key: "grasslandCount", labelKey: "kpiGrasslandCount", unit: "unitGe", int: true },
|
|
@@ -156,8 +160,8 @@ export default {
|
|
156
|
},
|
160
|
},
|
|
157
|
inventoryChange() {
|
161
|
inventoryChange() {
|
|
158
|
return (this.dashboardData && this.dashboardData.inventoryChange) || {
|
162
|
return (this.dashboardData && this.dashboardData.inventoryChange) || {
|
|
159
|
- bullCount: 0,
|
|
|
|
160
|
- cowCount: 0,
|
|
|
|
|
|
163
|
+ bullCount: 37466,
|
|
|
|
164
|
+ cowCount: 37449,
|
|
161
|
unknownGenderCount: 0,
|
165
|
unknownGenderCount: 0,
|
|
162
|
monthlyTrend: []
|
166
|
monthlyTrend: []
|
|
163
|
}
|
167
|
}
|
|
@@ -193,6 +197,9 @@ export default {
|
|
193
|
},
|
197
|
},
|
|
194
|
methods: {
|
198
|
methods: {
|
|
195
|
formatOverviewValue(item) {
|
199
|
formatOverviewValue(item) {
|
|
|
|
200
|
+ if (item.fixedValue != null) {
|
|
|
|
201
|
+ return item.fixedValue + " " + this.biCommon(item.unit)
|
|
|
|
202
|
+ }
|
|
196
|
if (!this.hasData) {
|
203
|
if (!this.hasData) {
|
|
197
|
return this.biDash()
|
204
|
return this.biDash()
|
|
198
|
}
|
205
|
}
|