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
ef53e082
Commit
ef53e082
authored
Dec 20, 2024
by
lijin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified
parent
8fc55083
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
8 deletions
+47
-8
air_center.js
src/api/air_center.js
+2
-0
report.js
src/api/report.js
+10
-0
request.js
src/utils/request.js
+1
-1
CountrySelector.vue
src/views/createDelivery/childComponents/CountrySelector.vue
+1
-1
index.vue
src/views/createDelivery/index.vue
+33
-6
No files found.
src/api/air_center.js
View file @
ef53e082
...
@@ -42,3 +42,5 @@ export function resetPutinStatus(params) {
...
@@ -42,3 +42,5 @@ export function resetPutinStatus(params) {
src/api/report.js
View file @
ef53e082
...
@@ -421,6 +421,16 @@ export function getGoogleTokenList() {
...
@@ -421,6 +421,16 @@ export function getGoogleTokenList() {
})
})
}
}
// 获取指定账户的转化列表
export
function
fetchConversionAction
(
data
)
{
return
request
({
url
:
process
.
env
.
PUTIN_API
+
'/putin/fetch/fetchConversionAction'
,
method
:
'POST'
,
data
})
}
// ----------------------------------------
// ----------------------------------------
src/utils/request.js
View file @
ef53e082
...
@@ -6,7 +6,7 @@ import { getToken } from "@/utils/auth";
...
@@ -6,7 +6,7 @@ import { getToken } from "@/utils/auth";
// 创建axios实例
// 创建axios实例
const
service
=
axios
.
create
({
const
service
=
axios
.
create
({
baseURL
:
process
.
env
.
BXDD_API
,
//请求域名
baseURL
:
process
.
env
.
BXDD_API
,
//请求域名
timeout
:
1
0000
//请求超时时间
timeout
:
60
0000
//请求超时时间
});
});
// request拦截器
// request拦截器
...
...
src/views/createDelivery/childComponents/CountrySelector.vue
View file @
ef53e082
This diff is collapsed.
Click to expand it.
src/views/createDelivery/index.vue
View file @
ef53e082
...
@@ -576,10 +576,12 @@
...
@@ -576,10 +576,12 @@
</el-form-item>
</el-form-item>
<el-form-item
label=
"事件列表"
>
<el-form-item
label=
"事件列表"
>
<div>
123123
</div>
<el-button
@
click=
"getConversionAction"
>
刷新
</el-button>
<div>
123123
</div>
<el-table
:data=
"putinTask.conversionActions"
>
<el-table-column
label=
"账户ID"
prop=
"actId"
/>
<el-table-column
label=
"转化名称"
prop=
"firebaseEventName"
/>
<el-table-column
label=
"转化类型"
prop=
"actionCategory"
/>
</el-table>
</el-form-item>
</el-form-item>
...
@@ -704,6 +706,7 @@ import {
...
@@ -704,6 +706,7 @@ import {
putinFetchIndustryList
,
putinFetchIndustryList
,
getAdvList
,
getAdvList
,
getAdvertiseCount
,
getAdvertiseCount
,
fetchConversionAction
}
from
"@/api/report"
;
}
from
"@/api/report"
;
import
{
dateOptions
}
from
"@/assets/js/dateOptions"
;
import
{
dateOptions
}
from
"@/assets/js/dateOptions"
;
import
moment
from
"moment"
;
import
moment
from
"moment"
;
...
@@ -854,6 +857,7 @@ export default {
...
@@ -854,6 +857,7 @@ export default {
targetCpa
:
0.0
,
targetCpa
:
0.0
,
targetRoas
:
0
,
targetRoas
:
0
,
appInfo
:
""
,
appInfo
:
""
,
appId
:
""
,
appStore
:
3
,
appStore
:
3
,
startDate
:
''
,
startDate
:
''
,
endDate
:
''
,
endDate
:
''
,
...
@@ -863,7 +867,8 @@ export default {
...
@@ -863,7 +867,8 @@ export default {
headlines
:
[],
headlines
:
[],
descriptions
:
[],
descriptions
:
[],
imageAssets
:
[],
imageAssets
:
[],
videoAssets
:
[]
videoAssets
:
[],
conversionActions
:
[]
},
},
...
@@ -1285,7 +1290,8 @@ export default {
...
@@ -1285,7 +1290,8 @@ export default {
// 创建投放任务
// 创建投放任务
putinCreatePutinTask
:
function
()
{
putinCreatePutinTask
:
function
()
{
this
.
putinTask
.
appId
=
this
.
putinTask
.
appInfo
.
value
this
.
loading
=
true
putinCreatePutinTask
(
this
.
putinTask
)
putinCreatePutinTask
(
this
.
putinTask
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
...
@@ -1293,10 +1299,12 @@ export default {
...
@@ -1293,10 +1299,12 @@ export default {
this
.
drawer
=
false
;
// 关闭抽屉
this
.
drawer
=
false
;
// 关闭抽屉
}
}
this
.
submitBtnState
=
false
;
this
.
submitBtnState
=
false
;
this
.
loading
=
false
;
})
})
.
catch
((
res
)
=>
{
.
catch
((
res
)
=>
{
this
.
$message
.
warning
(
"提交失败!"
);
this
.
$message
.
warning
(
"提交失败!"
);
this
.
submitBtnState
=
false
;
this
.
submitBtnState
=
false
;
this
.
loading
=
false
;
});
});
},
},
...
@@ -1954,6 +1962,25 @@ export default {
...
@@ -1954,6 +1962,25 @@ export default {
}
}
});
});
},
},
/* 获取转化行为列表 */
getConversionAction
()
{
let
params
=
this
.
putinTask
.
putinAccounts
.
map
(
obj
=>
(
obj
.
advertiserId
));
fetchConversionAction
(
params
).
then
((
res
)
=>
{
if
(
res
.
status
==
200
)
{
``
if
(
res
.
result
.
data
.
length
==
0
)
{
this
.
putinTask
.
conversionActions
=
[];
}
else
{
this
.
putinTask
.
conversionActions
=
res
.
result
.
data
;
}
}
else
{
this
.
$message
.
error
(
`错误:
${
res
}
`
);
console
.
error
(
res
);
}
});
},
test
()
{
test
()
{
console
.
log
(
222
,
this
.
putinBaseInfo
.
deepBidType
);
console
.
log
(
222
,
this
.
putinBaseInfo
.
deepBidType
);
},
},
...
...
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