Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zys-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
zys-ui
Commits
7ec8df76
提交
7ec8df76
authored
10月 10, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改caj阅读器打开失败的问题;修复第三方资源搜索的问题
上级
3b40dce6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
38 行增加
和
34 行删除
+38
-34
file.js
src/libs/qiwen/globalFunction/file.js
+10
-9
index.js
src/router/index.js
+13
-13
file.js
src/utils/file.js
+1
-1
index.vue
src/views/caj/index.vue
+8
-5
urls.js
src/views/caj/urls.js
+1
-1
index.vue
src/views/resource/external/index.vue
+5
-5
没有找到文件。
src/libs/qiwen/globalFunction/file.js
浏览文件 @
7ec8df76
...
@@ -262,7 +262,7 @@ const fileFunction = {
...
@@ -262,7 +262,7 @@ const fileFunction = {
let
pdfUrl
=
row
[
urlKey
]
||
row
.
url
//有部分url未加前缀,但是浏览器会自动寻址加到当前的主机
let
pdfUrl
=
row
[
urlKey
]
||
row
.
url
//有部分url未加前缀,但是浏览器会自动寻址加到当前的主机
if
(
!
pdfUrl
.
includes
(
'http'
))
{
if
(
!
pdfUrl
.
includes
(
'http'
))
{
pdfUrl
=
process
.
env
.
VUE_APP_BASE_
HOST
+
pdfUrl
pdfUrl
=
process
.
env
.
VUE_APP_BASE_
PDF_FILE
+
pdfUrl
}
}
// console.log('pdfUrl', pdfUrl);
// console.log('pdfUrl', pdfUrl);
// return
// return
...
@@ -303,14 +303,15 @@ const fileFunction = {
...
@@ -303,14 +303,15 @@ const fileFunction = {
Message
.
error
(
'预览失败!请检查该文件路径是否正确。文件路径:'
+
pdfUrl
)
Message
.
error
(
'预览失败!请检查该文件路径是否正确。文件路径:'
+
pdfUrl
)
return
return
}
}
let
resolve
=
router
.
resolve
({
// let resolve = router.resolve({
path
:
'/pdfReader'
,
// path: '/pdfReader',
query
:
{
// query: {
fileId
,
// fileId,
url
:
pdfUrl
// url: pdfUrl
}
// }
})
// })
window
.
open
(
resolve
.
href
,
'_blank'
)
// window.open(resolve.href, '_blank')
window
.
open
(
pdfUrl
,
'_blank'
)
return
false
return
false
}
}
...
...
src/router/index.js
浏览文件 @
7ec8df76
...
@@ -75,19 +75,19 @@ export const constantRoutes = [
...
@@ -75,19 +75,19 @@ export const constantRoutes = [
}
}
]
]
},
},
{
//
{
path
:
'/caj'
,
//
path: '/caj',
component
:
Layout
,
//
component: Layout,
redirect
:
'/cajDownload'
,
//
redirect: '/cajDownload',
children
:
[
//
children: [
{
//
{
path
:
'cajDownload'
,
//
path: 'cajDownload',
component
:
()
=>
import
(
'@/views/caj/index'
),
//
component: () => import('@/views/caj/index'),
name
:
'cajDownload'
,
//
name: 'cajDownload',
meta
:
{
title
:
'caj阅读页'
,
icon
:
'caj-logo'
,
affix
:
true
}
//
meta: { title: 'caj阅读页', icon: 'caj-logo', affix: true }
}
//
}
]
//
]
},
//
},
// ...staticRouters,
// ...staticRouters,
{
{
path
:
'/user'
,
path
:
'/user'
,
...
...
src/utils/file.js
浏览文件 @
7ec8df76
...
@@ -159,7 +159,7 @@ export function openFile(file, $el, localStorage, flag = false) {
...
@@ -159,7 +159,7 @@ export function openFile(file, $el, localStorage, flag = false) {
// 打开cajViwer下载页面
// 打开cajViwer下载页面
export
function
handleDownloadCajViewer
()
{
export
function
handleDownloadCajViewer
()
{
let
resolve
=
router
.
resolve
({
let
resolve
=
router
.
resolve
({
path
:
'/caj
Download
'
,
path
:
'/caj'
,
})
})
window
.
open
(
resolve
.
href
,
'_blank'
)
window
.
open
(
resolve
.
href
,
'_blank'
)
// let a = document.createElement("a");
// let a = document.createElement("a");
...
...
src/views/caj/index.vue
浏览文件 @
7ec8df76
...
@@ -493,6 +493,9 @@ export default {
...
@@ -493,6 +493,9 @@ export default {
...
fullUrl
,
...
fullUrl
,
};
};
},
},
mounted
(){
console
.
log
(
123
,
fullUrl
)
},
methods
:
{
methods
:
{
changeDemo
(
n
)
{
changeDemo
(
n
)
{
this
.
currentDemo
=
n
;
this
.
currentDemo
=
n
;
...
@@ -601,9 +604,9 @@ body {
...
@@ -601,9 +604,9 @@ body {
padding-top
:
60px
;
padding-top
:
60px
;
}
}
.content_title
{
.content_title
{
width
:
8
0%
;
width
:
10
0%
;
height
:
130px
;
height
:
130px
;
margin-left
:
10%
;
//
margin-left: 10%;
margin-top
:
-20px
;
margin-top
:
-20px
;
}
}
.content_title
ul
{
.content_title
ul
{
...
@@ -627,7 +630,7 @@ body {
...
@@ -627,7 +630,7 @@ body {
}
}
.active
{
.active
{
background-image
:
url(~@/assets/images/caj/title_bg2.png)
!
important
;
background-image
:
url(~@/assets/images/caj/title_bg2.png)
!
important
;
color
:
#fff
;
color
:
#fff
;
}
}
.content_head
{
.content_head
{
width
:
80%
;
width
:
80%
;
...
@@ -677,8 +680,8 @@ body {
...
@@ -677,8 +680,8 @@ body {
float
:
left
;
float
:
left
;
line-height
:
60px
;
line-height
:
60px
;
text-align
:
center
;
text-align
:
center
;
&
:nth-child
(
1
)
{
&
:nth-child
(
1
)
{
padding-left
:
140px
;
//
padding-left: 140px;
}
}
}
}
.download
:hover
{
.download
:hover
{
...
...
src/views/caj/urls.js
浏览文件 @
7ec8df76
const
baseUrl
=
process
.
env
.
VUE_APP_BASE_HOST
const
baseUrl
=
process
.
env
.
VUE_APP_BASE_HOST
const
folder
=
'/
SoftW
are'
const
folder
=
'/
software/softw
are'
const
urls
=
{
const
urls
=
{
TXUOS_INTER
:
TXUOS_INTER
:
"/TXUOS/inter/net.cnki.cajviewer_1.1.1-3_amd64.deb"
,
"/TXUOS/inter/net.cnki.cajviewer_1.1.1-3_amd64.deb"
,
...
...
src/views/resource/external/index.vue
浏览文件 @
7ec8df76
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
v-loading=
"loading"
v-loading=
"loading"
previewType=
"caj"
previewType=
"caj"
currentKey=
"pageNo"
currentKey=
"pageNo"
sizeKey=
"page
Count
"
sizeKey=
"page
Size
"
totalKey=
"totalElements"
totalKey=
"totalElements"
/>
/>
</div>
</div>
...
@@ -32,7 +32,7 @@ export default {
...
@@ -32,7 +32,7 @@ export default {
list
:
{
list
:
{
records
:
[],
records
:
[],
totalElements
:
0
,
totalElements
:
0
,
page
Count
:
10
,
page
Size
:
10
,
pageNo
:
1
,
pageNo
:
1
,
},
},
loading
:
false
,
loading
:
false
,
...
@@ -49,11 +49,11 @@ export default {
...
@@ -49,11 +49,11 @@ export default {
if
(
refresh
)
{
if
(
refresh
)
{
this
.
list
.
pageNo
=
1
;
this
.
list
.
pageNo
=
1
;
}
}
const
{
pageNo
,
page
Count
}
=
this
.
list
;
const
{
pageNo
,
page
Size
}
=
this
.
list
;
const
params
=
{
const
params
=
{
keyword
,
keyword
,
pageNo
,
pageNo
,
page
Count
,
page
Size
,
year
:
currentYear
,
year
:
currentYear
,
};
};
let
request
;
let
request
;
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
let
res
=
await
request
(
params
);
let
res
=
await
request
(
params
);
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
list
=
res
.
data
;
this
.
list
=
res
.
data
;
this
.
list
.
page
Count
=
Number
(
this
.
list
.
pageCount
);
this
.
list
.
page
Size
=
Number
(
this
.
list
.
pageSize
);
this
.
list
.
pageNo
=
Number
(
this
.
list
.
pageNo
);
this
.
list
.
pageNo
=
Number
(
this
.
list
.
pageNo
);
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论