mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
improve: 菜单列表
This commit is contained in:
parent
81c7c4e8d2
commit
78bc166b78
@ -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() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user