Browse Source

fix:行业数据源、其他及其它处理

yangfeng 1 year ago
parent
commit
c3b1225004

+ 4 - 4
apps/bigmember_pc/src/assets/js/selector.js

@@ -254,7 +254,7 @@ export const infoTypeListMapExp = {
 // 在[@/components/selector/IndustrySelectorCard.vue]中使用
 export const industryListMapExp = {
   建筑工程: ['勘察设计', '工程施工', '监理咨询', '材料设备', '机电安装', '其他'],
-  水利水电: ['水利工程', '发电工程', '航运工程', '其他工程', '其他'],
+  水利水电: ['水利工程', '发电工程', '航运工程', '其他工程'],
   能源化工: ['原材料', '仪器仪表', '新能源', '设备物资', '化工产品', '设备', '其他'],
   弱电安防: ['综合布线', '智能系统', '智能家居', '其他'],
   信息技术: ['系统集成及安全', '软件开发', '运维服务', '其他'],
@@ -265,8 +265,7 @@ export const industryListMapExp = {
     '机械零部件',
     '机床相关',
     '车辆',
-    '其他机械设备',
-    '其他'
+    '其他机械设备'
   ],
   交通工程: ['道路', '轨道', '桥梁', '隧道', '其他'],
   医疗卫生: ['设备', '耗材', '药品', '其他'],
@@ -281,7 +280,8 @@ export const industryListMapExp = {
     '广告宣传印刷',
     '其他'
   ],
-  农林牧渔: ['生产物资', '生产设备', '相关服务', '其他']
+  农林牧渔: ['生产物资', '生产设备', '相关服务', '其他'],
+  其他: ['其他']
 }
 
 // 采购单位类型

+ 1 - 4
apps/bigmember_pc/src/utils/format/search-bid-filter.js

@@ -1067,10 +1067,7 @@ export const formatFilterApiOther = function(str) {
   const arr = str.split(',')
   const newArr = arr.map(item => {
     if(item.indexOf('_其他') > -1) {
-      const value = item.split('_')[1]
-      if (value ==='其他') {
-        item = `${item},${item.replace('其他', '其它')}`
-      }
+      item = `${item},${item.replace(/_其他(.*)$/, '_其它')}`
     }
     return item
   })