|
|
@@ -47,12 +47,28 @@ window.$swEvent.setup("bpm.sys.user.menuPlan.menuPlanList", { |
|
|
|
$$message.notify.success("删除成功!"); |
|
|
|
}); |
|
|
|
} |
|
|
|
// 下拉框onChange事件 |
|
|
|
const onMenuChange = (value,row) => { |
|
|
|
$model.menuCard.setFormVal("label",row?.label); |
|
|
|
$model.menuCard.setFormVal("icon",row?.icon); |
|
|
|
$model.menuCard.setFormVal("seq",row?.seq); |
|
|
|
} |
|
|
|
// 菜单类型onChange事件 |
|
|
|
const onTypeChange = (value) => { |
|
|
|
// if(value === 1){ |
|
|
|
// $refs.selectMenu.$attrs.disabled = false; |
|
|
|
// }else { |
|
|
|
// $refs.selectMenu.$attrs.disabled = true; |
|
|
|
// } |
|
|
|
} |
|
|
|
return { |
|
|
|
saveMenuPlan, |
|
|
|
afterDelMenuPlan, |
|
|
|
beforeAddPlanItem, |
|
|
|
savePlanItem, |
|
|
|
delPlanItem, |
|
|
|
onMenuChange, |
|
|
|
onTypeChange, |
|
|
|
} |
|
|
|
} |
|
|
|
}); |