Commit 2ed49e8b by xinla

客户详情生日完善

1 parent cdc4c259
...@@ -7,7 +7,7 @@ export default { ...@@ -7,7 +7,7 @@ export default {
return { return {
datePickerVisible: false, datePickerVisible: false,
customer: { customer: {
weFlowerCustomerRels: [{}] // weFlowerCustomerRels: [{}]
}, },
birthday: '', birthday: '',
pickerOptions: { pickerOptions: {
...@@ -32,8 +32,9 @@ export default { ...@@ -32,8 +32,9 @@ export default {
} }
updateBirthday(data).then((response) => { updateBirthday(data).then((response) => {
this.msgSuccess('操作成功') this.msgSuccess('操作成功')
this.getDetail() // this.getDetail()
this.datePickerVisible = false this.$set(this.customer, 'birthday', this.birthday)
// this.datePickerVisible = false
}) })
}, },
getDetail() { getDetail() {
...@@ -56,14 +57,14 @@ export default { ...@@ -56,14 +57,14 @@ export default {
<el-card shadow="never" :body-style="{ width: '410px', lineHeight: '30px' }"> <el-card shadow="never" :body-style="{ width: '410px', lineHeight: '30px' }">
<div class="flex aic mt20"> <div class="flex aic mt20">
<el-avatar :size="50" :src="customer.avatar"></el-avatar> <el-avatar style="flex: none;" :size="50" :src="customer.avatar"></el-avatar>
<div class="info-wrap"> <div class="info-wrap">
<div class="mb10"> <div class="mb10">
{{ customer.name }} {{ customer.name }}
<span :style="{ color: customer.type == 1 ? '#4bde03' : '#f9a90b' }">{{ <!-- <span :style="{ color: customer.type == 1 ? '#4bde03' : '#f9a90b' }">{{
{ 1: '@微信', 2: '@企业微信' }[customer.type] { 1: '@微信', 2: '@企业微信' }[customer.type]
}}</span> }}</span>
<i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[customer.gender]]"></i> <i :class="['el-icon-s-custom', { 1: 'man', 2: 'woman' }[customer.gender]]"></i> -->
</div> </div>
<div class="info"> <div class="info">
出生日期:{{ customer.birthday }} 出生日期:{{ customer.birthday }}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!