|
@@ -184,7 +184,7 @@ li.chouzhen.first:before {
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- <a-row>
|
|
|
+ <a-row v-show="getData('campaignType','form') == 2">
|
|
|
<a-col :xl="14" :md="24">
|
|
|
<a-form-item label="推广平台">
|
|
|
<a-radio-group
|
|
@@ -3647,16 +3647,16 @@ export default {
|
|
|
getTemplateList() {
|
|
|
this.loading = true
|
|
|
this.templateList = []
|
|
|
- this.getAction('/batch/kuaishouTemplate/list', {
|
|
|
- accountId: this.accountId,
|
|
|
- platformOs: this.getData('systemType', 'form') == 'Android' ? 1 : 2,
|
|
|
- // this.getData('systemType', 'form') == 'Android' ? 1 : 2,
|
|
|
- }).then((res) => {
|
|
|
+ var params = {}
|
|
|
+ params.accountId = this.accountId
|
|
|
+ if(this.getData('campaignType','form') == 2){
|
|
|
+ params.platformOs = this.getData('systemType', 'form') == 'Android' ? 1 : 2
|
|
|
+ }
|
|
|
+
|
|
|
+ this.getAction('/batch/kuaishouTemplate/list',params).then((res) => {
|
|
|
this.loading = false
|
|
|
if (res.success) {
|
|
|
- this.templateList = res.result.filter((item, index) => {
|
|
|
- return item.platformOs == 0 || item.platformOs == (this.getData('systemType', 'form') == 'Android' ? 1 : 2)
|
|
|
- })
|
|
|
+ this.templateList = res.result
|
|
|
this.templateListAll = JSON.parse(JSON.stringify(this.templateList))
|
|
|
} else {
|
|
|
this.templateList = []
|