Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
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
marketing-web
marketing
Commits
634e861b
Commit
634e861b
authored
May 30, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 链接小工具优化
parent
cd266392
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
15 deletions
+24
-15
index.vue
src/components/linktools-fulls/index.vue
+3
-2
form.vue
src/views/popup/form.vue
+21
-13
No files found.
src/components/linktools-fulls/index.vue
View file @
634e861b
...
...
@@ -58,7 +58,7 @@ components: {linkId
<!-- 滚动加载更多 -->
<!-- 二级下拉 -->
<el-select
v-model=
"twoLevelValue"
v-loadmore=
"getMore"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-select
v-model=
"twoLevelValue"
class=
"w200"
placeholder=
"请选择"
v-if=
"twoLevelVisible"
@
change=
"twoLevelValueChange"
>
<el-option
v-for=
"item in twoLevelOptions"
:key=
"item.value"
...
...
@@ -1332,7 +1332,8 @@ export default {
const
para
=
{
pageType
:
1
,
status
:
1
,
pageSize
:
50
,
pageSize
:
9999
,
sortType
:
2
,
currentPage
:
this
.
definePageCurrent
,
requestProject
:
this
.
repProjectName
}
...
...
src/views/popup/form.vue
View file @
634e861b
...
...
@@ -131,7 +131,7 @@
<el-select
class=
"select-page"
v-model=
"putonForm.id"
placeholder=
"请选择投放页面"
@
change=
"putonPageChange"
>
<el-option
v-for=
"page in putonPageList"
:label=
"page.name"
:value=
"page.id"
:key=
"page.id"
></el-option>
</el-select>
<el-select
class=
"select-page"
v-if=
"putonForm && putonForm.type == 6"
v-model=
"putonForm.customPageId"
placeholder=
"请选择投放页面"
>
<el-select
class=
"select-page"
v-if=
"putonForm && putonForm.type == 6"
v-model=
"putonForm.customPageId"
placeholder=
"请选择投放页面
(可根据页面名称搜索)"
filterable
remote
:remote-method=
"getPageList
"
>
<el-option
v-for=
"page in customPageList"
:label=
"page.title"
:value=
"page.pageId"
:key=
"page.pageId"
></el-option>
</el-select>
<div
slot=
"footer"
class=
"dialog-footer"
>
...
...
@@ -354,6 +354,25 @@ export default {
this
.
getPopupLinkList
();
},
methods
:
{
getPageList
(
query
)
{
const
params
=
{
pageType
:
1
,
status
:
1
,
sortType
:
2
,
pageSize
:
9999
,
currentPage
:
1
,
title
:
query
,
requestProject
:
'gic-web'
};
this
.
customPageList
=
[];
customPageList
(
params
).
then
(
res
=>
{
const
{
errorCode
,
result
}
=
res
||
{
result
:
{}
};
if
(
errorCode
!=
0
)
return
;
if
(
Array
.
isArray
(
result
.
result
))
{
this
.
customPageList
=
result
.
result
;
}
});
},
async
getDetail
()
{
const
res
=
await
getPopupPlan
({
popupPlanId
:
this
.
$route
.
query
.
id
});
if
(
res
.
errorCode
===
0
&&
res
.
result
)
{
...
...
@@ -553,18 +572,7 @@ export default {
this
.
putonPageList
=
res
.
data
.
result
;
}
});
const
params
=
{
pageType
:
1
,
status
:
1
,
pageSize
:
500
,
currentPage
:
1
,
requestProject
:
'gic-web'
};
customPageList
(
params
).
then
(
res
=>
{
if
(
res
.
errorCode
==
0
)
{
this
.
customPageList
=
res
.
result
.
result
||
[];
}
});
this
.
getPageList
();
},
putonPageChange
(
pageId
)
{
const
page
=
this
.
putonPageList
.
filter
(
item
=>
item
.
id
==
pageId
);
...
...
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