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
0ddc5d15
Commit
0ddc5d15
authored
Aug 29, 2025
by
hzl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 任务页字段处理
parent
7a200f4e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
29 deletions
+44
-29
CampaignTaskManage.vue
src/views/campaignTask/CampaignTaskManage.vue
+20
-5
CampaignTemplateManage.vue
src/views/campaignTemplate/CampaignTemplateManage.vue
+24
-24
No files found.
src/views/campaignTask/CampaignTaskManage.vue
View file @
0ddc5d15
...
...
@@ -315,7 +315,7 @@
<el-input-number
v-model=
"form.daily_budget"
:min=
"0"
></el-input-number>
</el-form-item>
<el-form-item
label=
"转化目标"
prop=
"bidding_type"
>
<el-form-item
label=
"转化目标"
prop=
"bidding_type"
v-if=
"form.platform !== 2"
>
<el-select
v-model=
"form.bidding_type"
placeholder=
"请选择"
>
<el-option
label=
"安装量"
:value=
"2"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作次数"
:value=
"3"
:disabled=
"true"
></el-option>
...
...
@@ -323,7 +323,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"目标考核ROAS(%)"
prop=
"target_roas"
>
<el-form-item
label=
"目标考核ROAS(%)"
prop=
"target_roas"
v-if=
"form.platform !== 2"
>
<el-input-number
v-model=
"form.target_roas"
:min=
"0"
></el-input-number>
</el-form-item>
...
...
@@ -413,7 +413,7 @@
<el-input-number
v-model=
"form.daily_budget"
:min=
"0"
></el-input-number>
</el-form-item>
<el-form-item
label=
"转化目标"
prop=
"bidding_type"
>
<el-form-item
label=
"转化目标"
prop=
"bidding_type"
v-if=
"form.platform !== 2"
>
<el-select
v-model=
"form.bidding_type"
placeholder=
"请选择"
>
<el-option
label=
"安装量"
:value=
"2"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作次数"
:value=
"3"
:disabled=
"true"
></el-option>
...
...
@@ -421,7 +421,7 @@
</el-select>
</el-form-item>
<el-form-item
label=
"目标考核ROAS"
prop=
"target_roas"
>
<el-form-item
label=
"目标考核ROAS"
prop=
"target_roas"
v-if=
"form.platform !== 2"
>
<el-input-number
v-model=
"form.target_roas"
:min=
"0"
></el-input-number>
</el-form-item>
...
...
@@ -759,7 +759,17 @@ export default {
{
required
:
true
,
message
:
'请选择移动应用平台'
,
trigger
:
'change'
}
],
daily_budget
:
[
{
required
:
true
,
message
:
'请输入日预算'
,
trigger
:
'blur'
}
{
required
:
true
,
message
:
'请输入日预算'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
form
.
platform
===
2
&&
value
<
20
)
{
callback
(
new
Error
(
'TikTok平台日预算必须大于等于20'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
bidding_type
:
[
{
required
:
true
,
message
:
'请选择转化目标'
,
trigger
:
'change'
}
...
...
@@ -1492,6 +1502,11 @@ export default {
// 处理平台变化
async
handlePlatformChange
(
value
)
{
// 当平台改变时,重新验证日预算字段
this
.
$nextTick
(()
=>
{
this
.
$refs
.
form
.
validateField
(
'daily_budget'
);
});
if
(
value
===
2
)
{
// 如果选择了TikTok平台,重置相关字段
this
.
form
.
tiktok_json
.
isNewCampaign
=
true
;
...
...
src/views/campaignTemplate/CampaignTemplateManage.vue
View file @
0ddc5d15
...
...
@@ -200,17 +200,17 @@
<el-input-number
v-model=
"form.daily_budget"
:min=
"0"
></el-input-number>
</el-form-item>
<el-form-item
label=
"转化目标"
prop=
"bidding_type
"
>
<el-select
v-model=
"form.bidding_type"
placeholder=
"请选择"
>
<el-option
label=
"安装量"
:value=
"2"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作次数"
:value=
"3"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作价值"
:value=
"5"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"目标考核ROAS"
prop=
"target_roas
"
>
<el-input-number
v-model=
"form.target_roas"
:min=
"0"
></el-input-number>
</el-form-item>
<el-form-item
label=
"转化目标"
prop=
"bidding_type"
v-if=
"form.platform !== 2
"
>
<el-select
v-model=
"form.bidding_type"
placeholder=
"请选择"
>
<el-option
label=
"安装量"
:value=
"2"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作次数"
:value=
"3"
:disabled=
"true"
></el-option>
<el-option
label=
"应用内操作价值"
:value=
"5"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"目标考核ROAS"
prop=
"target_roas"
v-if=
"form.platform !== 2
"
>
<el-input-number
v-model=
"form.target_roas"
:min=
"0"
></el-input-number>
</el-form-item>
<!-- TikTok特定字段 -->
<
template
v-if=
"form.platform === 2"
>
...
...
@@ -455,19 +455,19 @@ export default {
appStore
:
[
{
required
:
true
,
message
:
'请选择移动应用平台'
,
trigger
:
'change'
}
],
daily_budget
:
[
{
required
:
true
,
message
:
'请输入日预算'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
form
.
platform
===
2
&&
value
<
5
0
)
{
callback
(
new
Error
(
'TikTok平台日预算必须大于等于5
0'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
daily_budget
:
[
{
required
:
true
,
message
:
'请输入日预算'
,
trigger
:
'blur'
},
{
validator
:
(
rule
,
value
,
callback
)
=>
{
if
(
this
.
form
.
platform
===
2
&&
value
<
2
0
)
{
callback
(
new
Error
(
'TikTok平台日预算必须大于等于2
0'
))
}
else
{
callback
()
}
},
trigger
:
'blur'
}
],
bidding_type
:
[
{
required
:
true
,
message
:
'请选择转化目标'
,
trigger
:
'change'
}
],
...
...
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