[update] 用户编辑

This commit is contained in:
danshihao
2024-04-17 18:05:37 +08:00
parent 3fb5f0d350
commit 4a9f6f9a26
3 changed files with 22 additions and 14 deletions
+15 -7
View File
@@ -74,13 +74,13 @@ export default {
// 选择菜单 // 选择菜单
selectMenu (menu) { selectMenu (menu) {
console.log(menu) console.log(menu)
if (menu.path !== '/systemOverview') { // if (menu.path !== '/systemOverview') {
this.$warning({ // this.$warning({
title: '系统建设中', // title: '系统建设中',
onOk: () => {} // onOk: () => {}
}) // })
return // return
} // }
this.selectPath = menu.path this.selectPath = menu.path
if (menu.children && menu.children.length > 0) { if (menu.children && menu.children.length > 0) {
this.$router.push({ path: menu.children[0].path }) this.$router.push({ path: menu.children[0].path })
@@ -167,6 +167,7 @@ export default {
margin: 10px 4px 0; margin: 10px 4px 0;
} }
.menu-item { .menu-item {
overflow: hidden;
position: relative; position: relative;
width: 68px; width: 68px;
height: 68px; height: 68px;
@@ -205,6 +206,13 @@ export default {
.menu-item { .menu-item {
background-image: url("~@/assets/images/menu/top-menu-act.png"); background-image: url("~@/assets/images/menu/top-menu-act.png");
// 将图片移到父元素外侧,溢出隐藏,然后用阴影偏移回来显示激活的图片颜色
img {
@offset: 100px;
transform: translate(-50%, calc(-50% + @offset));
filter: drop-shadow(0 -@offset 0 @primary-color);
}
} }
.menu-item-title { .menu-item-title {
font-family: Alimama ShuHeiTi, Alimama ShuHeiTi, sans-serif; font-family: Alimama ShuHeiTi, Alimama ShuHeiTi, sans-serif;
@@ -111,19 +111,19 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="所属单位"> <a-form-item label="所属单位">
<j-select-depart <j-select-depart
placeholder="请选择所属单位" placeholder="请选择所属单位"
v-decorator="['selecteddeparts', validatorRules.selecteddeparts]" v-decorator="['selecteddeparts', validatorRules.selecteddeparts]"
:backDepart="true" :backDepart="true"
:treeOpera="true"></j-select-depart> :treeOpera="true"></j-select-depart>
</a-form-model-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="联系方式"> <a-form-item label="联系方式">
<a-input placeholder="请输入联系方式" <a-input placeholder="请输入联系方式"
v-decorator="['phone', validatorRules.phone]" /> v-decorator="['phone', validatorRules.phone]" />
</a-form-model-item> </a-form-item>
</a-col> </a-col>
</a-row> </a-row>
@@ -498,7 +498,7 @@ export default {
}, },
// 编辑用户 // 编辑用户
handleEditUser (record) { handleEditUser (record) {
// this.$refs.userInfoModal.edit(record) this.$refs.userInfoModal.edit(record)
}, },
// 删除用户 // 删除用户
handleDeleteUser (record) { handleDeleteUser (record) {
@@ -531,7 +531,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.upload-avatar-box { .upload-avatar-box {
position: relative; position: relative;
width: calc(100% + 40px); width: 100%;
height: 168px; height: 168px;
background: url("~@/assets/images/systemOverview/systemSettings/upload-avatar.png") no-repeat center center; background: url("~@/assets/images/systemOverview/systemSettings/upload-avatar.png") no-repeat center center;
background-size: 124px 124px; background-size: 124px 124px;
@@ -156,7 +156,7 @@ export default {
.upload-avatar-box { .upload-avatar-box {
position: relative; position: relative;
width: calc(100% + 40px); width: 100%;
height: 168px; height: 168px;
background: url("~@/assets/images/systemOverview/systemSettings/upload-avatar.png") no-repeat center center; background: url("~@/assets/images/systemOverview/systemSettings/upload-avatar.png") no-repeat center center;
background-size: 124px 124px; background-size: 124px 124px;