Commit e7794227 authored by 徐一鸣's avatar 徐一鸣

权限分配修复

parent 3fb94260
...@@ -14,7 +14,10 @@ ...@@ -14,7 +14,10 @@
> >
<span class="el-checkbox__inner"></span> <span class="el-checkbox__inner"></span>
</span> </span>
<span class="el-checkbox__label" v-text="first_item.menu_name"></span> <span
class="el-checkbox__label"
v-text="first_item.menu_name"
></span>
</label> </label>
</div> </div>
<ul <ul
...@@ -78,8 +81,7 @@ ...@@ -78,8 +81,7 @@
<li> <li>
<div class="floor_item fourth"> <div class="floor_item fourth">
<label <label
v-for="(fourth_item, v-for="(fourth_item, fourth_index) in third_item.Child"
fourth_index) in third_item.Child"
:key=" :key="
'p_' + 'p_' +
first_index + first_index +
...@@ -127,7 +129,7 @@ ...@@ -127,7 +129,7 @@
<script> <script>
export default { export default {
model: { model: {
prop: "permissions", prop: "data",
event: "change-permissions", event: "change-permissions",
}, },
props: { props: {
...@@ -191,7 +193,13 @@ export default { ...@@ -191,7 +193,13 @@ export default {
} }
}, },
}, },
mounted() {}, watch: {
data(value) {
console.log("--- --- ---");
console.log(value);
console.log("--- --- ---");
},
},
}; };
</script> </script>
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
style="margin-bottom:100px;margin-top:20px;" style="margin-bottom:100px;margin-top:20px;"
> >
<menu-permission <menu-permission
:data="permissionData" v-model="permissionData"
@change="changePermissions" @change="changePermissions"
></menu-permission> ></menu-permission>
</div> </div>
...@@ -158,10 +158,10 @@ export default { ...@@ -158,10 +158,10 @@ export default {
Promise.all([this.get_tree(), this.get_use_tree()]) Promise.all([this.get_tree(), this.get_use_tree()])
.then((result) => { .then((result) => {
console.log(result); console.log(result);
this.permissionData = result[0].data.data;
this.service_node = result[1].data.data; this.service_node = result[1].data.data;
this.permission_arr = []; this.permission_arr = [];
this.deal_tree_data(result[0].data.data, result[1].data.data); this.deal_tree_data(result[0].data.data, result[1].data.data);
this.permissionData = result[0].data.data;
}) })
.catch((error) => { .catch((error) => {
console.log(error); console.log(error);
......
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