提交 362db157 authored 作者: 龙菲's avatar 龙菲

增加下载CajViwer的页面

上级 65a22c87
...@@ -13,6 +13,8 @@ VUE_APP_BASE_QW_API = '/api' ...@@ -13,6 +13,8 @@ VUE_APP_BASE_QW_API = '/api'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 服务器(涉密机)地址 # 服务器(涉密机)地址
VUE_APP_BASE_HOST = 'http://192.168.1.5:5432/basePdfFiles/' VUE_APP_BASE_HOST = 'http://192.168.1.5:5432'
\ No newline at end of file
# 服务器(涉密机)pdf地址
VUE_APP_BASE_PDF_FILE = 'http://192.168.1.5:5432/basePdfFiles/'
\ No newline at end of file
...@@ -11,4 +11,7 @@ VUE_APP_BASE_API = '/prod-api' ...@@ -11,4 +11,7 @@ VUE_APP_BASE_API = '/prod-api'
VUE_APP_BASE_QW_API = '/api' VUE_APP_BASE_QW_API = '/api'
# 服务器(涉密机)地址 # 服务器(涉密机)地址
VUE_APP_BASE_HOST = 'http://192.168.1.5:5432/basePdfFiles/' VUE_APP_BASE_HOST = 'http://192.168.1.5:5432'
\ No newline at end of file
# 服务器(涉密机)pdf地址
VUE_APP_BASE_PDF_FILE = 'http://192.168.1.5:5432/basePdfFiles/'
\ No newline at end of file
...@@ -13,4 +13,7 @@ VUE_APP_BASE_API = '/stage-api' ...@@ -13,4 +13,7 @@ VUE_APP_BASE_API = '/stage-api'
VUE_APP_BASE_QW_API = '/api' VUE_APP_BASE_QW_API = '/api'
# 服务器(涉密机)地址 # 服务器(涉密机)地址
VUE_APP_BASE_HOST = 'http://192.168.1.5:5432/basePdfFiles/' VUE_APP_BASE_HOST = 'http://192.168.1.5:5432'
\ No newline at end of file
# 服务器(涉密机)pdf地址
VUE_APP_BASE_PDF_FILE = 'http://192.168.1.5:5432/basePdfFiles/'
\ No newline at end of file
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
"vue-meta": "2.4.0", "vue-meta": "2.4.0",
"vue-router": "3.4.9", "vue-router": "3.4.9",
"vue-simple-uploader": "^0.7.6", "vue-simple-uploader": "^0.7.6",
"vue-waterfall-easy": "^2.4.4",
"vuedraggable": "2.24.3", "vuedraggable": "2.24.3",
"vuex": "3.6.0", "vuex": "3.6.0",
"wangeditor": "^4.7.5" "wangeditor": "^4.7.5"
......
...@@ -75,6 +75,19 @@ export const constantRoutes = [ ...@@ -75,6 +75,19 @@ export const constantRoutes = [
} }
] ]
}, },
{
path: '/caj',
component: Layout,
redirect: '/cajDownload',
children: [
{
path: 'cajDownload',
component: () => import('@/views/caj/index'),
name: 'cajDownload',
meta: { title: 'caj阅读页', icon: 'caj-logo', affix: true }
}
]
},
// ...staticRouters, // ...staticRouters,
{ {
path: '/user', path: '/user',
......
import { getViewUrlDbPath } from '@/api/wps' import { getViewUrlDbPath } from '@/api/wps'
import router from '@/router';
/** /**
* 下载文件 * 下载文件
...@@ -155,13 +156,17 @@ export function openFile(file, $el, localStorage, flag = false) { ...@@ -155,13 +156,17 @@ export function openFile(file, $el, localStorage, flag = false) {
} }
} }
// 打开cajViwer下载页面
export function handleDownloadCajViewer() { export function handleDownloadCajViewer() {
let a = document.createElement("a"); let resolve = router.resolve({
a.href = "http://192.168.1.5:5432/cajview/CAJViewer8.1.exe"; path: '/cajDownload',
a.download = "CAJViewer8.1.exe.exe"; })
a.style.display = "none"; window.open(resolve.href, '_blank')
document.body.appendChild(a); // let a = document.createElement("a");
a.click(); // a.href = "http://192.168.1.5:5432/cajview/CAJViewer8.1.exe";
a.remove(); // a.download = "CAJViewer8.1.exe.exe";
// a.style.display = "none";
// document.body.appendChild(a);
// a.click();
// a.remove();
} }
差异被折叠。
const baseUrl = process.env.VUE_APP_BASE_HOST
const folder = '/SoftWare'
const urls = {
TXUOS_INTER:
"/TXUOS/inter/net.cnki.cajviewer_1.1.1-3_amd64.deb",
TXUOS_FT: "/TXUOS/FT/net.cnki.cajviewer_1.1.1-3_arm64.deb",
TXUOS_LX3A4000:
"/TXUOS/LX3A4000/net.cnki.cajviewer_1.1.1-3_mips64.deb",
TXUOS_LX3A5000:
"/TXUOS/LX3A5000/net.cnki.cajviewer_1.1.0-2_loongarch64.deb",
TXUOS_KMSRMJCY:
"/TXUOS/KMSRMJCY/signed_net.cnki.cajviewer_1.2.0-1_mips64.deb.deb",
YHQL_INTER: "/YHQL/inter/cajviewer_1.1.1-3_amd64.deb",
YHQL_FT: "/YHQL/FT/cajviewer_1.1.1-3_arm64.deb",
YHQL_LX3A4000: "/YHQL/LX3A4000/cajviewer_1.1.1-3_mips64.deb",
YHQL_LX3A5000:
"/YHQL/LX3A5000/cajviewer_1.1.0-2_loongarch64.deb",
ZKFD_SERVER: "/ZKFD/Server/cajviewer-1.1.1-3.nfs4.x86_64.rpm",
ZKFD_CLIENT: "/ZKFD/Client/cajviewer_1.1.1-3_amd64.deb",
WINDOWS_64: "/Windows/64/CAJViewer 8.1_x64-setup.exe",
WINDOWS_32: "/Windows/32/CAJViewer8.0.1.1-setup.exe",
JDBF: "/JDBF/CAJViewer-x86_64-1.1.1.AppImage",
}
const fullUrl = addBaseUrl(urls)
// 增加baseUrl
function addBaseUrl() {
const newUrls = {}
for (const key in urls) {
newUrls[key] = baseUrl + folder + urls[key]
}
return newUrls
}
export default fullUrl
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论