U
he wei
2025-03-27 ec5b452281d0758812138085c6f32b06d917020b
U
2个文件已修改
46 ■■■■■ 已修改文件
src/App.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/menuList.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/App.vue
@@ -270,7 +270,6 @@
    },
    openFile(obj) {
      let { fileId, label, stationId } = obj;
      debugger;
      getParamByFileId(fileId).then((res) => {
        const { code, data, data2 } = res.data;
        if (code && data) {
src/components/menuList.vue
@@ -303,23 +303,23 @@
              </td>
            </tr>
            <tr>
              <td>{{ $t("ConnectionBarAlarm") }}</td>
              <td>电导告警</td>
              <td>
                <el-form-item prop="chainResCoeK5">
                <el-form-item prop="serGoodCoeK6">
                  <el-input
                    v-model="p_params.chainResCoeK5"
                    :placeholder="$t('form.inputMsg')"
                    v-model="p_params.serGoodCoeK6"
                    placeholder="请输入"
                  >
                    <template slot="append">%</template>
                  </el-input>
                </el-form-item>
              </td>
              <td>{{ $t("ConnectionBarFail") }}</td>
              <td>电导更换</td>
              <td>
                <el-form-item prop="chainResChange">
                <el-form-item prop="serBadCoeK7">
                  <el-input
                    v-model="p_params.chainResChange"
                    :placeholder="$t('form.inputMsg')"
                    v-model="p_params.serBadCoeK7"
                    placeholder="请输入"
                  >
                    <template slot="append">%</template>
                  </el-input>
@@ -463,8 +463,6 @@
import i18n from "./i18n/menuList";
import { createI18nOption } from "@/assets/js/tools/i18n";
const i18nMixin = createI18nOption(i18n);
const { isStandard, lang } = config;
const O_rules = CONST.rules;
@@ -597,6 +595,8 @@
      enabled: 1,
      resBadCoeK4: 160,
      resGoodCoeK3: 125,
      serGoodCoeK6: 60,
      serBadCoeK7: 20,
      vol1d2HighCoeK2: 1.44,
      vol1d2LowCoeK1: 0.96,
      vol2HighCoeK2: 2.35,
@@ -745,6 +745,22 @@
        {
          required: true,
          message: this.$t("Pleaseentertheconnectionbarfailfactor"),
          trigger: "blur",
        },
        R_resGoodCoeK3,
      ],
      serGoodCoeK6: [
        {
          required: true,
          message: '请输入电导告警系数',
          trigger: "blur",
        },
        R_resGoodCoeK3,
      ],
      serBadCoeK7: [
        {
          required: true,
          message: '请输入电导更换系数',
          trigger: "blur",
        },
        R_resGoodCoeK3,
@@ -1011,7 +1027,6 @@
        this.toRes(data);
        return false;
      }
      debugger;
      updateFileParam(this.currFile.stationId, data).then((res) => {
        const { code, data } = res.data;
        if (code && data) {
@@ -1163,8 +1178,8 @@
          vol12HighCoeK2: this.$t("HighvoltageThreshold") + "(12V)",
          resGoodCoeK3: this.$t("ResistanceAlarmFactor"),
          resBadCoeK4: this.$t("ResistanceFailFactor"),
          chainResCoeK5: this.$t("ConnectionBarAlarmFactor"),
          chainResChange: this.$t("ConnectionBarFailFactor"),
          serGoodCoeK6: this.$t("ConnectionBarAlarmFactor"),
          serBadCoeK7: this.$t("ConnectionBarFailFactor"),
        };
        // 校验通过
@@ -1196,8 +1211,8 @@
            return false;
          }
          if (params.chainResCoeK5 >= params.chainResChange) {
            this.$message.error(field['chainResCoeK5'] + this.$t('MustBe')  + '< ' + field['chainResChange']);
          if (params.serGoodCoeK6 >= params.serBadCoeK7) {
            this.$message.error(field['serBadCoeK7'] + this.$t('MustBe')  + '< ' + field['serGoodCoeK6']);
            return false;
          }