Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
计算机应用开发
后
后端
J
Java
后台管理
Ruoyi Vue Pro
提交
02a0ab6d
R
Ruoyi Vue Pro
项目概览
计算机应用开发
/
后端
/
Java
/
后台管理
/
Ruoyi Vue Pro
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
Ruoyi Vue Pro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
02a0ab6d
编写于
2月 17, 2022
作者:
公众号-芋道源码
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
v3.8.0 新增通用方法简化下载使用
上级
fee6d00e
变更
28
隐藏空白更改
内联
并排
Showing
28 changed file
with
78 addition
and
90 deletion
+78
-90
yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm
...ol-impl/src/main/resources/codegen/vue/views/index.vue.vm
+1
-1
yudao-ui-admin/src/main.js
yudao-ui-admin/src/main.js
+1
-19
yudao-ui-admin/src/plugins/download.js
yudao-ui-admin/src/plugins/download.js
+47
-0
yudao-ui-admin/src/plugins/index.js
yudao-ui-admin/src/plugins/index.js
+3
-0
yudao-ui-admin/src/utils/ruoyi.js
yudao-ui-admin/src/utils/ruoyi.js
+0
-44
yudao-ui-admin/src/views/infra/apiAccessLog/index.vue
yudao-ui-admin/src/views/infra/apiAccessLog/index.vue
+1
-1
yudao-ui-admin/src/views/infra/apiErrorLog/index.vue
yudao-ui-admin/src/views/infra/apiErrorLog/index.vue
+1
-1
yudao-ui-admin/src/views/infra/config/index.vue
yudao-ui-admin/src/views/infra/config/index.vue
+1
-1
yudao-ui-admin/src/views/infra/job/index.vue
yudao-ui-admin/src/views/infra/job/index.vue
+1
-1
yudao-ui-admin/src/views/infra/job/log.vue
yudao-ui-admin/src/views/infra/job/log.vue
+1
-1
yudao-ui-admin/src/views/pay/app/index.vue
yudao-ui-admin/src/views/pay/app/index.vue
+1
-1
yudao-ui-admin/src/views/pay/merchant/index.vue
yudao-ui-admin/src/views/pay/merchant/index.vue
+1
-1
yudao-ui-admin/src/views/pay/order/index.vue
yudao-ui-admin/src/views/pay/order/index.vue
+1
-1
yudao-ui-admin/src/views/pay/refund/index.vue
yudao-ui-admin/src/views/pay/refund/index.vue
+1
-1
yudao-ui-admin/src/views/system/dict/data.vue
yudao-ui-admin/src/views/system/dict/data.vue
+1
-1
yudao-ui-admin/src/views/system/dict/index.vue
yudao-ui-admin/src/views/system/dict/index.vue
+1
-1
yudao-ui-admin/src/views/system/errorCode/index.vue
yudao-ui-admin/src/views/system/errorCode/index.vue
+1
-1
yudao-ui-admin/src/views/system/loginlog/index.vue
yudao-ui-admin/src/views/system/loginlog/index.vue
+1
-1
yudao-ui-admin/src/views/system/operatelog/index.vue
yudao-ui-admin/src/views/system/operatelog/index.vue
+1
-1
yudao-ui-admin/src/views/system/post/index.vue
yudao-ui-admin/src/views/system/post/index.vue
+1
-1
yudao-ui-admin/src/views/system/role/index.vue
yudao-ui-admin/src/views/system/role/index.vue
+1
-1
yudao-ui-admin/src/views/system/sms/smsLog.vue
yudao-ui-admin/src/views/system/sms/smsLog.vue
+1
-1
yudao-ui-admin/src/views/system/sms/smsTemplate.vue
yudao-ui-admin/src/views/system/sms/smsTemplate.vue
+1
-1
yudao-ui-admin/src/views/system/tenant/index.vue
yudao-ui-admin/src/views/system/tenant/index.vue
+1
-1
yudao-ui-admin/src/views/system/user/index.vue
yudao-ui-admin/src/views/system/user/index.vue
+2
-2
yudao-ui-admin/src/views/tool/codegen/index.vue
yudao-ui-admin/src/views/tool/codegen/index.vue
+1
-1
yudao-ui-admin/src/views/tool/dbDoc/index.vue
yudao-ui-admin/src/views/tool/dbDoc/index.vue
+3
-3
yudao-ui-admin/src/views/tool/testDemo/index.vue
yudao-ui-admin/src/views/tool/testDemo/index.vue
+1
-1
未找到文件。
yudao-module-tool/yudao-module-tool-impl/src/main/resources/codegen/vue/views/index.vue.vm
浏览文件 @
02a0ab6d
...
...
@@ -390,7 +390,7 @@ export default {
this
.
exportLoading
=
true
;
return
export
${
simpleClassName
}
Excel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
${
table
.
classComment
}
.xls
'
);
this
.
$
download
.
e
xcel
(
response
,
'${table.classComment}.xls'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{
});
}
...
...
yudao-ui-admin/src/main.js
浏览文件 @
02a0ab6d
...
...
@@ -17,19 +17,7 @@ import './assets/icons' // icon
import
'
./permission
'
// permission control
import
{
getDicts
}
from
"
@/api/system/dict/data
"
;
import
{
getConfigKey
}
from
"
@/api/infra/config
"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
addBeginAndEndTime
,
download
,
handleTree
,
downloadExcel
,
downloadWord
,
downloadZip
,
downloadHtml
,
downloadMarkdown
,
}
from
"
@/utils/ruoyi
"
;
import
{
parseTime
,
resetForm
,
addDateRange
,
addBeginAndEndTime
,
handleTree
}
from
"
@/utils/ruoyi
"
;
import
Pagination
from
"
@/components/Pagination
"
;
// 自定义表格工具扩展
import
RightToolbar
from
"
@/components/RightToolbar
"
...
...
@@ -49,12 +37,6 @@ Vue.prototype.getDictDatas = getDictDatas
Vue
.
prototype
.
getDictDatas2
=
getDictDatas2
Vue
.
prototype
.
getDictDataLabel
=
getDictDataLabel
Vue
.
prototype
.
DICT_TYPE
=
DICT_TYPE
Vue
.
prototype
.
download
=
download
Vue
.
prototype
.
downloadExcel
=
downloadExcel
Vue
.
prototype
.
downloadWord
=
downloadWord
Vue
.
prototype
.
downloadHtml
=
downloadHtml
Vue
.
prototype
.
downloadMarkdown
=
downloadMarkdown
Vue
.
prototype
.
downloadZip
=
downloadZip
Vue
.
prototype
.
handleTree
=
handleTree
// 全局组件挂载
...
...
yudao-ui-admin/src/plugins/download.js
0 → 100644
浏览文件 @
02a0ab6d
import
{
saveAs
}
from
'
file-saver
'
import
axios
from
'
axios
'
import
{
getToken
}
from
'
@/utils/auth
'
const
baseURL
=
process
.
env
.
VUE_APP_BASE_API
export
default
{
// 下载 Excel 方法
excel
(
data
,
fileName
)
{
this
.
download0
(
data
,
fileName
,
'
application/vnd.ms-excel
'
);
},
// 下载 Word 方法
word
(
data
,
fileName
)
{
this
.
download0
(
data
,
fileName
,
'
application/msword
'
);
},
// 下载 Zip 方法
zip
(
data
,
fileName
)
{
this
.
download0
(
data
,
fileName
,
'
application/zip
'
);
},
// 下载 Html 方法
html
(
data
,
fileName
)
{
this
.
download0
(
data
,
fileName
,
'
text/html
'
);
},
// 下载 Markdown 方法
markdown
(
data
,
fileName
)
{
this
.
download0
(
data
,
fileName
,
'
text/markdown
'
);
},
download0
(
data
,
fileName
,
mineType
)
{
// 创建 blob
let
blob
=
new
Blob
([
data
],
{
type
:
mineType
});
// 创建 href 超链接,点击进行下载
window
.
URL
=
window
.
URL
||
window
.
webkitURL
;
let
href
=
URL
.
createObjectURL
(
blob
);
let
downA
=
document
.
createElement
(
"
a
"
);
downA
.
href
=
href
;
downA
.
download
=
fileName
;
downA
.
click
();
// 销毁超连接
window
.
URL
.
revokeObjectURL
(
href
);
}
}
yudao-ui-admin/src/plugins/index.js
浏览文件 @
02a0ab6d
import
cache
from
'
./cache
'
import
modal
from
'
./modal
'
import
download
from
'
./download
'
export
default
{
install
(
Vue
)
{
...
...
@@ -7,5 +8,7 @@ export default {
Vue
.
prototype
.
$cache
=
cache
// 模态框对象
Vue
.
prototype
.
$modal
=
modal
// 下载文件
Vue
.
prototype
.
$download
=
download
}
}
yudao-ui-admin/src/utils/ruoyi.js
浏览文件 @
02a0ab6d
...
...
@@ -100,50 +100,6 @@ export function addBeginAndEndTime(params, dateRange, propName) {
return
params
;
}
// 通用下载方法
export
function
download
(
fileName
)
{
window
.
location
.
href
=
baseURL
+
"
/common/download?fileName=
"
+
encodeURI
(
fileName
)
+
"
&delete=
"
+
true
;
}
// 下载 Excel 方法
export
function
downloadExcel
(
data
,
fileName
)
{
download0
(
data
,
fileName
,
'
application/vnd.ms-excel
'
);
}
// 下载 Word 方法
export
function
downloadWord
(
data
,
fileName
)
{
download0
(
data
,
fileName
,
'
application/msword
'
);
}
// 下载 Zip 方法
export
function
downloadZip
(
data
,
fileName
)
{
download0
(
data
,
fileName
,
'
application/zip
'
);
}
// 下载 Html 方法
export
function
downloadHtml
(
data
,
fileName
)
{
download0
(
data
,
fileName
,
'
text/html
'
);
}
// 下载 Markdown 方法
export
function
downloadMarkdown
(
data
,
fileName
)
{
download0
(
data
,
fileName
,
'
text/markdown
'
);
}
function
download0
(
data
,
fileName
,
mineType
)
{
// 创建 blob
let
blob
=
new
Blob
([
data
],
{
type
:
mineType
});
// 创建 href 超链接,点击进行下载
window
.
URL
=
window
.
URL
||
window
.
webkitURL
;
let
href
=
URL
.
createObjectURL
(
blob
);
let
downA
=
document
.
createElement
(
"
a
"
);
downA
.
href
=
href
;
downA
.
download
=
fileName
;
downA
.
click
();
// 销毁超连接
window
.
URL
.
revokeObjectURL
(
href
);
}
// 字符串格式化(%s )
export
function
sprintf
(
str
)
{
var
args
=
arguments
,
flag
=
true
,
i
=
1
;
...
...
yudao-ui-admin/src/views/infra/apiAccessLog/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -206,7 +206,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportApiAccessLogExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
API 访问日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
API 访问日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/infra/apiErrorLog/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -224,7 +224,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportApiErrorLogExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
API 错误日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
API 错误日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/infra/config/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -268,7 +268,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportConfig
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
参数配置.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
参数配置.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
...
...
yudao-ui-admin/src/views/infra/job/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -367,7 +367,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportJob
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
定时任务.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
定时任务.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/infra/job/log.vue
浏览文件 @
02a0ab6d
...
...
@@ -169,7 +169,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportJobLogExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
定时任务日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
定时任务日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/pay/app/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -417,7 +417,7 @@ export default {
this
.
$modal
.
confirm
(
'
是否确认导出所有支付应用信息数据项?
'
).
then
(
function
()
{
return
exportAppExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
支付应用信息.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
支付应用信息.xls
'
);
}).
catch
(()
=>
{});
},
/**
...
...
yudao-ui-admin/src/views/pay/merchant/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -279,7 +279,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportMerchantExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
支付商户信息.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
支付商户信息.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/pay/order/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -423,7 +423,7 @@ export default {
this
.
$modal
.
confirm
(
'
是否确认导出所有支付订单数据项?
'
).
then
(
function
()
{
return
exportOrderExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
支付订单.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
支付订单.xls
'
);
}).
catch
(()
=>
{});
},
/**
...
...
yudao-ui-admin/src/views/pay/refund/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -427,7 +427,7 @@ export default {
this
.
$modal
.
confirm
(
'
是否确认导出所有退款订单数据项?
'
).
then
(
function
()
{
return
exportRefundExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
退款订单.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
退款订单.xls
'
);
}).
catch
(()
=>
{});
},
/**
...
...
yudao-ui-admin/src/views/system/dict/data.vue
浏览文件 @
02a0ab6d
...
...
@@ -297,7 +297,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportData
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
字典数据.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
字典数据.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/dict/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -250,7 +250,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportType
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
字典类型.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
字典类型.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/errorCode/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -243,7 +243,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportErrorCodeExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
错误码.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
错误码.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/loginlog/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -126,7 +126,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportLoginLog
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
登录日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
登录日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/operatelog/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -206,7 +206,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportOperateLog
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
操作日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
操作日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/post/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -236,7 +236,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportPost
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
岗位数据.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
岗位数据.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/role/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -497,7 +497,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportRole
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
角色数据.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
角色数据.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/sms/smsLog.vue
浏览文件 @
02a0ab6d
...
...
@@ -282,7 +282,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportSmsLogExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
短信日志.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
短信日志.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
...
...
yudao-ui-admin/src/views/system/sms/smsTemplate.vue
浏览文件 @
02a0ab6d
...
...
@@ -334,7 +334,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportSmsTemplateExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
短信模板.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
短信模板.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
...
...
yudao-ui-admin/src/views/system/tenant/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -246,7 +246,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportTenantExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
租户.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
租户.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
yudao-ui-admin/src/views/system/user/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -585,7 +585,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportUser
(
queryParams
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
用户数据.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
用户数据.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
...
...
@@ -597,7 +597,7 @@ export default {
/** 下载模板操作 */
importTemplate
()
{
importTemplate
().
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
用户导入模板.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
用户导入模板.xls
'
);
});
},
// 文件上传中处理
...
...
yudao-ui-admin/src/views/tool/codegen/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -192,7 +192,7 @@ export default {
/** 生成代码操作 */
handleGenTable
(
row
)
{
downloadCodegen
(
row
.
id
).
then
(
response
=>
{
this
.
downloadZ
ip
(
response
,
'
codegen-
'
+
row
.
tableName
+
'
.zip
'
);
this
.
$download
.
z
ip
(
response
,
'
codegen-
'
+
row
.
tableName
+
'
.zip
'
);
})
},
/** 同步数据库操作 */
...
...
yudao-ui-admin/src/views/tool/dbDoc/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -48,19 +48,19 @@ export default {
/** 处理导出 HTML */
handleExportHtml
()
{
exportHtml
().
then
(
response
=>
{
this
.
downloadH
tml
(
response
,
'
数据库文档.html
'
);
this
.
$download
.
h
tml
(
response
,
'
数据库文档.html
'
);
})
},
/** 处理导出 Word */
handleExportWord
()
{
exportWord
().
then
(
response
=>
{
this
.
downloadW
ord
(
response
,
'
数据库文档.doc
'
);
this
.
$download
.
w
ord
(
response
,
'
数据库文档.doc
'
);
})
},
/** 处理导出 Markdown */
handleExportMarkdown
()
{
exportMarkdown
().
then
(
response
=>
{
this
.
downloadM
arkdown
(
response
,
'
数据库文档.md
'
);
this
.
$download
.
m
arkdown
(
response
,
'
数据库文档.md
'
);
})
}
}
...
...
yudao-ui-admin/src/views/tool/testDemo/index.vue
浏览文件 @
02a0ab6d
...
...
@@ -253,7 +253,7 @@ export default {
this
.
exportLoading
=
true
;
return
exportTestDemoExcel
(
params
);
}).
then
(
response
=>
{
this
.
downloadE
xcel
(
response
,
'
字典类型.xls
'
);
this
.
$download
.
e
xcel
(
response
,
'
字典类型.xls
'
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录