Browse Source

修改: 菜单方案

master
FLYPHT 2 years ago
parent
commit
aecd12ff5f
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      smtweb-framework/bpm/src/main/resources/static/event/bpm/sys/user/menuPlan/menuPlanList.js

+ 16
- 0
smtweb-framework/bpm/src/main/resources/static/event/bpm/sys/user/menuPlan/menuPlanList.js View File

@@ -47,12 +47,28 @@ window.$swEvent.setup("bpm.sys.user.menuPlan.menuPlanList", {
$$message.notify.success("删除成功!"); $$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 { return {
saveMenuPlan, saveMenuPlan,
afterDelMenuPlan, afterDelMenuPlan,
beforeAddPlanItem, beforeAddPlanItem,
savePlanItem, savePlanItem,
delPlanItem, delPlanItem,
onMenuChange,
onTypeChange,
} }
} }
}); });

Loading…
Cancel
Save