From 961236f44424197b15cb93503e6b24a6979e1a94 Mon Sep 17 00:00:00 2001 From: kaeery <3491123437@qq.com> Date: Tue, 11 Mar 2025 15:45:32 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=8B=9B=E7=94=9F=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E3=80=91=20=E4=BF=AE=E5=A4=8D#=201=E3=80=81=E7=94=B5?= =?UTF-8?q?=E9=94=80=EF=BC=9A=E4=BF=AE=E6=94=B9=E8=B7=9F=E8=BF=9B=E5=90=8E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=88=B7=E6=96=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9B2=E3=80=81=E6=88=91=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=9A=E6=B7=BB=E5=8A=A0=E4=B8=8A=E6=89=80=E5=B1=9E?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bundle/pages/follow_edit/index.vue | 2 +- .../widgets/profile-info/profile-info.vue | 22 +++++++++++++++---- .../widgets/telesale/follow-record.vue | 12 +++++----- src/pages/telesale/home/index.vue | 18 ++++++++++++++- 4 files changed, 43 insertions(+), 11 deletions(-) diff --git a/src/bundle/pages/follow_edit/index.vue b/src/bundle/pages/follow_edit/index.vue index 9e3c51b..97f01ca 100644 --- a/src/bundle/pages/follow_edit/index.vue +++ b/src/bundle/pages/follow_edit/index.vue @@ -73,8 +73,8 @@ const handleConfirm = () => { try { await apiEditClue(form.value) toast('修改成功') + uni.$emit('editFollow') uni.navigateBack() - uni.$emit('refreshPageList') } catch (error) {} loading.value = false } diff --git a/src/components/widgets/profile-info/profile-info.vue b/src/components/widgets/profile-info/profile-info.vue index 9ccf928..c532b65 100644 --- a/src/components/widgets/profile-info/profile-info.vue +++ b/src/components/widgets/profile-info/profile-info.vue @@ -12,7 +12,6 @@ {{ userInfo.nickname }} {{ userInfo.mobile }} - {{ roles }} @@ -25,17 +24,30 @@ v-for="(group, index) in parseGroupList" :key="index" :title="group.title" + :label="group.label" :url="group.url" :isLink="group.isLink" :border="group.border" size="large" @click="handleClick(group)" > - diff --git a/src/pages/telesale/home/index.vue b/src/pages/telesale/home/index.vue index 061ff05..45b4fb0 100644 --- a/src/pages/telesale/home/index.vue +++ b/src/pages/telesale/home/index.vue @@ -12,7 +12,10 @@ > - + @@ -23,7 +26,9 @@ import { ref } from 'vue' import followForm from '@/components/widgets/telesale/follow-form.vue' import followRecord from '@/components/widgets/telesale/follow-record.vue' import { teleSaleEnum } from '@/enums' +import { onLoad, onUnload } from '@dcloudio/uni-app' +const followRecordRef = ref>() const activeTab = ref(teleSaleEnum.ADD_FOLLOW) const tabs = shallowRef([ { name: '新增跟进', value: teleSaleEnum.ADD_FOLLOW }, @@ -32,5 +37,16 @@ const tabs = shallowRef([ const handleChangeTab = item => { activeTab.value = item.value } +const editFollow = () => { + console.log('editFollow') + followRecordRef.value?.refreshPage() + // refresh(queryParams.value) +} +onLoad(() => { + uni.$on('editFollow', editFollow) +}) +onUnload(() => { + uni.$off('editFollow', editFollow) +})