|
@@ -178,7 +178,14 @@
|
|
|
<a-checkbox value="smartisan">锤子</a-checkbox>
|
|
|
</a-checkbox-group>
|
|
|
</a-form-item>
|
|
|
-
|
|
|
+ <a-form-item label="投放范围" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
|
+ :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }"
|
|
|
+ v-if="allianceAccount">
|
|
|
+ <a-radio-group buttonStyle="solid" v-model="allForm.allianceAccount">
|
|
|
+ <a-radio-button value="1">默认</a-radio-button>
|
|
|
+ <a-radio-button value="2">联盟广告</a-radio-button>
|
|
|
+ </a-radio-group>
|
|
|
+ </a-form-item>
|
|
|
<a-form-item
|
|
|
label="创建数量"
|
|
|
:labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
@@ -216,7 +223,9 @@
|
|
|
{{ appModel.templateName }}
|
|
|
</a-select-option>
|
|
|
</a-select>
|
|
|
- <a style="margin: 0 10px" @click="addTemplate(null)">新增模板</a>
|
|
|
+ <a-button type="primary" @click="getTemplate(null)" :loading="templateLoading"> 刷新模板</a-button>
|
|
|
+ <br>
|
|
|
+ <a style="margin: 0 10px 0 0" @click="addTemplate(null)">新增模板</a>
|
|
|
<a
|
|
|
@click="lookTemplate(null, getData('templateId'))"
|
|
|
:disabled="getData('templateId') == '' || getData('templateId') == null"
|
|
@@ -1067,6 +1076,7 @@ export default {
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ templateLoading: false,
|
|
|
dataOne: [],
|
|
|
actionBarTextList: [],
|
|
|
trackName: '',
|
|
@@ -1733,11 +1743,18 @@ export default {
|
|
|
this.$refs.templateModal.create(localStorage.getItem('campaignAccountId'), 'add')
|
|
|
},
|
|
|
getTemplate(accountId) {
|
|
|
+ var data = null
|
|
|
+ if (accountId) {
|
|
|
+ data = accountId
|
|
|
+ } else {
|
|
|
+ this.templateLoading = true
|
|
|
+ data = localStorage.getItem('campaignAccountId')
|
|
|
+ }
|
|
|
getAction('/batch/kuaishouTemplate/getTemplateByAccountId', {
|
|
|
- accountId: accountId,
|
|
|
+ accountId: data,
|
|
|
}).then((res) => {
|
|
|
if (res.success) {
|
|
|
- this.getTemplateList(accountId)
|
|
|
+ this.getTemplateList(data)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -1755,6 +1772,9 @@ export default {
|
|
|
key: index,
|
|
|
}
|
|
|
})
|
|
|
+ this.templateLoading = false
|
|
|
+ } else {
|
|
|
+ this.templateLoading = false
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -2044,7 +2064,7 @@ export default {
|
|
|
description: this.allForm.description,
|
|
|
appStore: values.useAppMarket == true ? this.allForm.appStore : null,
|
|
|
useAppMarket: values.useAppMarket ? 1 : 0,
|
|
|
- sceneId: this.allForm.sceneId,
|
|
|
+ sceneId: this.allForm.allianceAccount == '1' ? this.allForm.sceneId : [5],
|
|
|
scheduleTime:
|
|
|
this.allForm.scheduleTime == '2'
|
|
|
? this.allForm.scheduleTimeData
|