he wei
2024-04-12 d5b9b80a05c4e9111034464ccd1ab7b6e5bde72f
src/views/powerCabinetControl/components/card-module.vue
@@ -65,6 +65,10 @@
      type: Boolean,
      default: true,
    },
    notice: {
      type: Boolean,
      default: false,
    },
  },
  computed: {
    title() {
@@ -79,7 +83,7 @@
        option: { key_r, index, option },
      } = this;
      // 通过index获得它在flag数组中的index
      if (index!=undefined) {
      if (index != undefined) {
        let propIdx = Math.floor(index / 25);
        let prop_key_r = key_r[propIdx];
        let _key_r = datas[prop_key_r];
@@ -155,6 +159,14 @@
          setModeControl(params)
            .then((res) => {
              let { code, data, msg } = res.data;
              if (code && data && this.notice) {
                this.$notify({
                  title: "注意",
                  message:
                    "监控管理模式已被置为'手动'模式, 若需要切换需要手动操作",
                  type: "warning",
                });
              }
              this.$layer.close(loading);
              this.$message(msg);
            })