|
@@ -44,7 +44,7 @@
|
|
|
<el-option v-for="i in technologyList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
|
</template>
|
|
|
<template #area>
|
|
|
- <el-cascader v-model="form.area" :props="{ value: 'label', label: 'label' }" :options="cityList" style="width: 100%" />
|
|
|
+ <el-cascader v-model="form.area" :props="{ value: 'name', label: 'name' }" :options="cityList" style="width: 100%" />
|
|
|
</template>
|
|
|
<template #file>
|
|
|
<custom-upload model="file" :list="form.file" :limit="1" url="/files/web/cxyy_achievement/upload" @change="onUpload"></custom-upload>
|
|
@@ -72,8 +72,6 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-// API 引用
|
|
|
-import { getCity } from '@/utils/city'
|
|
|
import { cloneDeep, get } from 'lodash-es'
|
|
|
const $checkRes = inject('$checkRes')
|
|
|
const { t } = useI18n()
|
|
@@ -82,6 +80,8 @@ import { AchievementStore } from '@/store/api/platform/achievement'
|
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
|
import { TagsStore } from '@/store/api/system/tags'
|
|
|
import { SectorStore } from '@/store/api/system/sector'
|
|
|
+import { RegionStore } from '@/store/api/system/region'
|
|
|
+const regionStore = RegionStore()
|
|
|
const store = AchievementStore()
|
|
|
const dictDataStore = DictDataStore()
|
|
|
const tagsStore = TagsStore()
|
|
@@ -159,9 +159,6 @@ const examForm = ref({})
|
|
|
// 请求
|
|
|
onMounted(async () => {
|
|
|
loading.value = true
|
|
|
- getCity().then((response) => {
|
|
|
- cityList.value = response.address
|
|
|
- })
|
|
|
await searchOther()
|
|
|
await search({ skip, limit })
|
|
|
loading.value = false
|
|
@@ -199,6 +196,9 @@ const searchOther = async () => {
|
|
|
// 行业
|
|
|
result = await sectorStore.query({ is_use: '0' })
|
|
|
if ($checkRes(result)) sectorList.value = result.data
|
|
|
+ // 城市
|
|
|
+ result = await regionStore.query({ level: 'city', parent_code: 22 })
|
|
|
+ if ($checkRes(result)) cityList.value = result.data
|
|
|
}
|
|
|
const search = async (query = { skip, limit }) => {
|
|
|
skip = query.skip
|