diff --git a/package.json b/package.json index 6259f142c..759fa17f6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yudao-ui-admin-vue3", - "version": "2.6.0-snapshot", + "version": "2.6.1-snapshot", "description": "基于vue3、vite4、element-plus、typesScript", "author": "xingyu", "private": false, diff --git a/src/api/bpm/processInstance/index.ts b/src/api/bpm/processInstance/index.ts index 06392bc43..6b7921300 100644 --- a/src/api/bpm/processInstance/index.ts +++ b/src/api/bpm/processInstance/index.ts @@ -48,6 +48,7 @@ export type ApprovalNodeInfo = { status: number startTime?: Date endTime?: Date + processInstanceId?: string candidateUsers?: User[] tasks: ApprovalTaskInfo[] } diff --git a/src/api/system/social/user/index.ts b/src/api/system/social/user/index.ts index f11231b71..9f1631dff 100644 --- a/src/api/system/social/user/index.ts +++ b/src/api/system/social/user/index.ts @@ -14,7 +14,7 @@ export interface SocialUserVO { } // 查询社交用户列表 -export const getSocialUserPage = async (params) => { +export const getSocialUserPage = async (params: any) => { return await request.get({ url: `/system/social-user/page`, params }) } @@ -22,3 +22,8 @@ export const getSocialUserPage = async (params) => { export const getSocialUser = async (id: number) => { return await request.get({ url: `/system/social-user/get?id=` + id }) } + +// 获得绑定社交用户列表 +export const getBindSocialUserList = async () => { + return await request.get({ url: '/system/social-user/get-bind-list' }) +} diff --git a/src/api/system/user/profile.ts b/src/api/system/user/profile.ts index 2e2790129..7ac8df1ce 100644 --- a/src/api/system/user/profile.ts +++ b/src/api/system/user/profile.ts @@ -16,10 +16,6 @@ export interface ProfileVO { id: number name: string }[] - socialUsers: { - type: number - openid: string - }[] email: string mobile: string sex: number diff --git a/src/components/AppLinkInput/AppLinkSelectDialog.vue b/src/components/AppLinkInput/AppLinkSelectDialog.vue index 63f19662e..5211f74f8 100644 --- a/src/components/AppLinkInput/AppLinkSelectDialog.vue +++ b/src/components/AppLinkInput/AppLinkSelectDialog.vue @@ -80,7 +80,8 @@ const activeAppLink = ref({} as AppLink) /** 打开弹窗 */ const dialogVisible = ref(false) const open = (link: string) => { - activeAppLink.value.path = link + // 进入页面时先重置 activeAppLink + activeAppLink.value = { name: '', path: '' } dialogVisible.value = true // 滚动到当前的链接 @@ -102,8 +103,11 @@ defineExpose({ open }) // 处理 APP 链接选中 const handleAppLinkSelected = (appLink: AppLink) => { + // 只有不同链接时才更新(避免重复触发) if (!isSameLink(appLink.path, activeAppLink.value.path)) { - activeAppLink.value = appLink + // 如果新链接的 path 为空,则沿用当前 activeAppLink 的 path + const path = appLink.path || activeAppLink.value.path + activeAppLink.value = { ...appLink, path: path } } switch (appLink.type) { case APP_LINK_TYPE_ENUM.PRODUCT_CATEGORY_LIST: @@ -170,7 +174,7 @@ const groupBtnRefs = ref([]) const scrollToGroupBtn = (group: string) => { const groupBtn = groupBtnRefs.value .map((btn: ButtonInstance) => btn['ref']) - .find((ref: Node) => ref.textContent === group) + .find((ref: HTMLButtonElement) => ref.textContent === group) if (groupBtn) { groupScrollbar.value?.setScrollTop(groupBtn.offsetTop) } diff --git a/src/components/Cropper/src/CopperModal.vue b/src/components/Cropper/src/CopperModal.vue index 05b8d87b9..d9a4e341f 100644 --- a/src/components/Cropper/src/CopperModal.vue +++ b/src/components/Cropper/src/CopperModal.vue @@ -181,7 +181,6 @@ function openModal() { } function closeModal() { - debugger dialogVisible.value = false } diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue index ea0e7ca92..6c671d3f2 100644 --- a/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue +++ b/src/components/DiyEditor/components/mobile/NavigationBar/components/CellProperty.vue @@ -13,7 +13,7 @@