add the view of BossLibrary、CompanyLibrary、JobLibrary

This commit is contained in:
geekgeekrun
2024-10-02 17:39:57 +08:00
parent 1001b3fe0a
commit 668df75dc3
13 changed files with 638 additions and 3 deletions

View File

@@ -24,6 +24,19 @@ export const parseCompanyScale = (str: string): [number| null, number | null] =>
return [null, null]
}
export function formatCompanyScale(low, high) {
if (low === null && high === null) {
return ''
}
if (low === null && high !== null) {
return `${high}人以下`
}
if (low !== null && high === null) {
return `${low}人以上`
}
return `${low}-${high}`
}
export const parseSalary = (str: string): { low: null | number, high: null | number, month: null | number } => {
const result = {
high: null,