odc.xiaohui
2023-01-11 4506c7f074f9dc7ec2937bd7d9c99a0a09d50ee6
Merge branch 'dev1.0' of http://42.193.1.25:9521/r/sccg_ui into dev1.0
5个文件已修改
145 ■■■■■ 已修改文件
src/views/intelligentPatrol/statistics/unlawful/area/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/statistics/unlawful/point/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/statistics/unlawful/shop/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/statistics/unlawful/time/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/statistics/unlawful/type/index.vue 29 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/intelligentPatrol/statistics/unlawful/area/index.vue
@@ -140,7 +140,34 @@
  methods: {
    ...mapActions(["searchByArea"]),
    handleExport(e) {},
    handleExport(e) {
      this.$axios({
        method: 'post',
        url: `sccg/intelligentPatrol/statistics/export/unlawful`,
        responseType: 'arraybuffer'
      })
        .then(res => {
          let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            debugger
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate+"按区域统计" + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate+"按区域统计" + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
            this.$message.success('操作成功');
        })
    },
    setTableDataHandle(e) {},
    resetTableData(e) {},
    // 设置表格斑马纹
src/views/intelligentPatrol/statistics/unlawful/point/index.vue
@@ -150,7 +150,34 @@
  methods: {
    ...mapActions(["searchByPoint"]),
    handleExport(e) {},
    handleExport(e) {
      this.$axios({
        method: 'post',
        url: `sccg/intelligentPatrol/statistics/export/unlawful`,
        responseType: 'arraybuffer'
      })
        .then(res => {
          let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            debugger
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate+"按点位统计" + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate+"按点位统计" + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
            this.$message.success('操作成功');
        })
    },
    setTableDataHandle(e) {},
    resetTableData(e) {},
    // 设置表格斑马纹
src/views/intelligentPatrol/statistics/unlawful/shop/index.vue
@@ -144,7 +144,34 @@
  methods: {
    ...mapActions(["searchByShop"]),
    handleExport(e) {},
    handleExport(e) {
      this.$axios({
        method: 'post',
        url: `sccg/intelligentPatrol/statistics/export/shop`,
        responseType: 'arraybuffer'
      })
        .then(res => {
          let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            debugger
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate+"门前三包统计" + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate+"门前三包统计" + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
            this.$message.success('操作成功');
        })
    },
    setTableDataHandle(e) {},
    resetTableData(e) {},
    // 设置表格斑马纹
src/views/intelligentPatrol/statistics/unlawful/time/index.vue
@@ -140,7 +140,34 @@
  methods: {
    ...mapActions(["searchByTime"]),
    handleExport(e) {},
    handleExport(e) {
      this.$axios({
        method: 'post',
        url: `sccg/intelligentPatrol/statistics/export/unlawful`,
        responseType: 'arraybuffer'
      })
        .then(res => {
          let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            debugger
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate+"按时间统计" + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate+"按时间统计" + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
            this.$message.success('操作成功');
        })
    },
    setTableDataHandle(e) {},
    resetTableData(e) {},
    // 设置表格斑马纹
src/views/intelligentPatrol/statistics/unlawful/type/index.vue
@@ -148,7 +148,34 @@
  methods: {
    ...mapActions(["searchByType"]),
    handleExport(e) {},
    handleExport(e) {
      this.$axios({
        method: 'post',
        url: `sccg/intelligentPatrol/statistics/export/unlawful`,
        responseType: 'arraybuffer'
      })
        .then(res => {
          let time = new Date()
            let deathdate =time.toLocaleDateString()
            const blob = new Blob([res.data], {
              type: "application/vnd.ms-excel;charset=utf-8",
            });
            debugger
            if (window.navigator.msSaveBlob) {
              window.navigator.msSaveBlob(blob, deathdate+"按违规类型统计" + ".xlsx");
            } else {
              const url = window.URL.createObjectURL(blob);
              const link = document.createElement("a");
              link.style.display = "none";
              link.href = url;
              link.download = deathdate+"按违规类型统计" + ".xlsx";
              document.body.appendChild(link);
              link.click();
              document.body.removeChild(link);
            }
            this.$message.success('操作成功');
        })
    },
    setTableDataHandle(e) {},
    resetTableData(e) {},
    // 设置表格斑马纹