var PointToleranceConfig = { m_allStandard: [{ ID: 0, Name: "GB3216-2005" }, { ID: 1, Name: "GB3216-2016" }], m_allToleranceGrade: [{ ID: 0, StandardID: 0, Name: "一级" }, { ID: 1, StandardID: 0, Name: "二级" }, { ID: 10, StandardID: 1, Name: "1U" }, { ID: 11, StandardID: 1, Name: "1E" }, { ID: 12, StandardID: 1, Name: "1B" }, { ID: 13, StandardID: 1, Name: "2B" }, { ID: 14, StandardID: 1, Name: "2U" }, { ID: 15, StandardID: 1, Name: "3B" } ], //根据容差等级,获取容差范围( 流量最小值, 流量最大值, 扬程最小值, 扬程最大值) GetTolerancePara: function (ToleranceGradeID) { if (ToleranceGradeID == 0) { return [0.955, 1.045, 0.97, 1.03]; } else if (ToleranceGradeID == 1) { return [0.92, 1.08, 0.95, 1.05]; } else if (ToleranceGradeID == 10) {//1u return [0.9, 1.1, 0.94, 1.06]; } else if (ToleranceGradeID == 11) {//1e return [0.95, 1.05, 0.97, 1.03]; } else if (ToleranceGradeID == 12) {//1b return [0.95, 1.05, 0.97, 1.03]; } else if (ToleranceGradeID == 13) {//2b return [0.92, 1.08, 0.95, 1.05]; } else if (ToleranceGradeID == 14) {//2u return [0.84, 1.16, 0.9, 1.1]; } else if (ToleranceGradeID == 15) {//3b return [0.91, 1.09, 0.93, 1.07]; } else { return [0.92, 1.08, 0.95, 1.05]; } }, //获取所有标准 GetAllStandard: function () { return PointToleranceConfig.m_allStandard; }, //获取默认标准ID GetDefaultStandardID: function () { return 1; }, GetDefaultGradeID: function () { return 15; }, GetDefaultTolerancePara: function () { return PointToleranceConfig.GetTolerancePara(15); }, //获取容差等级 GetAllGrade: function () { return m_allToleranceGrade; }, } export default PointToleranceConfig