Commit 023f24a1 authored by zhengke's avatar zhengke

修改

parent 0abb4323
...@@ -2,14 +2,16 @@ ...@@ -2,14 +2,16 @@
<div class="chooseMenu"> <div class="chooseMenu">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane v-for="(item,index) in dataList" :label="item.PageTypeName" :name="item.PageTypeId+''" :key="index"> <el-tab-pane v-for="(item,index) in dataList" :label="item.PageTypeName" :name="item.PageTypeId+''" :key="index">
<template v-for="(subItem,subIndex) in item.SubMenuList"> <div style="height:450px;overflow:scroll">
<div :key="subIndex" style="margin-bottom:10px;"> <template v-for="(subItem,subIndex) in item.SubMenuList">
<el-checkbox v-model="subItem.IsChecked" :key="subIndex" @change="checkMenuChange(subItem)"> <div :key="subIndex" style="margin-bottom:10px;">
<span v-if="subItem.SelfPageName">{{subItem.SelfPageName}}</span> <el-checkbox v-model="subItem.IsChecked" :key="subIndex" @change="checkMenuChange(subItem)">
<span v-else>{{subItem.PageName}} </span> <span v-if="subItem.SelfPageName">{{subItem.SelfPageName}}</span>
</el-checkbox> <span v-else>{{subItem.PageName}} </span>
</div> </el-checkbox>
</template> </div>
</template>
</div>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -43,7 +45,7 @@ ...@@ -43,7 +45,7 @@
PageUrl: "", PageUrl: "",
IsParameter: 0, IsParameter: 0,
ParameterValue: "", ParameterValue: "",
PageName:"" PageName: ""
}; };
if (this.dataList && this.dataList.length > 0) { if (this.dataList && this.dataList.length > 0) {
this.dataList.forEach(item => { this.dataList.forEach(item => {
...@@ -53,7 +55,7 @@ ...@@ -53,7 +55,7 @@
obj.PageUrl = subItem.PageUrl; obj.PageUrl = subItem.PageUrl;
obj.IsParameter = subItem.IsParameter; obj.IsParameter = subItem.IsParameter;
obj.ParameterValue = subItem.ParameterValue; obj.ParameterValue = subItem.ParameterValue;
obj.PageName=subItem.PageName; obj.PageName = subItem.PageName;
} }
}) })
} }
......
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