Commit 6e5a61a6 by jianshuqin

增加功能:离线导出

parent 92bcbf49
...@@ -188,7 +188,7 @@ ...@@ -188,7 +188,7 @@
that.$prompt('', '离线导出', { closeOnClickModal: false, inputPlaceholder: name }).then((result) => { that.$prompt('', '离线导出', { closeOnClickModal: false, inputPlaceholder: name }).then((result) => {
//异步请求 //异步请求
if (that.$refs.formFilter.validate()) { if (that.$refs.formFilter.validate()) {
that.$http.post("/Component/OfflineDownload/Export", $.extend({ name: result.value }, ((filterParams.constructor === Object ? filterParams : null) || that.filterParams)), { emulateJSON: true }).then(function (response) { that.$http.post("/Component/OfflineDownload/Export", $.extend({ name: result.value || name }, ((filterParams.constructor === Object ? filterParams : null) || that.filterParams)), { emulateJSON: true }).then(function (response) {
var result = response.data; var result = response.data;
if (response.status === 200 && result.result) { if (response.status === 200 && result.result) {
that.$message({ message: '正在导出,请稍后在离线下载页面下载文件!', type: 'success' }); that.$message({ message: '正在导出,请稍后在离线下载页面下载文件!', type: 'success' });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment