Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zys-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
zys-ui
Commits
f4527808
提交
f4527808
authored
10月 07, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
替换caj阅读器的地址,删除本地包
上级
6dc69893
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
49 行增加
和
14 行删除
+49
-14
CAJViewer 8.1_x64-setup.exe
public/caj-viewer/CAJViewer 8.1_x64-setup.exe
+0
-0
index.vue
src/components/PdfViewer/index.vue
+1
-1
file.js
src/libs/qiwen/globalFunction/file.js
+13
-2
file.js
src/utils/file.js
+2
-2
index.vue
src/views/read/pdfReader/index.vue
+6
-3
index.vue
src/views/resource/internal/index.vue
+5
-5
vue.config.js
vue.config.js
+22
-1
没有找到文件。
public/caj-viewer/CAJViewer 8.1_x64-setup.exe
deleted
100644 → 0
浏览文件 @
6dc69893
File deleted
src/components/PdfViewer/index.vue
浏览文件 @
f4527808
...
@@ -360,7 +360,7 @@ export default {
...
@@ -360,7 +360,7 @@ export default {
}
}
.pagnaition
input
{
.pagnaition
input
{
width
:
36px
;
width
:
36px
;
height
:
3
6px
;
height
:
2
6px
;
margin-right
:
5px
;
margin-right
:
5px
;
}
}
.main
{
.main
{
...
...
src/libs/qiwen/globalFunction/file.js
浏览文件 @
f4527808
...
@@ -238,6 +238,7 @@ const fileFunction = {
...
@@ -238,6 +238,7 @@ const fileFunction = {
* @param {array} fileList 文件列表
* @param {array} fileList 文件列表
*/
*/
handleFileNameClickNew
(
row
,
currentIndex
=
0
,
fileList
=
[])
{
handleFileNameClickNew
(
row
,
currentIndex
=
0
,
fileList
=
[])
{
// console.log(11, row);
// 若是文件夹则进入该文件夹
// 若是文件夹则进入该文件夹
if
(
row
.
isDir
)
{
if
(
row
.
isDir
)
{
router
.
push
({
router
.
push
({
...
@@ -252,7 +253,9 @@ const fileFunction = {
...
@@ -252,7 +253,9 @@ const fileFunction = {
const
PDF
=
[
'pdf'
]
const
PDF
=
[
'pdf'
]
// 若当前点击项是word
// 若当前点击项是word
let
extendName
=
row
.
extendName
||
row
.
suffix
||
row
.
showType
||
row
.
docSType
let
extendName
=
row
.
extendName
||
row
.
suffix
||
row
.
showType
||
row
.
docSType
const
{
fileId
,
userId
,
id
,
docId
}
=
row
// console.log('extendName', extendName);
const
{
fileId
,
userId
,
id
,
docId
,
fileUrl
}
=
row
if
(
WORD
.
includes
(
extendName
.
toLowerCase
()))
{
if
(
WORD
.
includes
(
extendName
.
toLowerCase
()))
{
let
flag
=
false
let
flag
=
false
// 根据当前文件的作者的userId进行判断,和本人一致则是可编辑
// 根据当前文件的作者的userId进行判断,和本人一致则是可编辑
...
@@ -281,17 +284,25 @@ const fileFunction = {
...
@@ -281,17 +284,25 @@ const fileFunction = {
return
false
return
false
// 实际实现逻辑---end
// 实际实现逻辑---end
}
}
// 若当前点击项是pdf
else
if
(
PDF
.
includes
(
extendName
.
toLowerCase
()))
{
else
if
(
PDF
.
includes
(
extendName
.
toLowerCase
()))
{
// console.log(666, 'pdf');
// 若当前点击项是pdf
if
(
!
fileUrl
)
{
Message
.
error
(
'预览失败!请检查该文件路径是否正确。文件路径:'
+
fileUrl
)
return
}
let
resolve
=
router
.
resolve
({
let
resolve
=
router
.
resolve
({
path
:
'/pdfReader'
,
path
:
'/pdfReader'
,
query
:
{
query
:
{
fileId
,
fileId
,
url
:
fileUrl
}
}
})
})
// console.log(333, row);
window
.
open
(
resolve
.
href
,
'_blank'
)
window
.
open
(
resolve
.
href
,
'_blank'
)
return
false
return
false
}
}
}
}
},
},
/**
/**
...
...
src/utils/file.js
浏览文件 @
f4527808
...
@@ -158,8 +158,8 @@ export function openFile(file, $el, localStorage, flag = false) {
...
@@ -158,8 +158,8 @@ export function openFile(file, $el, localStorage, flag = false) {
export
function
handleDownloadCajViewer
()
{
export
function
handleDownloadCajViewer
()
{
let
a
=
document
.
createElement
(
"a"
);
let
a
=
document
.
createElement
(
"a"
);
a
.
href
=
"
/caj-viewer/CAJViewer 8.1_x64-setup
.exe"
;
a
.
href
=
"
http://192.168.1.5:5432/cajview/CAJViewer8.1
.exe"
;
a
.
download
=
"CAJViewer
8.1_x64-setup
.exe"
;
a
.
download
=
"CAJViewer
8.1.exe
.exe"
;
a
.
style
.
display
=
"none"
;
a
.
style
.
display
=
"none"
;
document
.
body
.
appendChild
(
a
);
document
.
body
.
appendChild
(
a
);
a
.
click
();
a
.
click
();
...
...
src/views/read/pdfReader/index.vue
浏览文件 @
f4527808
...
@@ -78,11 +78,14 @@ export default {
...
@@ -78,11 +78,14 @@ export default {
panelVisible
:
false
,
//笔记的窗口
panelVisible
:
false
,
//笔记的窗口
noteList
:
[],
noteList
:
[],
pdfAnnotInstance
:
null
,
pdfAnnotInstance
:
null
,
// url: "",
};
};
},
},
mounted
()
{
mounted
()
{
const
{
fileId
}
=
this
.
$route
.
query
;
const
{
fileId
,
url
}
=
this
.
$route
.
query
;
console
.
log
(
222
,
url
);
this
.
form
.
docId
=
fileId
;
this
.
form
.
docId
=
fileId
;
this
.
url
=
url
;
},
},
methods
:
{
methods
:
{
// 关闭笔记窗口
// 关闭笔记窗口
...
@@ -114,9 +117,9 @@ export default {
...
@@ -114,9 +117,9 @@ export default {
updateNoteList
(
noteList
)
{
updateNoteList
(
noteList
)
{
this
.
noteList
=
noteList
;
this
.
noteList
=
noteList
;
if
(
!
this
.
pdfAnnotInstance
)
{
if
(
!
this
.
pdfAnnotInstance
)
{
return
return
;
}
}
this
.
renderNote
()
this
.
renderNote
()
;
},
},
// 渲染笔记
// 渲染笔记
renderNote
()
{
renderNote
()
{
...
...
src/views/resource/internal/index.vue
浏览文件 @
f4527808
...
@@ -52,26 +52,26 @@
...
@@ -52,26 +52,26 @@
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<
!-- <
el-table-column
label="作者"
label="作者"
align="center"
align="center"
prop="author"
prop="author"
show-overflow-tooltip
show-overflow-tooltip
>
>
</el-table-column>
</el-table-column>
-->
<!-- <el-table-column
<!-- <el-table-column
show-overflow-tooltip
show-overflow-tooltip
label="年份"
label="年份"
prop="year"
prop="year"
align="center"
align="center"
/> -->
/> -->
<el-table-column
<
!-- <
el-table-column
show-overflow-tooltip
show-overflow-tooltip
label="机构"
label="机构"
prop="organize"
prop="organize"
align="center"
align="center"
>
>
</el-table-column>
</el-table-column>
-->
<el-table-column
<el-table-column
label=
"文件大小"
label=
"文件大小"
align=
"center"
align=
"center"
...
@@ -133,6 +133,7 @@
...
@@ -133,6 +133,7 @@
<
script
>
<
script
>
import
{
getInnerFileList
}
from
"@/api/resource"
;
import
{
getInnerFileList
}
from
"@/api/resource"
;
import
{
uploadModeConstant
,
fileTypeConstant
}
from
"@/constants/index"
;
import
{
uploadModeConstant
,
fileTypeConstant
}
from
"@/constants/index"
;
import
{
newfile
}
from
"@/api/wps"
;
const
{
INTERNAL_RESOURCE
}
=
fileTypeConstant
;
const
{
INTERNAL_RESOURCE
}
=
fileTypeConstant
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -223,7 +224,6 @@ export default {
...
@@ -223,7 +224,6 @@ export default {
// 点击收藏
// 点击收藏
handleCollect
(
row
)
{
handleCollect
(
row
)
{
console
.
log
(
"点击收藏"
,
row
);
this
.
loading
=
true
;
this
.
loading
=
true
;
const
{
extendName
,
fileName
}
=
row
;
const
{
extendName
,
fileName
}
=
row
;
const
filePath
=
"/我的收藏"
;
const
filePath
=
"/我的收藏"
;
...
...
vue.config.js
浏览文件 @
f4527808
...
@@ -44,7 +44,28 @@ module.exports = {
...
@@ -44,7 +44,28 @@ module.exports = {
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
}
}
}
},
// "/files": {
// target: "http://192.168.1.5:5236",
// changeOrigin: true,
// pathRewrite: {
// "^/files": "",
// },
// },
"/basePdfFiles"
:
{
target
:
"http://192.168.1.5:5236"
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/basePdfFiles"
:
""
,
},
},
"/kbaseFiles"
:
{
target
:
"http://192.168.1.5:5236"
,
changeOrigin
:
true
,
pathRewrite
:
{
"^/kbaseFiles"
:
""
,
},
},
},
},
disableHostCheck
:
true
disableHostCheck
:
true
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论