|
@@ -1,23 +1,22 @@
|
|
|
+import {
|
|
|
+ contactList,
|
|
|
+ entPriceList,
|
|
|
+ entStateList,
|
|
|
+ entTypeList,
|
|
|
+ searchScopeEntData,
|
|
|
+ unitTypeList
|
|
|
+} from '../assets/options.js'
|
|
|
import CheckboxGroupSelector from '@/components/filter-items/CheckboxGroupSelector.vue'
|
|
|
import RegionSelector from '@/components/filter-items/RegionSelector.vue'
|
|
|
import EntamountRangeData from '@/components/filter-items/EntamountRangeData.vue'
|
|
|
import OnecascadeContent from '@/components/filter-items/OnecascadeContent.vue'
|
|
|
-import ZhiMaBidSelector from '@/components/filter-items/ZhiMaBidSelector'
|
|
|
import EstablishTimeSelector from '@/components/filter-items/EstablishTimeSelector.vue'
|
|
|
import SelectorWithBasePower from '@/components/filter-items/SelectorWithBasePower.vue'
|
|
|
import SelectSelector from '@/components/filter-items/SelectSelector.vue'
|
|
|
import $bus from '@/utils/bus'
|
|
|
-import {
|
|
|
- searchScopeEntData,
|
|
|
- entPriceList,
|
|
|
- entTypeList,
|
|
|
- entStateList,
|
|
|
- unitTypeList,
|
|
|
- contactList
|
|
|
-} from '../assets/options.js'
|
|
|
import { provinceListMapExp } from '@/assets/js/selector.js'
|
|
|
|
|
|
-const provinces = [].concat(...Object.values(provinceListMapExp)).map(v => {
|
|
|
+const provinces = [].concat(...Object.values(provinceListMapExp)).map((v) => {
|
|
|
return {
|
|
|
label: v,
|
|
|
value: v
|
|
@@ -33,11 +32,11 @@ const EntMoreFiltersNeedVipKeyList = [
|
|
|
'biddingArea',
|
|
|
'entClass',
|
|
|
'entContact',
|
|
|
- 'zhimaBid',
|
|
|
+ 'zhimaBid'
|
|
|
]
|
|
|
|
|
|
function createSearchEntBaseSchema(conf = {}) {
|
|
|
- const isLogin = conf.isLogin || false
|
|
|
+ // const isLogin = conf.isLogin || false
|
|
|
const isInApp = conf.isInApp || false
|
|
|
const vipUser = conf.vipUser || false
|
|
|
const showVip = conf.showVip || false
|
|
@@ -66,12 +65,14 @@ function createSearchEntBaseSchema(conf = {}) {
|
|
|
{
|
|
|
label: '经营范围',
|
|
|
needVip: true,
|
|
|
- value: 'F'
|
|
|
+ value: 'F',
|
|
|
+ power: true
|
|
|
},
|
|
|
{
|
|
|
label: '中标项目/标的物',
|
|
|
needVip: true,
|
|
|
- value: 'E'
|
|
|
+ value: 'E',
|
|
|
+ power: true
|
|
|
}
|
|
|
],
|
|
|
beforeChange() {
|
|
@@ -99,7 +100,7 @@ function createSearchEntBaseSchema(conf = {}) {
|
|
|
defaultVal: ['A'],
|
|
|
_name: 'matchType',
|
|
|
_type: 'component',
|
|
|
- expand: (vipUser && isInApp) ? searchScopeExpandVip : searchScopeExpandFree,
|
|
|
+ expand: vipUser && isInApp ? searchScopeExpandVip : searchScopeExpandFree
|
|
|
}
|
|
|
]
|
|
|
return SearchEntBaseSchema
|
|
@@ -158,7 +159,7 @@ function createSearchEntMoreSchema() {
|
|
|
_type: 'component',
|
|
|
expand: {
|
|
|
component: OnecascadeContent,
|
|
|
- props:{
|
|
|
+ props: {
|
|
|
options: entTypeList,
|
|
|
placeholder: '企业类型'
|
|
|
},
|
|
@@ -173,7 +174,7 @@ function createSearchEntMoreSchema() {
|
|
|
_type: 'component',
|
|
|
expand: {
|
|
|
component: OnecascadeContent,
|
|
|
- props:{
|
|
|
+ props: {
|
|
|
options: entStateList,
|
|
|
placeholder: '企业状态'
|
|
|
},
|
|
@@ -188,7 +189,7 @@ function createSearchEntMoreSchema() {
|
|
|
_type: 'component',
|
|
|
expand: {
|
|
|
component: SelectSelector,
|
|
|
- props:{
|
|
|
+ props: {
|
|
|
options: provinces,
|
|
|
placeholder: '中标区域'
|
|
|
},
|
|
@@ -224,19 +225,19 @@ function createSearchEntMoreSchema() {
|
|
|
},
|
|
|
hooks: {}
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- key: 'zhimaBid',
|
|
|
- label: '芝麻实力标',
|
|
|
- defaultVal: '',
|
|
|
- _name: 'zhimaBidComponent',
|
|
|
- _type: 'component',
|
|
|
- expand: {
|
|
|
- component: ZhiMaBidSelector,
|
|
|
- props: {},
|
|
|
- hooks: {}
|
|
|
- }
|
|
|
}
|
|
|
+ // {
|
|
|
+ // key: 'zhimaBid',
|
|
|
+ // label: '芝麻实力标',
|
|
|
+ // defaultVal: '',
|
|
|
+ // _name: 'zhimaBidComponent',
|
|
|
+ // _type: 'component',
|
|
|
+ // expand: {
|
|
|
+ // component: ZhiMaBidSelector,
|
|
|
+ // props: {},
|
|
|
+ // hooks: {}
|
|
|
+ // }
|
|
|
+ // }
|
|
|
]
|
|
|
|
|
|
// VIP处理
|
|
@@ -250,6 +251,4 @@ function createSearchEntMoreSchema() {
|
|
|
return SearchEntMoreSchema
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
export { createSearchEntBaseSchema, createSearchEntMoreSchema }
|