mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 16:36:45 +08:00
修改增员功能可编辑相关功能
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<van-cell-group>
|
<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" />
|
<van-icon slot="icon" :name="ActivityLogInfo.avatarUrl || defaultAcatarUrl" style="line-height: inherit;" size="22" />
|
||||||
<span class="mr20">{{ ActivityLogInfo.age }}</span>
|
<span class="mr20">{{ ActivityLogInfo.age }}</span>
|
||||||
<span>{{ ActivityLogInfo.type == 0 ? '同业' : '白板' }}</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>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
</div>
|
</div>
|
||||||
@@ -43,22 +43,18 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toEdit() {
|
toEdit() {
|
||||||
if (!this.isEdit) {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
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'
|
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: {
|
computed: {
|
||||||
isEdit() {
|
isEdit() {
|
||||||
console.log(this.ActivityLogInfo.recordDate)
|
|
||||||
if (this.ActivityLogInfo.recordDate === formatDate.formatDate().split(' ')[0]) {
|
if (this.ActivityLogInfo.recordDate === formatDate.formatDate().split(' ')[0]) {
|
||||||
return true
|
return true
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export default {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.personnelsList = res.content.personnels
|
this.personnelsList = res.content.personnels.slice(0, 5)
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
@@ -140,7 +140,7 @@ export default {
|
|||||||
.then(res => {
|
.then(res => {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
if (res.result == 0) {
|
if (res.result == 0) {
|
||||||
this.recordList = res.content.records
|
this.recordList = res.content.records.slice(0, 5)
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
@@ -163,10 +163,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/manpower/ActivityLog/Edit`,
|
url: location.origin + `/#/manpower/ActivityLog/Edit?isEdit=1`,
|
||||||
forbidSwipeBack: '1'
|
forbidSwipeBack: '1'
|
||||||
},
|
},
|
||||||
routerInfo: { path: '/manpower/ActivityLog/Edit' }
|
routerInfo: { path: '/manpower/ActivityLog/Edit?isEdit=1' }
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
data-vv-name="过往职业"
|
data-vv-name="过往职业"
|
||||||
/>
|
/>
|
||||||
</van-cell-group>
|
</van-cell-group>
|
||||||
<van-button color="#1989fa" type="primary" class="bottom-btn" size="large" @click="subInfo">保存</van-button>
|
<van-button color="#1989fa" type="primary" class="bottom-btn" size="large" v-no-more-click="1000" v-if="isEdit == 0" @click="subInfo">保存</van-button>
|
||||||
<van-popup v-model="showResultArr" position="bottom" :style="{ height: '30%' }">
|
<van-popup v-model="showResultArr" position="bottom" :style="{ height: '30%' }">
|
||||||
<van-picker show-toolbar :columns="resultArr" @cancel="showResultArr = false" @confirm="selectResult" />
|
<van-picker show-toolbar :columns="resultArr" @cancel="showResultArr = false" @confirm="selectResult" />
|
||||||
</van-popup>
|
</van-popup>
|
||||||
@@ -89,6 +89,7 @@ export default {
|
|||||||
pastOccu: '' // 过往职业
|
pastOccu: '' // 过往职业
|
||||||
},
|
},
|
||||||
recordCode: '',
|
recordCode: '',
|
||||||
|
isEdit: '',
|
||||||
// 面试结果
|
// 面试结果
|
||||||
showResultArr: false,
|
showResultArr: false,
|
||||||
// 职业选择
|
// 职业选择
|
||||||
@@ -112,6 +113,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.recordCode = this.$route.query.code || ''
|
this.recordCode = this.$route.query.code || ''
|
||||||
|
this.isEdit = this.$route.query.isEdit
|
||||||
this.queryRecordDetail()
|
this.queryRecordDetail()
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|||||||
@@ -72,10 +72,10 @@ export default {
|
|||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'h5',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + `/#/manpower/ActivityLog/Edit`,
|
url: location.origin + `/#/manpower/ActivityLog/Edit?isEdit=1`,
|
||||||
forbidSwipeBack: '1'
|
forbidSwipeBack: '1'
|
||||||
},
|
},
|
||||||
routerInfo: { path: '/manpower/ActivityLog/Edit' }
|
routerInfo: { path: '/manpower/ActivityLog/Edit?isEdit=1' }
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
openCalendar() {
|
openCalendar() {
|
||||||
|
|||||||
Reference in New Issue
Block a user