|
|
@ -569,17 +569,29 @@ const selectChange = (field, val) => { |
|
|
|
if (field == 'type') { |
|
|
|
// 循环盘点 |
|
|
|
if (val == 'CYCLE') { |
|
|
|
CountPlanMain.allSchemas.formSchema.splice(1,0,{ |
|
|
|
component: "Input", |
|
|
|
componentProps: {}, |
|
|
|
field:"crontab", |
|
|
|
label:"执行周期", |
|
|
|
value:"" |
|
|
|
}) |
|
|
|
// CountPlanMain.allSchemas.formSchema.splice(1,0,{ |
|
|
|
// component: "Input", |
|
|
|
// componentProps: {}, |
|
|
|
// field:"crontab", |
|
|
|
// label:"执行周期", |
|
|
|
// value:"" |
|
|
|
// }) |
|
|
|
console.log(CountPlanMain.allSchemas.formSchema) |
|
|
|
CountPlanMain.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'crontab'){ |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
CountPlanMainRules.crontab[0].required = true |
|
|
|
}else{ |
|
|
|
CountPlanMain.allSchemas.formSchema.splice(1,1) |
|
|
|
CountPlanMainRules.crontab[0].required = false |
|
|
|
CountPlanMain.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'crontab'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
// CountPlanMain.allSchemas.formSchema.splice(1,1) |
|
|
|
} |
|
|
|
|
|
|
|
if (val == 'DYNAMIC') { |
|
|
|