Merge branch 'dev1.0' of http://42.193.1.25:9521/r/sccg_ui into dev1.0
| | |
| | | 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) {}, |
| | | // 设置表格斑马纹 |
| | |
| | | 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) {}, |
| | | // 设置表格斑马纹 |
| | |
| | | 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) {}, |
| | | // 设置表格斑马纹 |
| | |
| | | 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) {}, |
| | | // 设置表格斑马纹 |
| | |
| | | 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) {}, |
| | | // 设置表格斑马纹 |