diff --git a/src/api/batch.js b/src/api/batch.js
new file mode 100644
index 0000000..2bb662c
--- /dev/null
+++ b/src/api/batch.js
@@ -0,0 +1,114 @@
+import request from '@/utils/request'
+
+export function visitorPersonExport(params) {
+ return request({
+ url: '/visitorPerson/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function alarmExport(params) {
+ return request({
+ url: '/alarm/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function deviceExport(params) {
+ return request({
+ url: '/device/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personListExport(params) {
+ return request({
+ url: '/statistics/personListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carExport(params) {
+ return request({
+ url: '/car/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carListExport(params) {
+ return request({
+ url: '/statistics/carListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personDurationListExport(params) {
+ return request({
+ url: '/statistics/personDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function carDurationListExport(params) {
+ return request({
+ url: '/statistics/carDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function staffExport(params) {
+ return request({
+ url: '/staff/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function visitorCarExport(params) {
+ return request({
+ url: '/visitorCar/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function batchImportStaff(fileobj) {
+ const param = new FormData()
+ param.append('fs', fileobj)
+ return request({
+ url: '/staff/imp',
+ method: 'post',
+ headers: { 'Content-Type': 'multipart/form-data' },
+ data: param
+ })
+}
diff --git a/src/api/batch.js b/src/api/batch.js
new file mode 100644
index 0000000..2bb662c
--- /dev/null
+++ b/src/api/batch.js
@@ -0,0 +1,114 @@
+import request from '@/utils/request'
+
+export function visitorPersonExport(params) {
+ return request({
+ url: '/visitorPerson/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function alarmExport(params) {
+ return request({
+ url: '/alarm/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function deviceExport(params) {
+ return request({
+ url: '/device/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personListExport(params) {
+ return request({
+ url: '/statistics/personListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carExport(params) {
+ return request({
+ url: '/car/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carListExport(params) {
+ return request({
+ url: '/statistics/carListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personDurationListExport(params) {
+ return request({
+ url: '/statistics/personDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function carDurationListExport(params) {
+ return request({
+ url: '/statistics/carDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function staffExport(params) {
+ return request({
+ url: '/staff/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function visitorCarExport(params) {
+ return request({
+ url: '/visitorCar/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function batchImportStaff(fileobj) {
+ const param = new FormData()
+ param.append('fs', fileobj)
+ return request({
+ url: '/staff/imp',
+ method: 'post',
+ headers: { 'Content-Type': 'multipart/form-data' },
+ data: param
+ })
+}
diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..5e5020f 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -15,8 +15,10 @@
methods: {
// 下载模板
downloadTemplate() {
+ console.log('###############################')
if (this.filename !== '') {
const filename = this.filename
+ console.log(filename)
// 全屏加载动画
const loading = this.$loading({
lock: true,
diff --git a/src/api/batch.js b/src/api/batch.js
new file mode 100644
index 0000000..2bb662c
--- /dev/null
+++ b/src/api/batch.js
@@ -0,0 +1,114 @@
+import request from '@/utils/request'
+
+export function visitorPersonExport(params) {
+ return request({
+ url: '/visitorPerson/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function alarmExport(params) {
+ return request({
+ url: '/alarm/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function deviceExport(params) {
+ return request({
+ url: '/device/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personListExport(params) {
+ return request({
+ url: '/statistics/personListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carExport(params) {
+ return request({
+ url: '/car/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carListExport(params) {
+ return request({
+ url: '/statistics/carListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personDurationListExport(params) {
+ return request({
+ url: '/statistics/personDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function carDurationListExport(params) {
+ return request({
+ url: '/statistics/carDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function staffExport(params) {
+ return request({
+ url: '/staff/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function visitorCarExport(params) {
+ return request({
+ url: '/visitorCar/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function batchImportStaff(fileobj) {
+ const param = new FormData()
+ param.append('fs', fileobj)
+ return request({
+ url: '/staff/imp',
+ method: 'post',
+ headers: { 'Content-Type': 'multipart/form-data' },
+ data: param
+ })
+}
diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..5e5020f 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -15,8 +15,10 @@
methods: {
// 下载模板
downloadTemplate() {
+ console.log('###############################')
if (this.filename !== '') {
const filename = this.filename
+ console.log(filename)
// 全屏加载动画
const loading = this.$loading({
lock: true,
diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js
index 04bfaf4..8017e4b 100644
--- a/src/router/modules/doorSys.js
+++ b/src/router/modules/doorSys.js
@@ -1,3 +1,5 @@
+
+
/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
diff --git a/src/api/batch.js b/src/api/batch.js
new file mode 100644
index 0000000..2bb662c
--- /dev/null
+++ b/src/api/batch.js
@@ -0,0 +1,114 @@
+import request from '@/utils/request'
+
+export function visitorPersonExport(params) {
+ return request({
+ url: '/visitorPerson/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function alarmExport(params) {
+ return request({
+ url: '/alarm/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function deviceExport(params) {
+ return request({
+ url: '/device/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personListExport(params) {
+ return request({
+ url: '/statistics/personListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carExport(params) {
+ return request({
+ url: '/car/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+export function carListExport(params) {
+ return request({
+ url: '/statistics/carListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+export function personDurationListExport(params) {
+ return request({
+ url: '/statistics/personDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function carDurationListExport(params) {
+ return request({
+ url: '/statistics/carDurationListExport',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function staffExport(params) {
+ return request({
+ url: '/staff/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function visitorCarExport(params) {
+ return request({
+ url: '/visitorCar/export',
+ method: 'get',
+ timeout: 120000,
+ params,
+ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob
+ })
+}
+
+
+export function batchImportStaff(fileobj) {
+ const param = new FormData()
+ param.append('fs', fileobj)
+ return request({
+ url: '/staff/imp',
+ method: 'post',
+ headers: { 'Content-Type': 'multipart/form-data' },
+ data: param
+ })
+}
diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue
index 8ded2cd..5e5020f 100644
--- a/src/components/DownloadTemplate/index.vue
+++ b/src/components/DownloadTemplate/index.vue
@@ -15,8 +15,10 @@
methods: {
// 下载模板
downloadTemplate() {
+ console.log('###############################')
if (this.filename !== '') {
const filename = this.filename
+ console.log(filename)
// 全屏加载动画
const loading = this.$loading({
lock: true,
diff --git a/src/router/modules/doorSys.js b/src/router/modules/doorSys.js
index 04bfaf4..8017e4b 100644
--- a/src/router/modules/doorSys.js
+++ b/src/router/modules/doorSys.js
@@ -1,3 +1,5 @@
+
+
/* Layout */
import Layout from '../../views/layout/Layout'
import OverviewLayout from '../../views/layout/OverviewLayout'
diff --git a/src/views/alarm/alarmList.vue b/src/views/alarm/alarmList.vue
index cdd1454..704f797 100644
--- a/src/views/alarm/alarmList.vue
+++ b/src/views/alarm/alarmList.vue
@@ -48,7 +48,7 @@
- 导出
+ 导出
@@ -92,6 +92,7 @@