Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pptist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
pptist
Commits
0b85049b
Commit
0b85049b
authored
Jun 04, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复bug
parent
c2e22cf0
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
100 additions
and
24 deletions
+100
-24
common.css
src/assets/styles/common.css
+0
-3
index.vue
src/components/CloudDisk/index.vue
+87
-17
CloudDiskService.ts
src/services/CloudDiskService.ts
+5
-0
index.vue
src/views/Editor/EditorHeader/index.vue
+2
-2
index.vue
src/views/Editor/Thumbnails/index.vue
+3
-1
PreviewCover.vue
src/views/Preview/PreviewCover.vue
+3
-1
No files found.
src/assets/styles/common.css
View file @
0b85049b
...
@@ -18,9 +18,6 @@ page {
...
@@ -18,9 +18,6 @@ page {
src
:
url("https://im.oytour.com/tripfont/a5cf6c61491d0b1aed95c0f9d0737140.woff2")
format
(
"woff2"
);
src
:
url("https://im.oytour.com/tripfont/a5cf6c61491d0b1aed95c0f9d0737140.woff2")
format
(
"woff2"
);
font-display
:
swap
;
font-display
:
swap
;
}
}
*
{
font-family
:
PingFang
SC
;
}
.el-table.tableHBEbeef5
th
.el-table__cell
{
.el-table.tableHBEbeef5
th
.el-table__cell
{
background-color
:
#ebeef5
;
background-color
:
#ebeef5
;
}
}
...
...
src/components/CloudDisk/index.vue
View file @
0b85049b
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</div>
</div>
<div
class=
"CloudDisk-L-Center fz14"
>
<div
class=
"CloudDisk-L-Center fz14"
>
<div
class=
"CloudDisk-L-Title row flex-between cusor-pointer"
<div
class=
"CloudDisk-L-Title row flex-between cusor-pointer"
v-for=
"(item,index) in GroupList"
:key=
"index"
@
click=
"Search(item)"
v-for=
"(item,index) in GroupList"
:key=
"index"
@
click
.
stop
=
"Search(item)"
:class=
"[queryObj.CloudGroupId==item.Id?'active':'']"
>
:class=
"[queryObj.CloudGroupId==item.Id?'active':'']"
>
<span
class=
"block"
>
{{
item
.
GName
}}
</span>
<span
class=
"block"
>
{{
item
.
GName
}}
</span>
<div
class=
"row"
>
<div
class=
"row"
>
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
</div>
</div>
<template
#
dropdown
>
<template
#
dropdown
>
<el-dropdown-menu
class=
"q-pa-md"
>
<el-dropdown-menu
class=
"q-pa-md"
>
<el-dropdown-item
@
click=
"EditGroup(item)"
>
<el-dropdown-item
@
click
.
stop
=
"EditGroup(item)"
>
<el-button
type=
"default"
link
:icon=
"Edit"
size=
"small"
>
重命名
</el-button>
<el-button
type=
"default"
link
:icon=
"Edit"
size=
"small"
>
重命名
</el-button>
</el-dropdown-item>
</el-dropdown-item>
<el-dropdown-item
@
click=
"deleteGroup(item)"
>
<el-dropdown-item
@
click
.
stop
=
"deleteGroup(item)"
>
<el-button
type=
"default"
link
:icon=
"Delete"
size=
"small"
>
删除分组
</el-button>
<el-button
type=
"default"
link
:icon=
"Delete"
size=
"small"
>
删除分组
</el-button>
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
placeholder=
"请输入图片名称搜索"
@
keyup
.
enter=
"Search"
>
placeholder=
"请输入图片名称搜索"
@
keyup
.
enter=
"Search"
>
</el-input>
</el-input>
</div>
</div>
<div
ref=
"img
Ref
"
>
<div
ref=
"img
DiskRef"
style=
"height: 420px;padding-top: 20px;
"
>
<div
class=
"CloudDisk-R-Center row"
>
<div
class=
"CloudDisk-R-Center row"
v-loading=
"loading"
>
<FileInput
@
change=
"files => insertImageElement(files)"
>
<FileInput
@
change=
"files => insertImageElement(files)"
>
<div
class=
"CloudDisk-R-Box"
>
<div
class=
"CloudDisk-R-Box"
>
<div
class=
"CloudDisk-R-Plus column items-center cusor-pointer"
>
<div
class=
"CloudDisk-R-Plus column items-center cusor-pointer"
>
...
@@ -71,12 +71,28 @@
...
@@ -71,12 +71,28 @@
:initial-index=
"4"
:initial-index=
"4"
fit=
"cover"
fit=
"cover"
/>
-->
/>
-->
<span
class=
"close-btn cursor-pointer column items-center flex-center"
@
click
.
stop=
"deleteImg(item)"
>
<IconClose
:size=
"10"
></IconClose>
</span>
</div>
</div>
<span
class=
"title block"
>
{{
item
.
FileName
}}
</span>
<span
class=
"title block"
>
{{
item
.
FileName
}}
</span>
</div>
</div>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<div
v-if=
"queryObj.pageCount>1"
class=
"q-mt-md"
style=
"display: flex;justify-content: center;"
>
<el-pagination
v-model:current-page=
"currentPage"
:page-size=
"queryObj.pageSize"
small=
"small"
layout=
"prev, pager, next"
:total=
"queryObj.total"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
/>
</div>
</div>
</div>
</div>
</div>
...
@@ -117,10 +133,12 @@ const dialogFormVisible = ref(false)
...
@@ -117,10 +133,12 @@ const dialogFormVisible = ref(false)
const
dialogTitle
=
ref
(
''
)
const
dialogTitle
=
ref
(
''
)
const
queryObj
=
reactive
({
const
queryObj
=
reactive
({
pageIndex
:
1
,
pageIndex
:
1
,
pageSize
:
3
,
pageSize
:
11
,
CloudGroupId
:
''
,
CloudGroupId
:
''
,
FileName
:
''
,
FileName
:
''
,
total
:
0
})
})
const
currentPage
=
ref
(
1
)
const
ImgId
=
ref
(
''
)
const
ImgId
=
ref
(
''
)
const
GName
=
ref
(
''
)
const
GName
=
ref
(
''
)
const
addEditMsg
=
reactive
({
const
addEditMsg
=
reactive
({
...
@@ -129,7 +147,7 @@ const addEditMsg = reactive({
...
@@ -129,7 +147,7 @@ const addEditMsg = reactive({
SortNum
:
null
,
SortNum
:
null
,
})
})
const
GroupId
=
ref
(
''
|
Number
)
const
GroupId
=
ref
(
''
|
Number
)
const
imgRef
=
ref
<
any
>
()
const
img
Disk
Ref
=
ref
<
any
>
()
const
dataList
=
ref
([]
as
any
)
const
dataList
=
ref
([]
as
any
)
const
loading
=
ref
(
false
)
const
loading
=
ref
(
false
)
const
GroupList
=
ref
([]
as
any
)
const
GroupList
=
ref
([]
as
any
)
...
@@ -166,6 +184,34 @@ const insertImageElement = async (files: FileList) => {
...
@@ -166,6 +184,34 @@ const insertImageElement = async (files: FileList) => {
},
300
)
},
300
)
}
}
// 删除
const
deleteImg
=
(
item
:
any
)
=>
{
ElMessageBox
.
confirm
(
`此操作将删除该图,是否确定?`
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
,
}
).
then
(
async
()
=>
{
try
{
deleteLoading
.
value
=
ElLoading
.
service
({
lock
:
true
,
text
:
'正在处理'
})
let
dataRes
=
await
CloudDiskService
.
RemovePPTCloudInfo
(
item
.
DetailsId
)
if
(
dataRes
.
data
.
resultCode
==
1
)
{
querySearchHandler
()
}
deleteLoading
.
value
.
close
()
deleteLoading
.
value
=
null
}
catch
(
error
)
{}
}).
catch
(()
=>
{})
}
const
addEditGroup
=
()
=>
{
const
addEditGroup
=
()
=>
{
dialogFormVisible
.
value
=
true
dialogFormVisible
.
value
=
true
dialogTitle
.
value
=
'添加分组名称'
dialogTitle
.
value
=
'添加分组名称'
...
@@ -269,8 +315,9 @@ const querySearchHandler = async () =>{
...
@@ -269,8 +315,9 @@ const querySearchHandler = async () =>{
})
})
}
}
arrList
(
pageRes
.
data
.
data
.
pageData
)
arrList
(
pageRes
.
data
.
data
.
pageData
)
dataList
.
value
=
dataList
.
value
.
concat
(
pageRes
.
data
.
data
.
pageData
);
dataList
.
value
=
pageRes
.
data
.
data
.
pageData
//
dataList.value.concat(pageRes.data.data.pageData);
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
queryObj
.
pageCount
=
pageRes
.
data
.
data
.
pageCount
;
queryObj
.
total
=
pageRes
.
data
.
data
.
count
;
}
}
setTimeout
(()
=>
{
setTimeout
(()
=>
{
loading
.
value
=
false
loading
.
value
=
false
...
@@ -281,9 +328,9 @@ const querySearchHandler = async () =>{
...
@@ -281,9 +328,9 @@ const querySearchHandler = async () =>{
}
}
const
scrollingHandler
=
()
=>
{
const
scrollingHandler
=
()
=>
{
if
(
imgRef
.
value
&&
!
loading
.
value
){
if
(
img
Disk
Ref
.
value
&&
!
loading
.
value
){
let
maxHeight
=
img
Ref
.
value
.
scrollHeight
-
img
Ref
.
value
.
offsetHeight
let
maxHeight
=
img
DiskRef
.
value
.
scrollHeight
-
imgDisk
Ref
.
value
.
offsetHeight
let
scrollTop
=
imgRef
.
value
.
scrollTop
let
scrollTop
=
img
Disk
Ref
.
value
.
scrollTop
if
(
maxHeight
-
scrollTop
==
0
&&
queryObj
.
pageCount
>
queryObj
.
pageIndex
)
{
if
(
maxHeight
-
scrollTop
==
0
&&
queryObj
.
pageCount
>
queryObj
.
pageIndex
)
{
queryObj
.
pageIndex
++
queryObj
.
pageIndex
++
querySearchHandler
()
querySearchHandler
()
...
@@ -292,16 +339,23 @@ const scrollingHandler = () =>{
...
@@ -292,16 +339,23 @@ const scrollingHandler = () =>{
}
}
const
handleSizeChange
=
(
val
:
number
)
=>
{
}
const
handleCurrentChange
=
(
val
:
number
)
=>
{
queryObj
.
pageIndex
=
val
querySearchHandler
()
}
querySearchGroup
()
querySearchGroup
()
querySearchHandler
()
querySearchHandler
()
onMounted
(()
=>
{
onMounted
(()
=>
{
img
Ref
.
value
.
addEventListener
(
"scroll"
,
scrollingHandler
);
// imgDisk
Ref.value.addEventListener("scroll", scrollingHandler);
})
})
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.CloudDisk-L
{
.CloudDisk-L
{
border-right
:
1px
solid
#E9E9E9
;
border-right
:
1px
solid
#E9E9E9
;
padding
:
22px
22px
22px
0
;
padding
:
0
22px
22px
0
;
}
}
.CloudDisk-L-inquire
{
.CloudDisk-L-inquire
{
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
@@ -352,10 +406,9 @@ onMounted(()=>{
...
@@ -352,10 +406,9 @@ onMounted(()=>{
color
:
#3556F9
;
color
:
#3556F9
;
}
}
.CloudDisk-R
{
.CloudDisk-R
{
padding
:
22px
0
0
0
;
/* padding: 22px 0 0 0; */
}
}
.CloudDisk-R-inquire
{
.CloudDisk-R-inquire
{
padding-bottom
:
20px
;
padding-left
:
24px
;
padding-left
:
24px
;
}
}
.CloudDisk-R-inquire
.el-input
{
.CloudDisk-R-inquire
.el-input
{
...
@@ -382,8 +435,9 @@ onMounted(()=>{
...
@@ -382,8 +435,9 @@ onMounted(()=>{
}
}
.CloudDisk-R-Box
{
.CloudDisk-R-Box
{
width
:
80px
;
width
:
80px
;
margin-left
:
2
6
px
;
margin-left
:
2
4
px
;
margin-bottom
:
24px
;
margin-bottom
:
24px
;
position
:
relative
;
}
}
.CloudDisk-R-Img
{
.CloudDisk-R-Img
{
width
:
80px
;
width
:
80px
;
...
@@ -407,7 +461,7 @@ onMounted(()=>{
...
@@ -407,7 +461,7 @@ onMounted(()=>{
color
:
#000000
;
color
:
#000000
;
}
}
.CloudDisk-L-Center
,
.CloudDisk-R-Center
{
.CloudDisk-L-Center
,
.CloudDisk-R-Center
{
max-height
:
100px
;
/* max-height: 100px; */
}
}
.CloudDisk-R-Box.active
.CloudDisk-R-Img
{
.CloudDisk-R-Box.active
.CloudDisk-R-Img
{
width
:
80px
;
width
:
80px
;
...
@@ -417,4 +471,20 @@ onMounted(()=>{
...
@@ -417,4 +471,20 @@ onMounted(()=>{
border-radius
:
8px
;
border-radius
:
8px
;
border
:
2px
solid
#3556F9
;
border
:
2px
solid
#3556F9
;
}
}
.CloudDisk-R-Box
.close-btn
{
position
:
absolute
;
top
:
-10px
;
right
:
-10px
;
width
:
20px
;
height
:
20px
;
border
:
1px
solid
#AFAFAF
;
text-align
:
center
;
color
:
#AFAFAF
;
border-radius
:
50%
;
z-index
:
3
;
opacity
:
0
;
}
.CloudDisk-R-Box
:hover
.close-btn
{
opacity
:
1
;
}
</
style
>
</
style
>
\ No newline at end of file
src/services/CloudDiskService.ts
View file @
0b85049b
...
@@ -3,6 +3,11 @@ import Api,{ HttpResponse, Result } from './../utils/request';
...
@@ -3,6 +3,11 @@ import Api,{ HttpResponse, Result } from './../utils/request';
class
CloudDiskService
{
class
CloudDiskService
{
static
async
RemovePPTCloudInfo
(
DetailsId
:
String
):
Promise
<
HttpResponse
>
{
let
msg
=
{
DetailsId
}
return
Api
.
Post
(
"ppt_RemovePPTCloudInfo"
,
msg
)
}
static
async
GetPPTCloudList
(
GName
:
String
):
Promise
<
HttpResponse
>
{
static
async
GetPPTCloudList
(
GName
:
String
):
Promise
<
HttpResponse
>
{
let
msg
=
{
GName
}
let
msg
=
{
GName
}
return
Api
.
Post
(
"ppt_GetPPTCloudList"
,
msg
)
return
Api
.
Post
(
"ppt_GetPPTCloudList"
,
msg
)
...
...
src/views/Editor/EditorHeader/index.vue
View file @
0b85049b
...
@@ -477,7 +477,7 @@ const setTemplate = async (type) =>{
...
@@ -477,7 +477,7 @@ const setTemplate = async (type) =>{
if
(
dataLoading
.
value
){
if
(
dataLoading
.
value
){
dataLoadingStore
.
setDataLoading
(
0
)
dataLoadingStore
.
setDataLoading
(
0
)
}
}
if
(
model
.
value
==
1
&&
userInfo
.
value
.
isTemplate
==
1
){
if
(
model
.
value
==
1
&&
(
userInfo
.
value
.
isTemplate
==
1
||
userInfo
.
value
.
iv
||
userInfo
.
value
.
ic
||
userInfo
.
value
.
ia
)
){
arr
.
forEach
(
x
=>
{
arr
.
forEach
(
x
=>
{
if
(
searchData
.
value
.
TemplateType
==
2
)
{
if
(
searchData
.
value
.
TemplateType
==
2
)
{
x
.
pageType
=
0
x
.
pageType
=
0
...
@@ -533,7 +533,7 @@ const setTemplate = async (type) =>{
...
@@ -533,7 +533,7 @@ const setTemplate = async (type) =>{
}
}
queryObj
.
value
.
TempData
=
JSON
.
stringify
(
arr
)
queryObj
.
value
.
TempData
=
JSON
.
stringify
(
arr
)
if
(
model
.
value
==
1
&&
userInfo
.
value
.
isTemplate
==
1
){
if
(
model
.
value
==
1
&&
userInfo
.
value
.
isTemplate
==
1
||
userInfo
.
value
.
iv
||
userInfo
.
value
.
ic
||
userInfo
.
value
.
ia
){
datas
.
loading
=
true
datas
.
loading
=
true
await
SetTripTemplateSlide
()
await
SetTripTemplateSlide
()
}
else
if
(
ConfigId
.
value
&&
model
.
value
!=
2
){
}
else
if
(
ConfigId
.
value
&&
model
.
value
!=
2
){
...
...
src/views/Editor/Thumbnails/index.vue
View file @
0b85049b
...
@@ -131,6 +131,7 @@ const acquiesceLogo = ref([
...
@@ -131,6 +131,7 @@ const acquiesceLogo = ref([
'https://im.oytour.com/pptist/static/logo4.png'
,
'https://im.oytour.com/pptist/static/logo4.png'
,
'https://im.oytour.com/pptist/static/logo5.png'
,
'https://im.oytour.com/pptist/static/logo5.png'
,
'https://im.oytour.com/pptist/static/logo6.png'
,
'https://im.oytour.com/pptist/static/logo6.png'
,
'https://im.oytour.com/pptist/static/logo7.png'
,
])
])
const
tempDatas
=
({}
as
any
)
const
tempDatas
=
({}
as
any
)
...
@@ -585,7 +586,8 @@ const ResolveTripLogoHandler = async (items:any, slideIndex:number,dark:false,da
...
@@ -585,7 +586,8 @@ const ResolveTripLogoHandler = async (items:any, slideIndex:number,dark:false,da
let
scale
=
parseInt
(
tempSize
.
width
/
tempSize
.
height
)
let
scale
=
parseInt
(
tempSize
.
width
/
tempSize
.
height
)
let
url
=
''
let
url
=
''
// if(Colors[1]||scale==6) templateObj[i].filters.invert = '20%'
// if(Colors[1]||scale==6) templateObj[i].filters.invert = '20%'
if
(
scale
==
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
0
]:
acquiesceLogo
.
value
[
3
]
if
(
scale
==
1
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
0
]:
acquiesceLogo
.
value
[
3
]
if
(
scale
==
1
&&
day
)
url
=
acquiesceLogo
.
value
[
6
]
if
(
scale
<
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
1
]:
acquiesceLogo
.
value
[
4
]
if
(
scale
<
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
1
]:
acquiesceLogo
.
value
[
4
]
if
(
scale
==
6
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
6
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
3
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
3
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
...
...
src/views/Preview/PreviewCover.vue
View file @
0b85049b
...
@@ -64,6 +64,7 @@ const acquiesceLogo = ref([
...
@@ -64,6 +64,7 @@ const acquiesceLogo = ref([
'https://im.oytour.com/pptist/static/logo4.png'
,
'https://im.oytour.com/pptist/static/logo4.png'
,
'https://im.oytour.com/pptist/static/logo5.png'
,
'https://im.oytour.com/pptist/static/logo5.png'
,
'https://im.oytour.com/pptist/static/logo6.png'
,
'https://im.oytour.com/pptist/static/logo6.png'
,
'https://im.oytour.com/pptist/static/logo7.png'
,
])
])
const
tempDatas
=
({}
as
any
)
const
tempDatas
=
({}
as
any
)
...
@@ -170,7 +171,8 @@ const ResolveTripLogoHandler = async (items:any, slideIndex:number,dark:false,da
...
@@ -170,7 +171,8 @@ const ResolveTripLogoHandler = async (items:any, slideIndex:number,dark:false,da
let
scale
=
parseInt
(
tempSize
.
width
/
tempSize
.
height
)
let
scale
=
parseInt
(
tempSize
.
width
/
tempSize
.
height
)
let
url
=
''
let
url
=
''
// if(Colors[1]||scale==6) templateObj[i].filters.invert = '20%'
// if(Colors[1]||scale==6) templateObj[i].filters.invert = '20%'
if
(
scale
==
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
0
]:
acquiesceLogo
.
value
[
3
]
if
(
scale
==
1
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
0
]:
acquiesceLogo
.
value
[
3
]
if
(
scale
==
1
&&
day
)
url
=
acquiesceLogo
.
value
[
6
]
if
(
scale
<
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
1
]:
acquiesceLogo
.
value
[
4
]
if
(
scale
<
1
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
1
]:
acquiesceLogo
.
value
[
4
]
if
(
scale
==
6
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
6
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
3
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
if
(
scale
==
3
&&!
day
)
url
=
dark
==
true
?
acquiesceLogo
.
value
[
2
]:
acquiesceLogo
.
value
[
5
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment