diff --git a/packages/sqlite-plugin/src/enums.ts b/packages/sqlite-plugin/src/enums.ts index 10f3bf7..b887896 100644 --- a/packages/sqlite-plugin/src/enums.ts +++ b/packages/sqlite-plugin/src/enums.ts @@ -16,3 +16,8 @@ export enum StrategyScopeOptionWhenMarkJobNotMatch { ALL_JOB = 1, ONLY_COMPANY_MATCHED_JOB = 2 } + +export enum SalaryCalculateWay { + MONTH_SALARY = 1, + ANNUAL_PACKAGE = 2 +} \ No newline at end of file diff --git a/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts b/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts index d0f39f9..14691be 100644 --- a/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts +++ b/packages/ui/src/main/flow/OPEN_SETTING_WINDOW/ipc/index.ts @@ -117,6 +117,23 @@ export default function initIpc() { bossConfig.strategyScopeOptionWhenMarkJobCityNotMatch = payload.strategyScopeOptionWhenMarkJobCityNotMatch } + if (hasOwn(payload, 'expectSalaryCalculateWay')) { + bossConfig.expectSalaryCalculateWay = payload.expectSalaryCalculateWay + } + if (hasOwn(payload, 'expectSalaryNotMatchStrategy')) { + bossConfig.expectSalaryNotMatchStrategy = payload.expectSalaryNotMatchStrategy + } + if (hasOwn(payload, 'strategyScopeOptionWhenMarkSalaryNotMatch')) { + bossConfig.strategyScopeOptionWhenMarkSalaryNotMatch = + payload.strategyScopeOptionWhenMarkSalaryNotMatch + } + if (hasOwn(payload, 'expectSalaryLow')) { + bossConfig.expectSalaryLow = payload.expectSalaryLow + } + if (hasOwn(payload, 'expectSalaryHigh')) { + bossConfig.expectSalaryHigh = payload.expectSalaryHigh + } + promiseArr.push(writeConfigFile('boss.json', bossConfig)) if (hasOwn(payload, 'expectCompanies')) { diff --git a/packages/ui/src/main/window/mainWindow.ts b/packages/ui/src/main/window/mainWindow.ts index fbe6031..79797a2 100644 --- a/packages/ui/src/main/window/mainWindow.ts +++ b/packages/ui/src/main/window/mainWindow.ts @@ -10,7 +10,7 @@ export function createMainWindow(): BrowserWindow { mainWindow = new BrowserWindow({ width: 1280, height: 720, - minWidth: 1024, + minWidth: 1280, show: false, autoHideMenuBar: true, ...(process.platform === 'linux' diff --git a/packages/ui/src/renderer/src/page/MainLayout/GeekAutoStartChatWithBoss/index.vue b/packages/ui/src/renderer/src/page/MainLayout/GeekAutoStartChatWithBoss/index.vue index caf5cc4..278c31c 100644 --- a/packages/ui/src/renderer/src/page/MainLayout/GeekAutoStartChatWithBoss/index.vue +++ b/packages/ui/src/renderer/src/page/MainLayout/GeekAutoStartChatWithBoss/index.vue @@ -38,7 +38,7 @@ }" >
| + {{ text }} + | +||
|---|---|---|
| + {{ + formContent.expectSalaryLow + ? ((formContent.expectSalaryLow / m) * 10).toFixed(2) + : '无下限' + }}k + | ++ {{ + formContent.expectSalaryHigh + ? ((formContent.expectSalaryHigh / m) * 10).toFixed(2) + : '无上限' + }}k + | +{{ m }}薪 | +