Browse Source

数据修改

yuansh 2 years ago
parent
commit
09fc5fafa3
3 changed files with 23 additions and 2 deletions
  1. BIN
      src/assets/user_girl.png
  2. 2 0
      src/views/activiti/form/demoForm2.vue
  3. 21 2
      src/views/dashboard/MyToDo.vue

BIN
src/assets/user_girl.png


+ 2 - 0
src/views/activiti/form/demoForm2.vue

@@ -302,6 +302,8 @@ export default {
                                     this.dynamicData.supplierList = userData.data.supplierList
                                     this.dynamicData.customerList = userData.data.customerList
                                     this.dynamicData.userNameList = userData.data.userNameList
+                                    this.dynamicData.userYWList = userData.data.userYWList
+                                    this.dynamicData.userQCList = userData.data.userQCList
                                 }
                               
                                 userData.result.records.forEach(user => {

+ 21 - 2
src/views/dashboard/MyToDo.vue

@@ -12,7 +12,10 @@
               <a-row :gutter="24">
                 <a-col :xs="24" :sm="24" :md="12" :lg="8">
                   <div class="userImg">
-                    <img src="../../assets/user.jpg" width="50px;" />
+                    <img v-if="avatarUrl == '1'" src="../../assets/user.jpg" width="50px;" />
+                    <img v-if="avatarUrl == '2'" src="../../assets/user_girl.png" width="50px;" />
+                    <img v-if="avatarUrl != '1' && avatarUrl != '2'" :src="avatarUrl" width="50px;" height="52px;" />
+                    
                   </div>
                 </a-col>
                 <a-col :xs="24" :sm="24" :md="12" :lg="16">
@@ -355,7 +358,8 @@ export default {
         showQuickJumper: true,
         showSizeChanger: true,
         total: 0
-      }
+      },
+      avatarUrl:'1'
     }
   },
 
@@ -367,6 +371,21 @@ export default {
     this.getFooterNav() // 获取快捷导航
     this.getMyLinks() //友情链接(已发布)
     this.getMyPlan() //我的计划数据
+    let domianURL = window._CONFIG['domianURL'] + '/sys/common/static';
+    //<img src="../../assets/user.jpg" width="50px;" />
+    //http://220.191.168.86:18087/jeecg-boot/sys/common/static/temp/微信图片_20220307160046_1669949248561.png
+    //http://220.191.168.86:18087/jeecg-boot/sys/common/static/temp/2222_1678171591554.jpg
+    let avatar = this.userInfo.avatar;
+    let sex = this.userInfo.sex;
+    if(avatar == null || avatar == '' || avatar == '[]' || avatar == []){
+      if(sex == '2'){
+        this.avatarUrl = '2'
+      }else{
+        this.avatarUrl = '1'
+      }
+    }else{
+      this.avatarUrl = domianURL +'/'+ this.userInfo.avatar
+    }
   },
   computed: {
     // 系统消息计算