improve: 菜单列表

This commit is contained in:
From-wh 2023-05-17 18:08:55 +08:00
parent 81c7c4e8d2
commit 78bc166b78

View File

@ -58,7 +58,6 @@
:false-value="0"
@on-change="onchangeIsShow(row)"
size="large"
v-if="row.auth_type == 1"
>
<span slot="open">显示</span>
<span slot="close">隐藏</span>
@ -177,7 +176,7 @@ export default {
roleData: {
is_show: 1,
keyword: '',
// auth_type: 1,
auth_type: 1,
},
defaultProps: {
children: 'children',
@ -199,7 +198,6 @@ export default {
seletRouteIds: [], // 选中id
menusId: 0, // 选中分类id
nodeKey: 0, // 选中节点
openId: '',
};
},
components: { menusFrom, formCreate: formCreate.$form() },
@ -399,7 +397,6 @@ export default {
},
// 编辑
edit(row, title, index) {
this.openId = row.id;
this.formValidate = {};
this.menusDetails(row.id);
this.titleFrom = title;
@ -442,17 +439,8 @@ export default {
this.$Message.error(res.msg);
});
},
openMenuList(arr, id) {
arr.map((e) => {
if (e.id === id) {
e._expanded = true;
} else if (e.children) {
}
});
},
changeMenu() {
this.getData(1);
// this.getData(1);
this.getMenusUnique();
},
getMenusUnique() {