管道基础大数据平台系统开发-【前端】-新系統界面
Surpriseplus
2023-03-24 c42e12bcc0877678cf09438b7a6bfb9ccd7342fa
src/components/MapView/mapMenuPop.vue
@@ -735,6 +735,22 @@
      this.$refs.dialogPayChannel.doLayout()
      // this.showAllImage(data.result)
    },
    //格式化时间
    format(shijianchuo) {
      //shijianchuo是整数,否则要parseInt转换
      var time = new Date(shijianchuo);
      var y = time.getFullYear();
      var m = time.getMonth() + 1;
      var d = time.getDate();
      var h = time.getHours();
      var mm = time.getMinutes();
      var s = time.getSeconds();
      return y + "-" + this.add0(m) + "-" + this.add0(d);
    },
    //格式化时间
    add0(m) {
      return m < 10 ? "0" + m : m;
    },
    async showAllImage(res) {
      for (var i in res) {
        let properties = res[i]