南昌市物联网技防平台-前端
liuyg
2021-04-13 a944f9e41effdbab16addf349b2de4838c36f0bb
src/views/realTimePolice/real.vue
@@ -71,6 +71,16 @@
        </span>
      </template>
      <template slot="menuLeft">
        <el-button type="warning"
                    size="mini"
                    plain
                    icon="el-icon-download"
                    @click="handleExport">导出
        </el-button>
      </template>
      <template slot-scope="{ row }" slot="jtype">
        <el-tag
          >{{
@@ -502,6 +512,7 @@
            type: "datetime",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
            searchValue:[this.getStartTime(),this.getEndTime()],
            searchRange: true,
            searchSpan: 5,
            hide: true,
@@ -1438,6 +1449,17 @@
      Recorder.getPermission().then(() => {});
      this.videoConversationReal = true;
    },
    //数据导出
    handleExport() {
      this.$confirm("是否导出用户数据?", "提示", {
        confirmButtonText: "确定",
        cancelButtonText: "取消",
        type: "warning"
      }).then(() => {
        window.open(`/api/blade-jfpts/alarm/alarm/export-alarm?beginTime=${this.$route.query.startTime}&endTime=${this.$route.query.endTime}&waringType=${this.$route.query.waringType}&timeDesc=${this.$route.query.timeDesc}`);
      });
    },
  },
};
</script>