|
@@ -419,33 +419,37 @@
|
|
this.$refs.copyGroup.handleSubmit(e)
|
|
this.$refs.copyGroup.handleSubmit(e)
|
|
},
|
|
},
|
|
toDetail(record) {
|
|
toDetail(record) {
|
|
|
|
+
|
|
localStorage.setItem('advertisingGroupKey', record.campaignId)
|
|
localStorage.setItem('advertisingGroupKey', record.campaignId)
|
|
localStorage.setItem('accountId', this.appId)
|
|
localStorage.setItem('accountId', this.appId)
|
|
|
|
|
|
getAction('/kuaishou/batch/getAsyncCreativeList', {
|
|
getAction('/kuaishou/batch/getAsyncCreativeList', {
|
|
campaignId: record.campaignId,
|
|
campaignId: record.campaignId,
|
|
accountId: this.appId
|
|
accountId: this.appId
|
|
- }).then()
|
|
|
|
- if (localStorage.getItem('advertisingGroup')) {
|
|
|
|
- var dataElse = JSON.parse(localStorage.getItem('advertisingGroup'))
|
|
|
|
- console.log(dataElse)
|
|
|
|
- for (let i = 0; i < dataElse.length; i++) {
|
|
|
|
- if (dataElse[i].key == record.key) {
|
|
|
|
- this.$router.replace({
|
|
|
|
- path: '/account/advertisingGroup'
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+ }).then(() => {
|
|
|
|
+ localStorage.setItem('campaignId', record.campaignId)
|
|
|
|
+ if (localStorage.getItem('advertisingGroup')) {
|
|
|
|
+ var dataElse = JSON.parse(localStorage.getItem('advertisingGroup'))
|
|
|
|
+ console.log(dataElse)
|
|
|
|
+ for (let i = 0; i < dataElse.length; i++) {
|
|
|
|
+ if (dataElse[i].key == record.key) {
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ path: '/account/advertisingGroup'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+ dataElse.push(record)
|
|
|
|
+ localStorage.setItem('advertisingGroup', JSON.stringify(dataElse))
|
|
|
|
+ } else {
|
|
|
|
+ var data = [record]
|
|
|
|
+ localStorage.setItem('advertisingGroup', JSON.stringify(data))
|
|
}
|
|
}
|
|
- dataElse.push(record)
|
|
|
|
- localStorage.setItem('advertisingGroup', JSON.stringify(dataElse))
|
|
|
|
- } else {
|
|
|
|
- var data = [record]
|
|
|
|
- localStorage.setItem('advertisingGroup', JSON.stringify(data))
|
|
|
|
- }
|
|
|
|
- this.$router.replace({
|
|
|
|
- path: '/account/advertisingGroup'
|
|
|
|
|
|
+ this.$router.replace({
|
|
|
|
+ path: '/account/advertisingGroup'
|
|
|
|
+ })
|
|
})
|
|
})
|
|
|
|
+
|
|
},
|
|
},
|
|
setData(item) {
|
|
setData(item) {
|
|
let date = new Date()
|
|
let date = new Date()
|
|
@@ -722,6 +726,11 @@
|
|
activated() {
|
|
activated() {
|
|
this.manyTwo = this.many
|
|
this.manyTwo = this.many
|
|
this.$refs.treeSelect.getParticipateList()
|
|
this.$refs.treeSelect.getParticipateList()
|
|
|
|
+ if (this.appId == '') {
|
|
|
|
+ return
|
|
|
|
+ } else {
|
|
|
|
+ this.addUser()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|