From e0efa9c1cfa015b14645775f4c078746ec1c4a15 Mon Sep 17 00:00:00 2001 From: danchaotaiyang Date: Thu, 22 Jan 2026 16:46:45 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=3D=20=E8=81=8C=E4=B8=9A=E8=A7=84=E5=88=92?= =?UTF-8?q?=E6=8E=A8=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- stores/useCareerPathStore.js | 33 ++++++++++++++++---------- stores/useCareerRecommendationStore.js | 15 +++++++++--- stores/useSkillDevelopmentStore.js | 33 ++++++++++++++++---------- 3 files changed, 54 insertions(+), 27 deletions(-) diff --git a/stores/useCareerPathStore.js b/stores/useCareerPathStore.js index fb3b97b..e7478ef 100644 --- a/stores/useCareerPathStore.js +++ b/stores/useCareerPathStore.js @@ -71,7 +71,10 @@ export const useCareerPathStore = defineStore('career-path', () => { try { const { code, msg, data } = await getCurrentPosition(); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -92,7 +95,10 @@ export const useCareerPathStore = defineStore('career-path', () => { try { const { code, msg, data } = await getPath(); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -122,7 +128,10 @@ export const useCareerPathStore = defineStore('career-path', () => { try { const { code, msg, data } = await getPathDetail(params); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -143,23 +152,23 @@ export const useCareerPathStore = defineStore('career-path', () => { const eventSearch = () => { if (pathsRef.value.length === 0) { - ElMessage.warning({ - message: '当前职业暂无发展路径,敬请期待!', - duration: 5000 + uni.showToast({ + title: '当前职业暂无发展路径,敬请期待!', + icon: 'none' }); return; } if (!profession.value) { - ElMessage.warning({ - message: '请选择当前职位!', - duration: 5000 + uni.showToast({ + title: '请选择当前职位!', + icon: 'none' }); return; } if (!targetCareer.value) { - ElMessage.warning({ - message: '请选择目标职业!', - duration: 5000 + uni.showToast({ + title: '请选择目标职业!', + icon: 'none' }); return; } diff --git a/stores/useCareerRecommendationStore.js b/stores/useCareerRecommendationStore.js index 30639fb..a3779d6 100644 --- a/stores/useCareerRecommendationStore.js +++ b/stores/useCareerRecommendationStore.js @@ -69,7 +69,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation', try { const { code, msg, data } = await getProfessions(); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -93,7 +96,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation', try { const { code, msg, data } = await getSkillTags(params); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) { @@ -111,7 +117,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation', try { const { code, msg, data } = await getRecommend(params); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { diff --git a/stores/useSkillDevelopmentStore.js b/stores/useSkillDevelopmentStore.js index 8ec23dc..d0064b3 100644 --- a/stores/useSkillDevelopmentStore.js +++ b/stores/useSkillDevelopmentStore.js @@ -72,7 +72,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => { try { const { code, msg, data } = await getCurrentPosition(); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -93,7 +96,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => { try { const { code, msg, data } = await getPath(); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (!data) { @@ -127,7 +133,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => { try { const { code, msg, data } = await getSkill(params); if (code !== 0) { - $emitter.emit('error-message', msg); + uni.showToast({ + title: msg, + icon: 'none' + }); return; } if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) { @@ -151,23 +160,23 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => { const eventSearch = () => { if (pathsRef.value.length === 0) { - ElMessage.warning({ - message: '当前职业暂无发展路径,敬请期待!', - duration: 5000 + uni.showToast({ + title: '当前职业暂无发展路径,敬请期待!', + icon: 'none' }); return; } if (!profession.value) { - ElMessage.warning({ - message: '请选择当前职位!', - duration: 5000 + uni.showToast({ + title: '请选择当前职位!', + icon: 'none' }); return; } if (!targetCareer.value) { - ElMessage.warning({ - message: '请选择目标职业!', - duration: 5000 + uni.showToast({ + title: '请选择目标职业!', + icon: 'none' }); return; } From 292b8ae33c9d2bad34028e7b3162fd47f1b5d045 Mon Sep 17 00:00:00 2001 From: xuchao <1151716571@qq.com> Date: Thu, 22 Jan 2026 16:58:19 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=AF=84=E4=BB=B7?= =?UTF-8?q?=E5=85=AC=E5=91=8A=E6=B7=BB=E5=8A=A0=E5=AE=A1=E6=A0=B8=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageB/notice/index.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packageB/notice/index.vue b/packageB/notice/index.vue index 41f8273..b361e2a 100644 --- a/packageB/notice/index.vue +++ b/packageB/notice/index.vue @@ -81,7 +81,8 @@ function getPolicyData(type = 'add',currentTab='train') { params={ pageSize:pageSize.value, pageNum:pageNum.value, - type:current.value + type:current.value, + shenhe: '1', } $api.myRequest('/train/public/announcement/list', params).then((resData) => { if(resData.code==200){ @@ -99,7 +100,8 @@ function getPolicyData(type = 'add',currentTab='train') { params={ pageSize:pageSize.value, pageNum:pageNum.value, - type:current.value + type:current.value, + shenhe: '1', } $api.myRequest('/train/public/announcement/list', params).then((resData) => { if(resData.code==200){