|
@@ -236,6 +236,7 @@
|
|
|
</div>
|
|
|
</a-radio-group>
|
|
|
</a-modal>
|
|
|
+
|
|
|
|
|
|
<a-modal
|
|
|
title="下载模板"
|
|
@@ -516,8 +517,15 @@ export default {
|
|
|
},
|
|
|
...mapGetters(['userInfo']),
|
|
|
toDetailList(item) {
|
|
|
- localStorage.setItem('channelInfoAccountId', item.accountId)
|
|
|
- this.$router.push({ path: '/autoLaunch/channelDetailList' })
|
|
|
+ if (item.accountId == '') {
|
|
|
+ localStorage.removeItem('channelInfoAccountId')
|
|
|
+ localStorage.setItem('channelInfoProjectId', item.projectId)
|
|
|
+ this.$router.push({ path: '/autoLaunch/channelDetailList' })
|
|
|
+ } else {
|
|
|
+ localStorage.removeItem('channelInfoProjectId')
|
|
|
+ localStorage.setItem('channelInfoAccountId', item.accountId)
|
|
|
+ this.$router.push({ path: '/autoLaunch/channelDetailList' })
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
cpaBidValid(rule, value, callback) {
|
|
@@ -540,14 +548,14 @@ export default {
|
|
|
},
|
|
|
addNewChannelElse(item) {
|
|
|
this.createType = item.createType
|
|
|
- var createTypeData = { createType: this.createType, accountId: item.accountId }
|
|
|
+ var createTypeData = { createType: this.createType, accountId: item.accountId, projectId: item.projectId }
|
|
|
localStorage.setItem('createTypeData', JSON.stringify(createTypeData))
|
|
|
this.$router.push({ path: '/autoLaunch/createChannel' })
|
|
|
},
|
|
|
handleOk() {
|
|
|
if (this.channelType == 'a') {
|
|
|
this.createType = '1'
|
|
|
- var createTypeData = { createType: this.createType, accountId: null }
|
|
|
+ var createTypeData = { createType: this.createType, accountId: null, projectId: null }
|
|
|
localStorage.setItem('createTypeData', JSON.stringify(createTypeData))
|
|
|
this.$router.push({ path: '/autoLaunch/createChannel' })
|
|
|
} else if (this.channelType == 'b') {
|
|
@@ -556,7 +564,7 @@ export default {
|
|
|
this.handleCancel()
|
|
|
} else if (this.channelType == 'c') {
|
|
|
this.createType = '3'
|
|
|
- var createTypeData = { createType: this.createType, accountId: null }
|
|
|
+ var createTypeData = { createType: this.createType, accountId: null, projectId: null }
|
|
|
localStorage.setItem('createTypeData', JSON.stringify(createTypeData))
|
|
|
this.$router.push({ path: '/autoLaunch/createChannel' })
|
|
|
}
|