修改
This commit is contained in:
@@ -154,8 +154,6 @@ export function callApi(funName, params) {
|
||||
export function fileDown (downLoadUrl, fileName, id,data) {
|
||||
// 测试app
|
||||
|
||||
// let url = `https://mam.zeus2.top:10030/xtkb-web/file/fileDownload?id=${downLoadUrl}`
|
||||
// const url = `https://mamjs.sgcc.com.cn:10443/xtkb-web/file/fileDownload?id=${downLoadUrl}`
|
||||
//正式app
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
let url = `/xtkb-web/file/fileDownload?id=${downLoadUrl}`
|
||||
@@ -163,64 +161,6 @@ export function fileDown (downLoadUrl, fileName, id,data) {
|
||||
}else{
|
||||
|
||||
}
|
||||
// // let url = `https://mamjs.sgcc.com.cn:10443/xtkb-web/file/fileDownload?id=${downLoadUrl}`
|
||||
// function success (result) {
|
||||
// let type = result.data.event
|
||||
// switch (type) {
|
||||
// case 'fail':
|
||||
// Toast.$create({
|
||||
// txt: '下载失败',
|
||||
// type: 'error'
|
||||
// }).show();
|
||||
// break;
|
||||
// case 'progress':
|
||||
// Toast.$create({
|
||||
// txt: '正在下载',
|
||||
// type: 'warn'
|
||||
// }).show();
|
||||
// break;
|
||||
// case 'success':
|
||||
// Toast.$create({
|
||||
// txt: '下载成功',
|
||||
// type: 'success'
|
||||
// }).show();
|
||||
// // let urlData = result.fileUrl.split('/serverfile')
|
||||
// // let newUrl
|
||||
// // if (urlData.length === 2) {
|
||||
// // newUrl = urlData[0] + '/serverfile/' + fileName
|
||||
// // } else {
|
||||
// // newUrl = result.fileUrl
|
||||
// // }
|
||||
// // let dataUrl = data.split('data:')
|
||||
// mam.navigator.appfilemanage.openFile(url,fileName);
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// // JSINTXTKB
|
||||
// Dialog.$create({
|
||||
// type: 'confirm',
|
||||
// icon: 'cubeic-alert',
|
||||
// title: '文件',
|
||||
// content: '是否下载文件',
|
||||
// confirmBtn: {
|
||||
// text: '确定下载',
|
||||
// active: true,
|
||||
// disabled: false,
|
||||
// href: 'javascript:;'
|
||||
// },
|
||||
// cancelBtn: {
|
||||
// text: '取消下载',
|
||||
// active: false,
|
||||
// disabled: false,
|
||||
// href: 'javascript:;'
|
||||
// },
|
||||
// onConfirm: () => {
|
||||
// // JSINTXTWZS
|
||||
// mam.navigator.appfilemanage.fileDownload2(success, 'JSINTXTWZS', '', url, '/serverfile', fileName, id, { id: id })
|
||||
// },
|
||||
// onCancel: () => {
|
||||
// }
|
||||
// }).show()
|
||||
}
|
||||
// function diyDownload()
|
||||
// {
|
||||
|
||||
Reference in New Issue
Block a user