|
@@ -1,12 +1,247 @@
|
|
|
<template>
|
|
|
- <div class=""></div>
|
|
|
+ <div class="personalCenterBox">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="6" class="left">
|
|
|
+ <div class="leftbox">
|
|
|
+ <div class="leftboxTop">个人资料</div>
|
|
|
+ <div class="leftboxCon">
|
|
|
+ <p style="display:flex;align-items:center;justify-content:center;padding-top:18px">
|
|
|
+ <img src="@/assets/imgs/add_photo_img.png" alt="" style="width:120px;height:120px;border-radius:50%">
|
|
|
+ </p>
|
|
|
+ <div style="text-align:center;color:#337ab7;font-size:15px" ><span class="changeHead" style="cursor:pointer" @click="changeAvatar">修改头像</span> </div>
|
|
|
+ <ul style="list-style:none;padding:0 25px 30px">
|
|
|
+ <li style="display:flex;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid #e7eaec;font-weight: 400;color:rgba(0,0,0,.85)">
|
|
|
+ <div>
|
|
|
+ <i class="el-icon-user-solid"></i>
|
|
|
+ <span>登录名称:</span>
|
|
|
+ </div>
|
|
|
+ <div>admin</div>
|
|
|
+ </li>
|
|
|
+ <li style="display:flex;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid #e7eaec;font-weight: 400;color:rgba(0,0,0,.85)">
|
|
|
+ <div>
|
|
|
+ <i class="el-icon-phone"></i>
|
|
|
+ <span>手机号码:</span>
|
|
|
+ </div>
|
|
|
+ <div>15638932672</div>
|
|
|
+ </li>
|
|
|
+ <li style="display:flex;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid #e7eaec;font-weight: 400;color:rgba(0,0,0,.85)">
|
|
|
+ <div>
|
|
|
+ <i class="el-icon-s-shop"></i>
|
|
|
+ <span>所属机构:</span>
|
|
|
+ </div>
|
|
|
+ <div>安徽省</div>
|
|
|
+ </li>
|
|
|
+ <li style="display:flex;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid #e7eaec;font-weight: 400;color:rgba(0,0,0,.85)">
|
|
|
+ <div>
|
|
|
+ <i class="el-icon-message"></i>
|
|
|
+ <span>邮箱地址:</span>
|
|
|
+ </div>
|
|
|
+ <div>ry@qq.com</div>
|
|
|
+ </li>
|
|
|
+ <li style="display:flex;justify-content:space-between;height:40px;line-height:40px;border-top:1px solid #e7eaec;font-weight: 400;color:rgba(0,0,0,.85)">
|
|
|
+ <div>
|
|
|
+ <i class="el-icon-date"></i>
|
|
|
+ <span>创建时间:</span>
|
|
|
+ </div>
|
|
|
+ <div>2018-03-16</div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="17" class="right">
|
|
|
+ <div class="rightbox">
|
|
|
+ <div class="rightboxTop">基本资料</div>
|
|
|
+ <div class="rightboxCon">
|
|
|
+ <div class="basicInfo">
|
|
|
+ <div
|
|
|
+ class="header"
|
|
|
+ style="
|
|
|
+ color: #6f63dd;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 14px;
|
|
|
+ border-left: 2px solid #6f63dd;
|
|
|
+ padding-left: 13px;
|
|
|
+ margin-bottom:30px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 基本资料
|
|
|
+ </div>
|
|
|
+ <el-form ref="basicInfoForm" :model="basicInfoForm" label-width="80px" style="margin-left:60px">
|
|
|
+ <el-form-item label="用户名称:">
|
|
|
+ <el-input
|
|
|
+ v-model="basicInfoForm.name"
|
|
|
+ size="small"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="邮箱:">
|
|
|
+ <el-input
|
|
|
+ v-model="basicInfoForm.email"
|
|
|
+ size="small"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="性别:">
|
|
|
+ <el-radio-group v-model="basicInfoForm.sex">
|
|
|
+ <el-radio label="男"></el-radio>
|
|
|
+ <el-radio label="女"></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="维护:">
|
|
|
+ <el-radio-group v-model="basicInfoForm.safeguard ">
|
|
|
+ <el-radio label="是"></el-radio>
|
|
|
+ <el-radio label="否"></el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ <el-button type="success" @click="saveInfo" icon="el-icon-check" size="small"
|
|
|
+ >保存</el-button
|
|
|
+ >
|
|
|
+ <el-button type="danger" @click="closeInfo" icon="el-icon-close" size="small">关闭</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <div class="changePass">
|
|
|
+ <div
|
|
|
+ class="header"
|
|
|
+ style="
|
|
|
+ color: #6f63dd;
|
|
|
+ font-weight: 700;
|
|
|
+ font-size: 14px;
|
|
|
+ border-left: 2px solid #6f63dd;
|
|
|
+ padding-left: 13px;
|
|
|
+ margin-top:15px;
|
|
|
+ "
|
|
|
+ >
|
|
|
+ 修改密码
|
|
|
+ </div>
|
|
|
+ <el-form ref="changePassForm" :model="changePassForm" label-width="80px" style="margin-left:60px">
|
|
|
+ <el-form-item label="旧密码:">
|
|
|
+ <el-input
|
|
|
+ v-model="changePassForm.oldPass"
|
|
|
+ size="small"
|
|
|
+ placeholder="请输入旧密码"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="新密码:">
|
|
|
+ <el-input
|
|
|
+ v-model="changePassForm.newPass"
|
|
|
+ size="small"
|
|
|
+ placeholder="请输入新密码"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="确认密码:">
|
|
|
+ <el-input
|
|
|
+ v-model="changePassForm.ackNewPass"
|
|
|
+ size="small"
|
|
|
+ placeholder="请确认密码"
|
|
|
+ ></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <el-button type="success" @click="saveChangePass" icon="el-icon-check" size="small"
|
|
|
+ >保存</el-button
|
|
|
+ >
|
|
|
+ <el-button type="danger" @click="closeChangePass" icon="el-icon-close" size="small" >关闭</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <change-avatar :isShow="isShow" @closeShow="closeShow"></change-avatar>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import changeAvatar from "./changeAvatar.vue";
|
|
|
export default {
|
|
|
- name:"personalCenter",
|
|
|
+ name: "personalCenter",
|
|
|
+ components: {
|
|
|
+ changeAvatar,
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ basicInfoForm: {
|
|
|
+ name: "",
|
|
|
+ email: "",
|
|
|
+ sex: "",
|
|
|
+ safeguard: "",
|
|
|
+ },
|
|
|
+ changePassForm: {
|
|
|
+ oldPass: "",
|
|
|
+ newPass: "",
|
|
|
+ ackNewPass: "",
|
|
|
+ },
|
|
|
+ isShow: false, //父传子,控制弹出层的显隐
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 基本资料
|
|
|
+ saveInfo() {
|
|
|
+ console.log("submit!");
|
|
|
+ },
|
|
|
+ closeInfo() {},
|
|
|
+
|
|
|
+ // 修改密码
|
|
|
+ saveChangePass() {},
|
|
|
+ closeChangePass() {},
|
|
|
+
|
|
|
+ // 修改头像
|
|
|
+ changeAvatar() {
|
|
|
+ this.isShow = true;
|
|
|
+ },
|
|
|
+ closeShow() {
|
|
|
+ this.isShow = false;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
+.personalCenterBox .left {
|
|
|
+ border: 1px solid #dddddd;
|
|
|
+ border-radius: 3px;
|
|
|
+}
|
|
|
+.personalCenterBox .left .leftbox {
|
|
|
+}
|
|
|
+
|
|
|
+.personalCenterBox .left .leftbox .leftboxTop {
|
|
|
+ background-color: #ebeffa;
|
|
|
+ border-top-left-radius: 3px;
|
|
|
+ border-top-right-radius: 3px;
|
|
|
+ height: 41px;
|
|
|
+ line-height: 41px;
|
|
|
+ color: #333;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-left: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.personalCenterBox .left .leftbox .leftboxCon {
|
|
|
+ background: #fff;
|
|
|
+}
|
|
|
+.personalCenterBox .right {
|
|
|
+ border: 1px solid #dddddd;
|
|
|
+ margin-left: 18px;
|
|
|
+ border-radius: 3px;
|
|
|
+}
|
|
|
+
|
|
|
+.personalCenterBox .right .rightbox {
|
|
|
+}
|
|
|
+.personalCenterBox .right .rightbox .rightboxTop {
|
|
|
+ background-color: #aaaaaa;
|
|
|
+ border-top-left-radius: 3px;
|
|
|
+ border-top-right-radius: 3px;
|
|
|
+ height: 41px;
|
|
|
+ line-height: 41px;
|
|
|
+ color: #333;
|
|
|
+ font-size: 14px;
|
|
|
+ padding-left: 10px;
|
|
|
+}
|
|
|
+.personalCenterBox .right .rightbox .rightboxCon {
|
|
|
+ background: #fff;
|
|
|
+ padding: 20px;
|
|
|
+}
|
|
|
+.changeHead:hover {
|
|
|
+ color: rgba(0, 0, 0, 0.5) !important;
|
|
|
+}
|
|
|
</style>
|