Browse Source

add user

master
maochaoying 2 years ago
parent
commit
632d9708a2
  1. 2
      src/components/Setting/components/Date.vue
  2. 68
      src/components/Setting/components/User.vue

2
src/components/Setting/components/Date.vue

@ -11,7 +11,7 @@
<div class="btn">设置</div> <div class="btn">设置</div>
</div> </div>
<!-- <DatePicker /> --> <!-- <DatePicker /> -->
<TimePicker />
<!-- <TimePicker /> -->
</div> </div>
</template> </template>

68
src/components/Setting/components/User.vue

@ -1,5 +1,14 @@
<template> <template>
<div class="user_manage_container"> <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"> <div class="title_wrap">
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
@ -57,12 +66,24 @@
</div> </div>
</div> </div>
<div class="btn_wrap"> <div class="btn_wrap">
<div class="add_user">新增用户</div>
<div class="add_user" @click="addUserFormShow">新增用户</div>
</div>
</div> </div>
</div> </div>
</template> </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> <style lang="scss" scoped>
.user_manage_container { .user_manage_container {
@ -140,5 +161,48 @@
color: #ffffff; 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> </style>
Loading…
Cancel
Save