fix for misspell of scale property.

This commit is contained in:
geekgeekrun
2025-12-10 13:16:15 +08:00
parent d206d45242
commit 4e9b44d04c
@@ -148,7 +148,7 @@
<el-table-column :resizable="false" label="公司规模" prop="scale"> <el-table-column :resizable="false" label="公司规模" prop="scale">
<template #default="{ row }"> <template #default="{ row }">
<el-select <el-select
v-model="row.scaleList" v-model="row.scale"
:disabled="row.___itemType === 'empty-condition-placeholder'" :disabled="row.___itemType === 'empty-condition-placeholder'"
clearable clearable
size="small" 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() { function getNewConditionItem() {
return { return {
salary: null, salary: null,