From b06814ae4c14b703e67269801c864073be914146 Mon Sep 17 00:00:00 2001 From: xpz2018 <107107461@qq.com> Date: Tue, 9 Sep 2025 17:06:58 +0800 Subject: [PATCH] no message --- src/views/clue/customer/index.vue | 42 +++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/src/views/clue/customer/index.vue b/src/views/clue/customer/index.vue index 318bd9f..4038d9a 100644 --- a/src/views/clue/customer/index.vue +++ b/src/views/clue/customer/index.vue @@ -6,9 +6,25 @@
{{details.nickName}} - + @@ -321,16 +337,28 @@ const activeKey3 = ref('1') const avatar = ref('') const nickName = ref('') + const phone = ref('') + const weChatId = ref('') const labelName = ref('') async function handleNickname(){ - if(!nickName.value){ - createMessage.warning('请输入昵称') + if(!nickName.value && !phone.value && !weChatId.value){ + createMessage.warning('请输入修改信息') return } - await editClueRecord({id: details.value.id, nickName: nickName.value, phone: details.value.phone, weChatId: details.value.weChatId}) - createMessage.success('修改昵称成功') - details.value.nickName = nickName.value + await editClueRecord({id: details.value.id, nickName: nickName.value || details.value.nickName, phone: phone.value || details.value.phone, weChatId: weChatId.value || details.value.weChatId}) + createMessage.success('修改成功') + if(nickName.value){ + details.value.nickName = nickName.value + } + if(phone.value){ + details.value.phone = phone.value + } + if(weChatId.value){ + details.value.weChatId = weChatId.value + } nickName.value = '' + phone.value = '' + weChatId.value = '' } async function onLabelClose(id){