Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Z
zys-ui
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
龙菲
zys-ui
Commits
619ae000
提交
619ae000
authored
9月 05, 2023
作者:
龙菲
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改我的文件icon、网格文件名称展示等样式
上级
477ee4a5
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
109 行增加
和
278 行删除
+109
-278
index.js
src/api/user/index.js
+8
-1
dir.svg
src/assets/images/file/dir.svg
+2
-0
dir1.png
src/assets/images/file/dir1.png
+0
-0
BreadCrumb.vue
src/components/common/BreadCrumb.vue
+1
-103
FileTable.vue
src/components/common/FileTable.vue
+2
-4
Box.vue
src/components/file/box/contextMenu/Box.vue
+2
-2
FileGrid.vue
src/components/file/components/FileGrid.vue
+17
-4
OperationMenu.vue
src/components/file/components/OperationMenu.vue
+2
-2
file.js
src/libs/qiwen/globalFunction/file.js
+13
-29
map.js
src/libs/qiwen/map.js
+1
-1
mockNote.js
src/views/mine/myNote/components/mockNote.js
+0
-99
noteByFile.vue
src/views/mine/myNote/components/noteByFile.vue
+1
-8
noteByTag.vue
src/views/mine/myNote/components/noteByTag.vue
+0
-6
noteOperationMixins.js
src/views/mine/myNote/components/noteOperationMixins.js
+14
-1
insertNote.vue
src/views/read/wpsReader/component/insertNote.vue
+24
-2
index.vue
src/views/read/wpsReader/index.vue
+22
-16
没有找到文件。
src/api/user/index.js
浏览文件 @
619ae000
...
...
@@ -12,4 +12,11 @@ export const verity = params => {
params
})
}
// 新增阅读记录,浏览历史接口
export
const
addNearRead
=
data
=>
{
return
request
({
url
:
baseUrl
+
'/user/nearRead/add'
,
method
:
'post'
,
data
})
}
src/assets/images/file/dir.svg
0 → 100644
浏览文件 @
619ae000
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1693905752136"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"1677"
width=
"80"
height=
"80"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
><path
d=
"M918.673 883H104.327C82.578 883 65 867.368 65 848.027V276.973C65 257.632 82.578 242 104.327 242h814.346C940.422 242 958 257.632 958 276.973v571.054C958 867.28 940.323 883 918.673 883z"
fill=
"#FFE9B4"
p-id=
"1678"
></path><path
d=
"M512 411H65V210.37C65 188.597 82.598 171 104.371 171h305.92c17.4 0 32.71 11.334 37.681 28.036L512 411z"
fill=
"#FFB02C"
p-id=
"1679"
></path><path
d=
"M918.673 883H104.327C82.578 883 65 865.42 65 843.668V335.332C65 313.58 82.578 296 104.327 296h814.346C940.422 296 958 313.58 958 335.332v508.336C958 865.32 940.323 883 918.673 883z"
fill=
"#FFCA28"
p-id=
"1680"
></path></svg>
\ No newline at end of file
src/assets/images/file/dir1.png
0 → 100644
浏览文件 @
619ae000
767 Bytes
src/components/common/BreadCrumb.vue
浏览文件 @
619ae000
<
template
>
<div
class=
"breadcrumb-wrapper"
>
<div
class=
"title"
>
当前位置:
</div>
<!--
<el-input
class=
"file-path-input"
ref=
"filePathInputRef"
placeholder=
"请输入路径"
v-model=
"inputFilePath"
size=
"mini"
:autofocus=
"true"
v-show=
"isShowInput"
@
blur=
"handleInputBlurEnter"
@
change=
"handleInputBlurEnter"
></el-input>
-->
<div
class=
"breadcrumb-box"
@
click
.
self=
"handleClickBreadCrumbSelf"
>
<div
class=
"breadcrumb-box"
@
click
.
self=
"handleClickBreadCrumbSelf"
>
<el-breadcrumb
separator-class=
"el-icon-arrow-right"
>
<el-breadcrumb-item
v-for=
"(item, index) in breadCrumbList"
...
...
@@ -45,18 +31,6 @@ export default {
},
data
()
{
return
{
fileTypeMap
:
{
1
:
"全部图片"
,
2
:
"全部文档"
,
3
:
"全部视频"
,
4
:
"全部音乐"
,
5
:
"其他"
,
6
:
"回收站"
,
10
:
"我的创作"
,
11
:
"我的收藏"
,
12
:
"我的笔记"
,
},
isShowInput
:
false
,
// 是否展示路径输入框
inputFilePath
:
""
,
// 路径输入
breadCrumbList
:
[],
};
...
...
@@ -78,79 +52,22 @@ export default {
// 根目录
filePathList
[
i
]
=
""
;
_path
.
push
(
filePathList
[
i
]);
// res.push({
// path: "/",
// name:
// this.fileType === 0
// ? "全部文件"
// : this.fileType === 8
// ? "我的分享"
// : this.$route.name === "Share"
// ? "全部分享"
// : "",
// });
}
}
this
.
breadCrumbList
=
res
;
},
},
computed
:
{
/**
* 面包屑导航栏数组
*/
// breadCrumbList: {
// get() {
// let filePath = this.$route.query.filePath;
// let filePathList = filePath ? filePath.split("/") : [];
// let res = []; // 返回结果数组
// let _path = []; // 存放祖先路径
// for (let i = 0; i
<
filePathList
.
length
;
i
++
)
{
// if (filePathList[i]) {
// _path.push(filePathList[i]);
// res.push({
// path: _path.join("/"),
// name: filePathList[i],
// });
// } else if (i === 0) {
// // 根目录
// filePathList[i] = "";
// _path.push(filePathList[i]);
// res.push({
// path: "/",
// name:
// this.fileType === 0
// ? "全部文件"
// : this.fileType === 8
// ? "我的分享"
// : this.$route.name === "Share"
// ? "全部分享"
// : "",
// });
// }
// }
// return res;
// },
// set() {
// return [];
// },
// },
},
methods
:
{
/**
* 点击面包屑导航栏空白处
*/
handleClickBreadCrumbSelf
()
{
this
.
inputFilePath
=
this
.
filePath
;
this
.
isShowInput
=
true
;
this
.
$nextTick
(()
=>
{
this
.
$refs
.
filePathInputRef
.
focus
();
});
},
/**
* 路径输入框失去焦点或用户按下回车时触发
*/
handleInputBlurEnter
()
{
this
.
isShowInput
=
false
;
if
(
this
.
inputFilePath
!==
this
.
filePath
)
{
const
fixInputFilePath
=
this
.
inputFilePath
.
endsWith
(
"/"
)
?
this
.
inputFilePath
.
slice
(
0
,
-
1
)
...
...
@@ -162,25 +79,6 @@ export default {
},
// 获取文件参数
getRouteQuery
(
item
)
{
// debugger;
// let routeName = this.$route.name;
// if (routeName === "Share") {
// // 当前是查看他人分享列表的页面
// return { query: { filePath: item.path } };
// } else if (this.fileType === 8) {
// // 当前是我的已分享列表页面
// return {
// query: {
// fileType: 8,
// filePath: item.path,
// shareBatchNum:
// item.path === "/" ? undefined : this.$route.query.shareBatchNum, // 当查看的是根目录,批次号置空
// },
// };
// } else {
// // 网盘页面
// return { query: { filePath: item.path, fileType: item.fileType } };
// }
return
{
query
:
{
filePath
:
item
.
path
,
fileType
:
this
.
$route
.
query
.
fileType
},
};
...
...
src/components/common/FileTable.vue
浏览文件 @
619ae000
...
...
@@ -416,10 +416,8 @@ export default {
.file-table-wrapper
{
margin-top
:
2px
;
height
:
calc
(
100vh
-
2
62
px
)
!
important
;
height
:
calc
(
100vh
-
2
70
px
)
!
important
;
.file-type-0
{
// height: calc(100vh - 206px) !important;
::v-deep
.el-table__body-wrapper
{
height
:
calc
(
100vh
-
262px
)
!
important
;
}
...
...
@@ -443,7 +441,7 @@ export default {
.file-table
{
width
:
100%
!
important
;
height
:
calc
(
100
vh
-
290px
);
height
:
calc
(
100
%
);
::v-deep
.el-table__header-wrapper
{
th
{
...
...
src/components/file/box/contextMenu/Box.vue
浏览文件 @
619ae000
...
...
@@ -238,7 +238,7 @@ export default {
left
:
"126px"
,
right
:
"auto"
,
},
dirImg
:
require
(
"@/assets/images/file/dir.
pn
g"
),
dirImg
:
require
(
"@/assets/images/file/dir.
sv
g"
),
wordImg
:
require
(
"@/assets/images/file/file_word.svg"
),
excelImg
:
require
(
"@/assets/images/file/file_excel.svg"
),
pptImg
:
require
(
"@/assets/images/file/file_ppt.svg"
),
...
...
@@ -292,7 +292,7 @@ export default {
},
// 分享按钮是否显示
shareBtnShow
()
{
return
this
.
fileType
!=
this
.
TEMPLATE_MANAGE
;
//模板管理不能分享
return
this
.
fileType
!=
this
.
TEMPLATE_MANAGE
;
//模板管理不能分享
},
// 下载按钮是否显示
downloadBtnShow
()
{
...
...
src/components/file/components/FileGrid.vue
浏览文件 @
619ae000
<
template
>
<!-- 文件平铺 -->
<div
class=
"file-grid-wrapper"
>
<div
class=
"file-list empty"
v-loading=
"loading"
element-loading-text=
"文件加载中……"
v-if=
"fileListSorted.length == 0"
>
<el-empty></el-empty>
</div>
<ul
v-else
class=
"file-list"
v-loading=
"loading"
element-loading-text=
"文件加载中……"
...
...
@@ -353,10 +362,10 @@ export default {
line-height
:
22px
;
font-size
:
12px
;
word-break
:
break-all
;
@include
setEllipsis
(
2
);
::v-deep
.keyword
{
color
:
$Danger
;
}
//
@include setEllipsis(2);
//
::v-deep .keyword {
//
color: $Danger;
//
}
}
.file-checked-wrapper
{
...
...
@@ -383,6 +392,10 @@ export default {
background
:
$tabBackColor
;
}
}
.empty
{
display
:
flex
;
justify-content
:
center
;
}
.right-menu-list
{
position
:
fixed
;
...
...
src/components/file/components/OperationMenu.vue
浏览文件 @
619ae000
...
...
@@ -51,7 +51,7 @@
</el-dropdown-item>
<!-- 只有我的创作采用到新建word文档 -->
<el-dropdown-item
v-if=
"[MY_CREATE].includes(fileType)"
v-if=
"[MY_CREATE
,TEMPLATE_MANAGE
].includes(fileType)"
divided
@
click
.
native=
"handleCreateFileByTemplate('docx')"
>
...
...
@@ -279,7 +279,7 @@ export default {
},
operatePopoverVisible
:
false
,
// 收纳栏是否显示
fileGroupLable
:
0
,
// 文件展示模式
dirImg
:
require
(
"@/assets/images/file/dir.
pn
g"
),
dirImg
:
require
(
"@/assets/images/file/dir.
sv
g"
),
wordImg
:
require
(
"@/assets/images/file/file_word.svg"
),
excelImg
:
require
(
"@/assets/images/file/file_excel.svg"
),
pptImg
:
require
(
"@/assets/images/file/file_ppt.svg"
),
...
...
src/libs/qiwen/globalFunction/file.js
浏览文件 @
619ae000
...
...
@@ -304,27 +304,6 @@ const fileFunction = {
console
.
log
(
'row'
,
row
);
// 若是文件夹则进入该文件夹
if
(
row
.
isDir
)
{
if
(
router
.
currentRoute
.
name
===
'Share'
)
{
// 当前是查看他人分享列表的页面
router
.
push
({
query
:
{
filePath
:
`
${
row
.
shareFilePath
===
'/'
?
''
:
row
.
shareFilePath
}
/
${
row
.
fileName
}
`
}
})
}
else
if
(
Number
(
router
.
currentRoute
.
query
.
fileType
)
===
8
)
{
// 当前是我的已分享列表页面
router
.
push
({
query
:
{
fileType
:
8
,
filePath
:
`
${
row
.
shareFilePath
===
'/'
?
''
:
row
.
shareFilePath
}
/
${
row
.
fileName
}
`
,
shareBatchNum
:
row
.
shareBatchNum
}
})
}
else
if
(
Number
(
router
.
currentRoute
.
query
.
fileType
)
!==
6
)
{
// 回收站页面不允许打开文件夹
// 网盘页面
router
.
push
({
query
:
{
filePath
:
`
${
row
.
filePath
===
'/'
?
''
:
row
.
filePath
}
/
${
row
.
fileName
...
...
@@ -332,7 +311,6 @@ const fileFunction = {
fileType
:
router
.
currentRoute
.
query
.
fileType
}
})
}
}
else
{
const
WORD
=
[
'doc'
,
'docx'
]
const
PDF
=
[
'pdf'
]
...
...
@@ -341,25 +319,28 @@ const fileFunction = {
if
(
WORD
.
includes
(
extentName
.
toLowerCase
()))
{
let
flag
=
false
const
{
fileId
,
userId
,
id
}
=
row
// 根据当前文件的作者的userId进行判断,和本人一致则是可编辑
if
(
store
.
getters
.
userInfo
.
userId
==
userId
)
{
flag
=
true
}
const
params
=
{
fileId
:
fileId
,
flag
}
// 暂时写死---start
let
resolve
=
router
.
resolve
({
path
:
'/wpsReader'
,
query
:
{
wpsUrl
:
`https://wwo.wps.cn/office/w/2c9a8083849eac7001849eae1df50001?_w_userid=1638778159578505218&_w_filrread=1&_w_filetype=db&_w_filepath=http://222.85.214.245:9559/ls/public/stream?randomCode=34df183096eb4996a93c3f779702e45d&_w_tokentype=1&_w_appid=1058dd766ec443c79f95933ec6a41169&_w_redirectkey=123456&_w_signature=E1OEcnnGEgVfK7mcnGDFgXJSLPY%3D`
,
// wpsUrl: `http://localhost/office/w/2c9a8083849eac7001849eae1df50001?_w_userid=1638778159578505218&_w_filrread=1&_w_filetype=db&_w_filepath=http://222.85.214.245:9559/ls/public/stream?randomCode=34df183096eb4996a93c3f779702e45d&_w_tokentype=1&_w_appid=1058dd766ec443c79f95933ec6a41169&_w_redirectkey=123456&_w_signature=E1OEcnnGEgVfK7mcnGDFgXJSLPY%3D`,
token
:
`0617753de96249a5a9839daf9b8ff8b5`
,
fileId
}
})
window
.
open
(
resolve
.
href
,
'_blank'
)
// 暂时写死---end
// 实际实现逻辑---start
// const params = {
// fileId: fileId,
// flag
// }
// getViewUrlDbPath(params).then(res => {
// if (res.data) {
// // console.log('res.data', res.data);
...
...
@@ -379,9 +360,12 @@ const fileFunction = {
// }
// })
// return false
// 实际实现逻辑---end
}
// 若当前点击项是pdf
if
(
PDF
.
includes
(
row
.
extend
Name
.
toLowerCase
()))
{
else
if
(
PDF
.
includes
(
extent
Name
.
toLowerCase
()))
{
router
.
push
(
'/pdfReader'
)
return
false
}
...
...
src/libs/qiwen/map.js
浏览文件 @
619ae000
...
...
@@ -27,7 +27,7 @@ export const fileImgMap = new Map([
[
'sass'
,
require
(
'@/assets/images/file/file_sass.png'
)],
[
'csv'
,
require
(
'@/assets/images/file/file_csv.png'
)],
[
'dmg'
,
require
(
'@/assets/images/file/file_dmg.png'
)],
[
'dir'
,
require
(
'@/assets/images/file/dir.
pn
g'
)],
[
'dir'
,
require
(
'@/assets/images/file/dir.
sv
g'
)],
[
'doc'
,
require
(
'@/assets/images/file/file_word.svg'
)],
[
'docx'
,
require
(
'@/assets/images/file/file_word.svg'
)],
[
'exe'
,
require
(
'@/assets/images/file/file_exe.png'
)],
...
...
src/views/mine/myNote/components/mockNote.js
deleted
100644 → 0
浏览文件 @
477ee4a5
export
const
mockNote
=
{
"data"
:
[
{
"bookmarkContent"
:
"青霞写自己的故事《窗里窗外》
\
n文 /林 皓"
,
"color"
:
"#E44234"
,
"coords"
:
"99.8938,657.0830000000001,299.02735,657.0830000000001,99.8938,642.143,299.02735,642.143,266.17,633.609,303.627,633.609,266.17,625.641,303.627,625.641"
,
"createTime"
:
"2023-07-10 19:40:56"
,
"docId"
:
"2c98e4068479d17c018479d2300d03bb"
,
"docName"
:
"江湖一窗隔——读林青霞写自己的故事《窗里窗外》"
,
"docSType"
:
"s_type_kbase"
,
"flags"
:
"print"
,
"id"
:
"1678368702654341121"
,
"isDelete"
:
0
,
"mdate"
:
"D:20230710194131+08'00'"
,
"page"
:
0
,
"rect"
:
"99.8938,625.641,303.627,657.0830000000001"
,
"showType"
:
"pdf"
,
"subject"
:
"下划线"
,
"title"
:
"zys"
,
"type"
:
"underline"
,
"uniqueId"
:
"5740e065-7a7f-4415-4570-a3e17f8c0bdc"
,
"updateTime"
:
"2023-07-10 19:40:56"
,
"userId"
:
"1677150454842163202"
},
{
"bookmarkContent"
:
"师眼里,她是不化妆就能直接上镜的女演
\
n员。息影18年,林青霞复出了,以一个作家身份。
\
n什么是大腕?大腕就是她不在江湖,江湖仍有她
\
n的传说。林青霞的新书《窗里窗外》一枝独秀,成为书展
\
n的最大热门,几乎横扫了国内媒体的重要版面。
\
n新书发布会上,名导徐克前"
,
"color"
:
"#FFCD45"
,
"coords"
:
"177.7397,603.3204999999999,324.2797,603.3204999999999,177.7397,593.7579999999999,324.2797,593.7579999999999,135.49554999999998,589.8905,302.07089999999994,589.8905,135.49554999999998,580.328,302.07089999999994,580.328,153.07100000000003,576.4604999999999,324.28225,576.4604999999999,153.07100000000003,566.8979999999999,324.28225,566.8979999999999,135.49555000000004,563.0305,324.28225000000003,563.0305,135.49555000000004,553.468,324.28225000000003,553.468,135.49555000000004,549.6004999999999,298.6377500000001,549.6004999999999,135.49555000000004,540.0379999999999,298.6377500000001,540.0379999999999,153.07015000000004,536.1705,249.03005000000002,536.1705,153.07015000000004,526.608,249.03005000000002,526.608"
,
"createTime"
:
"2023-07-10 19:41:57"
,
"docId"
:
"2c98e4068479d17c018479d2300d03bb"
,
"docName"
:
"江湖一窗隔——读林青霞写自己的故事《窗里窗外》"
,
"docSType"
:
"s_type_kbase"
,
"flags"
:
"print"
,
"id"
:
"1678368959962308609"
,
"isDelete"
:
0
,
"mdate"
:
"D:20230710194233+08'00'"
,
"page"
:
0
,
"rect"
:
"135.49554999999998,526.608,324.28225000000003,603.3204999999999"
,
"showType"
:
"pdf"
,
"subject"
:
"高亮"
,
"title"
:
"zys"
,
"type"
:
"highlight"
,
"uniqueId"
:
"edb5c450-1823-df59-b635-14385ca14770"
,
"updateTime"
:
"2023-07-10 19:41:57"
,
"userId"
:
"1677150454842163202"
},
{
"bookmarkContent"
:
"出道以来发生的难忘故事和不为人知的内心世界,还有
\
n200张珍贵照片。据悉,这部书编辑历经800多天,出版
\
n方和林青霞多次切磋琢磨,林青霞像是用文火煨出来的"
,
"color"
:
"#E44234"
,
"coords"
:
"346.96014999999994,563.03065,535.74685,563.03065,346.96014999999994,553.46815,535.74685,553.46815,346.96014999999994,549.6006500000001,535.7476999999999,549.6006500000001,346.96014999999994,540.0381500000001,535.7476999999999,540.0381500000001,346.961,536.17065,535.7494000000002,536.17065,346.961,526.60815,535.7494000000002,526.60815"
,
"createTime"
:
"2023-07-19 11:15:57"
,
"docId"
:
"2c98e4068479d17c018479d2300d03bb"
,
"docName"
:
"江湖一窗隔——读林青霞写自己的故事《窗里窗外》"
,
"docSType"
:
"s_type_kbase"
,
"flags"
:
"print"
,
"id"
:
"1681503111993643010"
,
"isDelete"
:
0
,
"mdate"
:
"D:20230719111557+08'00'"
,
"page"
:
0
,
"rect"
:
"346.96014999999994,526.60815,535.7494000000002,563.03065"
,
"showType"
:
"pdf"
,
"subject"
:
"下划线"
,
"title"
:
"zys"
,
"type"
:
"underline"
,
"uniqueId"
:
"7c226c04-4fe2-4be3-6959-8b0dc67086de"
,
"updateTime"
:
"2023-07-19 11:15:57"
,
"userId"
:
"1677150454842163202"
},
{
"bookmarkContent"
:
"曾有许多个凌晨深夜,香港著名作家马家辉被传真
\
n机呜呜响声吵醒,“不必查看即猜得到"
,
"color"
:
"#E44234"
,
"coords"
:
"364.53559999999993,321.29150000000027,535.7476999999999,321.29150000000027,364.53559999999993,311.72900000000027,535.7476999999999,311.72900000000027,346.96184999999997,307.86150000000026,475.35434999999995,307.86150000000026,346.96184999999997,298.29900000000026,475.35434999999995,298.29900000000026"
,
"createTime"
:
"2023-07-19 11:21:23"
,
"docId"
:
"2c98e4068479d17c018479d2300d03bb"
,
"docName"
:
"江湖一窗隔——读林青霞写自己的故事《窗里窗外》"
,
"docSType"
:
"s_type_kbase"
,
"flags"
:
"print"
,
"id"
:
"1681504477076017154"
,
"isDelete"
:
0
,
"mdate"
:
"D:20230719112121+08'00'"
,
"page"
:
0
,
"rect"
:
"346.96184999999997,298.29900000000026,535.7476999999999,321.29150000000027"
,
"showType"
:
"pdf"
,
"subject"
:
"下划线"
,
"title"
:
"zys"
,
"type"
:
"underline"
,
"uniqueId"
:
"120e420f-12e7-0d9c-40cd-a33fafc83b3d"
,
"updateTime"
:
"2023-07-19 11:21:23"
,
"userId"
:
"1677150454842163202"
}
],
"xml"
:
[
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
\
r
\
n<xfdf xmlns=
\"
http://ns.adobe.com/xfdf/
\"
xml:space=
\"
preserve
\"
>
\
r
\
n<fields />
\
r
\
n<add><underline page=
\"
0
\"
rect=
\"
99.8938,625.641,303.627,657.0830000000001
\"
color=
\"
#E44234
\"
flags=
\"
print
\"
name=
\"
5740e065-7a7f-4415-4570-a3e17f8c0bdc
\"
title=
\"
zys
\"
subject=
\"
下划线
\"
date=
\"
D:20230710194131+08'00'
\"
creationdate=
\"
D:20230710194131+08'00'
\"
coords=
\"
99.8938,657.0830000000001,299.02735,657.0830000000001,99.8938,642.143,299.02735,642.143,266.17,633.609,303.627,633.609,266.17,625.641,303.627,625.641
\"
><contents>青霞写自己的故事《窗里窗外》
\
r
\
n文 /林 皓</contents></underline></add>
\
r
\
n<modify />
\
r
\
n<delete />
\
r
\
n</xfdf>"
,
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
\
r
\
n<xfdf xmlns=
\"
http://ns.adobe.com/xfdf/
\"
xml:space=
\"
preserve
\"
>
\
r
\
n<fields />
\
r
\
n<add><highlight page=
\"
0
\"
rect=
\"
135.49554999999998,526.608,324.28225000000003,603.3204999999999
\"
color=
\"
#FFCD45
\"
flags=
\"
print
\"
name=
\"
edb5c450-1823-df59-b635-14385ca14770
\"
title=
\"
zys
\"
subject=
\"
高亮
\"
date=
\"
D:20230710194233+08'00'
\"
creationdate=
\"
D:20230710194233+08'00'
\"
coords=
\"
177.7397,603.3204999999999,324.2797,603.3204999999999,177.7397,593.7579999999999,324.2797,593.7579999999999,135.49554999999998,589.8905,302.07089999999994,589.8905,135.49554999999998,580.328,302.07089999999994,580.328,153.07100000000003,576.4604999999999,324.28225,576.4604999999999,153.07100000000003,566.8979999999999,324.28225,566.8979999999999,135.49555000000004,563.0305,324.28225000000003,563.0305,135.49555000000004,553.468,324.28225000000003,553.468,135.49555000000004,549.6004999999999,298.6377500000001,549.6004999999999,135.49555000000004,540.0379999999999,298.6377500000001,540.0379999999999,153.07015000000004,536.1705,249.03005000000002,536.1705,153.07015000000004,526.608,249.03005000000002,526.608
\"
><contents>师眼里,她是不化妆就能直接上镜的女演
\
r
\
n员。息影18年,林青霞复出了,以一个作家身份。
\
r
\
n什么是大腕?大腕就是她不在江湖,江湖仍有她
\
r
\
n的传说。林青霞的新书《窗里窗外》一枝独秀,成为书展
\
r
\
n的最大热门,几乎横扫了国内媒体的重要版面。
\
r
\
n新书发布会上,名导徐克前</contents></highlight></add>
\
r
\
n<modify />
\
r
\
n<delete />
\
r
\
n</xfdf>"
,
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
\
r
\
n<xfdf xmlns=
\"
http://ns.adobe.com/xfdf/
\"
xml:space=
\"
preserve
\"
>
\
r
\
n<fields />
\
r
\
n<add><underline page=
\"
0
\"
rect=
\"
346.96014999999994,526.60815,535.7494000000002,563.03065
\"
color=
\"
#E44234
\"
flags=
\"
print
\"
name=
\"
7c226c04-4fe2-4be3-6959-8b0dc67086de
\"
title=
\"
zys
\"
subject=
\"
下划线
\"
date=
\"
D:20230719111557+08'00'
\"
creationdate=
\"
D:20230719111557+08'00'
\"
coords=
\"
346.96014999999994,563.03065,535.74685,563.03065,346.96014999999994,553.46815,535.74685,553.46815,346.96014999999994,549.6006500000001,535.7476999999999,549.6006500000001,346.96014999999994,540.0381500000001,535.7476999999999,540.0381500000001,346.961,536.17065,535.7494000000002,536.17065,346.961,526.60815,535.7494000000002,526.60815
\"
><contents>出道以来发生的难忘故事和不为人知的内心世界,还有
\
r
\
n200张珍贵照片。据悉,这部书编辑历经800多天,出版
\
r
\
n方和林青霞多次切磋琢磨,林青霞像是用文火煨出来的</contents></underline></add>
\
r
\
n<modify />
\
r
\
n<delete />
\
r
\
n</xfdf>"
,
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?>
\
r
\
n<xfdf xmlns=
\"
http://ns.adobe.com/xfdf/
\"
xml:space=
\"
preserve
\"
>
\
r
\
n<fields />
\
r
\
n<add><underline page=
\"
0
\"
rect=
\"
346.96184999999997,298.29900000000026,535.7476999999999,321.29150000000027
\"
color=
\"
#E44234
\"
flags=
\"
print
\"
name=
\"
120e420f-12e7-0d9c-40cd-a33fafc83b3d
\"
title=
\"
zys
\"
subject=
\"
下划线
\"
date=
\"
D:20230719112121+08'00'
\"
creationdate=
\"
D:20230719112121+08'00'
\"
coords=
\"
364.53559999999993,321.29150000000027,535.7476999999999,321.29150000000027,364.53559999999993,311.72900000000027,535.7476999999999,311.72900000000027,346.96184999999997,307.86150000000026,475.35434999999995,307.86150000000026,346.96184999999997,298.29900000000026,475.35434999999995,298.29900000000026
\"
><contents>曾有许多个凌晨深夜,香港著名作家马家辉被传真
\
r
\
n机呜呜响声吵醒,“不必查看即猜得到</contents></underline></add>
\
r
\
n<modify />
\
r
\
n<delete />
\
r
\
n</xfdf>"
]
}
\ No newline at end of file
src/views/mine/myNote/components/noteByFile.vue
浏览文件 @
619ae000
...
...
@@ -54,7 +54,7 @@
</div>
<div
:span=
"19"
class=
"right"
>
<div
class=
"note-container"
>
<div
class=
"card-group"
v-if=
"noteList.records.length
>
0"
>
<div
class=
"card-group"
v-if=
"noteList.records.length
>
0"
>
<el-card
class=
"card-item"
shadow=
"hover"
...
...
@@ -136,7 +136,6 @@
</el-pagination>
</div>
</div>
</div>
</div>
<AddOrUpdateNoteDialog
...
...
@@ -170,12 +169,6 @@ export default {
total
:
0
,
},
editNoteDialogVisible
:
false
,
//笔记笔记弹窗可见性
form
:
{
docId
:
""
,
//文档Id
bookmarkContent
:
""
,
//原文内容
noteContent
:
""
,
//笔记内容
tagsArr
:
[],
//标签
},
loading
:
false
,
};
},
...
...
src/views/mine/myNote/components/noteByTag.vue
浏览文件 @
619ae000
...
...
@@ -165,12 +165,6 @@ export default {
total
:
0
,
},
loading
:
false
,
form
:
{
docId
:
""
,
//文档Id
bookmarkContent
:
""
,
//原文内容
noteContent
:
""
,
//笔记内容
tagsArr
:
[],
//标签
},
};
},
computed
:
{
...
...
src/views/mine/myNote/components/noteOperationMixins.js
浏览文件 @
619ae000
// mixins
// 混入了笔记的复制、预览、编辑、删除等操作,在此文件写的方法和属性可以被共享使用
import
{
textCopy
}
from
"@/utils/index"
;
import
{
deleteNote
}
from
"@/api/doc/bookMark"
;
import
AddOrUpdateNoteDialog
from
"@/views/read/wpsReader/component/addOrUpdateNoteDialog.vue"
;
...
...
@@ -5,6 +8,16 @@ export default {
components
:
{
AddOrUpdateNoteDialog
},
data
()
{
return
{
form
:
{
docId
:
""
,
//文档Id
bookmarkContent
:
""
,
//原文内容
noteContent
:
""
,
//笔记内容
tagsArr
:
[],
//标签
},
}
},
methods
:
{
// 笔记操作
handleNoteOperation
(
type
,
item
)
{
...
...
@@ -37,7 +50,7 @@ export default {
docId
,
bookmarkContent
,
noteContent
,
tagsArr
:
tagName
.
split
(
","
)
,
tagsArr
:
tagName
&&
tagName
.
length
>
0
?
tagName
.
split
(
","
)
:
[]
,
};
this
.
$refs
.
AddOrUpdateNoteDialog
.
dialogVisible
=
true
;
},
...
...
src/views/read/wpsReader/component/insertNote.vue
浏览文件 @
619ae000
...
...
@@ -40,25 +40,29 @@
:key=
"index"
shadow=
"hover"
>
<div
class=
"card-header"
>
<div
class=
"tag"
v-if=
"item.tagName && item.tagName.length > 0"
>
<el-tag
style=
"margin-right: 8px"
type=
"warning"
v-for=
"(v, i) in item.tagName.split(',')"
:key=
"i"
>
{{
v
}}
</el-tag>
</div>
<div
class=
"operations"
>
<el-dropdown>
<el-link>
更多
</el-link>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
v-for=
"(dropItem, i) in dropdownList"
@
click
.
native=
"handleClickDropdow
n(dropItem.value, item)"
@
click
.
native=
"handleNoteOperatio
n(dropItem.value, item)"
>
{{
dropItem
.
label
}}
</el-dropdown-item
>
</el-dropdown-menu>
</el-dropdown>
</div>
</div>
<div
class=
"origin oneRow"
>
<svg-icon
icon-class=
"origin"
...
...
@@ -115,6 +119,11 @@
:total=
"tagList.total"
>
</el-pagination>
<AddOrUpdateNoteDialog
:formData=
"form"
ref=
"AddOrUpdateNoteDialog"
@
update=
"loadNoteList"
/>
</div>
</div>
</
template
>
...
...
@@ -122,7 +131,10 @@
<
script
>
// import { noteList, tagList } from "./mockData";
import
{
getNoteByTag
,
getNoteAllTagList
}
from
"@/api/doc/index"
;
import
noteOperationMixins
from
"@/views/mine/myNote/components/noteOperationMixins"
;
export
default
{
//noteOperationMixins主要混入属性form、handleNoteOperation方法、AddOrUpdateNoteDialog组件
mixins
:
[
noteOperationMixins
],
data
()
{
return
{
searchParams
:
{
...
...
@@ -221,6 +233,7 @@ export default {
console
.
log
(
type
,
item
);
switch
(
type
)
{
case
"view"
:
this
.
$file
.
handleFileNameClickNew
(
item
);
break
;
case
"edit"
:
this
.
handleOpenAddUpdateDialog
(
item
);
...
...
@@ -314,5 +327,14 @@ export default {
}
}
}
.card-header
{
height
:
30px
;
.tag
{
float
:
left
;
}
.operations
{
float
:
right
;
}
}
}
</
style
>
src/views/read/wpsReader/index.vue
浏览文件 @
619ae000
...
...
@@ -6,44 +6,49 @@
@
handleInsertText=
"handleInsertText"
@
handleOpenAddUpdateDialog=
"handleOpenAddUpdateDialog"
/>
<AddOrUpdateNoteDialog
:formData=
"form"
ref=
"AddOrUpdateNoteDialog"
@
update=
"handleUpdateRightPanel"
/>
</div>
</
template
>
<
script
>
import
WebOfficeSDK
from
"/public/weboffice/web-office-sdk-v1.1.19.es"
;
import
RightPanel
from
"./component/rightPanel.vue"
;
import
AddOrUpdateNoteDialog
from
"./component/addOrUpdateNoteDialog.vue"
;
export
default
{
components
:
{
RightPanel
,
AddOrUpdateNoteDialog
,
},
data
()
{
return
{
wpsInstance
:
null
,
//wps实例
controlButton
:
null
,
//新建笔记按钮
form
:
{
docId
:
""
,
//文档Id
bookmarkContent
:
""
,
//原文内容
noteContent
:
""
,
//笔记内容
tagsArr
:
[],
//标签
},
wpsInstance
:
{},
//wps实例
controlButton
:
{},
//新建笔记按钮
routeParams
:{},
//路由传过来的参数
};
},
mounted
()
{
const
{
wpsUrl
,
token
,
fileId
}
=
this
.
$route
.
query
;
this
.
form
.
docId
=
fileId
;
this
.
routeParams
=
{
wpsUrl
,
token
,
fileId
}
this
.
initWps
(
wpsUrl
,
token
);
},
destroyed
()
{
this
.
removeSelectionChangeListener
();
},
methods
:
{
// 新增阅读记录
async
addViewRecord
()
{
const
params
=
{
docId
:
this
.
routeParams
.
fileId
,
docSType
:
"docx"
,
//枚举值docx,pdf
};
try
{
let
res
=
await
addNearRead
(
params
);
if
(
res
.
code
==
200
)
{
// console.log();
}
else
{
throw
res
.
code
;
}
}
catch
(
error
)
{
console
.
error
(
error
);
}
},
// 初始化WPS
async
initWps
(
wpsUrl
,
token
)
{
this
.
wpsInstance
=
WebOfficeSDK
.
config
({
...
...
@@ -55,6 +60,7 @@ export default {
await
this
.
wpsInstance
.
ready
();
this
.
addSelectionListen
();
this
.
initAddNoteButton
();
this
.
addViewRecord
();
},
// 添加监听选取文字
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论