菜单修改

This commit is contained in:
ludj
2022-11-30 16:39:26 +08:00
parent 995f192ff2
commit 11c5d63a7e
2 changed files with 2 additions and 2 deletions

View File

@@ -231,7 +231,7 @@ public class MenuServiceImpl implements MenuService {
WQLObject menuTab = WQLObject.getWQLObject("sys_menu");
JSONArray menus;
if (pid != null && !pid.equals("0")) {
menus = menuTab.query("menu_id = '" + pid + "'").getResultJSONArray(0);
menus = menuTab.query("pid = '" + pid + "'").getResultJSONArray(0);
} else {
menus = menuTab.query("(pid =0 or pid is null)").getResultJSONArray(0);
}

View File

@@ -119,7 +119,7 @@
<el-input v-model="form.component" style="width: 190px;" placeholder="组件路径" />
</el-form-item>
<el-form-item label="上级类目" prop="pid">
<!-- normalizer转换-->
<!-- normalizer转换- loadMenus 点击扩展的时候会调用该方法-->
<treeselect
v-model="form.pid"
:options="menus"