mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-21 18:16:43 +08:00
修改增员功能可编辑相关功能
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
<template>
|
||||
<div>
|
||||
<van-cell-group>
|
||||
<van-cell :title="ActivityLogInfo.name" title-class="ml10" :is-link="isEdit" value-class="text-left">
|
||||
<van-cell :title="ActivityLogInfo.name" title-class="ml10" :is-link="isEdit" value-class="text-left" @click="toEdit">
|
||||
<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-icon slot="right-icon" name="edit" style="line-height: inherit;" :color="isEdit ? '#1989fa' : 'transparent'" size="24" />
|
||||
</van-cell>
|
||||
</van-cell-group>
|
||||
</div>
|
||||
@@ -43,22 +43,18 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
toEdit() {
|
||||
if (!this.isEdit) {
|
||||
return false
|
||||
}
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
url: location.origin + `/#/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}`,
|
||||
url: location.origin + `/#/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}&isEdit=${this.isEdit ? '0' : '1'}`,
|
||||
forbidSwipeBack: '1'
|
||||
},
|
||||
routerInfo: { path: `/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}` }
|
||||
routerInfo: { path: `/manpower/ActivityLog/Edit?code=${this.ActivityLogInfo.recordCode}&isEdit=${this.isEdit ? '0' : '1'}` }
|
||||
})
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
isEdit() {
|
||||
console.log(this.ActivityLogInfo.recordDate)
|
||||
if (this.ActivityLogInfo.recordDate === formatDate.formatDate().split(' ')[0]) {
|
||||
return true
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user