he wei
2025-03-27 f48015965cbcf3b1b98a54aa77557e63473c8bf8
U all 分级评价旧问题修复
3个文件已修改
67 ■■■■ 已修改文件
README.md 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/i18n/menuList.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menuList.vue 61 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -36,4 +36,6 @@
## package.json中的version   以及 version.nsh中的VERSION
##  新添加一个分支 dev_202501 定制单号为 FGDZB202503200005DZ 销售 陈洪志
##  新添加一个分支 dev_202501 定制单号为 FGDZB202503200005DZ 销售 陈洪志
##  后续版本更新 打包需要理新数据库文件  升级安装的应该会自动处理
src/components/i18n/menuList.js
@@ -70,6 +70,7 @@
      ConnectionBarFailFactor: "连接条更换系数",
      Thereexistsunverifieddata: "存在校验未通过的数据",
      Pleaseselectthefiletoanalyze: "请选择要分析的文件",
      MustBe: '必须',
    },
    US: {
      Properties: "Properties",
@@ -148,6 +149,7 @@
      ConnectionBarFailFactor: "Connection Bar Fail Factor",
      Thereexistsunverifieddata: "There exists unverified data",
      Pleaseselectthefiletoanalyze: "Please select the file to analyze",
      MustBe: " must be ",
    },
  },
};
src/components/menuList.vue
@@ -1149,8 +1149,55 @@
    },
    paramsOk() {
      this.$refs.paramsForm.validate((valid, info) => {
        const field = {
          vol1d2LowCoeK1: this.$t("LowvoltageThreshold") + "(1.2V)",
          vol1d2HighCoeK2: this.$t("HighvoltageThreshold") + "(1.2V)",
          vol2LowCoeK1: this.$t("LowvoltageThreshold") + "(2V)",
          vol2HighCoeK2: this.$t("HighvoltageThreshold") + "(2V)",
          vol6LowCoeK1: this.$t("LowvoltageThreshold") + "(6V)",
          vol6HighCoeK2: this.$t("HighvoltageThreshold") + "(6V)",
          vol12LowCoeK1: this.$t("LowvoltageThreshold") + "(12V)",
          vol12HighCoeK2: this.$t("HighvoltageThreshold") + "(12V)",
          resGoodCoeK3: this.$t("ResistanceAlarmFactor"),
          resBadCoeK4: this.$t("ResistanceFailFactor"),
          chainResCoeK5: this.$t("ConnectionBarAlarmFactor"),
          chainResChange: this.$t("ConnectionBarFailFactor"),
        };
        // 校验通过
        if (valid) {
          let params = this.p_params;
          // 添加逻辑 严重告警必须大于次要告警 (电导相返)
          if (params.vol1d2LowCoeK1 >= params.vol1d2HighCoeK2) {
            this.$message.error(field['vol1d2LowCoeK1'] + this.$t('MustBe')  + '< ' + field['vol1d2HighCoeK2']);
            return false;
          }
          if (params.vol2LowCoeK1 >= params.vol2HighCoeK2) {
            this.$message.error(field['vol2LowCoeK1'] + this.$t('MustBe')  + '< ' + field['vol2HighCoeK2']);
            return false;
          }
          if (params.vol6LowCoeK1 >= params.vol6HighCoeK2) {
            this.$message.error(field['vol6LowCoeK1'] + this.$t('MustBe')  + '< ' + field['vol6HighCoeK2']);
            return false;
          }
          if (params.vol12LowCoeK1 >= params.vol12HighCoeK2) {
            this.$message.error(field['vol12LowCoeK1'] + this.$t('MustBe')  + '< ' + field['vol12HighCoeK2']);
            return false;
          }
          if (params.resGoodCoeK3 >= params.resBadCoeK4) {
            this.$message.error(field['resGoodCoeK3'] + this.$t('MustBe')  + '< ' + field['resBadCoeK4']);
            return false;
          }
          if (params.chainResCoeK5 >= params.chainResChange) {
            this.$message.error(field['chainResCoeK5'] + this.$t('MustBe')  + '< ' + field['chainResChange']);
            return false;
          }
          // 更新分级参数
          setParams(this.p_params).then((res) => {
            const { code, data } = res.data;
@@ -1164,20 +1211,6 @@
            }
          });
        } else {
          const field = {
            vol1d2LowCoeK1: this.$t("LowvoltageThreshold") + "(1.2V)",
            vol1d2HighCoeK2: this.$t("HighvoltageThreshold") + "(1.2V)",
            vol2LowCoeK1: this.$t("LowvoltageThreshold") + "(2V)",
            vol2HighCoeK2: this.$t("HighvoltageThreshold") + "(2V)",
            vol6LowCoeK1: this.$t("LowvoltageThreshold") + "(6V)",
            vol6HighCoeK2: this.$t("HighvoltageThreshold") + "(6V)",
            vol12LowCoeK1: this.$t("LowvoltageThreshold") + "(12V)",
            vol12HighCoeK2: this.$t("HighvoltageThreshold") + "(12V)",
            resGoodCoeK3: this.$t("ResistanceAlarmFactor"),
            resBadCoeK4: this.$t("ResistanceFailFactor"),
            chainResCoeK5: this.$t("ConnectionBarAlarmFactor"),
            chainResChange: this.$t("ConnectionBarFailFactor"),
          };
          let errStr = "";
          Object.keys(info).forEach((val) => {
            info[val].forEach((v) => {