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
9a6cee22
Commit
9a6cee22
authored
Jun 03, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云盘
parent
a01ac0ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
index.vue
src/components/CloudDisk/index.vue
+16
-5
UploadPicture.vue
src/views/Editor/CanvasTool/UploadPicture.vue
+5
-1
No files found.
src/components/CloudDisk/index.vue
View file @
9a6cee22
...
...
@@ -10,7 +10,7 @@
<div
class=
"CloudDisk-L-Center fz14"
>
<div
class=
"CloudDisk-L-Title row flex-between cusor-pointer"
v-for=
"(item,index) in GroupList"
:key=
"index"
@
click=
"Search(item)"
:class=
"[GroupId==item.Id?'active':'']"
>
:class=
"[
queryObj.Cloud
GroupId==item.Id?'active':'']"
>
<span
class=
"black"
>
{{
item
.
GName
}}
</span>
<div
class=
"row"
>
<template
v-if=
"item.Id"
>
...
...
@@ -56,7 +56,8 @@
</FileInput>
<
template
v-for=
"(item,index) in dataList"
>
<div
class=
"CloudDisk-R-Box"
>
<div
class=
"CloudDisk-R-Box"
:class=
"[GImg==item.DetailsId?'acitve':'']"
@
click=
"setImg(item)"
>
<div
class=
"CloudDisk-R-Img"
>
<el-image
style=
"width: 80px; height: 80px"
...
...
@@ -108,6 +109,9 @@ import AliyunUpload from '@/utils/upload/aliyun'
import
{
useUserStore
}
from
"@/store"
;
import
{
storeToRefs
}
from
'pinia'
const
emit
=
defineEmits
<
{
(
event
:
'getImg'
):
void
}
>
()
const
{
token
,
userInfo
}
=
storeToRefs
(
useUserStore
())
const
dialogFormVisible
=
ref
(
false
)
...
...
@@ -119,6 +123,7 @@ const queryObj = reactive({
FileName
:
''
,
})
const
GName
=
ref
(
''
)
const
GImg
=
ref
(
0
)
const
addEditMsg
=
reactive
({
Id
:
''
,
GName
:
''
,
...
...
@@ -133,13 +138,15 @@ const GroupList = ref([] as any)
const
setLoading
=
ref
(
false
)
const
deleteLoading
=
ref
<
any
>
(
null
)
const
setImg
=
(
item
:
any
)
=>
{
emit
(
'getImg'
,
item
.
FilePath
)
}
const
insertImageElement
=
async
(
files
:
FileList
)
=>
{
let
parms
=
{
isppt
:
'1'
,
uid
:
token
.
value
,
gid
:
GroupId
.
value
}
let
filePath
=
"/Upload/User/"
;
let
name
=
new
Date
().
getTime
()
let
url
=
await
AliyunUpload
.
UploadCloudDisk
(
files
[
0
],
`
${
name
}
`
,
parms
);
if
(
url
)
Search
()
...
...
@@ -200,7 +207,8 @@ const deleteGroup = (item:any) => {
})
let
dataRes
=
await
CloudDiskService
.
RemovePPTCloudGroup
(
item
.
Id
)
if
(
dataRes
.
data
.
resultCode
==
1
)
{
querySearchGroup
()
if
(
queryObj
.
CloudGroupId
==
item
.
Id
)
queryObj
.
CloudGroupId
=
''
Search
()
}
deleteLoading
.
value
.
close
()
deleteLoading
.
value
=
null
...
...
@@ -231,7 +239,7 @@ const querySearchGroup = async () =>{
}
const
Search
=
(
item
:
any
)
=>
{
if
(
item
)
GroupId
.
value
=
item
.
Id
if
(
item
)
queryObj
.
CloudGroupId
=
item
.
Id
queryObj
.
pageIndex
=
1
querySearchHandler
()
}
...
...
@@ -371,6 +379,9 @@ onMounted(()=>{
margin-left
:
26px
;
margin-bottom
:
24px
;
}
.CloudDisk-R-Box.active
{
box-shadow
:
0px
0px
13px
0px
#0D3EBC
;
}
.CloudDisk-R-Img
{
width
:
80px
;
height
:
80px
;
...
...
src/views/Editor/CanvasTool/UploadPicture.vue
View file @
9a6cee22
...
...
@@ -69,7 +69,7 @@
</div>
</div>
</FileInput> -->
<CloudDisk></CloudDisk>
<CloudDisk
@
getImg=
"getImg"
></CloudDisk>
</el-tab-pane>
<el-tab-pane
label=
"图片地址"
name=
"3"
>
<div
class=
"row wrap q-mt-md"
>
...
...
@@ -166,6 +166,10 @@ const handleCurrentChange = (val: number) => {
getImgList
()
}
const
getImg
=
(
url
:
String
)
=>
{
propsDatas
.
value
=
{
src
:
url
}
}
const
insertImageElement
=
(
files
:
FileList
)
=>
{
const
imageFile
=
files
[
0
]
if
(
!
imageFile
)
return
...
...
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