Commit 4c77d9e3 authored by zhengke's avatar zhengke

修改

parent 5140c159
......@@ -212,7 +212,7 @@
.UserCenter .mobile-menus-box {
width: 100%;
background-color: #f7f7f7;
padding: 0 8px;
padding: 8px;
}
.UserCenter .mobile-menus-box>div {
......@@ -744,6 +744,12 @@
<img v-else src="../../assets/img/default.png" alt="" />
</div>
</el-form-item>
<el-form-item label="可查看分组">
<el-select v-model="modifyMsg.GroupId" class="w300">
<el-option v-for="item in groupArray" :key="item.GroupId" :label="item.GroupName" :value="item.GroupId">
</el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="isShowDialog = false">取 消</el-button>
......@@ -848,7 +854,8 @@
},
modifyMsg: {
name: '',
image: ''
image: '',
GroupId:''
},
//用户中心配置
userCenterMsg: {
......@@ -877,7 +884,8 @@
NavMoreList: [], //强东新增
},
menuIndex: 0, //新增第几个惨淡栏
ckIndex:0
ckIndex:0,
groupArray:[] //可查看分组下拉数据
};
},
components: {
......@@ -919,6 +927,7 @@
},
//修改确定
updateInfo() {
console.log(this.EditIndex,'Eindex');
switch (this.EditIndex) {
case 1:
this.postMsg.FavoriteFootMenuList[this.comCheckIndex].MenuName = this.modifyMsg.name;
......@@ -943,6 +952,7 @@
case 6:
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuName = this.modifyMsg.name;
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].MenuIcon = this.modifyMsg.image;
this.postMsg.NavMoreList[this.ckIndex].MeunList[this.comCheckIndex].GroupId = this.modifyMsg.GroupId;
}
this.isShowDialog = false;
},
......@@ -978,6 +988,7 @@
}
this.modifyMsg.name = item.MenuName;
this.modifyMsg.image = item.MenuIcon;
this.modifyMsg.GroupId = item.GroupId;
},
//获取用户中心配置
getUserCenterConfig() {
......@@ -1361,9 +1372,18 @@
MeunList: []
}
this.postMsg.NavMoreList.push(obj);
},
//获取分组下来列表
getgroupList() {
this.apipost("/api/User/GetMemberGroupList", {}, res => {
if (res.data.resultCode == 1) {
this.groupArray = res.data.data;
}
});
}
},
mounted() {
this.getgroupList();
this.getUserCenterConfig();
}
};
......
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