|
@@ -125,7 +125,7 @@
|
|
<div class="required-item"></div>
|
|
<div class="required-item"></div>
|
|
</div>
|
|
</div>
|
|
<div class="input-item">
|
|
<div class="input-item">
|
|
- <a-form-model-item ref="ruleType" prop="ruleType">
|
|
|
|
|
|
+ <a-form-model-item>
|
|
<a-radio-group v-model="item.operation" @change="mediaTypeChange($event,item)">
|
|
<a-radio-group v-model="item.operation" @change="mediaTypeChange($event,item)">
|
|
<a-radio-button :value="1">开启</a-radio-button>
|
|
<a-radio-button :value="1">开启</a-radio-button>
|
|
<a-radio-button :value="0">关闭</a-radio-button>
|
|
<a-radio-button :value="0">关闭</a-radio-button>
|
|
@@ -740,6 +740,13 @@ export default {
|
|
return !item.groupId
|
|
return !item.groupId
|
|
})
|
|
})
|
|
if(ruleList.length>0){
|
|
if(ruleList.length>0){
|
|
|
|
+ ruleList = ruleList.map(item=>{
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ ruleType:item.ruleDetail.length>1?'group':'base'
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ })
|
|
postAction(this.url.createRuleGroup,{
|
|
postAction(this.url.createRuleGroup,{
|
|
templateId:this.currentRuleId,
|
|
templateId:this.currentRuleId,
|
|
ruleList
|
|
ruleList
|
|
@@ -765,7 +772,13 @@ export default {
|
|
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
- postAction(this.url.creativeTemplate,this.form).then(res=>{
|
|
|
|
|
|
+ let params = this.form.ruleList.map(item=>{
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ ruleType:item.ruleDetail.length>1?'group':'base'
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ postAction(this.url.creativeTemplate,params).then(res=>{
|
|
this.saveLoading=false;
|
|
this.saveLoading=false;
|
|
if(res.success){
|
|
if(res.success){
|
|
this.$router.push('/earlyWarningRules/index')
|
|
this.$router.push('/earlyWarningRules/index')
|