Commit ef53e082 authored by lijin's avatar lijin

modified

parent 8fc55083
......@@ -42,3 +42,5 @@ export function resetPutinStatus(params) {
......@@ -421,6 +421,16 @@ export function getGoogleTokenList() {
})
}
// 获取指定账户的转化列表
export function fetchConversionAction(data) {
return request({
url: process.env.PUTIN_API + '/putin/fetch/fetchConversionAction',
method: 'POST',
data
})
}
// ----------------------------------------
......@@ -6,7 +6,7 @@ import { getToken } from "@/utils/auth";
// 创建axios实例
const service = axios.create({
baseURL: process.env.BXDD_API, //请求域名
timeout: 10000 //请求超时时间
timeout: 600000 //请求超时时间
});
// request拦截器
......
......@@ -576,10 +576,12 @@
</el-form-item>
<el-form-item label="事件列表">
<div>123123</div>
<div>123123</div>
<el-button @click="getConversionAction">刷新</el-button>
<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>
......@@ -704,6 +706,7 @@ import {
putinFetchIndustryList,
getAdvList,
getAdvertiseCount,
fetchConversionAction
} from "@/api/report";
import { dateOptions } from "@/assets/js/dateOptions";
import moment from "moment";
......@@ -854,6 +857,7 @@ export default {
targetCpa: 0.0,
targetRoas: 0,
appInfo: "",
appId: "",
appStore: 3,
startDate: '',
endDate: '',
......@@ -863,7 +867,8 @@ export default {
headlines: [],
descriptions: [],
imageAssets: [],
videoAssets: []
videoAssets: [],
conversionActions: []
},
......@@ -1285,7 +1290,8 @@ export default {
// 创建投放任务
putinCreatePutinTask: function () {
this.putinTask.appId = this.putinTask.appInfo.value
this.loading = true
putinCreatePutinTask(this.putinTask)
.then((res) => {
if (res.status === 200) {
......@@ -1293,10 +1299,12 @@ export default {
this.drawer = false; // 关闭抽屉
}
this.submitBtnState = false;
this.loading = false;
})
.catch((res) => {
this.$message.warning("提交失败!");
this.submitBtnState = false;
this.loading = false;
});
},
......@@ -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() {
console.log(222, this.putinBaseInfo.deepBidType);
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment