Browse Source

增加快速设置父级菜单功能 修复本地上传文件用户使用头像存在问题的bug

main
pixel 4 years ago
parent
commit
a3e4e9f42e
  1. 2
      web/src/view/person/person.vue
  2. 3
      web/src/view/superAdmin/menu/menu.vue

2
web/src/view/person/person.vue

@ -4,7 +4,7 @@
<el-col :span="6"> <el-col :span="6">
<div class="fl-left avatar-box"> <div class="fl-left avatar-box">
<div class="user-card"> <div class="user-card">
<div class="user-headpic-update" :style="{ 'background-image': 'url(' + userInfo.headerImg + ')','background-repeat':'no-repeat','background-size':'cover' }" >
<div class="user-headpic-update" :style="{ 'background-image': `url(${(userInfo.headerImg && userInfo.headerImg.slice(0, 4) !== 'http')?path+userInfo.headerImg:userInfo.headerImg})`,'background-repeat':'no-repeat','background-size':'cover' }" >
<span class="update" @click="openChooseImg"> <span class="update" @click="openChooseImg">
<i class="el-icon-edit"></i> <i class="el-icon-edit"></i>
重新上传</span> 重新上传</span>

3
web/src/view/superAdmin/menu/menu.vue

@ -97,8 +97,9 @@
v-model="form.parentId" v-model="form.parentId"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="文件路径" prop="component" style="width:30%">
<el-form-item label="文件路径" prop="component" style="width:60%">
<el-input autocomplete="off" v-model="form.component"></el-input> <el-input autocomplete="off" v-model="form.component"></el-input>
<span style="font-size:12px;margin-right:12px;">如果菜单包含子菜单请创建router-view二级路由页面或者</span><el-button size="mini" @click="form.component = 'view/routerHolder.vue'">点我设置</el-button>
</el-form-item> </el-form-item>
<el-form-item label="展示名称" prop="meta.title" style="width:30%"> <el-form-item label="展示名称" prop="meta.title" style="width:30%">
<el-input autocomplete="off" v-model="form.meta.title"></el-input> <el-input autocomplete="off" v-model="form.meta.title"></el-input>

Loading…
Cancel
Save