|
@@ -41,7 +41,7 @@
|
|
<el-option v-for="i in methodList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
<el-option v-for="i in methodList" :key="i.id" :label="i.label" :value="i.value"></el-option>
|
|
</template>
|
|
</template>
|
|
<template #area>
|
|
<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>
|
|
<template #tags>
|
|
<template #tags>
|
|
<el-select v-model="form.tags" multiple filterable allow-create default-first-option :reserve-keyword="false" placeholder="请选择标签" style="width: 100%">
|
|
<el-select v-model="form.tags" multiple filterable allow-create default-first-option :reserve-keyword="false" placeholder="请选择标签" style="width: 100%">
|
|
@@ -63,8 +63,6 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-// API 引用
|
|
|
|
-import { getCity } from '@/utils/city'
|
|
|
|
import { cloneDeep, get } from 'lodash-es'
|
|
import { cloneDeep, get } from 'lodash-es'
|
|
const $checkRes = inject('$checkRes')
|
|
const $checkRes = inject('$checkRes')
|
|
const { t } = useI18n()
|
|
const { t } = useI18n()
|
|
@@ -73,6 +71,8 @@ import { DemandStore } from '@/store/api/platform/demand'
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
import { DictDataStore } from '@/store/api/system/dictData'
|
|
import { TagsStore } from '@/store/api/system/tags'
|
|
import { TagsStore } from '@/store/api/system/tags'
|
|
import { SectorStore } from '@/store/api/system/sector'
|
|
import { SectorStore } from '@/store/api/system/sector'
|
|
|
|
+import { RegionStore } from '@/store/api/system/region'
|
|
|
|
+const regionStore = RegionStore()
|
|
const store = DemandStore()
|
|
const store = DemandStore()
|
|
const dictDataStore = DictDataStore()
|
|
const dictDataStore = DictDataStore()
|
|
const tagsStore = TagsStore()
|
|
const tagsStore = TagsStore()
|
|
@@ -147,9 +147,6 @@ const examForm = ref({})
|
|
// 请求
|
|
// 请求
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
loading.value = true
|
|
loading.value = true
|
|
- getCity().then((response) => {
|
|
|
|
- cityList.value = response.address
|
|
|
|
- })
|
|
|
|
await searchOther()
|
|
await searchOther()
|
|
await search({ skip, limit })
|
|
await search({ skip, limit })
|
|
loading.value = false
|
|
loading.value = false
|
|
@@ -181,6 +178,9 @@ const searchOther = async () => {
|
|
// 行业
|
|
// 行业
|
|
result = await sectorStore.query({ is_use: '0' })
|
|
result = await sectorStore.query({ is_use: '0' })
|
|
if ($checkRes(result)) sectorList.value = result.data
|
|
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 }) => {
|
|
const search = async (query = { skip, limit }) => {
|
|
skip = query.skip
|
|
skip = query.skip
|