|
...
|
...
|
@@ -159,7 +159,7 @@ |
|
|
|
<el-tree-select
|
|
|
|
v-model="form.parentId"
|
|
|
|
:data="menuOptions"
|
|
|
|
:props="{ value: 'id', label: 'label', children: 'children' }"
|
|
|
|
:props="{ value: 'id', label: 'name', children: 'children' }"
|
|
|
|
value-key="id"
|
|
|
|
placeholder="选择上级分类"
|
|
|
|
check-strictly
|
|
...
|
...
|
@@ -346,9 +346,9 @@ function resetQuery() { |
|
|
|
/** 查询菜单下拉树结构 */
|
|
|
|
function getTypeTreeSelect() {
|
|
|
|
menuOptions.value = [];
|
|
|
|
getTreeTypeList().then((response) => {
|
|
|
|
const menu = { id: 0, label: "主类目", children: [] };
|
|
|
|
menu.children = response.data;
|
|
|
|
getTypeList().then((response) => {
|
|
|
|
const menu = { id: 0, name: "主类目", children: [] };
|
|
|
|
menu.children = proxy.handleTree(response.data, "id");
|
|
|
|
menuOptions.value.push(menu);
|
|
|
|
});
|
|
|
|
}
|
...
|
...
|
|