Commit c9c3b403 authored by 张俊's avatar 张俊

分配菜单

parent 12551b25
......@@ -114,7 +114,7 @@ export default {
this.set_role();
} else if (this.edit_flag == 3) {
// this.deal_node(this.permissionData, this.permission_arr);
// console.log(this.permission_arr, this.service_node);
console.log(this.permission_arr, this.service_node);
var temp = this.compare_arr(this.permission_arr, this.service_node);
var temp_arr = [];
if (temp[0].length) {
......@@ -242,7 +242,7 @@ export default {
var increase = [];
var reduce = [];
arr1.forEach((e) => {
nowtemp[e] = e;
nowtemp[e.menu_id] = e.menu_id;
});
arr2.forEach((e) => {
oldtemp[e.menu_id] = e.menu_id;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment