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
c7bf1a0c
Commit
c7bf1a0c
authored
Jul 30, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复 头部分享 bug
parent
fbf367db
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
34 deletions
+35
-34
Share.vue
src/views/SellTemplate/Share.vue
+6
-5
SearchDocument.vue
src/views/SellTemplate/components/SearchDocument.vue
+24
-24
journeyAdsList.vue
src/views/SellTemplate/components/journeyAdsList.vue
+5
-5
No files found.
src/views/SellTemplate/Share.vue
View file @
c7bf1a0c
...
@@ -104,7 +104,7 @@ import { ApiResult } from "@/configs/axios";
...
@@ -104,7 +104,7 @@ import { ApiResult } from "@/configs/axios";
import
ConfigService
from
"@/services/ConfigService"
;
import
ConfigService
from
"@/services/ConfigService"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
ElMessage
}
from
"element-plus"
;
import
{
PropType
,
inject
,
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
PropType
,
inject
,
reactive
,
ref
,
watch
}
from
"vue"
;
import
{
createPlayLink
,
createSaleEditorLink
,
downLoadFile
,
formatDateTimeToRead
,
query
}
from
'@/utils/common'
import
{
createPlayLink
,
createSaleEditorLink
,
downLoadFile
,
formatDateTimeToRead
,
query
,
openNewBlank
}
from
'@/utils/common'
import
breadPeeling
from
'./components/breadPeeling.vue'
import
breadPeeling
from
'./components/breadPeeling.vue'
import
CopyFile
from
'./components/CopyFile.vue'
import
CopyFile
from
'./components/CopyFile.vue'
import
{
injectKeyTemplate
}
from
"@/types/injectKey"
;
import
{
injectKeyTemplate
}
from
"@/types/injectKey"
;
...
@@ -171,9 +171,10 @@ const editorFileHandler = (item:any)=>{
...
@@ -171,9 +171,10 @@ const editorFileHandler = (item:any)=>{
const
ep
=
item
.
IsDownload
==
0
?
0
:
1
const
ep
=
item
.
IsDownload
==
0
?
0
:
1
//@TODO:返回字段中缺少CreateBy,
//@TODO:返回字段中缺少CreateBy,
const
url
=
createSaleEditorLink
(
item
.
FileId
,
item
.
TempId
,
item
.
FileType
,
0
,
ep
,
cp
)
const
url
=
createSaleEditorLink
(
item
.
FileId
,
item
.
TempId
,
item
.
FileType
,
0
,
ep
,
cp
)
router
.
push
({
openNewBlank
(
url
)
path
:
url
// router.push({
})
// path:url
// })
}
}
const
getDocumentData
=
async
()
=>
{
const
getDocumentData
=
async
()
=>
{
if
(
loading
.
value
)
return
if
(
loading
.
value
)
return
...
@@ -202,7 +203,7 @@ const getDocumentData = async () => {
...
@@ -202,7 +203,7 @@ const getDocumentData = async () => {
const
openFileDocument
=
(
item
:
any
)
=>
{
const
openFileDocument
=
(
item
:
any
)
=>
{
let
param
=
query
()
let
param
=
query
()
const
url
=
createPlayLink
(
item
.
FileId
,
0
,
2
)
//`${location.origin}/?uid=${param.uid}&sellId=${item.FileId}&ViewSlideshow=2`
const
url
=
createPlayLink
(
item
.
FileId
,
0
,
2
)
//`${location.origin}/?uid=${param.uid}&sellId=${item.FileId}&ViewSlideshow=2`
window
.
open
(
url
);
openNewBlank
(
url
);
}
}
const
exportDocument
=
(
item
:
any
,
type
:
0
|
1
|
2
)
=>
{
const
exportDocument
=
(
item
:
any
,
type
:
0
|
1
|
2
)
=>
{
downLoadFile
({
downLoadFile
({
...
...
src/views/SellTemplate/components/SearchDocument.vue
View file @
c7bf1a0c
...
@@ -19,7 +19,8 @@
...
@@ -19,7 +19,8 @@
<el-scrollbar
max-height=
"300px"
>
<el-scrollbar
max-height=
"300px"
>
<div
class=
"search-result-block"
:class=
"{'q-mt-lg':i>0}"
v-for=
"(x,i) in searchResult"
>
<div
class=
"search-result-block"
:class=
"{'q-mt-lg':i>0}"
v-for=
"(x,i) in searchResult"
>
<div
class=
"text-h6 text-left text-bolder q-mx-md q-mb-sm"
>
{{x.type==1?'行程文档':'广告图'}}
</div>
<div
class=
"text-h6 text-left text-bolder q-mx-md q-mb-sm"
>
{{x.type==1?'行程文档':'广告图'}}
</div>
<div
class=
"items row items-center q-pa-md"
v-for=
"(item) in x.pageData"
@
click=
"item.IsEdit?editorFileHandler(item):openFilePositionHandler(item)"
v-click-outside=
"()=>showRightContent=0"
@
contextmenu=
"()=>showRightContent=item.FileId"
>
<div
class=
"items row items-center q-pa-md"
v-for=
"(item) in x.pageData"
@
click=
"item.IsEdit?editorFileHandler(item):openFilePositionHandler(item)"
v-click-outside=
"()=>showRightContent=0"
@
contextmenu=
"()=>showRightContent=item.FileId"
>
<img
class=
"biao"
:src=
"(x.type==1 ?'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png':'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png')"
/>
<img
class=
"biao"
:src=
"(x.type==1 ?'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708337830000_43.png':'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1708250377000_777.png')"
/>
<el-popover
:width=
"200"
trigger=
"contextmenu"
:visible=
"showRightContent==item.FileId"
>
<el-popover
:width=
"200"
trigger=
"contextmenu"
:visible=
"showRightContent==item.FileId"
>
<
template
#
reference
>
<
template
#
reference
>
...
@@ -30,7 +31,8 @@
...
@@ -30,7 +31,8 @@
<span
class=
"folder-path"
>
{{
x
.
type
==
1
?
'行程文档'
:
'广告图'
}}{{
item
.
FolderName
==
'/'
?
''
:
'/'
+
item
.
FolderName
}}
</span>
<span
class=
"folder-path"
>
{{
x
.
type
==
1
?
'行程文档'
:
'广告图'
}}{{
item
.
FolderName
==
'/'
?
''
:
'/'
+
item
.
FolderName
}}
</span>
</el-tooltip>
</el-tooltip>
<span
class=
"q-mx-md col"
>
{{
formatDateTimeToRead
((
item
.
UpdateTime
&&
item
.
UpdateTime
!=
''
?
item
.
UpdateTime
:
item
.
CreateTime
))
}}
{{
item
.
UpdateTime
&&
item
.
UpdateTime
!=
''
?
'修改过'
:
'创建'
}}
</span>
<span
class=
"q-mx-md col"
>
{{
formatDateTimeToRead
((
item
.
UpdateTime
&&
item
.
UpdateTime
!=
''
?
item
.
UpdateTime
:
item
.
CreateTime
))
}}
{{
item
.
UpdateTime
&&
item
.
UpdateTime
!=
''
?
'修改过'
:
'创建'
}}
</span>
<span>
{{
userInfo
.
EmployeeId
==
item
.
CreateBy
?
'我 创建的'
:
`${item.CreateName
}
分享的`
}}
<
/span
>
<span>
{{
item
.
IsCreate
?
'我 创建的'
:
`${item.CreateName
}
分享的`
}}
<
/span
>
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
...
@@ -53,9 +55,10 @@ import { Search } from '@element-plus/icons-vue';
...
@@ -53,9 +55,10 @@ import { Search } from '@element-plus/icons-vue';
import
ConfigService
from
'@/services/ConfigService'
;
import
ConfigService
from
'@/services/ConfigService'
;
import
{
useUserStore
}
from
'@/store/user'
;
import
{
useUserStore
}
from
'@/store/user'
;
import
{
storeToRefs
}
from
'pinia'
;
import
{
storeToRefs
}
from
'pinia'
;
import
{
formatDateTimeToRead
}
from
'@/utils/common'
import
{
formatDateTimeToRead
,
createSaleEditorLink
,
openNewBlank
}
from
'@/utils/common'
import
{
useScreenStore
,
useSellTemplateStore
,
useSlidesStore
}
from
'@/store'
;
import
{
useScreenStore
,
useSellTemplateStore
,
useSlidesStore
}
from
'@/store'
;
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
;
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
pl
}
from
'element-plus/es/locale'
;
import
{
pl
}
from
'element-plus/es/locale'
;
const
emit
=
defineEmits
<
{
const
emit
=
defineEmits
<
{
...
@@ -63,6 +66,7 @@ const emit = defineEmits<{
...
@@ -63,6 +66,7 @@ const emit = defineEmits<{
}
>
()
}
>
()
const
{
userInfo
}
=
storeToRefs
(
useUserStore
())
const
{
userInfo
}
=
storeToRefs
(
useUserStore
())
const
router
=
useRouter
()
const
searchKey
=
ref
<
string
>
(
''
)
const
searchKey
=
ref
<
string
>
(
''
)
const
isSearchFocus
=
ref
(
false
)
const
isSearchFocus
=
ref
(
false
)
const
searchType
=
ref
<
string
>
(
'0'
)
const
searchType
=
ref
<
string
>
(
'0'
)
...
@@ -72,6 +76,7 @@ const lastKeyword = ref('')
...
@@ -72,6 +76,7 @@ const lastKeyword = ref('')
const
searchData
=
ref
({
}
as
any
);
const
searchData
=
ref
({
}
as
any
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
searchData
.
value
=
inject
(
injectKeyTemplate
);
const
showRightContent
=
ref
(
0
)
const
showRightContent
=
ref
(
0
)
const
loggedder
=
ref
(
''
)
const
loggedder
=
ref
(
''
)
loggedder
.
value
=
userInfo
.
value
.
nickname
loggedder
.
value
=
userInfo
.
value
.
nickname
...
@@ -106,26 +111,20 @@ const searchHandler = ()=>{
...
@@ -106,26 +111,20 @@ const searchHandler = ()=>{
}
}
const
editorFileHandler
=
(
item
:
any
)
=>
{
const
editorFileHandler
=
(
item
:
any
)
=>
{
let
list
:
any
=
[{
if
(
item
.
IsEdit
==
0
){
id
:
"test-slide-1"
,
ElMessage
.
error
({
pageType
:
0
,
message
:
'你没有权限执行这个操作,请联系分享者'
elements
:
[],
}
)
background
:
{
return
type
:
"solid"
,
}
color
:
"#ffffff"
,
const
cp
=
item
.
IsView
==
0
?
0
:
1
}
,
const
ep
=
item
.
IsDownload
==
0
?
0
:
1
}
];
//@TODO:返回字段中缺少CreateBy,
const
SalesEditorStore
=
useSellTemplateStore
();
const
url
=
createSaleEditorLink
(
item
.
FileId
,
item
.
TempId
,
item
.
FileType
,
0
,
ep
,
cp
)
useSlidesStore
().
setSlides
(
list
);
openNewBlank
(
url
)
const
marketStore
=
useScreenStore
();
// router.push(
{
searchData
.
value
.
sellId
=
item
.
FileId
;
// path:url
searchData
.
value
.
sellTempId
=
item
.
TempId
;
//
}
)
searchData
.
value
.
TemplateType
=
item
.
FileType
;
if
(
loggedder
.
value
!=
item
.
CreateName
){
searchData
.
value
.
ParentFileId
=
0
}
else
searchData
.
value
.
ParentFileId
=
item
.
FolderId
SalesEditorStore
.
setSalesEditor
(
2
);
marketStore
.
setMarket
(
false
);
}
}
const
searchByType
=
(
t
:
1
|
2
,
count
:
number
)
=>
{
const
searchByType
=
(
t
:
1
|
2
,
count
:
number
)
=>
{
return
ConfigService
.
SearchFileAsync
({
return
ConfigService
.
SearchFileAsync
({
...
@@ -142,7 +141,7 @@ const openFilePositionHandler = (item:any)=>{
...
@@ -142,7 +141,7 @@ const openFilePositionHandler = (item:any)=>{
let
playload
=
{
let
playload
=
{
FileId
:
item
.
FileId
,
FileId
:
item
.
FileId
,
FileType
:
item
.
FileType
,
FileType
:
item
.
FileType
,
FormShare
:
userInfo
.
value
.
EmployeeId
!=
item
.
CreateBy
,
FormShare
:
!
item
.
IsCreate
,
Position
:[]
as
any
[]
Position
:[]
as
any
[]
}
}
if
(
item
.
FolderPath
&&
item
.
FolderPath
!=
'/'
){
if
(
item
.
FolderPath
&&
item
.
FolderPath
!=
'/'
){
...
@@ -158,6 +157,7 @@ const openFilePositionHandler = (item:any)=>{
...
@@ -158,6 +157,7 @@ const openFilePositionHandler = (item:any)=>{
playload
.
Position
=
posis
playload
.
Position
=
posis
}
}
emit
(
'open-position'
,
playload
)
emit
(
'open-position'
,
playload
)
showRightContent
.
value
=
0
}
}
<
/script
>
<
/script
>
<
style
>
<
style
>
...
...
src/views/SellTemplate/components/journeyAdsList.vue
View file @
c7bf1a0c
...
@@ -199,9 +199,8 @@ import { ElMessage,ElTree,ElLoading, ElMessageBox } from 'element-plus';
...
@@ -199,9 +199,8 @@ import { ElMessage,ElTree,ElLoading, ElMessageBox } from 'element-plus';
import
ConfigService
from
"@/services/ConfigService"
;
import
ConfigService
from
"@/services/ConfigService"
;
import
FolderService
from
"@/services/FolderService"
;
import
FolderService
from
"@/services/FolderService"
;
import
{
injectKeyTemplate
,
injectKeyRecycleBin
}
from
"@/types/injectKey"
;
import
{
injectKeyTemplate
,
injectKeyRecycleBin
}
from
"@/types/injectKey"
;
import
{
createPlayLink
,
createSaleEditorLink
,
downLoadFile
,
formatDateTimeToRead
}
from
"@/utils/common"
;
import
{
isPC
,
query
,
createPlayLink
,
createSaleEditorLink
,
downLoadFile
,
formatDateTimeToRead
,
openNewBlank
}
from
"@/utils/common"
;
import
{
useSellTemplateStore
,
useScreenStore
,
useSlidesStore
}
from
"@/store"
;
import
{
useSellTemplateStore
,
useScreenStore
,
useSlidesStore
}
from
"@/store"
;
import
{
isPC
,
query
}
from
'@/utils/common'
import
ShareForm
from
"./ShareForm.vue"
;
import
ShareForm
from
"./ShareForm.vue"
;
import
Folder
from
"./Folder.vue"
;
import
Folder
from
"./Folder.vue"
;
...
@@ -633,9 +632,10 @@ import { useRouter } from 'vue-router';
...
@@ -633,9 +632,10 @@ import { useRouter } from 'vue-router';
const
ep
=
userInfo
.
value
.
nickname
!=
row
.
CreateName
&&
row
.
IsDownLoad
==
0
?
0
:
1
const
ep
=
userInfo
.
value
.
nickname
!=
row
.
CreateName
&&
row
.
IsDownLoad
==
0
?
0
:
1
//@TODO:返回字段中缺少CreateBy,
//@TODO:返回字段中缺少CreateBy,
const
url
=
createSaleEditorLink
(
row
.
FileId
,
row
.
TempId
,
row
.
FileType
,
row
.
ParentFileId
,
ep
,
cp
)
const
url
=
createSaleEditorLink
(
row
.
FileId
,
row
.
TempId
,
row
.
FileType
,
row
.
ParentFileId
,
ep
,
cp
)
router
.
push
({
openNewBlank
(
url
)
path
:
url
// router.push({
})
// path:url
// })
}
else
{
}
else
{
// 2文件夹详情
// 2文件夹详情
if
(
type
==
2
)
{
if
(
type
==
2
)
{
...
...
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