|
@@ -35,10 +35,10 @@
|
|
<a-form-item >
|
|
<a-form-item >
|
|
<a-radio-group v-decorator="['campaignType',{initialValue:2 }]" @change="campaignTypeChange">
|
|
<a-radio-group v-decorator="['campaignType',{initialValue:2 }]" @change="campaignTypeChange">
|
|
<a-radio-button :value="2">提升应用安装</a-radio-button>
|
|
<a-radio-button :value="2">提升应用安装</a-radio-button>
|
|
- <a-radio-button :value="3">获取电商下单</a-radio-button>
|
|
|
|
- <a-radio-button :value="4">推广品牌活动</a-radio-button>
|
|
|
|
- <a-radio-button :value="5">收集销售线索</a-radio-button>
|
|
|
|
- <a-radio-button :value="7">提高应用活跃</a-radio-button>
|
|
|
|
|
|
+ <a-radio-button :value="3" :disabled='true'>获取电商下单</a-radio-button>
|
|
|
|
+ <a-radio-button :value="4" :disabled='true'>推广品牌活动</a-radio-button>
|
|
|
|
+ <a-radio-button :value="5" :disabled='true'>收集销售线索</a-radio-button>
|
|
|
|
+ <a-radio-button :value="7" :disabled='true'>提高应用活跃</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</div>
|
|
</div>
|
|
@@ -296,14 +296,79 @@
|
|
</div>
|
|
</div>
|
|
<div class="input-item">
|
|
<div class="input-item">
|
|
<a-form-item>
|
|
<a-form-item>
|
|
- <a-radio-group v-decorator="['platformOs', {initialValue:1 }]" >
|
|
|
|
|
|
+ <a-radio-group v-decorator="['platformOs', {initialValue:1 }]" @change="platformOsChange">
|
|
<a-radio-button :value="0">不限</a-radio-button>
|
|
<a-radio-button :value="0">不限</a-radio-button>
|
|
<a-radio-button :value="1">Android</a-radio-button>
|
|
<a-radio-button :value="1">Android</a-radio-button>
|
|
<a-radio-button :value="2">IOS</a-radio-button>
|
|
<a-radio-button :value="2">IOS</a-radio-button>
|
|
</a-radio-group>
|
|
</a-radio-group>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
|
+
|
|
|
|
+ <!-- <div style="margin-top:24px" v-if="getFormData('platformOs')!=0">
|
|
|
|
+ <div v-if="getFormData('platformOs')==1">
|
|
|
|
+ <a-form-item>
|
|
|
|
+ <a-radio-group v-decorator="['androidOsv',{initialValue: 3,}]">
|
|
|
|
+ <a-radio :value="3">不限</a-radio>
|
|
|
|
+ <a-radio :value="4">4X+</a-radio>
|
|
|
|
+ <a-radio :value="5">5x+</a-radio>
|
|
|
|
+ <a-radio :value="6">6x+</a-radio>
|
|
|
|
+ <a-radio :value="7">7x+</a-radio>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </div>
|
|
|
|
+ <div v-if="getFormData('platformOs')==2">
|
|
|
|
+ <a-form-item>
|
|
|
|
+ <a-radio-group v-decorator="['iosOsv',{initialValue: 6,}]">
|
|
|
|
+ <a-radio :value="6">不限</a-radio>
|
|
|
|
+ <a-radio :value="7">7X+</a-radio>
|
|
|
|
+ <a-radio :value="8">8x+</a-radio>
|
|
|
|
+ <a-radio :value="9">9x+</a-radio>
|
|
|
|
+ <a-radio :value="10">10x+</a-radio>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <!-- <div class="row-item" v-if="getFormData('platformOs')!=2">
|
|
|
|
+ <div class="hint-item"></div>
|
|
|
|
+ <div class="label-item">
|
|
|
|
+ <div class="text-item">设备品牌</div>
|
|
|
|
+ <div class="required-item"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="input-item">
|
|
|
|
+ <a-form-item>
|
|
|
|
+ <a-radio-group v-model="deviceBrand">
|
|
|
|
+ <a-radio-button :value="0">不限</a-radio-button>
|
|
|
|
+ <a-radio-button :value="1">选择品牌</a-radio-button>
|
|
|
|
+ </a-radio-group>
|
|
|
|
+ </a-form-item>
|
|
|
|
+ <div style="width: 400px; margin-top: 24px;" class="inventoryTypes" v-if="deviceBrand==1">
|
|
|
|
+ <div class="inventory-tags-lists-header" style="padding-left:15px">
|
|
|
|
+
|
|
|
|
+ <div class="inventory-tags-lists-name"><strong>品牌名称</strong></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="inventory-tags-lists-container" >
|
|
|
|
+ <a-checkbox-group
|
|
|
|
+ v-decorator="['deviceBrand', { rules: [{ required: true, message: '请选择设备品牌' }] }]"
|
|
|
|
+ >
|
|
|
|
+ <a-checkbox :value="1" style="margin-bottom: 8px">OPPO</a-checkbox>
|
|
|
|
+ <a-checkbox :value="2" style="margin-bottom: 8px">VIVO</a-checkbox>
|
|
|
|
+ <a-checkbox :value="3" style="margin-bottom: 8px">华为</a-checkbox>
|
|
|
|
+ <a-checkbox :value="4" style="margin-bottom: 8px">小米</a-checkbox>
|
|
|
|
+ <a-checkbox :value="5" style="margin-bottom: 8px">荣耀</a-checkbox>
|
|
|
|
+ <a-checkbox :value="6" style="margin-bottom: 8px">三星</a-checkbox>
|
|
|
|
+ <a-checkbox :value="7" style="margin-bottom: 8px">金立</a-checkbox>
|
|
|
|
+ <a-checkbox :value="8" style="margin: 0 0 8px 0">魅族</a-checkbox>
|
|
|
|
+ <a-checkbox :value="9" style="margin-bottom: 8px">乐视</a-checkbox>
|
|
|
|
+ <a-checkbox :value="10" style="margin-bottom: 8px">其他</a-checkbox>
|
|
|
|
+ <a-checkbox :value="11" v-if="getFormData('platformOs') == 0" style="margin-bottom: 8px">苹果</a-checkbox>
|
|
|
|
+ </a-checkbox-group>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ </div> -->
|
|
<div class="row-item">
|
|
<div class="row-item">
|
|
<div class="hint-item"></div>
|
|
<div class="hint-item"></div>
|
|
<div class="label-item">
|
|
<div class="label-item">
|
|
@@ -830,7 +895,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="input-item">
|
|
<div class="input-item">
|
|
<a-form-item>
|
|
<a-form-item>
|
|
- <a-input v-decorator="['clickTrackUrl']" />
|
|
|
|
|
|
+ <a-input v-decorator="['clickTrackUrl']" @focus="clickTrackUrlFocus" @blur="clickTrackUrlBlur"/>
|
|
|
|
+ <span v-show="clickTrackUrlTip" style="font-size:14px;color:red;">填写点击检测连接的话,开始播放链接必须填写</span>
|
|
</a-form-item>
|
|
</a-form-item>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -1231,6 +1297,8 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ clickTrackUrlTip:false,
|
|
|
|
+ // deviceBrand:0,
|
|
tongbuLoading:false,
|
|
tongbuLoading:false,
|
|
refreshPopulationLoading:false,
|
|
refreshPopulationLoading:false,
|
|
noAreaBreak:false,
|
|
noAreaBreak:false,
|
|
@@ -1403,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
|
|
}
|
|
}
|
|
})
|
|
})
|
|
@@ -1424,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
|
|
},
|
|
},
|
|
@@ -1441,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
|
|
@@ -1457,6 +1525,12 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ platformOsChange(e){
|
|
|
|
+ //console.log(e);
|
|
|
|
+ // this.deviceBrand=0;
|
|
|
|
+ this.sysType=e.target.value;
|
|
|
|
+ this.sysTypeChange(e)
|
|
|
|
+ },
|
|
refreshPopulation(){
|
|
refreshPopulation(){
|
|
if(this.accountId){
|
|
if(this.accountId){
|
|
this.refreshPopulationLoading = true
|
|
this.refreshPopulationLoading = true
|
|
@@ -1518,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
|
|
})
|
|
})
|
|
@@ -1535,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({
|
|
@@ -1546,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()
|
|
@@ -1568,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){
|
|
@@ -1590,7 +1664,7 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
- // console.log(this.treeData)
|
|
|
|
|
|
+ // //console.log(this.treeData)
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1626,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
|
|
@@ -1659,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()
|
|
@@ -1670,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)
|
|
@@ -1717,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')]
|
|
|
|
|
|
@@ -1768,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
|
|
@@ -1780,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)=>{
|
|
@@ -1804,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{
|
|
@@ -1836,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);
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
@@ -1866,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({
|
|
@@ -1883,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 {
|
|
@@ -1891,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()
|
|
@@ -1902,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()
|
|
@@ -1911,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 {
|
|
@@ -1929,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'){
|
|
@@ -1967,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):undefined;
|
|
|
|
- values.population=population.length>0?JSON.stringify(population):undefined;
|
|
|
|
|
|
+ // 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'
|
|
@@ -2002,6 +2083,10 @@ export default {
|
|
values.creativeCategory=undefined
|
|
values.creativeCategory=undefined
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // if(this.deviceBrand==0){
|
|
|
|
+
|
|
|
|
+ // }
|
|
|
|
+ // 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
|
|
@@ -2010,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';
|
|
@@ -2019,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){
|
|
|
|
|
|
@@ -2044,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')
|
|
@@ -2056,7 +2141,7 @@ export default {
|
|
// }
|
|
// }
|
|
// },
|
|
// },
|
|
// error:(res)=>{
|
|
// error:(res)=>{
|
|
- // console.log(res)
|
|
|
|
|
|
+ // //console.log(res)
|
|
// }
|
|
// }
|
|
// })
|
|
// })
|
|
|
|
|
|
@@ -2105,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 {
|
|
@@ -2117,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
|
|
@@ -2202,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
|
|
}
|
|
}
|
|
@@ -2216,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
|
|
@@ -2267,6 +2352,11 @@ export default {
|
|
res.result.creativeCategory=res.result.creativeCategory?[res.result.creativeCategory]:[];
|
|
res.result.creativeCategory=res.result.creativeCategory?[res.result.creativeCategory]:[];
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ // if(res.result.deviceBrand){
|
|
|
|
+
|
|
|
|
+ // this.deviceBrand=res.result.deviceBrand.indexOf(0)>-1?0:1;
|
|
|
|
+ // }
|
|
setTimeout(()=>{
|
|
setTimeout(()=>{
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
...res.result,
|
|
...res.result,
|
|
@@ -2274,11 +2364,12 @@ export default {
|
|
useAppMarket:res.result.useAppMarket==1?true:false,
|
|
useAppMarket:res.result.useAppMarket==1?true:false,
|
|
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):[],
|
|
})
|
|
})
|
|
},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,
|
|
@@ -2291,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
|
|
@@ -2317,16 +2408,17 @@ export default {
|
|
this.checkedList=sceneId
|
|
this.checkedList=sceneId
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
- if(res.result.population&&res.result.excludePopulation){
|
|
|
|
|
|
+ let population=res.result.population?JSON.parse(res.result.population):[]
|
|
|
|
+ let excludePopulation=res.result.excludePopulation?JSON.parse(res.result.excludePopulation):[]
|
|
|
|
+ if(population.length&&excludePopulation.length){
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
customCrowd:'3'
|
|
customCrowd:'3'
|
|
})
|
|
})
|
|
- }else if(res.result.population&&!res.result.excludePopulation){
|
|
|
|
|
|
+ }else if(population.length&&!excludePopulation.length){
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
customCrowd:'1'
|
|
customCrowd:'1'
|
|
})
|
|
})
|
|
- }else if(!res.result.population&&!res.result.excludePopulation){
|
|
|
|
|
|
+ }else if(!population.length&&!excludePopulation.length){
|
|
this.form.setFieldsValue({
|
|
this.form.setFieldsValue({
|
|
customCrowd:'0'
|
|
customCrowd:'0'
|
|
})
|
|
})
|
|
@@ -2372,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)=>{
|
|
@@ -2388,6 +2480,15 @@ export default {
|
|
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ clickTrackUrlFocus(){
|
|
|
|
+ // //console.log('focus')
|
|
|
|
+ this.clickTrackUrlTip=true;
|
|
|
|
+ },
|
|
|
|
+ clickTrackUrlBlur(){
|
|
|
|
+ // //console.log('blur')
|
|
|
|
+ this.clickTrackUrlTip=false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -2509,7 +2610,6 @@ export default {
|
|
|
|
|
|
|
|
|
|
.ant-tooltip-inner,
|
|
.ant-tooltip-inner,
|
|
-.ant-tooltip,
|
|
|
|
.ant-tooltip-arrow::before {
|
|
.ant-tooltip-arrow::before {
|
|
background-color: #fff;
|
|
background-color: #fff;
|
|
color: #333;
|
|
color: #333;
|