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
7211868e
Commit
7211868e
authored
Mar 22, 2025
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified
parent
8e6fae5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
CampaignTaskManage.vue
src/views/campaignTask/CampaignTaskManage.vue
+27
-1
No files found.
src/views/campaignTask/CampaignTaskManage.vue
View file @
7211868e
...
@@ -145,6 +145,9 @@
...
@@ -145,6 +145,9 @@
:visible
.
sync=
"detailVisible"
:visible
.
sync=
"detailVisible"
width=
"80%"
width=
"80%"
>
>
<div
style=
"margin-bottom: 15px; text-align: right;"
>
<el-button
icon=
"el-icon-refresh"
@
click=
"refreshTaskDetail"
>
刷新
</el-button>
</div>
<el-table
:data=
"currentTaskDetail"
border
>
<el-table
:data=
"currentTaskDetail"
border
>
<el-table-column
prop=
"id"
label=
"ID"
></el-table-column>
<el-table-column
prop=
"id"
label=
"ID"
></el-table-column>
<el-table-column
prop=
"advertiserId"
label=
"广告账户ID"
></el-table-column>
<el-table-column
prop=
"advertiserId"
label=
"广告账户ID"
></el-table-column>
...
@@ -222,7 +225,8 @@ export default {
...
@@ -222,7 +225,8 @@ export default {
templateMap
:
new
Map
(),
templateMap
:
new
Map
(),
detailVisible
:
false
,
detailVisible
:
false
,
errorReasonVisible
:
false
,
errorReasonVisible
:
false
,
currentTaskDetail
:
null
currentTaskDetail
:
null
,
currentTaskId
:
null
}
}
},
},
created
()
{
created
()
{
...
@@ -347,6 +351,7 @@ export default {
...
@@ -347,6 +351,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
)
{
...
@@ -361,6 +366,27 @@ export default {
...
@@ -361,6 +366,27 @@ export default {
this
.
detailLoading
=
false
;
this
.
detailLoading
=
false
;
});
});
},
},
refreshTaskDetail
()
{
if
(
!
this
.
currentTaskId
)
{
this
.
$message
.
warning
(
'无法刷新,任务ID不存在'
);
return
;
}
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
{
...
...
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