= 职业规划推荐
This commit is contained in:
@@ -71,7 +71,10 @@ export const useCareerPathStore = defineStore('career-path', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getCurrentPosition();
|
const { code, msg, data } = await getCurrentPosition();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -92,7 +95,10 @@ export const useCareerPathStore = defineStore('career-path', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getPath();
|
const { code, msg, data } = await getPath();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -122,7 +128,10 @@ export const useCareerPathStore = defineStore('career-path', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getPathDetail(params);
|
const { code, msg, data } = await getPathDetail(params);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -143,23 +152,23 @@ export const useCareerPathStore = defineStore('career-path', () => {
|
|||||||
|
|
||||||
const eventSearch = () => {
|
const eventSearch = () => {
|
||||||
if (pathsRef.value.length === 0) {
|
if (pathsRef.value.length === 0) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '当前职业暂无发展路径,敬请期待!',
|
title: '当前职业暂无发展路径,敬请期待!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!profession.value) {
|
if (!profession.value) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '请选择当前职位!',
|
title: '请选择当前职位!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!targetCareer.value) {
|
if (!targetCareer.value) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '请选择目标职业!',
|
title: '请选择目标职业!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getProfessions();
|
const { code, msg, data } = await getProfessions();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -93,7 +96,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getSkillTags(params);
|
const { code, msg, data } = await getSkillTags(params);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) {
|
if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) {
|
||||||
@@ -111,7 +117,10 @@ export const useCareerRecommendationStore = defineStore('career-recommendation',
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getRecommend(params);
|
const { code, msg, data } = await getRecommend(params);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
|||||||
@@ -72,7 +72,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getCurrentPosition();
|
const { code, msg, data } = await getCurrentPosition();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -93,7 +96,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getPath();
|
const { code, msg, data } = await getPath();
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!data) {
|
if (!data) {
|
||||||
@@ -127,7 +133,10 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
|||||||
try {
|
try {
|
||||||
const { code, msg, data } = await getSkill(params);
|
const { code, msg, data } = await getSkill(params);
|
||||||
if (code !== 0) {
|
if (code !== 0) {
|
||||||
$emitter.emit('error-message', msg);
|
uni.showToast({
|
||||||
|
title: msg,
|
||||||
|
icon: 'none'
|
||||||
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) {
|
if (typeof data !== 'undefined' && Array.isArray(data) && data.length > 0 && data[ 0 ]) {
|
||||||
@@ -151,23 +160,23 @@ export const useSkillDevelopmentStore = defineStore('skill-development', () => {
|
|||||||
|
|
||||||
const eventSearch = () => {
|
const eventSearch = () => {
|
||||||
if (pathsRef.value.length === 0) {
|
if (pathsRef.value.length === 0) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '当前职业暂无发展路径,敬请期待!',
|
title: '当前职业暂无发展路径,敬请期待!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!profession.value) {
|
if (!profession.value) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '请选择当前职位!',
|
title: '请选择当前职位!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!targetCareer.value) {
|
if (!targetCareer.value) {
|
||||||
ElMessage.warning({
|
uni.showToast({
|
||||||
message: '请选择目标职业!',
|
title: '请选择目标职业!',
|
||||||
duration: 5000
|
icon: 'none'
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user