|
@@ -138,8 +138,15 @@ func (s *StoreEntry) CowSourceEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
})
|
|
|
return cowSourceList
|
|
|
}
|
|
|
-func (s *StoreEntry) CowTypeEnumList(optionName string) []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) CowTypeEnumList(optionName, isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
cowTypeList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.CowType_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
if optionName == "breed" {
|
|
|
cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.CowType_Reserve_Calf),
|
|
@@ -186,8 +193,15 @@ func (s *StoreEntry) CowTypeEnumList(optionName string) []*pasturePb.ConfigOptio
|
|
|
return cowTypeList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) SameTimeCowTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) SameTimeCowTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
cowTypeList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.SameTimeStatus_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.SameTimeCowType_Empty),
|
|
|
Label: "空怀牛",
|
|
@@ -200,8 +214,15 @@ func (s *StoreEntry) SameTimeCowTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return cowTypeList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) SameTimeTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) SameTimeTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
cowTypeList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.SameTimeStatus_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.SameTimeType_PGBJ),
|
|
|
Label: "PG保健",
|
|
@@ -222,7 +243,7 @@ func (s *StoreEntry) SameTimeTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return cowTypeList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) ImmunizationCowTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) ImmunizationCowTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
cowTypeList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.CowType_Lactating_Calf),
|
|
@@ -256,8 +277,15 @@ func (s *StoreEntry) ImmunizationCowTypeEnumList() []*pasturePb.ConfigOptionsLis
|
|
|
return cowTypeList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) ImmunizationConditionsEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) ImmunizationConditionsEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
cowTypeList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.ImmunizationConditions_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
cowTypeList = append(cowTypeList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.ImmunizationConditions_Days_Age),
|
|
|
Label: "日龄",
|
|
@@ -282,8 +310,15 @@ func (s *StoreEntry) ImmunizationConditionsEnumList() []*pasturePb.ConfigOptions
|
|
|
return cowTypeList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) TransferPenEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) TransferPenEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
transferPenList := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ transferPenList = append(transferPenList, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.TransferPenReason_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
transferPenList = append(transferPenList, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.TransferPenReason_Normal),
|
|
|
Label: "正常转群",
|
|
@@ -308,8 +343,16 @@ func (s *StoreEntry) TransferPenEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return transferPenList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) ChildNumberEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) ChildNumberEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.ChildNumber_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.ChildNumber_One),
|
|
@@ -331,8 +374,16 @@ func (s *StoreEntry) ChildNumberEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) CalvingLevelEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) CalvingLevelEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.CalvingLevel_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.CalvingLevel_Natural_Childbirth),
|
|
@@ -354,8 +405,16 @@ func (s *StoreEntry) CalvingLevelEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) DystociaReasonEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) DystociaReasonEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DystociaReason_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.DystociaReason_Malposition),
|
|
@@ -381,8 +440,16 @@ func (s *StoreEntry) DystociaReasonEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) PregnantCheckResultEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) PregnantCheckResultEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.PregnantCheckResult_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.PregnantCheckResult_Pregnant),
|
|
|
Label: "有胎",
|
|
@@ -395,8 +462,14 @@ func (s *StoreEntry) PregnantCheckResultEnumList() []*pasturePb.ConfigOptionsLis
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) PregnantCheckMethodEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) PregnantCheckMethodEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.PregnantCheckMethod_Invalid),
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.PregnantCheckMethod_B_Ultrasound),
|
|
|
Label: "B超",
|
|
@@ -413,8 +486,16 @@ func (s *StoreEntry) PregnantCheckMethodEnumList() []*pasturePb.ConfigOptionsLis
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) DrugCategoryEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) DrugCategoryEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DrugCategory_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.DrugCategory_Antibiotics),
|
|
|
Label: "抗生素类",
|
|
@@ -479,8 +560,16 @@ func (s *StoreEntry) DrugCategoryEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) DrugUsageEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) DrugUsageEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DrugUsage_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.DrugUsage_Oral_Medications),
|
|
@@ -506,7 +595,7 @@ func (s *StoreEntry) DrugUsageEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) UnitEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) UnitEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
@@ -553,8 +642,17 @@ func (s *StoreEntry) UnitEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) ExposeEstrusTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) ExposeEstrusTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.ExposeEstrusType_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.ExposeEstrusType_Neck_Ring),
|
|
@@ -572,8 +670,16 @@ func (s *StoreEntry) ExposeEstrusTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) FrozenSemenTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) FrozenSemenTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions,
|
|
|
+ &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.FrozenSemenType_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.FrozenSemenType_Ordinary),
|
|
@@ -587,7 +693,7 @@ func (s *StoreEntry) FrozenSemenTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) BullNumberEnumList() []*pasturePb.BullOptionsList {
|
|
|
+func (s *StoreEntry) BullNumberEnumList(isAll string) []*pasturePb.BullOptionsList {
|
|
|
frozenSemenList := make([]*model.FrozenSemen, 0)
|
|
|
bullNumberList := make([]*pasturePb.BullOptionsList, 0)
|
|
|
if err := s.DB.Where("quantity > 0").Group("bull_id").Find(&frozenSemenList).Error; err != nil {
|
|
@@ -604,7 +710,7 @@ func (s *StoreEntry) BullNumberEnumList() []*pasturePb.BullOptionsList {
|
|
|
return bullNumberList
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WeekEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) WeekEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions,
|
|
|
&pasturePb.ConfigOptionsList{
|
|
@@ -639,7 +745,7 @@ func (s *StoreEntry) WeekEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) MonthEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) MonthEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
for v := 1; v <= 31; v++ {
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
@@ -651,7 +757,7 @@ func (s *StoreEntry) MonthEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WorkOrderFrequencyEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) WorkOrderFrequencyEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.WorkOrderFrequency_None),
|
|
@@ -673,7 +779,7 @@ func (s *StoreEntry) WorkOrderFrequencyEnumList() []*pasturePb.ConfigOptionsList
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WorkOrderSubUnitEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) WorkOrderSubUnitEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.WorkOrderSubscribeUnit_Person),
|
|
@@ -687,7 +793,7 @@ func (s *StoreEntry) WorkOrderSubUnitEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WorkOrderPriorityEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) WorkOrderPriorityEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.Priority_Low),
|
|
@@ -705,7 +811,7 @@ func (s *StoreEntry) WorkOrderPriorityEnumList() []*pasturePb.ConfigOptionsList
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) WorkOrderCategoryEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) WorkOrderCategoryEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.WorkOrderCategory_Health),
|
|
@@ -731,8 +837,15 @@ func (s *StoreEntry) WorkOrderCategoryEnumList() []*pasturePb.ConfigOptionsList
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func CalendarTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func CalendarTypeEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.SameTimeStatus_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.CalendarType_Immunisation),
|
|
|
Label: "免疫",
|
|
@@ -769,8 +882,15 @@ func CalendarTypeEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) AbortionReasonsEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) AbortionReasonsEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.AbortionReasons_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.AbortionReasons_Mechanical_Abortion),
|
|
|
Label: "机械性流产",
|
|
@@ -811,8 +931,16 @@ func (s *StoreEntry) AbortionReasonsEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
return configOptions
|
|
|
}
|
|
|
|
|
|
-func (s *StoreEntry) HealthStatusEnumList() []*pasturePb.ConfigOptionsList {
|
|
|
+func (s *StoreEntry) HealthStatusEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.HealthStatus_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
Value: int32(pasturePb.HealthStatus_Health),
|
|
|
Label: "健康",
|