xsh_1997 1 mese fa
parent
commit
0807e3a09d

+ 11 - 4
ruoyi-ui/src/views/livestockIndustry/breedingIndustry/index.vue

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