Sfoglia il codice sorgente

修改: 菜单方案

master
FLYPHT 2 anni fa
parent
commit
aecd12ff5f
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  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 Vedi File

@@ -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,
}
}
});

Caricamento…
Annulla
Salva