|
@@ -1298,7 +1298,7 @@ export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
clickTrackUrlTip:false,
|
|
clickTrackUrlTip:false,
|
|
- deviceBrand:0,
|
|
|
|
|
|
+ // deviceBrand:0,
|
|
tongbuLoading:false,
|
|
tongbuLoading:false,
|
|
refreshPopulationLoading:false,
|
|
refreshPopulationLoading:false,
|
|
noAreaBreak:false,
|
|
noAreaBreak:false,
|
|
@@ -1471,7 +1471,7 @@ export default {
|
|
accountId:this.accountId,
|
|
accountId:this.accountId,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- console.log(res)
|
|
|
|
|
|
+ //console.log(res)
|
|
this.createOptions = res.result
|
|
this.createOptions = res.result
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1492,7 +1492,7 @@ export default {
|
|
return {
|
|
return {
|
|
// selectedRowKeys: this.incluedSelectedRowKeys,
|
|
// selectedRowKeys: this.incluedSelectedRowKeys,
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
- console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
|
|
|
|
+ //console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
this.incluedSelectedRowKeys = selectedRowKeys;
|
|
this.incluedSelectedRowKeys = selectedRowKeys;
|
|
this.incluedSelectedKeys=selectedRows
|
|
this.incluedSelectedKeys=selectedRows
|
|
},
|
|
},
|
|
@@ -1509,7 +1509,7 @@ export default {
|
|
return {
|
|
return {
|
|
// selectedRowKeys: this.excludeSelectedRowKeys,
|
|
// selectedRowKeys: this.excludeSelectedRowKeys,
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
onChange: (selectedRowKeys, selectedRows) => {
|
|
- // console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
|
|
|
|
+ // //console.log(`selectedRowKeys: ${selectedRowKeys}`, 'selectedRows: ', selectedRows);
|
|
// this.selectedRowKeys = selectedRowKeys;
|
|
// this.selectedRowKeys = selectedRowKeys;
|
|
this.excludeSelectedRowKeys = selectedRowKeys;
|
|
this.excludeSelectedRowKeys = selectedRowKeys;
|
|
this.excludeSelectedKeys=selectedRows
|
|
this.excludeSelectedKeys=selectedRows
|
|
@@ -1526,8 +1526,8 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
platformOsChange(e){
|
|
platformOsChange(e){
|
|
- console.log(e);
|
|
|
|
- this.deviceBrand=0;
|
|
|
|
|
|
+ //console.log(e);
|
|
|
|
+ // this.deviceBrand=0;
|
|
this.sysType=e.target.value;
|
|
this.sysType=e.target.value;
|
|
this.sysTypeChange(e)
|
|
this.sysTypeChange(e)
|
|
},
|
|
},
|
|
@@ -1592,10 +1592,10 @@ export default {
|
|
},
|
|
},
|
|
selectAllAppId(){
|
|
selectAllAppId(){
|
|
|
|
|
|
- console.log(this.getFormData('appId'))
|
|
|
|
|
|
+ //console.log(this.getFormData('appId'))
|
|
},
|
|
},
|
|
singleAppidChange(e){
|
|
singleAppidChange(e){
|
|
- // console.log(e.target.value,this.getFormData('appId'));
|
|
|
|
|
|
+ // //console.log(e.target.value,this.getFormData('appId'));
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
appId:undefined
|
|
appId:undefined
|
|
})
|
|
})
|
|
@@ -1609,7 +1609,7 @@ export default {
|
|
return this.form.getFieldValue(className)
|
|
return this.form.getFieldValue(className)
|
|
},
|
|
},
|
|
dateChange(date, dateString) {
|
|
dateChange(date, dateString) {
|
|
- // console.log(date,dateString)
|
|
|
|
|
|
+ // //console.log(date,dateString)
|
|
this.form.getFieldDecorator('startTime')
|
|
this.form.getFieldDecorator('startTime')
|
|
this.form.getFieldDecorator('endTime')
|
|
this.form.getFieldDecorator('endTime')
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
@@ -1620,7 +1620,7 @@ export default {
|
|
|
|
|
|
//推广目的改变
|
|
//推广目的改变
|
|
campaignTypeChange(e){
|
|
campaignTypeChange(e){
|
|
- console.log(e.target)
|
|
|
|
|
|
+ //console.log(e.target)
|
|
let strategyNamepart=this.campaignTypeHandle(e.target.value);
|
|
let strategyNamepart=this.campaignTypeHandle(e.target.value);
|
|
this.strategyName ='[策略]_'+ strategyNamepart+'_' + moment().format('MM_DD_hh:mm') ;
|
|
this.strategyName ='[策略]_'+ strategyNamepart+'_' + moment().format('MM_DD_hh:mm') ;
|
|
this.getActionBarText()
|
|
this.getActionBarText()
|
|
@@ -1642,7 +1642,7 @@ export default {
|
|
this.accountIds=[];
|
|
this.accountIds=[];
|
|
getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=2', {}).then(res => {
|
|
getAction('/ctop/projectMember/getProjectAccountByUserId?mediaType=2', {}).then(res => {
|
|
if(res.success){
|
|
if(res.success){
|
|
- // console.log(res);
|
|
|
|
|
|
+ // //console.log(res);
|
|
if(res.result){
|
|
if(res.result){
|
|
res.result.forEach((element,index) => {
|
|
res.result.forEach((element,index) => {
|
|
if(element){
|
|
if(element){
|
|
@@ -1664,7 +1664,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- // console.log(this.treeData)
|
|
|
|
|
|
+ // //console.log(this.treeData)
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1700,25 +1700,25 @@ export default {
|
|
|
|
|
|
|
|
|
|
creativeTagValid(rule, value, callback) {
|
|
creativeTagValid(rule, value, callback) {
|
|
- console.log(rule, value, callback)
|
|
|
|
|
|
+ //console.log(rule, value, callback)
|
|
if(value.length == 0 || value==undefined){
|
|
if(value.length == 0 || value==undefined){
|
|
- // console.log(1)
|
|
|
|
|
|
+ // //console.log(1)
|
|
callback('创意标签必须填写')
|
|
callback('创意标签必须填写')
|
|
|
|
|
|
}else if (value.length > 10) {
|
|
}else if (value.length > 10) {
|
|
callback('创意标签最多填写10个,请删减')
|
|
callback('创意标签最多填写10个,请删减')
|
|
}else{
|
|
}else{
|
|
- // console.log(2)
|
|
|
|
|
|
+ // //console.log(2)
|
|
callback()
|
|
callback()
|
|
}
|
|
}
|
|
},
|
|
},
|
|
directionalChange(checkedList) {
|
|
directionalChange(checkedList) {
|
|
- // console.log(checkedList)
|
|
|
|
|
|
+ // //console.log(checkedList)
|
|
this.indeterminateDirectional = !!checkedList.length && checkedList.length < this.directionalList.length;
|
|
this.indeterminateDirectional = !!checkedList.length && checkedList.length < this.directionalList.length;
|
|
this.checkAllDirectional = checkedList.length === this.directionalList.length;
|
|
this.checkAllDirectional = checkedList.length === this.directionalList.length;
|
|
},
|
|
},
|
|
onCheckAllDirectionalChange(e) {
|
|
onCheckAllDirectionalChange(e) {
|
|
- console.log(e)
|
|
|
|
|
|
+ //console.log(e)
|
|
let valueOption=[];
|
|
let valueOption=[];
|
|
valueOption=this.directionalList.map(item=>{
|
|
valueOption=this.directionalList.map(item=>{
|
|
return item.id
|
|
return item.id
|
|
@@ -1733,7 +1733,7 @@ export default {
|
|
this.useDirectionalVisible=false
|
|
this.useDirectionalVisible=false
|
|
},
|
|
},
|
|
useDirectionalChange(e){
|
|
useDirectionalChange(e){
|
|
- console.log(e);
|
|
|
|
|
|
+ //console.log(e);
|
|
if(e.target.value==0){
|
|
if(e.target.value==0){
|
|
// this.useDirectionalVisible=true;
|
|
// this.useDirectionalVisible=true;
|
|
this.getUserDirectional()
|
|
this.getUserDirectional()
|
|
@@ -1744,12 +1744,12 @@ export default {
|
|
getAction('/kuaishou/batch/getDirectionalTemplate',{
|
|
getAction('/kuaishou/batch/getDirectionalTemplate',{
|
|
accountId:this.accountId
|
|
accountId:this.accountId
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
this.directionalList=res.result
|
|
this.directionalList=res.result
|
|
})
|
|
})
|
|
},
|
|
},
|
|
appIdChange(val){
|
|
appIdChange(val){
|
|
- console.log(val)
|
|
|
|
|
|
+ //console.log(val)
|
|
this.siteList=[]
|
|
this.siteList=[]
|
|
|
|
|
|
// this.getPageList(val)
|
|
// this.getPageList(val)
|
|
@@ -1791,18 +1791,18 @@ export default {
|
|
return current && current < moment().subtract(1, 'day')
|
|
return current && current < moment().subtract(1, 'day')
|
|
},
|
|
},
|
|
bidTypeChange(e){
|
|
bidTypeChange(e){
|
|
- console.log(e);
|
|
|
|
|
|
+ //console.log(e);
|
|
this.chargeMethods=e.target.value==10?"OCPM":'CPC'
|
|
this.chargeMethods=e.target.value==10?"OCPM":'CPC'
|
|
},
|
|
},
|
|
getData(className) {
|
|
getData(className) {
|
|
return this.form.getFieldValue(className)
|
|
return this.form.getFieldValue(className)
|
|
},
|
|
},
|
|
handleChange(val){
|
|
handleChange(val){
|
|
- console.log(val)
|
|
|
|
|
|
+ //console.log(val)
|
|
},
|
|
},
|
|
// 投放日期改变
|
|
// 投放日期改变
|
|
scheduleTypeChange(val){
|
|
scheduleTypeChange(val){
|
|
- console.log(val)
|
|
|
|
|
|
+ //console.log(val)
|
|
if(val=='SCHEDULE_FROM_NOW'){
|
|
if(val=='SCHEDULE_FROM_NOW'){
|
|
this.dateRange=[moment(),moment().add(10,'years')]
|
|
this.dateRange=[moment(),moment().add(10,'years')]
|
|
|
|
|
|
@@ -1842,7 +1842,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
customCrowdChange(e){
|
|
customCrowdChange(e){
|
|
- console.log(e);
|
|
|
|
|
|
+ //console.log(e);
|
|
if(e.target.value=='1' || e.target.value=='2'){
|
|
if(e.target.value=='1' || e.target.value=='2'){
|
|
this.retargetTabChange();
|
|
this.retargetTabChange();
|
|
this.tabKey=e.target.value
|
|
this.tabKey=e.target.value
|
|
@@ -1854,14 +1854,14 @@ export default {
|
|
|
|
|
|
// 自定义人群的--同时定向排除tab切换事件
|
|
// 自定义人群的--同时定向排除tab切换事件
|
|
retargetTabChange(){
|
|
retargetTabChange(){
|
|
- console.log()
|
|
|
|
|
|
+ //console.log()
|
|
this.retargetDataAll=[];
|
|
this.retargetDataAll=[];
|
|
this.loading=true;
|
|
this.loading=true;
|
|
|
|
|
|
getAction('/kuaishou/batch/getPopulationList',{
|
|
getAction('/kuaishou/batch/getPopulationList',{
|
|
accountId:this.accountId
|
|
accountId:this.accountId
|
|
}).then((res)=>{
|
|
}).then((res)=>{
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
this.loading=false;
|
|
this.loading=false;
|
|
if(res.success){
|
|
if(res.success){
|
|
res.result.forEach((ele)=>{
|
|
res.result.forEach((ele)=>{
|
|
@@ -1878,29 +1878,29 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onSelectChange(selectedRowKeys) {
|
|
onSelectChange(selectedRowKeys) {
|
|
- // console.log('selectedRowKeys changed: ', selectedRowKeys);
|
|
|
|
|
|
+ // //console.log('selectedRowKeys changed: ', selectedRowKeys);
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
this.selectedRowKeys = selectedRowKeys;
|
|
},
|
|
},
|
|
// 自定义人群的改变
|
|
// 自定义人群的改变
|
|
retargetTableChange(pagination, filters, sorter){
|
|
retargetTableChange(pagination, filters, sorter){
|
|
- // console.log(pagination);
|
|
|
|
|
|
+ // //console.log(pagination);
|
|
},
|
|
},
|
|
|
|
|
|
//获取选中的城市
|
|
//获取选中的城市
|
|
getSelectedCityArr(val){
|
|
getSelectedCityArr(val){
|
|
- console.log(val);
|
|
|
|
|
|
+ //console.log(val);
|
|
this.region=[];
|
|
this.region=[];
|
|
this.region=val;
|
|
this.region=val;
|
|
},
|
|
},
|
|
// 获取选中的区县
|
|
// 获取选中的区县
|
|
getSelectedCountyArr(val){
|
|
getSelectedCountyArr(val){
|
|
- // console.log(val)
|
|
|
|
|
|
+ // //console.log(val)
|
|
this.region=[];
|
|
this.region=[];
|
|
this.region=val;
|
|
this.region=val;
|
|
},
|
|
},
|
|
//获取选中的年龄段
|
|
//获取选中的年龄段
|
|
getAgeSelect(val){
|
|
getAgeSelect(val){
|
|
- // console.log(val)
|
|
|
|
|
|
+ // //console.log(val)
|
|
if(val.length==1&&val[0]==""){
|
|
if(val.length==1&&val[0]==""){
|
|
this.agesRange=[]
|
|
this.agesRange=[]
|
|
}else{
|
|
}else{
|
|
@@ -1910,12 +1910,12 @@ export default {
|
|
},
|
|
},
|
|
//获取智能放量定向的值
|
|
//获取智能放量定向的值
|
|
getAutoExtendEnabled(val){
|
|
getAutoExtendEnabled(val){
|
|
- // console.log(val)
|
|
|
|
|
|
+ // //console.log(val)
|
|
this.autoExtendTargets=[];
|
|
this.autoExtendTargets=[];
|
|
this.autoExtendTargets.push(...val)
|
|
this.autoExtendTargets.push(...val)
|
|
},
|
|
},
|
|
callback(val) {
|
|
callback(val) {
|
|
- console.log(val);
|
|
|
|
|
|
+ //console.log(val);
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -1940,7 +1940,7 @@ export default {
|
|
return this.form.getFieldValue(className)
|
|
return this.form.getFieldValue(className)
|
|
},
|
|
},
|
|
dateChange(date, dateString) {
|
|
dateChange(date, dateString) {
|
|
- // console.log(date,dateString)
|
|
|
|
|
|
+ // //console.log(date,dateString)
|
|
this.form.getFieldDecorator('beginTime')
|
|
this.form.getFieldDecorator('beginTime')
|
|
this.form.getFieldDecorator('endTime')
|
|
this.form.getFieldDecorator('endTime')
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
@@ -1957,7 +1957,7 @@ export default {
|
|
// var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/
|
|
// var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/|www\.)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+$/
|
|
var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+(.+[A-Za-z0-9-~\/])+$/
|
|
var strRegex = /^([hH][tT]{2}[pP]:\/\/|[hH][tT]{2}[pP][sS]:\/\/)(([A-Za-z0-9-~]+)\.)+([A-Za-z0-9-~\/])+(.+[A-Za-z0-9-~\/])+$/
|
|
var re = new RegExp(strRegex)
|
|
var re = new RegExp(strRegex)
|
|
- // console.log(re.test(res))
|
|
|
|
|
|
+ // //console.log(re.test(res))
|
|
if (re.test(res)) {
|
|
if (re.test(res)) {
|
|
return true
|
|
return true
|
|
} else {
|
|
} else {
|
|
@@ -1965,7 +1965,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
validateURL(rule, value, callback) {
|
|
validateURL(rule, value, callback) {
|
|
- // console.log(rule, value, callback);
|
|
|
|
|
|
+ // //console.log(rule, value, callback);
|
|
|
|
|
|
if (this.IsURL(value)) {
|
|
if (this.IsURL(value)) {
|
|
callback()
|
|
callback()
|
|
@@ -1976,7 +1976,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
validateName(rule, value, callback){
|
|
validateName(rule, value, callback){
|
|
- // console.log(rule, value, callback);
|
|
|
|
|
|
+ // //console.log(rule, value, callback);
|
|
|
|
|
|
if (value) {
|
|
if (value) {
|
|
callback()
|
|
callback()
|
|
@@ -1985,7 +1985,7 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
validateBid(rule, value, callback){
|
|
validateBid(rule, value, callback){
|
|
- // console.log(rule, value, callback);
|
|
|
|
|
|
+ // //console.log(rule, value, callback);
|
|
if (value) {
|
|
if (value) {
|
|
callback()
|
|
callback()
|
|
} else {
|
|
} else {
|
|
@@ -2003,13 +2003,13 @@ export default {
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
|
|
|
|
this.form.validateFields((err, values) => {
|
|
this.form.validateFields((err, values) => {
|
|
- console.log(values)
|
|
|
|
|
|
+ //console.log(values)
|
|
if (!err) {
|
|
if (!err) {
|
|
this.goNextloading=true;
|
|
this.goNextloading=true;
|
|
if(this.district!='NONE'){
|
|
if(this.district!='NONE'){
|
|
values.district=this.district
|
|
values.district=this.district
|
|
}
|
|
}
|
|
- console.log(this.excludeSelectedKeys,this.incluedSelectedKeys)
|
|
|
|
|
|
+ // //console.log(this.excludeSelectedKeys,this.incluedSelectedKeys)
|
|
|
|
|
|
// 设置广告位值
|
|
// 设置广告位值
|
|
if(this.adposition!='inventoryTypes'){
|
|
if(this.adposition!='inventoryTypes'){
|
|
@@ -2041,14 +2041,21 @@ export default {
|
|
|
|
|
|
values.convertId=this.convertId==''?undefined:this.convertId;
|
|
values.convertId=this.convertId==''?undefined:this.convertId;
|
|
|
|
|
|
- let excludePopulation=this.excludeSelectedKeys.map(item=>{
|
|
|
|
- return item.id
|
|
|
|
- })
|
|
|
|
- let population=this.incluedSelectedKeys.map(item=>{
|
|
|
|
- return item.id
|
|
|
|
- })
|
|
|
|
- values.excludePopulation=excludePopulation.length>0?JSON.stringify(excludePopulation):'[]';
|
|
|
|
- values.population=population.length>0?JSON.stringify(population):'[]';
|
|
|
|
|
|
+ // let excludePopulation=this.excludeSelectedKeys.map(item=>{
|
|
|
|
+ // return item.id
|
|
|
|
+ // })
|
|
|
|
+ // //console.log(this.excludeSelectedKeys)
|
|
|
|
+ // let population=this.incluedSelectedKeys.map(item=>{
|
|
|
|
+ // return item.id
|
|
|
|
+ // })
|
|
|
|
+ if(values.customCrowd==0){
|
|
|
|
+ values.excludePopulation='[]';
|
|
|
|
+ values.population='[]';
|
|
|
|
+ }else{
|
|
|
|
+ values.excludePopulation=this.excludeSelectedRowKeys.length>0?JSON.stringify(this.excludeSelectedRowKeys):'[]';
|
|
|
|
+ values.population=this.incluedSelectedRowKeys.length>0?JSON.stringify(this.incluedSelectedRowKeys):'[]';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
values.useAppMarket=values.useAppMarket?'1':'0'
|
|
values.useAppMarket=values.useAppMarket?'1':'0'
|
|
@@ -2076,10 +2083,10 @@ export default {
|
|
values.creativeCategory=undefined
|
|
values.creativeCategory=undefined
|
|
}
|
|
}
|
|
|
|
|
|
- if(this.deviceBrand==0){
|
|
|
|
|
|
+ // if(this.deviceBrand==0){
|
|
|
|
|
|
- }
|
|
|
|
- values.deviceBrand=this.deviceBrand==0?'[0]':JSON.stringify(values.deviceBrand)
|
|
|
|
|
|
+ // }
|
|
|
|
+ // values.deviceBrand=this.deviceBrand==0?'[0]':JSON.stringify(values.deviceBrand)
|
|
values.accountId = this.accountId
|
|
values.accountId = this.accountId
|
|
|
|
|
|
values.creativeTag=values.creativeTag?JSON.stringify(values.creativeTag):undefined
|
|
values.creativeTag=values.creativeTag?JSON.stringify(values.creativeTag):undefined
|
|
@@ -2088,7 +2095,7 @@ export default {
|
|
values.noGenderBreak=this.noGenderBreak?1:0
|
|
values.noGenderBreak=this.noGenderBreak?1:0
|
|
values.noAgeBreak=this.noAgeBreak?1:0
|
|
values.noAgeBreak=this.noAgeBreak?1:0
|
|
|
|
|
|
- console.log('Received values of form: ', values)
|
|
|
|
|
|
+ //console.log('Received values of form: ', values)
|
|
let url=''
|
|
let url=''
|
|
if(this.editRecordId){
|
|
if(this.editRecordId){
|
|
url='/ctop/aiKuaishouAdvertiserStrategy/edit';
|
|
url='/ctop/aiKuaishouAdvertiserStrategy/edit';
|
|
@@ -2097,7 +2104,7 @@ export default {
|
|
url='/ctop/aiKuaishouAdvertiserStrategy/add'
|
|
url='/ctop/aiKuaishouAdvertiserStrategy/add'
|
|
}
|
|
}
|
|
postAction(url,values).then(res=>{
|
|
postAction(url,values).then(res=>{
|
|
- console.log(res)
|
|
|
|
|
|
+ //console.log(res)
|
|
this.goNextloading=false
|
|
this.goNextloading=false
|
|
if(res.success){
|
|
if(res.success){
|
|
|
|
|
|
@@ -2122,7 +2129,7 @@ export default {
|
|
// dataType:'json',
|
|
// dataType:'json',
|
|
// success:(res)=>{
|
|
// success:(res)=>{
|
|
// this.goNextloading=false
|
|
// this.goNextloading=false
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
// let result=JSON.parse(res)
|
|
// let result=JSON.parse(res)
|
|
// if(result.code==0){
|
|
// if(result.code==0){
|
|
// this.$router.replace('/autoLaunch/configLaunchList')
|
|
// this.$router.replace('/autoLaunch/configLaunchList')
|
|
@@ -2134,7 +2141,7 @@ export default {
|
|
// }
|
|
// }
|
|
// },
|
|
// },
|
|
// error:(res)=>{
|
|
// error:(res)=>{
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
|
|
|
|
@@ -2183,7 +2190,7 @@ export default {
|
|
params.accountId = this.accountId
|
|
params.accountId = this.accountId
|
|
params.type = this.convertType
|
|
params.type = this.convertType
|
|
getAction('/kuaishou/batch/getConvertList', params).then(res => {
|
|
getAction('/kuaishou/batch/getConvertList', params).then(res => {
|
|
- console.log(res)
|
|
|
|
|
|
+ //console.log(res)
|
|
if (res.success) {
|
|
if (res.success) {
|
|
this.convertList = res.result.map(item => {
|
|
this.convertList = res.result.map(item => {
|
|
return {
|
|
return {
|
|
@@ -2195,7 +2202,7 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
sysTypeChange(e){
|
|
sysTypeChange(e){
|
|
- console.log(e.target.value);
|
|
|
|
|
|
+ //console.log(e.target.value);
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
appId:undefined,
|
|
appId:undefined,
|
|
platformOs:e.target.value
|
|
platformOs:e.target.value
|
|
@@ -2280,7 +2287,7 @@ export default {
|
|
accountId: this.accountId,
|
|
accountId: this.accountId,
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.success) {
|
|
if (res.success) {
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
if (res.result) {
|
|
if (res.result) {
|
|
this.whiteList=res.result
|
|
this.whiteList=res.result
|
|
}
|
|
}
|
|
@@ -2294,7 +2301,7 @@ export default {
|
|
getAction('/ctop/aiKuaishouAdvertiserStrategy/queryById',{
|
|
getAction('/ctop/aiKuaishouAdvertiserStrategy/queryById',{
|
|
id:this.editRecordId
|
|
id:this.editRecordId
|
|
}).then(res=>{
|
|
}).then(res=>{
|
|
- console.log(res);
|
|
|
|
|
|
+ //console.log(res);
|
|
|
|
|
|
this.accountId=res.result.accountId;
|
|
this.accountId=res.result.accountId;
|
|
this.description=res.result.description
|
|
this.description=res.result.description
|
|
@@ -2346,10 +2353,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if(res.result.deviceBrand){
|
|
|
|
|
|
+ // if(res.result.deviceBrand){
|
|
|
|
|
|
- this.deviceBrand=res.result.deviceBrand.indexOf(0)>-1?0:1;
|
|
|
|
- }
|
|
|
|
|
|
+ // this.deviceBrand=res.result.deviceBrand.indexOf(0)>-1?0:1;
|
|
|
|
+ // }
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
...res.result,
|
|
...res.result,
|
|
@@ -2358,11 +2365,11 @@ export default {
|
|
isOpen:res.result.isOpen?res.result.isOpen:0,
|
|
isOpen:res.result.isOpen?res.result.isOpen:0,
|
|
cpaBid:res.result.cpaBid/1000,
|
|
cpaBid:res.result.cpaBid/1000,
|
|
appId:res.singleAppid?JSON.parse(res.result.appIdArray)[0]:JSON.parse(res.result.appIdArray),
|
|
appId:res.singleAppid?JSON.parse(res.result.appIdArray)[0]:JSON.parse(res.result.appIdArray),
|
|
- deviceBrand:res.result.deviceBrand?JSON.parse(res.result.deviceBrand):[],
|
|
|
|
|
|
+ // deviceBrand:res.result.deviceBrand?JSON.parse(res.result.deviceBrand):[],
|
|
})
|
|
})
|
|
},0)
|
|
},0)
|
|
if((res.result.ocpxActionType == 180 || res.result.ocpxActionType == 53) && this.groupTypeData.deepConversionTypes&&this.groupTypeData.deepConversionTypes.length > 0){
|
|
if((res.result.ocpxActionType == 180 || res.result.ocpxActionType == 53) && this.groupTypeData.deepConversionTypes&&this.groupTypeData.deepConversionTypes.length > 0){
|
|
- // console.log(1)
|
|
|
|
|
|
+ // //console.log(1)
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
deepConversionType:res.result.deepConversionType,
|
|
deepConversionType:res.result.deepConversionType,
|
|
@@ -2375,7 +2382,7 @@ export default {
|
|
},0)
|
|
},0)
|
|
}
|
|
}
|
|
|
|
|
|
- // console.log(this.getFormData('deepConversionBid'))
|
|
|
|
|
|
+ // //console.log(this.getFormData('deepConversionBid'))
|
|
this.noAreaBreak=res.result.noAreaBreak?true:false
|
|
this.noAreaBreak=res.result.noAreaBreak?true:false
|
|
this.noGenderBreak=res.result.noGenderBreak?true:false
|
|
this.noGenderBreak=res.result.noGenderBreak?true:false
|
|
this.noAgeBreak=res.result.noAgeBreak?true:false
|
|
this.noAgeBreak=res.result.noAgeBreak?true:false
|
|
@@ -2457,7 +2464,7 @@ export default {
|
|
getAction('/kuaishou/batch/getPopulationList',{
|
|
getAction('/kuaishou/batch/getPopulationList',{
|
|
accountId:this.accountId
|
|
accountId:this.accountId
|
|
}).then((res)=>{
|
|
}).then((res)=>{
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
this.loading=false;
|
|
this.loading=false;
|
|
if(res.success){
|
|
if(res.success){
|
|
res.result.forEach((ele)=>{
|
|
res.result.forEach((ele)=>{
|
|
@@ -2476,11 +2483,11 @@ export default {
|
|
},
|
|
},
|
|
|
|
|
|
clickTrackUrlFocus(){
|
|
clickTrackUrlFocus(){
|
|
- // console.log('focus')
|
|
|
|
|
|
+ // //console.log('focus')
|
|
this.clickTrackUrlTip=true;
|
|
this.clickTrackUrlTip=true;
|
|
},
|
|
},
|
|
clickTrackUrlBlur(){
|
|
clickTrackUrlBlur(){
|
|
- // console.log('blur')
|
|
|
|
|
|
+ // //console.log('blur')
|
|
this.clickTrackUrlTip=false;
|
|
this.clickTrackUrlTip=false;
|
|
}
|
|
}
|
|
},
|
|
},
|