南昌市物联网技防平台-前端
src/views/realTimePolice/real.vue
@@ -68,6 +68,16 @@
        </el-button>
      </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
          >{{
@@ -1414,6 +1424,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>