mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
init
This commit is contained in:
parent
d95f17772e
commit
ec098d1d6c
@ -75,7 +75,7 @@
|
||||
:formValidate="formValidate"
|
||||
:titleFrom="titleFrom"
|
||||
@getList="getList"
|
||||
@changeMenu="getMenusUnique"
|
||||
@changeMenu="changeMenu"
|
||||
ref="menusFrom"
|
||||
@clearFrom="clearFrom"
|
||||
></menus-from>
|
||||
@ -198,6 +198,7 @@ export default {
|
||||
seletRouteIds: [], // 选中id
|
||||
menusId: 0, // 选中分类id
|
||||
nodeKey: 0, // 选中节点
|
||||
openId: '',
|
||||
};
|
||||
},
|
||||
components: { menusFrom, formCreate: formCreate.$form() },
|
||||
@ -397,6 +398,7 @@ export default {
|
||||
},
|
||||
// 编辑
|
||||
edit(row, title, index) {
|
||||
this.openId = row.id;
|
||||
this.formValidate = {};
|
||||
this.menusDetails(row.id);
|
||||
this.titleFrom = title;
|
||||
@ -439,6 +441,19 @@ 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.getMenusUnique();
|
||||
},
|
||||
getMenusUnique() {
|
||||
getMenusUnique().then((res) => {
|
||||
let data = res.data;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user