修改522

This commit is contained in:
zhangsir
2024-01-23 17:59:37 +08:00
parent 411f33f831
commit c04c9e91d6
5 changed files with 129 additions and 24 deletions

View File

@@ -45,9 +45,13 @@ const id = computed(() => {
});
const emit = defineEmits({});
const secondItem = store.state.project_level.find((e, index) => index === 1);
const options = computed(() =>
store.state.project_level.map((e) => ({
store.state.project_level
.sort((a, b) => parseInt(b.value) - parseInt(a.value))
.filter((e) => e != secondItem)
.concat(secondItem)
.map((e) => ({
value: parseInt(e.value),
label: e.name,
}))