diff --git a/src/api/person.js b/src/api/person.js index 24460ea..e20a8fd 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -18,7 +18,7 @@ // 查询员工列表 export function getPersonListAll(params) { return request({ - url: '/person/list', + url: '/person/irisList', method: 'get', params }) @@ -94,6 +94,7 @@ return request({ url: 'person/batchIrisDelete', method: 'post', + timeout: 60000, params: { ids: ids }, diff --git a/src/api/person.js b/src/api/person.js index 24460ea..e20a8fd 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -18,7 +18,7 @@ // 查询员工列表 export function getPersonListAll(params) { return request({ - url: '/person/list', + url: '/person/irisList', method: 'get', params }) @@ -94,6 +94,7 @@ return request({ url: 'person/batchIrisDelete', method: 'post', + timeout: 60000, params: { ids: ids }, diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..9f2ce9b 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -28,6 +28,11 @@ loading.close() // 关闭加载动画 console.log('download===', res) const blob = new Blob([res.data]) + if ('msSaveOrOpenBlob' in navigator) { + // console.log('msSaveOrOpenBlob') + window.navigator.msSaveOrOpenBlob(blob, filename) + return + } const downloadElement = document.createElement('a') const href = window.URL.createObjectURL(blob) // 创建下载的链接 downloadElement.href = href diff --git a/src/api/person.js b/src/api/person.js index 24460ea..e20a8fd 100644 --- a/src/api/person.js +++ b/src/api/person.js @@ -18,7 +18,7 @@ // 查询员工列表 export function getPersonListAll(params) { return request({ - url: '/person/list', + url: '/person/irisList', method: 'get', params }) @@ -94,6 +94,7 @@ return request({ url: 'person/batchIrisDelete', method: 'post', + timeout: 60000, params: { ids: ids }, diff --git a/src/components/DownloadTemplate/index.vue b/src/components/DownloadTemplate/index.vue index 8ded2cd..9f2ce9b 100644 --- a/src/components/DownloadTemplate/index.vue +++ b/src/components/DownloadTemplate/index.vue @@ -28,6 +28,11 @@ loading.close() // 关闭加载动画 console.log('download===', res) const blob = new Blob([res.data]) + if ('msSaveOrOpenBlob' in navigator) { + // console.log('msSaveOrOpenBlob') + window.navigator.msSaveOrOpenBlob(blob, filename) + return + } const downloadElement = document.createElement('a') const href = window.URL.createObjectURL(blob) // 创建下载的链接 downloadElement.href = href diff --git a/src/views/accessPermission/addStaffPerm.vue b/src/views/accessPermission/addStaffPerm.vue index bb81dc5..4078704 100644 --- a/src/views/accessPermission/addStaffPerm.vue +++ b/src/views/accessPermission/addStaffPerm.vue @@ -1,10 +1,10 @@