|
|
@ -1,5 +1,14 @@ |
|
|
|
<template> |
|
|
|
<div class="user_manage_container"> |
|
|
|
<div v-if="userFormVisible" class="add_user_form"> |
|
|
|
<p class="title">添加新用户</p> |
|
|
|
<div class="form_wrap"></div> |
|
|
|
<div class="btns"> |
|
|
|
<div class="btn" @click="returnList">返回</div> |
|
|
|
<div class="btn">添加</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div v-else> |
|
|
|
<div class="title_wrap"> |
|
|
|
<svg |
|
|
|
xmlns="http://www.w3.org/2000/svg" |
|
|
@ -57,12 +66,24 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div class="add_user">新增用户</div> |
|
|
|
<div class="add_user" @click="addUserFormShow">新增用户</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup></script> |
|
|
|
<script setup> |
|
|
|
import { ref } from 'vue' |
|
|
|
const userFormVisible = ref(false) |
|
|
|
|
|
|
|
const returnList = () => { |
|
|
|
userFormVisible.value = false |
|
|
|
} |
|
|
|
|
|
|
|
const addUserFormShow = () => { |
|
|
|
userFormVisible.value = true |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.user_manage_container { |
|
|
@ -140,5 +161,48 @@ |
|
|
|
color: #ffffff; |
|
|
|
} |
|
|
|
} |
|
|
|
.add_user_form { |
|
|
|
height: 100%; |
|
|
|
box-sizing: border-box; |
|
|
|
padding: 51px 175px 137px 175px; |
|
|
|
display: flex; |
|
|
|
flex-direction: column; |
|
|
|
align-items: center; |
|
|
|
.title { |
|
|
|
font-family: Source Han Sans CN; |
|
|
|
font-size: 20px; |
|
|
|
font-weight: 500; |
|
|
|
letter-spacing: 0.06em; |
|
|
|
color: #06518b; |
|
|
|
margin-bottom: 56px; |
|
|
|
} |
|
|
|
.form_wrap { |
|
|
|
width: 330px; |
|
|
|
height: 150px; |
|
|
|
box-sizing: border-box; |
|
|
|
margin-bottom: 48px; |
|
|
|
} |
|
|
|
.btns { |
|
|
|
width: 187px; |
|
|
|
height: 45px; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: space-between; |
|
|
|
.btn { |
|
|
|
width: 87px; |
|
|
|
height: 45px; |
|
|
|
border-radius: 23px; |
|
|
|
background: #06518b; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
justify-content: center; |
|
|
|
font-family: Source Han Sans CN; |
|
|
|
font-size: 14px; |
|
|
|
font-weight: normal; |
|
|
|
letter-spacing: 0.1em; |
|
|
|
color: #ffffff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |