mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-07 00:17:17 +08:00
fix typo of salary high and scale high in db
This commit is contained in:
@@ -20,7 +20,7 @@ export class CompanyInfo {
|
|||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true
|
||||||
})
|
})
|
||||||
scaleHeight?: number;
|
scaleHigh?: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ export class JobInfo {
|
|||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true
|
||||||
})
|
})
|
||||||
salaryHeight?: number;
|
salaryHigh?: number;
|
||||||
|
|
||||||
@Column({
|
@Column({
|
||||||
nullable: true
|
nullable: true
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class VChatStartupLog {
|
|||||||
salaryLow: number | null;
|
salaryLow: number | null;
|
||||||
|
|
||||||
@ViewColumn()
|
@ViewColumn()
|
||||||
salaryHeight: number | null;
|
salaryHigh: number | null;
|
||||||
|
|
||||||
@ViewColumn()
|
@ViewColumn()
|
||||||
salaryMonth: number | null;
|
salaryMonth: number | null;
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ export default class SqlitePlugin {
|
|||||||
company.stageName = brandComInfo.stageName;
|
company.stageName = brandComInfo.stageName;
|
||||||
const companyScale = parseCompanyScale(brandComInfo.scaleName)
|
const companyScale = parseCompanyScale(brandComInfo.scaleName)
|
||||||
company.scaleLow = companyScale[0]
|
company.scaleLow = companyScale[0]
|
||||||
company.scaleHeight = companyScale[1]
|
company.scaleHigh = companyScale[1]
|
||||||
|
|
||||||
const companyInfoRepository = ds.getRepository(CompanyInfo);
|
const companyInfoRepository = ds.getRepository(CompanyInfo);
|
||||||
await companyInfoRepository.save(company);
|
await companyInfoRepository.save(company);
|
||||||
@@ -119,7 +119,7 @@ export default class SqlitePlugin {
|
|||||||
jobName: jobInfo.jobName,
|
jobName: jobInfo.jobName,
|
||||||
positionName: jobInfo.positionName,
|
positionName: jobInfo.positionName,
|
||||||
experienceName: jobInfo.experienceName,
|
experienceName: jobInfo.experienceName,
|
||||||
salaryHeight: jobSalary.heigh,
|
salaryHigh: jobSalary.high,
|
||||||
salaryLow: jobSalary.low,
|
salaryLow: jobSalary.low,
|
||||||
salaryMonth: jobSalary.month,
|
salaryMonth: jobSalary.month,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -24,9 +24,9 @@ export const parseCompanyScale = (str: string): [number| null, number | null] =>
|
|||||||
return [null, null]
|
return [null, null]
|
||||||
}
|
}
|
||||||
|
|
||||||
export const parseSalary = (str: string): { low: null | number, heigh: null | number, month: null | number } => {
|
export const parseSalary = (str: string): { low: null | number, high: null | number, month: null | number } => {
|
||||||
const result = {
|
const result = {
|
||||||
heigh: null,
|
high: null,
|
||||||
low: null,
|
low: null,
|
||||||
month: null
|
month: null
|
||||||
}
|
}
|
||||||
@@ -44,7 +44,7 @@ export const parseSalary = (str: string): { low: null | number, heigh: null | nu
|
|||||||
result,
|
result,
|
||||||
{
|
{
|
||||||
low: Number(arr[0]),
|
low: Number(arr[0]),
|
||||||
heigh: Number(arr[1]),
|
high: Number(arr[1]),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
}}</el-form-item>
|
}}</el-form-item>
|
||||||
<el-form-item label="工作经验">{{ jobInfo.experienceName }}</el-form-item>
|
<el-form-item label="工作经验">{{ jobInfo.experienceName }}</el-form-item>
|
||||||
<el-form-item label="薪资">{{
|
<el-form-item label="薪资">{{
|
||||||
`${jobInfo.salaryLow}-${jobInfo.salaryHeight}k` +
|
`${jobInfo.salaryLow}-${jobInfo.salaryHigh}k` +
|
||||||
(jobInfo.salaryMonth ? `* ${jobInfo.salaryMonth}薪` : '')
|
(jobInfo.salaryMonth ? `* ${jobInfo.salaryMonth}薪` : '')
|
||||||
}}</el-form-item>
|
}}</el-form-item>
|
||||||
<el-form-item label="职位描述">
|
<el-form-item label="职位描述">
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
label="薪资"
|
label="薪资"
|
||||||
:formatter="
|
:formatter="
|
||||||
(row, _col, _val) =>
|
(row, _col, _val) =>
|
||||||
`${row.salaryLow}-${row.salaryHeight}k` +
|
`${row.salaryLow}-${row.salaryHigh}k` +
|
||||||
(row.salaryMonth ? `* ${row.salaryMonth}薪` : '')
|
(row.salaryMonth ? `* ${row.salaryMonth}薪` : '')
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user