|
@@ -1759,20 +1759,6 @@
|
|
|
</a-form-item>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="row-item">
|
|
|
- <div class="hint-item"> </div>
|
|
|
- <div class="label-item">
|
|
|
- <div class="text-item">是否开启系统优选</div>
|
|
|
- </div>
|
|
|
- <div class="input-item">
|
|
|
- <a-form-item>
|
|
|
- <a-radio-group v-decorator="['systemOptimization', { initialValue: 0 }]" :disabled="getProjectIdAccount !== 458">
|
|
|
- <a-radio-button :value="0">否</a-radio-button>
|
|
|
- <a-radio-button :value="1">是</a-radio-button>
|
|
|
- </a-radio-group>
|
|
|
- </a-form-item>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
@@ -2281,15 +2267,31 @@ export default {
|
|
|
changeChannel(checked) {
|
|
|
if(checked){
|
|
|
if(!!this.accountId){
|
|
|
- getAction('/channel/queryChannelLevel', {accountId:this.accountId}).then(res=>{
|
|
|
- console.log(res)
|
|
|
- if(res.code === 200) {
|
|
|
- this.channelData = res.result
|
|
|
- }else{
|
|
|
- this.useChannel = false
|
|
|
- this.$message.error('该账户不能使用渠道号')
|
|
|
- }
|
|
|
- })
|
|
|
+ if(!!this.getFormData('appId')){
|
|
|
+ var params = {}
|
|
|
+ params.appIdArray = this.getFormData('appId') instanceof Array?this.getFormData('appId').map(item=>{return item.key}):[this.getFormData('appId').key]
|
|
|
+ params.accountId = this.accountId
|
|
|
+ postAction('/channel/queryChannelLevel', params).then(res=>{
|
|
|
+ console.log(res)
|
|
|
+ if(res.code === 200) {
|
|
|
+ if(res.result){
|
|
|
+ this.channelData = res.result
|
|
|
+ }else{
|
|
|
+ this.useChannel = false
|
|
|
+ this.$message.error(res.message)
|
|
|
+ }
|
|
|
+
|
|
|
+ }else{
|
|
|
+ this.useChannel = false
|
|
|
+ this.$message.error('该账户不能使用渠道号')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ this.useChannel = false
|
|
|
+ this.$message.error('未选择应用不可开启')
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}else{
|
|
|
this.useChannel = false
|
|
|
this.$message.error('未选择账户不可开启')
|
|
@@ -3561,11 +3563,7 @@ export default {
|
|
|
this.scheduleTimeType = ''
|
|
|
this.scheduleTimeData = str
|
|
|
}
|
|
|
- this.useChannel = res.result.useChannel?res.result.useChannel==1?true:false:false
|
|
|
|
|
|
- if(this.useChannel){
|
|
|
- this.changeChannel(this.useChannel)
|
|
|
- }
|
|
|
this.multipleBidData = res.result.appInfoList ? res.result.appInfoList.map(item=>{
|
|
|
|
|
|
return {
|
|
@@ -3615,6 +3613,11 @@ export default {
|
|
|
siteId:res.result.siteId,
|
|
|
})
|
|
|
|
|
|
+ this.useChannel = res.result.useChannel?res.result.useChannel==1?true:false:false
|
|
|
+
|
|
|
+ if(this.useChannel){
|
|
|
+ this.changeChannel(this.useChannel)
|
|
|
+ }
|
|
|
},100)
|
|
|
|
|
|
|