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
e6d6c59b
Commit
e6d6c59b
authored
Mar 22, 2025
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified
parent
b90fa713
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
31 deletions
+56
-31
CampaignTaskManage.vue
src/views/campaignTask/CampaignTaskManage.vue
+56
-31
No files found.
src/views/campaignTask/CampaignTaskManage.vue
View file @
e6d6c59b
...
@@ -156,7 +156,13 @@
...
@@ -156,7 +156,13 @@
:visible
.
sync=
"detailVisible"
:visible
.
sync=
"detailVisible"
width=
"80%"
width=
"80%"
>
>
<el-table
:data=
"currentTaskDetail"
border
>
<div
class=
"header-actions"
>
<el-button
type=
"primary"
@
click=
"showAddDialog"
>
创建任务
</el-button>
<div
class=
"header-right"
>
<el-button
icon=
"el-icon-refresh"
@
click=
"refreshDetail"
:loading=
"detailLoading"
>
刷新
</el-button>
</div>
</div>
<el-table
:data=
"currentTaskDetail"
border
:loading=
"detailLoading"
>
<el-table-column
prop=
"id"
label=
"ID"
width=
"80"
></el-table-column>
<el-table-column
prop=
"id"
label=
"ID"
width=
"80"
></el-table-column>
<el-table-column
prop=
"advertiserId"
label=
"广告账户ID"
align=
"center"
sortable
></el-table-column>
<el-table-column
prop=
"advertiserId"
label=
"广告账户ID"
align=
"center"
sortable
></el-table-column>
<el-table-column
prop=
"campaignId"
label=
"广告计划ID"
align=
"center"
sortable
></el-table-column>
<el-table-column
prop=
"campaignId"
label=
"广告计划ID"
align=
"center"
sortable
></el-table-column>
...
@@ -373,7 +379,9 @@ export default {
...
@@ -373,7 +379,9 @@ export default {
videoPlayVisible
:
false
,
videoPlayVisible
:
false
,
currentVideoUrl
:
''
,
currentVideoUrl
:
''
,
errorMessageVisible
:
false
,
errorMessageVisible
:
false
,
currentErrorMsg
:
''
currentErrorMsg
:
''
,
currentTaskId
:
null
,
detailLoading
:
false
,
}
}
},
},
created
()
{
created
()
{
...
@@ -498,6 +506,7 @@ export default {
...
@@ -498,6 +506,7 @@ export default {
this
.
detailVisible
=
true
;
this
.
detailVisible
=
true
;
this
.
detailLoading
=
true
;
this
.
detailLoading
=
true
;
this
.
currentTaskDetail
=
null
;
this
.
currentTaskDetail
=
null
;
this
.
currentTaskId
=
row
.
id
;
getCampaignTaskDetails
({
taskId
:
row
.
id
}).
then
(
response
=>
{
getCampaignTaskDetails
({
taskId
:
row
.
id
}).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
if
(
response
.
status
===
200
)
{
...
@@ -513,6 +522,22 @@ export default {
...
@@ -513,6 +522,22 @@ export default {
});
});
},
},
refreshDetail
()
{
this
.
detailLoading
=
true
;
getCampaignTaskDetails
({
taskId
:
this
.
currentTaskId
}).
then
(
response
=>
{
if
(
response
.
status
===
200
)
{
this
.
currentTaskDetail
=
response
.
result
.
data
;
}
else
{
this
.
$message
.
error
(
response
.
msg
||
'获取任务详情失败'
);
}
}).
catch
(
error
=>
{
console
.
error
(
'获取任务详情失败:'
,
error
);
this
.
$message
.
error
(
'获取任务详情失败: '
+
error
.
message
);
}).
finally
(()
=>
{
this
.
detailLoading
=
false
;
});
},
async
handleStart
(
row
)
{
async
handleStart
(
row
)
{
try
{
try
{
const
response
=
await
axios
.
post
(
process
.
env
.
PUTIN_API
+
`/campaign-tasks/start?campaignTaskId=
${
row
.
id
}
`
)
const
response
=
await
axios
.
post
(
process
.
env
.
PUTIN_API
+
`/campaign-tasks/start?campaignTaskId=
${
row
.
id
}
`
)
...
...
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