Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
zxn-adputin
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lijin
zxn-adputin
Commits
12f14c4b
Commit
12f14c4b
authored
Mar 03, 2025
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加计划模板管理页面
parent
15fa7902
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
875 additions
and
1 deletion
+875
-1
campaignTemplate.js
src/api/campaignTemplate.js
+38
-0
AppGroupSelector.vue
src/components/GroupSelectors/AppGroupSelector.vue
+62
-0
DescriptionGroupSelector.vue
src/components/GroupSelectors/DescriptionGroupSelector.vue
+62
-0
LocationGroupSelector.vue
src/components/GroupSelectors/LocationGroupSelector.vue
+62
-0
MaterialGroupSelector.vue
src/components/GroupSelectors/MaterialGroupSelector.vue
+62
-0
TitleGroupSelector.vue
src/components/GroupSelectors/TitleGroupSelector.vue
+62
-0
index.js
src/router/index.js
+9
-1
CampaignTemplateManage.vue
src/views/campaignTemplate/CampaignTemplateManage.vue
+517
-0
Layout.vue
src/views/layout/Layout.vue
+1
-0
No files found.
src/api/campaignTemplate.js
0 → 100644
View file @
12f14c4b
import
request
from
'@/utils/request'
export
function
getCampaignTemplateList
()
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
'/campaign-templates'
,
method
:
'get'
})
}
export
function
getCampaignTemplateById
(
id
)
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
`/campaign-templates/
${
id
}
`
,
method
:
'get'
})
}
export
function
createCampaignTemplate
(
data
)
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
'/campaign-templates'
,
method
:
'post'
,
data
})
}
export
function
updateCampaignTemplate
(
data
)
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
'/campaign-templates'
,
method
:
'put'
,
data
})
}
export
function
deleteCampaignTemplate
(
id
)
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
`/campaign-templates/
${
id
}
`
,
method
:
'delete'
})
}
src/components/GroupSelectors/AppGroupSelector.vue
0 → 100644
View file @
12f14c4b
<
template
>
<el-select
v-model=
"selectedValues"
multiple
filterable
clearable
placeholder=
"请选择应用组"
@
change=
"handleChange"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</
template
>
<
script
>
import
axios
from
'axios'
export
default
{
name
:
'AppGroupSelector'
,
props
:
{
value
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
options
:
[],
selectedValues
:
[]
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
this
.
selectedValues
=
newVal
},
immediate
:
true
}
},
created
()
{
this
.
fetchOptions
()
},
methods
:
{
async
fetchOptions
()
{
try
{
const
response
=
await
axios
.
get
(
process
.
env
.
PUTIN_API
+
'/app-groups'
)
this
.
options
=
response
.
data
}
catch
(
error
)
{
console
.
error
(
'Failed to fetch app groups:'
,
error
)
}
},
handleChange
(
values
)
{
this
.
$emit
(
'input'
,
values
)
this
.
$emit
(
'change'
,
values
)
}
}
}
</
script
>
src/components/GroupSelectors/DescriptionGroupSelector.vue
0 → 100644
View file @
12f14c4b
<
template
>
<el-select
v-model=
"selectedValues"
multiple
filterable
clearable
placeholder=
"请选择描述组"
@
change=
"handleChange"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</
template
>
<
script
>
import
axios
from
'axios'
export
default
{
name
:
'DescriptionGroupSelector'
,
props
:
{
value
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
options
:
[],
selectedValues
:
[]
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
this
.
selectedValues
=
newVal
},
immediate
:
true
}
},
created
()
{
this
.
fetchOptions
()
},
methods
:
{
async
fetchOptions
()
{
try
{
const
response
=
await
axios
.
get
(
'http://localhost:8567/description-groups'
)
this
.
options
=
response
.
data
}
catch
(
error
)
{
console
.
error
(
'Failed to fetch description groups:'
,
error
)
}
},
handleChange
(
values
)
{
this
.
$emit
(
'input'
,
values
)
this
.
$emit
(
'change'
,
values
)
}
}
}
</
script
>
src/components/GroupSelectors/LocationGroupSelector.vue
0 → 100644
View file @
12f14c4b
<
template
>
<el-select
v-model=
"selectedValues"
multiple
filterable
clearable
placeholder=
"请选择地域组"
@
change=
"handleChange"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</
template
>
<
script
>
import
axios
from
'axios'
export
default
{
name
:
'LocationGroupSelector'
,
props
:
{
value
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
options
:
[],
selectedValues
:
[]
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
this
.
selectedValues
=
newVal
},
immediate
:
true
}
},
created
()
{
this
.
fetchOptions
()
},
methods
:
{
async
fetchOptions
()
{
try
{
const
response
=
await
axios
.
get
(
'http://localhost:8567/location-groups'
)
this
.
options
=
response
.
data
}
catch
(
error
)
{
console
.
error
(
'Failed to fetch location groups:'
,
error
)
}
},
handleChange
(
values
)
{
this
.
$emit
(
'input'
,
values
)
this
.
$emit
(
'change'
,
values
)
}
}
}
</
script
>
src/components/GroupSelectors/MaterialGroupSelector.vue
0 → 100644
View file @
12f14c4b
<
template
>
<el-select
v-model=
"selectedValues"
multiple
filterable
clearable
placeholder=
"请选择素材组"
@
change=
"handleChange"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</
template
>
<
script
>
import
axios
from
'axios'
export
default
{
name
:
'MaterialGroupSelector'
,
props
:
{
value
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
options
:
[],
selectedValues
:
[]
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
this
.
selectedValues
=
newVal
},
immediate
:
true
}
},
created
()
{
this
.
fetchOptions
()
},
methods
:
{
async
fetchOptions
()
{
try
{
const
response
=
await
axios
.
get
(
process
.
env
.
PUTIN_API
+
'/material-groups'
)
this
.
options
=
response
.
data
}
catch
(
error
)
{
console
.
error
(
'Failed to fetch material groups:'
,
error
)
}
},
handleChange
(
values
)
{
this
.
$emit
(
'input'
,
values
)
this
.
$emit
(
'change'
,
values
)
}
}
}
</
script
>
src/components/GroupSelectors/TitleGroupSelector.vue
0 → 100644
View file @
12f14c4b
<
template
>
<el-select
v-model=
"selectedValues"
multiple
filterable
clearable
placeholder=
"请选择标题组"
@
change=
"handleChange"
>
<el-option
v-for=
"item in options"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
/>
</el-select>
</
template
>
<
script
>
import
axios
from
'axios'
export
default
{
name
:
'TitleGroupSelector'
,
props
:
{
value
:
{
type
:
Array
,
default
:
()
=>
[]
}
},
data
()
{
return
{
options
:
[],
selectedValues
:
[]
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
this
.
selectedValues
=
newVal
},
immediate
:
true
}
},
created
()
{
this
.
fetchOptions
()
},
methods
:
{
async
fetchOptions
()
{
try
{
const
response
=
await
axios
.
get
(
process
.
env
.
PUTIN_API
+
'/title-groups'
)
this
.
options
=
response
.
data
}
catch
(
error
)
{
console
.
error
(
'Failed to fetch title groups:'
,
error
)
}
},
handleChange
(
values
)
{
this
.
$emit
(
'input'
,
values
)
this
.
$emit
(
'change'
,
values
)
}
}
}
</
script
>
src/router/index.js
View file @
12f14c4b
...
@@ -69,6 +69,13 @@ export const constantRouterMap = [
...
@@ -69,6 +69,13 @@ export const constantRouterMap = [
component
:
()
=>
import
(
"@/views/createDelivery"
),
component
:
()
=>
import
(
"@/views/createDelivery"
),
meta
:
{
title
:
"创意投放"
,
icon
:
"chart"
}
meta
:
{
title
:
"创意投放"
,
icon
:
"chart"
}
},
},
{
path
:
'/intelligentDelivery/campaign-template'
,
name
:
"intelligentDelivery.campaign-template"
,
component
:
()
=>
import
(
'@/views/campaignTemplate/CampaignTemplateManage'
),
meta
:
{
title
:
'计划模板管理'
}
}
]
]
},
},
{
{
...
@@ -102,7 +109,8 @@ export const constantRouterMap = [
...
@@ -102,7 +109,8 @@ export const constantRouterMap = [
name
:
"assetManagement.YoutubeVideoManage"
,
name
:
"assetManagement.YoutubeVideoManage"
,
component
:
()
=>
import
(
"@/views/uploadYoutube/YoutubeVideoManage"
),
component
:
()
=>
import
(
"@/views/uploadYoutube/YoutubeVideoManage"
),
meta
:
{
title
:
"Youtube视频管理"
,
icon
:
"chart"
}
meta
:
{
title
:
"Youtube视频管理"
,
icon
:
"chart"
}
}
},
]
]
},
},
...
...
src/views/campaignTemplate/CampaignTemplateManage.vue
0 → 100644
View file @
12f14c4b
This diff is collapsed.
Click to expand it.
src/views/layout/Layout.vue
View file @
12f14c4b
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
<el-submenu
index=
"2"
>
<el-submenu
index=
"2"
>
<template
slot=
"title"
>
推广管理
</
template
>
<template
slot=
"title"
>
推广管理
</
template
>
<el-menu-item
index=
"/intelligentDelivery/createDelivery"
>
创建计划
</el-menu-item>
<el-menu-item
index=
"/intelligentDelivery/createDelivery"
>
创建计划
</el-menu-item>
<el-menu-item
index=
"/intelligentDelivery/campaign-template"
>
计划模板
</el-menu-item>
</el-submenu>
</el-submenu>
<el-submenu
index=
"3"
>
<el-submenu
index=
"3"
>
...
...
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