fix for misspell of scale property.

This commit is contained in:
geekgeekrun
2025-12-10 13:16:15 +08:00
parent d206d45242
commit 4e9b44d04c

View File

@@ -148,7 +148,7 @@
<el-table-column :resizable="false" label="公司规模" prop="scale">
<template #default="{ row }">
<el-select
v-model="row.scaleList"
v-model="row.scale"
:disabled="row.___itemType === 'empty-condition-placeholder'"
clearable
size="small"
@@ -204,6 +204,14 @@ const props = defineProps({
}
})
// fix for misspell of scale property.
for (const condition of props.modelValue) {
if ((condition as any).scaleList && !condition.scale) {
condition.scale = (condition as any).scaleList
delete (condition as any).scaleList
}
}
function getNewConditionItem() {
return {
salary: null,