|
@@ -526,11 +526,11 @@ func (s *StoreEntry) CalvingAnalysisMethodEnumList(isAll string) []*pasturePb.Co
|
|
|
})
|
|
|
}
|
|
|
configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalvingAnalysisMethod_months),
|
|
|
+ Value: int32(pasturePb.CalvingAnalysisMethod_Months),
|
|
|
Label: "按月份统计",
|
|
|
Disabled: true,
|
|
|
}, &pasturePb.ConfigOptionsList{
|
|
|
- Value: int32(pasturePb.CalvingAnalysisMethod_cowKind),
|
|
|
+ Value: int32(pasturePb.CalvingAnalysisMethod_CowKind),
|
|
|
Label: "按照品种统计",
|
|
|
Disabled: true,
|
|
|
})
|
|
@@ -565,3 +565,36 @@ func (s *StoreEntry) LactEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
})
|
|
|
return configOptions
|
|
|
}
|
|
|
+
|
|
|
+func (s *StoreEntry) DiseaseAnalysisMethodEnumList(isAll string) []*pasturePb.ConfigOptionsList {
|
|
|
+ configOptions := make([]*pasturePb.ConfigOptionsList, 0)
|
|
|
+ if isAll == model.IsAllYes {
|
|
|
+ configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Invalid),
|
|
|
+ Label: "全部",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ }
|
|
|
+ configOptions = append(configOptions, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Months),
|
|
|
+ Label: "按月份",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Disease_Category),
|
|
|
+ Label: "疾病分类",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Disease),
|
|
|
+ Label: "疾病名称",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Operator),
|
|
|
+ Label: "兽医",
|
|
|
+ Disabled: true,
|
|
|
+ }, &pasturePb.ConfigOptionsList{
|
|
|
+ Value: int32(pasturePb.DiseaseAnalysisMethod_Prescription),
|
|
|
+ Label: "处方",
|
|
|
+ Disabled: true,
|
|
|
+ })
|
|
|
+ return configOptions
|
|
|
+}
|