菜单修改
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user