上传
This commit is contained in:
@@ -118,9 +118,9 @@
|
||||
<el-select v-model="placeForm.area" placeholder="请选择" clearable class="w-full">
|
||||
<el-option
|
||||
v-for="dict in areaOptions"
|
||||
:key="dict.dictValue"
|
||||
:label="dict.dictLabel"
|
||||
:value="dict.dictValue"
|
||||
:key="dict.id"
|
||||
:label="dict.name"
|
||||
:value="dict.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
@@ -234,6 +234,7 @@
|
||||
|
||||
<script setup name="Place">
|
||||
import * as PlaceApi from '@/api/school/place'
|
||||
import { getAreaSimpleList } from '@/api/school/setting/area'
|
||||
import { checkPermi } from '@/utils/permission'
|
||||
|
||||
import FlagRed from '@/assets/imgs/flag/flag_red.png'
|
||||
@@ -593,8 +594,15 @@ function resetMarkers() {
|
||||
createMarkersInMap()
|
||||
}
|
||||
|
||||
function getDictOptions() {
|
||||
getAreaSimpleList().then((data) => {
|
||||
areaOptions.value = data
|
||||
})
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
initMap()
|
||||
getDictOptions()
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user