Commit 412e967d authored by zhengke's avatar zhengke

修改

parent a4a0f3bd
......@@ -178,14 +178,14 @@
</span>
</div>
<div class="Item_Main">
<div class="role_ItemList" v-for="(subItem,subIndex) in SubMenuList">
<div class="role_ItemList" v-for="(subItem,subIndex) in SubMenuList" :key="subIndex">
<div class="role_SecondItem">
<span>{{subItem.MenuName}}</span>
<q-checkbox v-model="subItem.IsChecked" @input="twocheck(subIndex)" />
</div>
<div class="role_TreeList">
<ul>
<li v-for="(x,j) in subItem.SubList">
<li v-for="(x,j) in subItem.SubList" :key="j">
<span style="width: 15px;display: inline-block"
@click="x.showChildren=!x.showChildren,$forceUpdate()">
<i class="iconfont icon-sanjiaoxing-you" v-if="x.showChildren==false && x.SubList.length>0"
......@@ -197,7 +197,7 @@
@input="threecheck(subIndex,j)"></q-checkbox>
<span>{{x.MenuName}}</span>
<ul v-if="x.SubList.length>0&& x.showChildren==true" style="margin-left: 35px">
<li v-for="(a,b) in x.SubList">
<li v-for="(a,b) in x.SubList" :key="b">
<q-checkbox v-model="a.IsChecked" size="30px" style="margin-bottom: 2px"
@input="fourcheck(subIndex,j,b)"></q-checkbox>
<span>{{a.MenuName}}</span>
......@@ -415,9 +415,9 @@
type2 = true
}
})
if (type2 == false) {
AuthMenuList[checkedIndex].SubList[twoindex].IsChecked = false
}
// if (type2 == false) {
// AuthMenuList[checkedIndex].SubList[twoindex].IsChecked = false
// }
let type = false //找第二级有选择的内容
AuthMenuList[checkedIndex].SubList.forEach(x => {
if (x.IsChecked == true) {
......
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