|
|
@ -56,14 +56,16 @@ |
|
|
|
<template #label> |
|
|
|
<template #label> |
|
|
|
<Icon icon="fa6-solid:city"/> |
|
|
|
<Icon icon="fa6-solid:city"/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
长沙康来多租户 |
|
|
|
长沙康来公司多租户 |
|
|
|
</ADescriptionsItem> |
|
|
|
</ADescriptionsItem> |
|
|
|
<ADescriptionsItem span="24"> |
|
|
|
<ADescriptionsItem span="24"> |
|
|
|
<template #label> |
|
|
|
<template #label> |
|
|
|
<Icon icon="fa6-solid:robot"/> |
|
|
|
<Icon icon="fa6-solid:robot"/> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<a href="#">申请</a> |
|
|
|
<h1 style="margin-right: 5px">企业认证:</h1> |
|
|
|
已认证 |
|
|
|
<a v-if="getPushThirdParty.status == '0'">申请中</a> |
|
|
|
|
|
|
|
<a v-else-if="getPushThirdParty.status == '1'">已认证</a> |
|
|
|
|
|
|
|
<a v-else @click="handleCertification">申请</a> |
|
|
|
</ADescriptionsItem> |
|
|
|
</ADescriptionsItem> |
|
|
|
</ADescriptions> |
|
|
|
</ADescriptions> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -118,6 +120,7 @@ |
|
|
|
</ACard> |
|
|
|
</ACard> |
|
|
|
</ACard> |
|
|
|
</ACard> |
|
|
|
</PageWrapper> |
|
|
|
</PageWrapper> |
|
|
|
|
|
|
|
<ThirdPartyModal @register="registerModal" @success="handleRefreshPushThirdParty"/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -133,10 +136,14 @@ |
|
|
|
import {useMessage} from '/@/hooks/web/useMessage'; |
|
|
|
import {useMessage} from '/@/hooks/web/useMessage'; |
|
|
|
import {editUser, getUser} from '/@/api/platform/system/controller/user'; |
|
|
|
import {editUser, getUser} from '/@/api/platform/system/controller/user'; |
|
|
|
import type {User} from '/@/api/platform/core/entity/user'; |
|
|
|
import type {User} from '/@/api/platform/core/entity/user'; |
|
|
|
|
|
|
|
import type {PushThirdParty} from '/@/api/platform/common/entity/pushThirdParty'; |
|
|
|
import {useUserStore} from '/@/store/modules/user'; |
|
|
|
import {useUserStore} from '/@/store/modules/user'; |
|
|
|
import {commonUpload} from '/@/api/platform/core/controller/upload'; |
|
|
|
import {commonUpload} from '/@/api/platform/core/controller/upload'; |
|
|
|
import {useGlobSetting} from '/@/hooks/setting'; |
|
|
|
import {useGlobSetting} from '/@/hooks/setting'; |
|
|
|
import {isUrl} from '/@/utils/is'; |
|
|
|
import {isUrl} from '/@/utils/is'; |
|
|
|
|
|
|
|
import {getPushThirdPartyByUserId} from '/@/api/platform/common/controller/pushThirdParty'; |
|
|
|
|
|
|
|
import {useModal} from '/@/components/Modal'; |
|
|
|
|
|
|
|
import ThirdPartyModal from '/@/views/common/push/pushThirdParty/ThirdPartyModal.vue'; |
|
|
|
|
|
|
|
|
|
|
|
interface InfoState { |
|
|
|
interface InfoState { |
|
|
|
currentCardKey: string; |
|
|
|
currentCardKey: string; |
|
|
@ -144,6 +151,7 @@ |
|
|
|
uploadAvatarBtnLoading: boolean; |
|
|
|
uploadAvatarBtnLoading: boolean; |
|
|
|
uploadAvatarLoading: boolean; |
|
|
|
uploadAvatarLoading: boolean; |
|
|
|
userInfo: User | any; |
|
|
|
userInfo: User | any; |
|
|
|
|
|
|
|
pushThirdParty: PushThirdParty | any; |
|
|
|
imageUrl: string; |
|
|
|
imageUrl: string; |
|
|
|
tabList: Recordable[]; |
|
|
|
tabList: Recordable[]; |
|
|
|
} |
|
|
|
} |
|
|
@ -166,6 +174,7 @@ |
|
|
|
uploadAvatarLoading: false, |
|
|
|
uploadAvatarLoading: false, |
|
|
|
uploadAvatarBtnLoading: false, |
|
|
|
uploadAvatarBtnLoading: false, |
|
|
|
userInfo: undefined, |
|
|
|
userInfo: undefined, |
|
|
|
|
|
|
|
pushThirdParty: undefined, |
|
|
|
imageUrl: '', |
|
|
|
imageUrl: '', |
|
|
|
tabList: [ |
|
|
|
tabList: [ |
|
|
|
{ |
|
|
|
{ |
|
|
@ -178,6 +187,8 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const [registerModal, { openModal }] = useModal(); |
|
|
|
const defaultAvatarUrl = 'https://godolphinx.org/dolphin1024x1024.png'; |
|
|
|
const defaultAvatarUrl = 'https://godolphinx.org/dolphin1024x1024.png'; |
|
|
|
const [registerForm, { resetFields, setFieldsValue, updateSchema, validate, clearValidate }] = useForm({ |
|
|
|
const [registerForm, { resetFields, setFieldsValue, updateSchema, validate, clearValidate }] = useForm({ |
|
|
|
labelWidth: 100, |
|
|
|
labelWidth: 100, |
|
|
@ -196,8 +207,13 @@ |
|
|
|
getUser(userInfo.id).then(result => { |
|
|
|
getUser(userInfo.id).then(result => { |
|
|
|
state.userInfo = result.result; |
|
|
|
state.userInfo = result.result; |
|
|
|
setFieldsValue(result.result); |
|
|
|
setFieldsValue(result.result); |
|
|
|
|
|
|
|
handleRefreshPushThirdParty(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleRefreshPushThirdParty() { |
|
|
|
|
|
|
|
getPushThirdPartyByUserId(userInfo.id).then(pushThirdParty => state.pushThirdParty = pushThirdParty); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async function handleSubmit() { |
|
|
|
async function handleSubmit() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const formData = await validate(); |
|
|
|
const formData = await validate(); |
|
|
@ -228,6 +244,10 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function handleCertification() { |
|
|
|
|
|
|
|
openModal(true,{ _tag: 'add' }); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const getUserInfo = computed((): User & any => { |
|
|
|
const getUserInfo = computed((): User & any => { |
|
|
|
let userInfo = state.userInfo || {}; |
|
|
|
let userInfo = state.userInfo || {}; |
|
|
|
userInfo.avatar || (userInfo.avatar = defaultAvatarUrl); |
|
|
|
userInfo.avatar || (userInfo.avatar = defaultAvatarUrl); |
|
|
@ -235,6 +255,8 @@ |
|
|
|
return userInfo; |
|
|
|
return userInfo; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const getPushThirdParty = computed((): PushThirdParty & any => state.pushThirdParty || {}); |
|
|
|
|
|
|
|
|
|
|
|
const getAvatarUrl = computed((): string => isUrl(unref(getUserInfo).avatar) ? unref(getUserInfo).avatar : apiUrl + unref(getUserInfo).avatar); |
|
|
|
const getAvatarUrl = computed((): string => isUrl(unref(getUserInfo).avatar) ? unref(getUserInfo).avatar : apiUrl + unref(getUserInfo).avatar); |
|
|
|
|
|
|
|
|
|
|
|
const getImageUrl = computed((): string => (!state.imageUrl || isUrl(state.imageUrl)) ? state.imageUrl : apiUrl + state.imageUrl); |
|
|
|
const getImageUrl = computed((): string => (!state.imageUrl || isUrl(state.imageUrl)) ? state.imageUrl : apiUrl + state.imageUrl); |
|
|
|