he wei
2025-03-27 00edd369c99cdc0d9a4a168212d8b8fdf9d489a8
U all 分级评价旧问题修复
3个文件已修改
67 ■■■■ 已修改文件
README.md 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/i18n/menuList.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menuList.vue 63 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
README.md
@@ -37,3 +37,5 @@
##  新添加一个分支 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
@@ -1152,21 +1152,6 @@
    },
    paramsOk() {
      this.$refs.paramsForm.validate((valid, info) => {
        // 校验通过
        if (valid) {
          // 更新分级参数
          setParams(this.p_params).then((res) => {
            const { code, data } = res.data;
            if (code) {
              this.setParams(this.p_params);
              this.$message.success(this.$t("Updatesuccessfully"));
              this.paramsVisible = false;
              this.$bus.$emit("paramsUpdated");
            } else {
              this.$message.error(this.$t("OperationFailed"));
            }
          });
        } else {
          const field = {
            vol1d2LowCoeK1: this.$t("LowvoltageThreshold") + "(1.2V)",
            vol1d2HighCoeK2: this.$t("HighvoltageThreshold") + "(1.2V)",
@@ -1181,6 +1166,54 @@
            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;
            if (code) {
              this.setParams(this.p_params);
              this.$message.success(this.$t("Updatesuccessfully"));
              this.paramsVisible = false;
              this.$bus.$emit("paramsUpdated");
            } else {
              this.$message.error(this.$t("OperationFailed"));
            }
          });
        } else {
          let errStr = "";
          Object.keys(info).forEach((val) => {
            info[val].forEach((v) => {