|
@@ -28,9 +28,9 @@
|
|
<a-form @submit="handleSubmit" :form="form">
|
|
<a-form @submit="handleSubmit" :form="form">
|
|
<a-form-item label="目标应用" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
<a-form-item label="目标应用" :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }" v-if="campaignType == '2'">
|
|
:wrapperCol="{ lg: { span: 17 }, sm: { span: 17 } }" v-if="campaignType == '2'">
|
|
- <a-select disabled v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch allowClear
|
|
|
|
- placeholder="选择应用目标" optionFilterProp="children" style="width: 500px" @focus="handleFocus" @blur="handleBlur"
|
|
|
|
- @change="handleChange" :filterOption="filterOption">
|
|
|
|
|
|
+ <a-select disabled v-decorator="['appId', { rules: [{ required: true, message: '请选择目标应用' }] }]" showSearch
|
|
|
|
+ allowClear placeholder="选择应用目标" optionFilterProp="children" style="width: 500px" @focus="handleFocus"
|
|
|
|
+ @blur="handleBlur" @change="handleChange" :filterOption="filterOption">
|
|
<a-select-option value="0">请选择目标应用</a-select-option>
|
|
<a-select-option value="0">请选择目标应用</a-select-option>
|
|
<a-select-option v-for="appModel in appList" :key="appModel.appId" :value="appModel.appId">
|
|
<a-select-option v-for="appModel in appList" :key="appModel.appId" :value="appModel.appId">
|
|
{{ appModel.appName }}    {{ appModel.appVersion }}   {{
|
|
{{ appModel.appName }}    {{ appModel.appVersion }}   {{
|
|
@@ -56,13 +56,14 @@
|
|
<a-input placeholder="请填写链接"
|
|
<a-input placeholder="请填写链接"
|
|
v-decorator="['url', { rules: [{ required: true, message: ' ' }, { validator: handleConfirmValue }] }]" />
|
|
v-decorator="['url', { rules: [{ required: true, message: ' ' }, { validator: handleConfirmValue }] }]" />
|
|
</a-form-item>
|
|
</a-form-item>
|
|
- <a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
|
|
- :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label" v-if="campaignType == '2'&&(getPlatForm(getData('appId'))=='1'||getPlatForm(getData('appId'))=='2')">
|
|
|
|
|
|
+ <a-form-item label=" " :labelCol="{ lg: { span: 7 }, sm: { span: 7 } }"
|
|
|
|
+ :wrapperCol="{ lg: { span: 10 }, sm: { span: 17 } }" class="else-label"
|
|
|
|
+ v-if="campaignType == '2'&&(getPlatForm(getData('appId'))=='1'||getPlatForm(getData('appId'))=='2')">
|
|
|
|
|
|
- <a-checkbox @change="onChange" :checked="allForm.useAppMarket">
|
|
|
|
- 优先从系统应用商店下载
|
|
|
|
- </a-checkbox>
|
|
|
|
- </a-form-item>
|
|
|
|
|
|
+ <a-checkbox @change="onChange" :checked="allForm.useAppMarket">
|
|
|
|
+ 优先从系统应用商店下载
|
|
|
|
+ </a-checkbox>
|
|
|
|
+ </a-form-item>
|
|
<div style="text-align:center;font-size:16px;margin-bottom:10px">
|
|
<div style="text-align:center;font-size:16px;margin-bottom:10px">
|
|
目标人群
|
|
目标人群
|
|
</div>
|
|
</div>
|
|
@@ -341,7 +342,7 @@
|
|
fail: [],
|
|
fail: [],
|
|
success: [],
|
|
success: [],
|
|
sceneId: [7],
|
|
sceneId: [7],
|
|
- useAppMarket:false
|
|
|
|
|
|
+ useAppMarket: false
|
|
},
|
|
},
|
|
dataList: [],
|
|
dataList: [],
|
|
unitId: '',
|
|
unitId: '',
|
|
@@ -574,10 +575,11 @@
|
|
...res.result.appInfo,
|
|
...res.result.appInfo,
|
|
...res.result.target
|
|
...res.result.target
|
|
}
|
|
}
|
|
- dataJson.sceneId = JSON.parse( dataJson.sceneId )[0] == '1'? '1':'2'
|
|
|
|
|
|
+ dataJson.sceneId = JSON.parse(dataJson.sceneId)[0] == '1' ? '1' : '2'
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
dataJson.dayBudget = dataJson.dayBudget / 1000
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
this.allForm.dayBudget = dataJson.dayBudget == 0 ? '0' : '1'
|
|
- this.allForm.useAppMarket= dataJson.useAppMarket?(dataJson.useAppMarket==0?false:true):false
|
|
|
|
|
|
+ this.allForm.useAppMarket = dataJson.useAppMarket ? (dataJson.useAppMarket == 0 ? false : true) :
|
|
|
|
+ false
|
|
this.allForm.time = dataJson.endTime ? '2' : '1'
|
|
this.allForm.time = dataJson.endTime ? '2' : '1'
|
|
this.timeRange = [moment(dataJson.beginTime), moment(dataJson.endTime)]
|
|
this.timeRange = [moment(dataJson.beginTime), moment(dataJson.endTime)]
|
|
this.allForm.scheduleTime = dataJson.scheduleTime.indexOf('1') != -1 ? '2' : '1'
|
|
this.allForm.scheduleTime = dataJson.scheduleTime.indexOf('1') != -1 ? '2' : '1'
|
|
@@ -615,14 +617,15 @@
|
|
this.populationData.allForm = {}
|
|
this.populationData.allForm = {}
|
|
this.populationData.allForm.regionType =
|
|
this.populationData.allForm.regionType =
|
|
dataJson.region && JSON.parse(dataJson.region).length > 0 ? 'limit' : 'noLimit'
|
|
dataJson.region && JSON.parse(dataJson.region).length > 0 ? 'limit' : 'noLimit'
|
|
- postAction('/kuaishou/batch/getRegionDetail', {
|
|
|
|
- regionArr: dataJson.region
|
|
|
|
- }).then(res => {
|
|
|
|
- console.log(res)
|
|
|
|
- if (res.success) {
|
|
|
|
- this.populationData.allForm.region = res.result
|
|
|
|
- }
|
|
|
|
- })
|
|
|
|
|
|
+ this.populationData.allForm.region = dataJson.region
|
|
|
|
+ // postAction('/kuaishou/batch/getRegionDetail', {
|
|
|
|
+ // regionArr: dataJson.region
|
|
|
|
+ // }).then(res => {
|
|
|
|
+ // console.log(res)
|
|
|
|
+ // if (res.success) {
|
|
|
|
+ // this.populationData.allForm.region = res.result
|
|
|
|
+ // }
|
|
|
|
+ // })
|
|
|
|
|
|
this.populationData.allForm.ageType =
|
|
this.populationData.allForm.ageType =
|
|
dataJson.agesRange.length > 0 ? 'ageLimit' : dataJson.ageMin ? 'ageCustom' : 'noLimit'
|
|
dataJson.agesRange.length > 0 ? 'ageLimit' : dataJson.ageMin ? 'ageCustom' : 'noLimit'
|
|
@@ -641,7 +644,7 @@
|
|
console.log(this.populationData.allForm, dataJson.agesRange)
|
|
console.log(this.populationData.allForm, dataJson.agesRange)
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.form.setFieldsValue(pick(dataJson, ['appId', 'urlType', 'url', 'dayBudget', 'speed',
|
|
this.form.setFieldsValue(pick(dataJson, ['appId', 'urlType', 'url', 'dayBudget', 'speed',
|
|
- 'showMode','sceneId'
|
|
|
|
|
|
+ 'showMode', 'sceneId'
|
|
]))
|
|
]))
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -671,7 +674,7 @@
|
|
})
|
|
})
|
|
var json = {
|
|
var json = {
|
|
...values,
|
|
...values,
|
|
- // sceneId: [values.sceneId],
|
|
|
|
|
|
+ // sceneId: [values.sceneId],
|
|
sceneId: values.sceneId == 1 ? [values.sceneId] : this.allForm.sceneId,
|
|
sceneId: values.sceneId == 1 ? [values.sceneId] : this.allForm.sceneId,
|
|
dayBudget: values.dayBudget * 1000
|
|
dayBudget: values.dayBudget * 1000
|
|
}
|
|
}
|
|
@@ -715,7 +718,7 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
onChange(value) {
|
|
onChange(value) {
|
|
- this.allForm.useAppMarket =e.target.checked
|
|
|
|
|
|
+ this.allForm.useAppMarket = e.target.checked
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
// this.$refs.population.getAppList(value)
|
|
// this.$refs.population.getAppList(value)
|