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
e133ddb2
Commit
e133ddb2
authored
Jun 12, 2024
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 模版中心 编辑
parent
38394a72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
27 deletions
+27
-27
temDetails.vue
src/components/home/temDetails.vue
+16
-15
Index.vue
src/views/TemplateCenter/Index.vue
+11
-12
No files found.
src/components/home/temDetails.vue
View file @
e133ddb2
...
...
@@ -52,7 +52,7 @@
</div>
</div>
<div
class=
"row flex-center"
>
<div
class=
"MarketAdd MarketAddw140 pointer"
@
click=
"goToTemplate(showCurrentTemplate)"
>
立即
使用
</div>
<div
class=
"MarketAdd MarketAddw140 pointer"
@
click=
"goToTemplate(showCurrentTemplate)"
>
立即
{{model==1?'编辑':'使用'}}
</div>
</div>
</div>
<!-- <template v-if="showCurrentTemplate.PageImageList.length>1">
...
...
@@ -84,7 +84,7 @@ import { useSellTemplateStore,useSlidesStore } from '@/store'
import
{
useScreenStore
}
from
"@/store/screen"
;
import
{
storeToRefs
}
from
"pinia"
;
import
{
injectKeyTemplate
}
from
'@/types/injectKey'
import
{
noDataImg
,
createOpEditorLink
,
createSaleCreateLink
,
managerTemplateLink
,
createSaleEditorLink
}
from
'@/utils/common'
import
{
noDataImg
,
createOpEditorLink
,
createSaleCreateLink
,
managerTemplateLink
,
createSaleEditorLink
,
openNewBlank
}
from
'@/utils/common'
import
{
ElLoading
,
ElMessage
,
ElMessageBox
}
from
"element-plus"
;
import
{
useRouter
}
from
"vue-router"
;
import
UserCard
from
"@/components/User/UserCard.vue"
;
...
...
@@ -105,26 +105,26 @@ const scrollToElement = ref<any>()
const
searchData
=
ref
({}
as
any
)
searchData
.
value
=
inject
(
injectKeyTemplate
)
const
marketStore
=
useScreenStore
()
const
{
market
,
ConfigId
}
=
storeToRefs
(
useScreenStore
())
const
{
m
odel
,
m
arket
,
ConfigId
}
=
storeToRefs
(
useScreenStore
())
const
personVisible
=
ref
(
false
)
const
model
=
ref
(
2
)
//
const model = ref(2)
const
showCurrentTemplate
=
ref
<
any
>
()
const
imgList
=
ref
<
any
>
()
const
datas
=
reactive
({
scrollTop
:
0
,
currentImg
:
0
,
// 当前查看img
})
let
TemplateType
=
0
if
(
router
.
currentRoute
.
value
.
path
==
'/market'
)
model
.
value
=
1
if
(
router
.
currentRoute
.
value
.
path
.
includes
(
'create'
))
{
model
.
value
=
2
if
(
router
.
currentRoute
.
value
.
fullPath
.
indexOf
(
'/ad'
)
!=-
1
)
TemplateType
=
2
else
if
(
router
.
currentRoute
.
value
.
fullPath
.
indexOf
(
'/trip'
)
!=-
1
)
TemplateType
=
1
}
else
if
(
router
.
currentRoute
.
value
.
path
.
includes
(
'op'
))
{
model
.
value
=
0
}
marketStore
.
setModel
(
model
.
value
)
//
let TemplateType = 0
//
if(router.currentRoute.value.path=='/market') model.value=1
//
if(router.currentRoute.value.path.includes('create')) {
//
model.value=2
//
if(router.currentRoute.value.fullPath.indexOf('/ad')!=-1) TemplateType = 2
//
else if(router.currentRoute.value.fullPath.indexOf('/trip')!=-1) TemplateType = 1
//
}else if(router.currentRoute.value.path.includes('op')) {
//
model.value=0
//
}
//
marketStore.setModel(model.value)
const
props
=
defineProps
({
DetaTem
:{
...
...
@@ -240,8 +240,9 @@ const goToTemplate = (item: any) => {
else
if
(
model
.
value
==
1
)
{
searchData
.
value
.
currentMenu
=
null
url
=
managerTemplateLink
(
item
.
TempId
,
item
.
TemplateType
)
openNewBlank
(
url
)
}
if
(
url
!=
''
)
{
if
(
url
!=
''
&&
model
.
value
!=
1
)
{
router
.
push
({
path
:
url
})
...
...
src/views/TemplateCenter/Index.vue
View file @
e133ddb2
...
...
@@ -297,16 +297,15 @@ const datas = reactive({
currentImg
:
0
,
// 当前查看img
})
const
DetailsVisible
=
ref
(
false
)
let
TemplateType
=
0
if
(
router
.
currentRoute
.
value
.
path
==
'/market'
)
model
.
value
=
1
if
(
router
.
currentRoute
.
value
.
path
.
includes
(
'create'
))
{
model
.
value
=
2
if
(
router
.
currentRoute
.
value
.
fullPath
.
indexOf
(
'/ad'
)
!=-
1
)
TemplateType
=
2
else
if
(
router
.
currentRoute
.
value
.
fullPath
.
indexOf
(
'/trip'
)
!=-
1
)
TemplateType
=
1
}
else
if
(
router
.
currentRoute
.
value
.
path
.
includes
(
'op'
))
{
model
.
value
=
0
}
marketStore
.
setModel
(
model
.
value
)
// let TemplateType = 0
// if(router.currentRoute.value.path=='/market') model.value=1
// if(router.currentRoute.value.path.includes('create')) {
// model.value=2
// if(router.currentRoute.value.fullPath.indexOf('/ad')!=-1) TemplateType = 2
// else if(router.currentRoute.value.fullPath.indexOf('/trip')!=-1) TemplateType = 1
// }else if(router.currentRoute.value.path.includes('op')) {
// model.value=0
// }
const
queryObj
=
reactive
({
pageIndex
:
1
,
pageSize
:
20
,
...
...
@@ -320,7 +319,7 @@ const queryObj = reactive({
ColorNames
:
[],
//颜色名称
pageCount
:
0
,
//总页数
TempType
:
0
,
TemplateType
:
TemplateType
,
//0 不限 1模版 2广告
TemplateType
:
0
,
//0 不限 1模版 2广告
type
:
0
,
OrderByType
:
1
,
//排序方式
})
...
...
@@ -330,7 +329,7 @@ const queryColor = ref({
})
const
setTemplateType
=
ref
(
1
)
const
ColorList
=
ref
([])
marketStore
.
setModel
(
'1'
)
const
tableScrollHandler
=
()
=>
{
if
(
queryObj
.
pageCount
>
queryObj
.
pageIndex
){
queryObj
.
pageIndex
++
...
...
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