|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <div class="main " v-loading="loading">
|
|
|
+ <div class="main" v-loading="loading">
|
|
|
<custom-search-bar :fields="fields.filter((f) => f.isSearch)" v-model="searchForm" @search="search" @reset="toReset">
|
|
|
<template #industry>
|
|
|
<el-option v-for="i in sectorList" :key="i.id" :label="i.title" :value="i.title"></el-option>
|
|
@@ -74,7 +74,7 @@ const fields = [
|
|
|
{ label: t('pages.support.name'), model: 'name', isSearch: true },
|
|
|
{ label: t('pages.support.industry'), model: 'industry', isSearch: true, type: 'select' },
|
|
|
{ label: t('pages.support.tags'), model: 'tags', isSearch: true, format: (i) => getDict(i, 'tags') },
|
|
|
- { label: t('pages.support.field'), model: 'field', isSearch: true, type: 'select' },
|
|
|
+ { label: t('pages.support.field'), model: 'field', isSearch: true, type: 'selectMany', format: (i) => getDict(i, 'tags') },
|
|
|
{ label: t('pages.support.time'), model: 'time' },
|
|
|
{ label: t('pages.support.is_use'), model: 'is_use', custom: true, format: (i) => getDict(i, 'is_use') },
|
|
|
{ label: t('pages.support.status'), model: 'status', format: (i) => getDict(i, 'status') }
|
|
@@ -107,7 +107,7 @@ const formFields = ref([
|
|
|
{ label: t('pages.support.name'), model: 'name' },
|
|
|
{ label: t('pages.support.tags'), model: 'tags', custom: true },
|
|
|
{ label: t('pages.support.industry'), model: 'industry', type: 'select' },
|
|
|
- { label: t('pages.support.field'), model: 'field', type: 'select' },
|
|
|
+ { label: t('pages.support.field'), model: 'field', type: 'selectMany' },
|
|
|
{ label: t('pages.support.time'), model: 'time', type: 'datetime' },
|
|
|
{ label: t('pages.support.area'), model: 'area', custom: true },
|
|
|
{ label: t('pages.support.address'), model: 'address', type: 'textarea' },
|
|
@@ -148,9 +148,9 @@ const searchOther = async () => {
|
|
|
// 城市
|
|
|
result = await regionStore.area({ level: 'province', code: 22 })
|
|
|
if ($checkRes(result)) cityList.value = result.data
|
|
|
- // 领域
|
|
|
- result = await dictDataStore.query({ code: 'field', is_use: '0' })
|
|
|
- if ($checkRes(result)) fieldList.value = result.data
|
|
|
+ // 服务领域
|
|
|
+ result = await dictDataStore.query({ code: 'service', is_use: '0' })
|
|
|
+ if (result.errcode == '0') fieldList.value = result.data
|
|
|
}
|
|
|
const search = async (query = { skip, limit }) => {
|
|
|
skip = query.skip
|