mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
1. 信任管理 5
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
import axios from 'axios'
|
import axios from 'axios'
|
||||||
import {getCookieForName} from "@/api/method";
|
import {getCookieForName} from "@/api/method";
|
||||||
|
import ElementUI from 'element-ui';
|
||||||
|
import 'element-plus/dist/index.css'
|
||||||
|
|
||||||
|
|
||||||
const mimeMap = {
|
const mimeMap = {
|
||||||
@@ -40,8 +42,7 @@ export function downLoadZipManage(str, filename,fun) {
|
|||||||
console.log("downLoadZipManage res res.headers.ecode ==> ",res.headers.ecode)
|
console.log("downLoadZipManage res res.headers.ecode ==> ",res.headers.ecode)
|
||||||
if(res.headers.ecode == 4){
|
if(res.headers.ecode == 4){
|
||||||
//TODO1-1 弹出框
|
//TODO1-1 弹出框
|
||||||
this.$message.error("权限不足!");
|
if(fun) fun(res.headers.ecode)
|
||||||
if(fun) fun()
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
resolveBlob(res, mimeMap.xlsx,filename)
|
resolveBlob(res, mimeMap.xlsx,filename)
|
||||||
|
|||||||
@@ -18,8 +18,13 @@ import {downLoadZipManage} from "@/utils/zipdownload";
|
|||||||
const downReport = () => {
|
const downReport = () => {
|
||||||
spinning.value = true
|
spinning.value = true
|
||||||
if(uploadAdmin('training-admin')){
|
if(uploadAdmin('training-admin')){
|
||||||
downLoadZipManage(`/admin/project/report/data`,'新任管理者培训数据',function(){
|
downLoadZipManage(`/admin/project/report/data`,'新任管理者培训数据',function(code){
|
||||||
spinning.value = false
|
|
||||||
|
if(code == 4){
|
||||||
|
spinning.value = false;
|
||||||
|
this.$message.error("权限不足!");
|
||||||
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user