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
38e1bb2b
Commit
38e1bb2b
authored
Feb 22, 2024
by
罗超
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '1.2.0' of
http://gitlab.oytour.com/viitto/pptist
into 1.2.0
parents
46e39564
118c4915
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
757 additions
and
285 deletions
+757
-285
ConfigService.ts
src/services/ConfigService.ts
+14
-0
index.vue
src/views/Editor/Thumbnails/index.vue
+17
-0
Workspace.vue
src/views/SellTemplate/Workspace.vue
+2
-3
BrowsingHistory.vue
src/views/SellTemplate/components/BrowsingHistory.vue
+722
-0
Example.vue
src/views/SellTemplate/components/Example.vue
+0
-280
journeyAds.vue
src/views/SellTemplate/components/journeyAds.vue
+2
-2
No files found.
src/services/ConfigService.ts
View file @
38e1bb2b
...
...
@@ -5,6 +5,20 @@ import Api,{ HttpResponse, Result } from './../utils/request';
*/
class
ConfigService
{
/**
* 获取行程广告最近版本
*/
static
async
GetTripBrowsePage
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_GetTripBrowsePage"
,
params
)
}
/**
* 新增修改最近浏览
*/
static
async
SetTripBrowse
(
params
:
any
):
Promise
<
HttpResponse
>
{
return
Api
.
Post
(
"triptemplate_SetTripBrowse"
,
params
)
}
/**
* 获取行程广告历史版本
*/
...
...
src/views/Editor/Thumbnails/index.vue
View file @
38e1bb2b
...
...
@@ -507,6 +507,7 @@ const sellGetTripTemplate = async () =>{
}
let
dataRes
=
await
ConfigService
.
sellGetTemplateDetails
(
queryMsg
);
if
(
dataRes
.
data
.
resultCode
==
1
)
{
RecordBrowsing
()
if
(
searchData
.
value
.
TempId
)
queryObj
.
value
.
TempId
=
searchData
.
value
.
TempId
else
if
(
searchData
.
value
.
TempId2
&&!
searchData
.
value
.
TempId
)
queryObj
.
value
.
TempId
=
searchData
.
value
.
TempId2
else
if
(
searchData
.
value
.
sellTempId
)
queryObj
.
value
.
TempId
=
searchData
.
value
.
sellTempId
...
...
@@ -550,6 +551,22 @@ const sellGetTripTemplate = async () =>{
}
}
/**
* 行程广告浏览记录
*/
const
RecordBrowsing
=
async
()
=>
{
try
{
let
queryMsg
=
{
FileId
:
searchData
.
value
.
sellId
}
let
datasRes
=
await
ConfigService
.
SetTripBrowse
(
queryMsg
);
if
(
datasRes
.
data
.
resultCode
==
1
&&
datasRes
.
data
.
data
&&
datasRes
.
data
.
data
.
TempId
)
{
}
}
catch
(
error
)
{
}
}
// 页面被切换时
const
thumbnailsRef
=
ref
<
InstanceType
<
typeof
Draggable
>>
()
...
...
src/views/SellTemplate/Workspace.vue
View file @
38e1bb2b
...
...
@@ -76,7 +76,7 @@
</div>
</div>
<div
class=
"col"
>
<
!-- <Example></Example> --
>
<
BrowsingHistory
:current-menu=
"currentMenu"
v-if=
"currentMenu==0"
></BrowsingHistory
>
<journeyAds
:current-menu=
"currentMenu"
v-if=
"currentMenu==3||currentMenu==4"
></journeyAds>
</div>
</div>
...
...
@@ -88,7 +88,7 @@ import { userStore } from '@/store/user';
import
{
storeToRefs
}
from
'pinia'
;
import
{
ref
,
reactive
,
provide
,
inject
}
from
'vue'
;
import
SearchDocument
from
'./components/SearchDocument.vue'
import
Example
from
'./components/Example
.vue'
import
BrowsingHistory
from
'./components/BrowsingHistory
.vue'
import
journeyAds
from
'./components/journeyAds.vue'
import
{
Plus
,
ArrowDown
,
Clock
,
Star
,
Share
,
Picture
,
Management
,
Delete
,
RefreshRight
,
Refresh
,
Loading
}
from
'@element-plus/icons-vue'
;
...
...
@@ -107,7 +107,6 @@ const currentMenu = ref<number>(0)
const
searchData
=
ref
({}
as
any
)
searchData
.
value
=
inject
(
injectKeyTemplate
)
searchData
.
value
.
currentMenu
=
currentMenu
.
value
if
(
searchData
.
value
.
SellTemplateType
){
let
current
=
0
if
(
searchData
.
value
.
SellTemplateType
==
1
)
current
=
3
...
...
src/views/SellTemplate/components/BrowsingHistory.vue
0 → 100644
View file @
38e1bb2b
This diff is collapsed.
Click to expand it.
src/views/SellTemplate/components/Example.vue
deleted
100644 → 0
View file @
46e39564
This diff is collapsed.
Click to expand it.
src/views/SellTemplate/components/journeyAds.vue
View file @
38e1bb2b
...
...
@@ -285,7 +285,7 @@ if (searchData.value.SellTemplateType)
const
queryObj
=
reactive
({
pageIndex
:
1
,
pageSize
:
2
0
,
pageSize
:
5
0
,
pageCount
:
0
,
//总页数
FileType
:
TemplateType
,
FileId
:
0
,
...
...
@@ -685,7 +685,7 @@ querySearchHandler();
.journeyAds-TitleCenter
{
width
:
100%
;
height
:
18px
;
padding-bottom
:
21
px
;
margin-bottom
:
3
px
;
overflow
:
hidden
;
/* 隐藏超出部分 */
text-overflow
:
ellipsis
;
/* 显示省略号 */
white-space
:
wrap
;
/* 不换行 */
...
...
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