Commit edb42970005e353efea19ae3c9c907b062582d80
1 parent
ee2c8657
fix: update fieldpanel sort
Showing
1 changed file
with
4 additions
and
1 deletions
src/views/project/order/FieldDetail.vue
... | ... | @@ -130,7 +130,10 @@ |
130 | 130 | record.onEdit?.(false, true); |
131 | 131 | setTimeout(async () => { |
132 | 132 | const res = await dictList({ dictCode: key.value }); |
133 | - dataSource.value = res.records; | |
133 | + dataSource.value = | |
134 | + res.records?.sort((x, y) => { | |
135 | + return x.dictValue.localeCompare(y.dictValue); | |
136 | + }) || []; | |
134 | 137 | reload(); |
135 | 138 | }, 300); |
136 | 139 | } | ... | ... |