南昌市物联网技防平台-前端
liuyg
2021-04-15 4a9106bbf43ae375d1b3a7e08170f4f449975e0a
src/views/healthcode/healthcode.vue
@@ -48,6 +48,12 @@
                      icon="el-icon-download"
                      @click="handleExport">导出
          </el-button>
          <el-button type="warning"
                      size="small"
                      plain
                      icon="el-icon-download"
                      @click="handleExportStatis">导出报表
          </el-button>
        </template>
    </avue-crud>
@@ -133,7 +139,7 @@
            {
              label: '省份',
              prop: 'province',
              search: true,
              //search: true,
              searchSpan: 3,
              type: 'select',
              props: {
@@ -149,7 +155,7 @@
              prop: 'city',
              type: 'select',
              searchSpan: 3,
              search: true,
              //search: true,
              props: {
                label: 'name',
                value: 'name'
@@ -160,7 +166,7 @@
            {
              label: '区县',
              searchSpan: 3,
              search: true,
              //search: true,
              prop: 'district',
              type: 'select',
              props: {
@@ -298,6 +304,20 @@
          window.open(`/api/blade-jfpts/healthcode/healthcode/export-healthcode?begTime=${this.$route.query.startTime}&endTime=${this.$route.query.endTime}&type=${this.$route.query.type}&timeDesc=${this.$route.query.timeDesc}`);
        });
      },
      //数据报表导出
      handleExportStatis() {
        this.$confirm("是否导出用户数据?", "提示", {
          confirmButtonText: "确定",
          cancelButtonText: "取消",
          type: "warning"
        }).then(() => {
          let begTime = this.$route.query.startTime==undefined? '':this.$route.query.startTime;
          let endTime = this.$route.query.endTime==undefined? '':this.$route.query.endTime;
          let type = this.$route.query.type==undefined? '':this.$route.query.type;
          let timeDesc = this.$route.query.timeDesc==undefined? '':this.$route.query.timeDesc;
          window.open(`http://localhost:8108/ureport/excel?_u=blade-healthcode.statis.xml.ureport.xml&begTime=${begTime}&endTime=${endTime}&type=${type}&timeDesc=${timeDesc}`);
        });
      },
      onLoad(page, params = {}) {
        const { dateTime } = this.query;
        let values = {