From 881dc3fcf09ad6cc6347b4b09f1172b353645d49 Mon Sep 17 00:00:00 2001
From: 谢凯 <viago@qq.com>
Date: 星期一, 22 三月 2021 17:52:34 +0800
Subject: [PATCH] update ruoyi-ui/src/views/system/user/profile/userAvatar.vue.

---
 ruoyi-ui/src/views/system/user/profile/userAvatar.vue |   39 ++++++++++++++++++++++++++++++++++++---
 1 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
index ef0c213..4547d3d 100644
--- a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
+++ b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue
@@ -1,6 +1,6 @@
 <template>
   <div>
-    <img v-bind:src="options.img" @click="editCropper()" title="鐐瑰嚮涓婁紶澶村儚" class="img-circle img-lg" />
+    <div class="user-info-head" @click="editCropper()"><img v-bind:src="options.img" title="鐐瑰嚮涓婁紶澶村儚" class="img-circle img-lg" /></div>
     <el-dialog :title="title" :visible.sync="open" width="800px" append-to-body @opened="modalOpened">
       <el-row>
         <el-col :xs="24" :md="12" :style="{height: '350px'}">
@@ -27,7 +27,7 @@
         <el-col :lg="2" :md="2">
           <el-upload action="#" :http-request="requestUpload" :show-file-list="false" :before-upload="beforeUpload">
             <el-button size="small">
-              涓婁紶
+              閫夋嫨
               <i class="el-icon-upload el-icon--right"></i>
             </el-button>
           </el-upload>
@@ -81,6 +81,14 @@
       },
       previews: {}
     };
+  },
+    created() {
+    // 鏄鹃殣鍒楃粍浠堕粯璁ら殣钘忓垪
+    for (let item in this.columns) {
+      if (this.columns[item].visible === false) {
+        this.value.push(parseInt(item))
+      }
+    }
   },
   methods: {
     // 缂栬緫澶村儚
@@ -139,4 +147,29 @@
     }
   }
 };
-</script>
\ No newline at end of file
+</script>
+<style scoped lang="scss">
+.user-info-head {
+  position: relative;
+  display: inline-block;
+  height: 120px;
+}
+
+.user-info-head:hover:after {
+  content: '+';
+  position: absolute;
+  left: 0;
+  right: 0;
+  top: 0;
+  bottom: 0;
+  color: #eee;
+  background: rgba(0, 0, 0, 0.5);
+  font-size: 24px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+  cursor: pointer;
+  line-height: 110px;
+  border-radius: 50%;
+}
+</style>
\ No newline at end of file

--
Gitblit v1.9.3