Commit 27d283fa authored by youjie's avatar youjie

no message

parent a37e1465
...@@ -246,7 +246,7 @@ const params = reactive({ ...@@ -246,7 +246,7 @@ const params = reactive({
Name: '', Name: '',
}) })
const showType = ref('' as null) const showType = ref(null)
const dataList = ref([]) const dataList = ref([])
const initPullDown = () =>{ const initPullDown = () =>{
...@@ -288,21 +288,18 @@ const clickItem = (item: any,type: number = 1) => { ...@@ -288,21 +288,18 @@ const clickItem = (item: any,type: number = 1) => {
formData.name = item.name || '' formData.name = item.name || ''
formData.surName = item.surName || '' formData.surName = item.surName || ''
formData.birthday = item.birthday || null formData.birthday = item.birthday || null
formData.isReceivePush = item.isReceivePush || null
formData.lineId = item.lineId || null
formData.phone = item.phone || null formData.phone = item.phone || null
formData.phoneCode = item.phoneCode || null formData.phoneCode = item.phoneCode || null
formData.photo = item.photo || null formData.photo = item.photo || null
formData.countryId = item.countryId || null
formData.sex = item.sex || null
formData.idCard = item.idCard || null
}else{ }else{
deleteItem(item)
} }
} }
const deleteItem = async (item: any) => { const deleteItem = async (item: any) => {
if(!item.id){
Message.warning(t('personal.placeholderDelete'))
return
}
loading.value = true loading.value = true
try { try {
const response = await UserService.deleteMemberGuest(systemConfig.tenantId || 'default',item.id) const response = await UserService.deleteMemberGuest(systemConfig.tenantId || 'default',item.id)
...@@ -359,6 +356,7 @@ const handleSubmit = async () => { ...@@ -359,6 +356,7 @@ const handleSubmit = async () => {
const response = await UserService.updateMemberGuest(formData.tenantId || 'default',registerData) const response = await UserService.updateMemberGuest(formData.tenantId || 'default',registerData)
console.log(response,'========------') console.log(response,'========------')
if (response) { if (response) {
showType.value = null
loadData() loadData()
} }
} catch (error: any) { } catch (error: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment