mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 22:56:43 +08:00
修改完善增员日志功能
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
<template>
|
||||
<div>
|
||||
<van-cell :title="ActivityLogInfo.name" :is-link="isEdit" :icon="ActivityLogInfo.avatarUrl" value-class="text-left">
|
||||
<span class="mr20">{{ ActivityLogInfo.age }}</span>
|
||||
<span>{{ ActivityLogInfo.flag }}</span>
|
||||
<van-icon slot="right-icon" name="edit" style="line-height: inherit;" :color="isEdit ? '#1989fa' : 'transparent'" size="24" @click="toEdit" />
|
||||
</van-cell>
|
||||
<van-cell-group>
|
||||
<van-cell :title="ActivityLogInfo.name" title-class="ml10" :is-link="isEdit" value-class="text-left">
|
||||
<van-icon slot="icon" :name="ActivityLogInfo.avatarUrl || defaultAcatarUrl" style="line-height: inherit;" size="22" />
|
||||
<span class="mr20">{{ ActivityLogInfo.age }}</span>
|
||||
<span>{{ ActivityLogInfo.type == 0 ? '同业' : '白板' }}</span>
|
||||
<van-icon slot="right-icon" name="edit" style="line-height: inherit;" :color="isEdit ? '#1989fa' : 'transparent'" size="24" @click="toEdit" />
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -23,18 +26,19 @@ export default {
|
||||
required: true,
|
||||
default: () => {
|
||||
return {
|
||||
recordCode: '',
|
||||
name: '王辉',
|
||||
avatarUrl: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
||||
// avatarUrl: 'https://img.yzcdn.cn/vant/cat.jpeg',
|
||||
age: '35岁',
|
||||
flag: '同业',
|
||||
currentTime: ''
|
||||
type: '同业',
|
||||
recordDate: ''
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isEdit: true
|
||||
defaultAcatarUrl: 'https://b.yzcdn.cn/vant/icon-demo-1126.png'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -45,23 +49,20 @@ export default {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/manpower/ActivityLog/Edit`
|
||||
url: location.origin + `/#/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}`,
|
||||
forbidSwipeBack: '1'
|
||||
},
|
||||
routerInfo: { path: '/manpower/ActivityLog/Edit' }
|
||||
routerInfo: { path: `/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}` }
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
currentTime() {
|
||||
return this.ActivityLogInfo.currentTime
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
currentTime(newVal) {
|
||||
if (newVal === formatDate.formatDate().split(' ')[0]) {
|
||||
this.isEdit = true
|
||||
isEdit() {
|
||||
console.log(this.ActivityLogInfo.recordDate)
|
||||
if (this.ActivityLogInfo.recordDate === formatDate.formatDate().split(' ')[0]) {
|
||||
return true
|
||||
} else {
|
||||
this.isEdit = false
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user