瀏覽代碼

联系人画像调整

qymljy 1 年之前
父節點
當前提交
c01c66c080

+ 11 - 2
src/HDrpManagement/contactProfile/modules/myNewCrad.vue

@@ -5,7 +5,7 @@
           <p :style="[{'font-size': '14px'}]">{{ item.title }}</p>
 <!--          <p :style="[{'font-size': '14px','marginTop':'10px'}]">{{ item.titleRate }}</p>-->
           <div style="display:flex;justify-content:space-between">
-            <p v-if="item.value2descript" :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0  }}/¥{{item.value3?tool.formatAmount(item.value3,2):0}}</p>
+            <p v-if="item.value2descript" :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0  }}/{{unitCompile(item.value3)}}</p>
             <p v-else :style="[{'font-weight': 'bold'},{'font-size':'18px'},{'color':item.color}]">{{ item.value || 0 }}</p>
             <div style="position: relative;">
               <span v-if="item.value2descript" style="position:absolute;top:-20px;right:0px;font-size:14px;white-space:nowrap;">{{ item.value2descript }}</span>
@@ -34,7 +34,16 @@
     return {
 
     }
-  }
+  },
+   methods:{
+     unitCompile (num) {
+       if (num == 0) {
+         return this.tool.formatAmount(num,0,'¥')
+       } else {
+         return this.tool.formatAmount(num / 10000,2,'¥') + '万'
+       }
+     },
+   }
  }
 </script>
 

+ 1 - 0
src/HManagement/addressList/addressBook/index.vue

@@ -196,6 +196,7 @@ export default {
         }
       })
       this.tagList = res.data.option
+      console.log(this.tagList,'tagList标签')
     },
     selectChange(){
       console.log(this.tabName)

+ 1 - 1
src/template/contactsNewTemplate/index.vue

@@ -17,7 +17,7 @@
             <span >{{ scope.row.name?scope.row.name:'--' }}</span>
           </template>
         </el-table-column>
-        <el-table-column width="120" label="手机号">
+        <el-table-column width="120" label="联系方式">
           <template slot-scope="scope">
             <span >{{ scope.row.phonenumber?scope.row.phonenumber:'--' }}</span>
           </template>