南昌市物联网技防平台-前端
shuishen
2021-04-26 f1b03771a3de1ce9466d767b4544e1331d836ec7
logo.vue删除无用代码
1 files modified
21 ■■■■■ changed files
src/page/index/logo.vue 21 ●●●●● patch | view | raw | blame | history
src/page/index/logo.vue
@@ -347,33 +347,14 @@
    };
  },
  created() {
    // this.getData();
    this.websocketStart();
  },
  computed: {
    ...mapGetters(["website", "keyCollapse"]),
  },
  methods: {
    // getData() {
    //   var that = this;
    //   axios({
    //     url: "/api/blade-jfpts/alarm/alarm/getLimit",
    //     method: "get",
    //   }).then(function (response) {
    //     if (response.data.data.length > 0) {
    //       that.deviceId = response.data.data[0].id;
    //     } else {
    //       that.deviceId = 0;
    //     }
    //     //获得最新ID,开启实时报警循环
    //     that.layerRealtime();
    //   });
    // },
    layerRealtime(jid) {
      var that = this;
      // window.clearTimeout(window.realTimeQuery);
      // that.deviceId = 334; // 测试用
      // window.realTimeQuery = setInterval(function () {
      axios({
        url: "/api/blade-jfpts/alarm/alarm/page",
        method: "get",
@@ -412,7 +393,6 @@
          }
        }
      });
      // }, 5000);
    },
    closeDialog() {
      //关闭窗口回调,关闭警报
@@ -757,7 +737,6 @@
              jid: that.form.id,
            },
          }).then((resdata) => {
            console.log(resdata);
          });
          newCallAxios