Riku
2025-07-13 4b275f2093954cc58bbc23e4fc67e67d6fe81c0b
src/constant/scene-types.js
@@ -6,86 +6,21 @@
import scene_16 from '@/assets/mipmap/scene_16.png';
import scene_17 from '@/assets/mipmap/scene_17.png';
import scene_18 from '@/assets/mipmap/scene_18.png';
import scene_19 from '@/assets/mipmap/scene_19.png';
import scene_20 from '@/assets/mipmap/scene_20.png';
import { option } from '@/constant/scene-types/options';
import { option as optionJingan } from '@/constant/scene-types/options-jingan';
function sceneTypes() {
  return [
    {
      label: '工地',
      value: '1'
    },
    // {
    //   label: '码头',
    //   value: '2',
    // },
    // {
    //   label: '搅拌站',
    //   value: '3',
    // },
    {
      label: '工业企业',
      value: '4'
    },
    {
      label: '餐饮',
      value: '5'
    },
    {
      label: '汽修',
      value: '6'
    },
    // {
    //   label: '降尘点',
    //   value: '7',
    // },
    // {
    //   label: '空气质量监测点',
    //   value: '8',
    // },
    // {
    //   label: '道路扬尘监测点',
    //   value: '9',
    // },
    // {
    //   label: '道路',
    //   value: '10',
    // },
    // {
    //   label: '河流断面',
    //   value: '11',
    // },
    // {
    //   label: '工业园区',
    //   value: '12',
    // },
    // {
    //   label: '无固定场景',
    //   value: '13',
    // },
    // {
    //   label: '堆场',
    //   value: '14',
    // },
    {
      label: '实验室',
      value: '15'
    },
    {
      label: '精品小区',
      value: '16'
    },
    {
      label: '加油站',
      value: '17'
    },
    {
      label: '商业体',
      value: '18'
    }
  ];
  if (import.meta.env.VITE_DATA_MODE == 'jingan') {
    return optionJingan;
  } else {
    return option;
  }
}
function sceneIcon(type) {
  switch (type) {
  switch (type + '') {
    case '1':
      return scene_1;
    case '4':
@@ -102,6 +37,10 @@
      return scene_17;
    case '18':
      return scene_18;
    case '19':
      return scene_19;
    case '20':
      return scene_20;
    default:
      return scene_1;
  }