diff --git a/src/assets/images/map_bi/bottom_utils/bg7.png b/src/assets/images/map_bi/bottom_utils/bg7.png new file mode 100644 index 0000000..6d6077a Binary files /dev/null and b/src/assets/images/map_bi/bottom_utils/bg7.png differ diff --git a/src/assets/images/map_bi/bottom_utils/bg8.png b/src/assets/images/map_bi/bottom_utils/bg8.png new file mode 100644 index 0000000..e57dfd5 Binary files /dev/null and b/src/assets/images/map_bi/bottom_utils/bg8.png differ diff --git a/src/assets/images/map_bi/bottom_utils/first/img11.png b/src/assets/images/map_bi/bottom_utils/first/img11.png deleted file mode 100644 index 99a0f5a..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/first/img11.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/first/img11_on.png b/src/assets/images/map_bi/bottom_utils/first/img11_on.png deleted file mode 100644 index 8796d80..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/first/img11_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/first/img9.png b/src/assets/images/map_bi/bottom_utils/first/img9.png deleted file mode 100644 index 974138f..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/first/img9.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/first/img9_on.png b/src/assets/images/map_bi/bottom_utils/first/img9_on.png deleted file mode 100644 index 5508e5c..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/first/img9_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/01.png b/src/assets/images/map_bi/bottom_utils/second/01.png deleted file mode 100644 index 9aadfee..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/01.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/01_on.png b/src/assets/images/map_bi/bottom_utils/second/01_on.png deleted file mode 100644 index 3d05f16..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/01_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico18.png b/src/assets/images/map_bi/bottom_utils/second/ico18.png deleted file mode 100644 index 9a0e30f..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico18.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico18_on.png b/src/assets/images/map_bi/bottom_utils/second/ico18_on.png deleted file mode 100644 index a9b403a..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico18_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico20.png b/src/assets/images/map_bi/bottom_utils/second/ico20.png deleted file mode 100644 index eb9405f..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico20.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico20_on.png b/src/assets/images/map_bi/bottom_utils/second/ico20_on.png deleted file mode 100644 index 1472e5e..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico20_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico22.png b/src/assets/images/map_bi/bottom_utils/second/ico22.png deleted file mode 100644 index 1bff8e8..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico22.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico22_on.png b/src/assets/images/map_bi/bottom_utils/second/ico22_on.png deleted file mode 100644 index 3f6fefe..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico22_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico23.png b/src/assets/images/map_bi/bottom_utils/second/ico23.png deleted file mode 100644 index cd042fa..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico23.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico23_on.png b/src/assets/images/map_bi/bottom_utils/second/ico23_on.png deleted file mode 100644 index 98e2e94..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico23_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico24.png b/src/assets/images/map_bi/bottom_utils/second/ico24.png deleted file mode 100644 index 77ad605..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico24.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico24_on.png b/src/assets/images/map_bi/bottom_utils/second/ico24_on.png deleted file mode 100644 index 826a403..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico24_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico25.png b/src/assets/images/map_bi/bottom_utils/second/ico25.png deleted file mode 100644 index 3948917..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico25.png and /dev/null differ diff --git a/src/assets/images/map_bi/bottom_utils/second/ico25_on.png b/src/assets/images/map_bi/bottom_utils/second/ico25_on.png deleted file mode 100644 index 53ecf23..0000000 Binary files a/src/assets/images/map_bi/bottom_utils/second/ico25_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/bg1.png b/src/assets/images/map_bi/content/bg1.png deleted file mode 100644 index 8d39308..0000000 Binary files a/src/assets/images/map_bi/content/bg1.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon10.png b/src/assets/images/map_bi/content/icon10.png deleted file mode 100644 index bcf3e57..0000000 Binary files a/src/assets/images/map_bi/content/icon10.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon11.png b/src/assets/images/map_bi/content/icon11.png deleted file mode 100644 index ed05656..0000000 Binary files a/src/assets/images/map_bi/content/icon11.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon12.png b/src/assets/images/map_bi/content/icon12.png deleted file mode 100644 index 9ed9188..0000000 Binary files a/src/assets/images/map_bi/content/icon12.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon13.png b/src/assets/images/map_bi/content/icon13.png deleted file mode 100644 index bcf3e57..0000000 Binary files a/src/assets/images/map_bi/content/icon13.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon14.png b/src/assets/images/map_bi/content/icon14.png deleted file mode 100644 index ed05656..0000000 Binary files a/src/assets/images/map_bi/content/icon14.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon15.png b/src/assets/images/map_bi/content/icon15.png deleted file mode 100644 index 9ed9188..0000000 Binary files a/src/assets/images/map_bi/content/icon15.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon16.png b/src/assets/images/map_bi/content/icon16.png deleted file mode 100644 index 064f473..0000000 Binary files a/src/assets/images/map_bi/content/icon16.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon17.png b/src/assets/images/map_bi/content/icon17.png deleted file mode 100644 index a0df009..0000000 Binary files a/src/assets/images/map_bi/content/icon17.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon18.png b/src/assets/images/map_bi/content/icon18.png deleted file mode 100644 index f6bbe32..0000000 Binary files a/src/assets/images/map_bi/content/icon18.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon19.png b/src/assets/images/map_bi/content/icon19.png deleted file mode 100644 index c7bef67..0000000 Binary files a/src/assets/images/map_bi/content/icon19.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon20.png b/src/assets/images/map_bi/content/icon20.png deleted file mode 100644 index 432991b..0000000 Binary files a/src/assets/images/map_bi/content/icon20.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon21.png b/src/assets/images/map_bi/content/icon21.png deleted file mode 100644 index 191835e..0000000 Binary files a/src/assets/images/map_bi/content/icon21.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon22.png b/src/assets/images/map_bi/content/icon22.png deleted file mode 100644 index 9370a0e..0000000 Binary files a/src/assets/images/map_bi/content/icon22.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon23.png b/src/assets/images/map_bi/content/icon23.png deleted file mode 100644 index 42475ba..0000000 Binary files a/src/assets/images/map_bi/content/icon23.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon24.png b/src/assets/images/map_bi/content/icon24.png deleted file mode 100644 index ffe9c41..0000000 Binary files a/src/assets/images/map_bi/content/icon24.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon7.png b/src/assets/images/map_bi/content/icon7.png deleted file mode 100644 index 5b0d1fb..0000000 Binary files a/src/assets/images/map_bi/content/icon7.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon8.png b/src/assets/images/map_bi/content/icon8.png deleted file mode 100644 index 167f075..0000000 Binary files a/src/assets/images/map_bi/content/icon8.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/icon9.png b/src/assets/images/map_bi/content/icon9.png deleted file mode 100644 index 90010ec..0000000 Binary files a/src/assets/images/map_bi/content/icon9.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img1_on.png b/src/assets/images/map_bi/content/img1_on.png deleted file mode 100644 index 532ca4c..0000000 Binary files a/src/assets/images/map_bi/content/img1_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img1ico6.png b/src/assets/images/map_bi/content/img1ico6.png deleted file mode 100644 index ccffe80..0000000 Binary files a/src/assets/images/map_bi/content/img1ico6.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img2_on.png b/src/assets/images/map_bi/content/img2_on.png deleted file mode 100644 index c22ef80..0000000 Binary files a/src/assets/images/map_bi/content/img2_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img3_on.png b/src/assets/images/map_bi/content/img3_on.png deleted file mode 100644 index 0bfbb0e..0000000 Binary files a/src/assets/images/map_bi/content/img3_on.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img6.png b/src/assets/images/map_bi/content/img6.png deleted file mode 100644 index f2cb191..0000000 Binary files a/src/assets/images/map_bi/content/img6.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/img9.png b/src/assets/images/map_bi/content/img9.png deleted file mode 100644 index f89febf..0000000 Binary files a/src/assets/images/map_bi/content/img9.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/qixiang_imgbg.png b/src/assets/images/map_bi/content/qixiang_imgbg.png deleted file mode 100644 index d37afee..0000000 Binary files a/src/assets/images/map_bi/content/qixiang_imgbg.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/qixiang_label.png b/src/assets/images/map_bi/content/qixiang_label.png deleted file mode 100644 index 119aa30..0000000 Binary files a/src/assets/images/map_bi/content/qixiang_label.png and /dev/null differ diff --git a/src/assets/images/map_bi/content/titbg.png b/src/assets/images/map_bi/content/titbg.png deleted file mode 100644 index ecddd40..0000000 Binary files a/src/assets/images/map_bi/content/titbg.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico22.png b/src/assets/images/map_bi/point/ico22.png deleted file mode 100644 index 0789655..0000000 Binary files a/src/assets/images/map_bi/point/ico22.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico23.png b/src/assets/images/map_bi/point/ico23.png deleted file mode 100644 index cab7875..0000000 Binary files a/src/assets/images/map_bi/point/ico23.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico24.png b/src/assets/images/map_bi/point/ico24.png deleted file mode 100644 index 34bfcd8..0000000 Binary files a/src/assets/images/map_bi/point/ico24.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico_people_blue.png b/src/assets/images/map_bi/point/ico_people_blue.png deleted file mode 100644 index 3dd97d5..0000000 Binary files a/src/assets/images/map_bi/point/ico_people_blue.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico_people_orange.png b/src/assets/images/map_bi/point/ico_people_orange.png deleted file mode 100644 index a2fa564..0000000 Binary files a/src/assets/images/map_bi/point/ico_people_orange.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico_people_red.png b/src/assets/images/map_bi/point/ico_people_red.png deleted file mode 100644 index afbb83c..0000000 Binary files a/src/assets/images/map_bi/point/ico_people_red.png and /dev/null differ diff --git a/src/assets/images/map_bi/point/ico_people_yellow.png b/src/assets/images/map_bi/point/ico_people_yellow.png deleted file mode 100644 index d0592a3..0000000 Binary files a/src/assets/images/map_bi/point/ico_people_yellow.png and /dev/null differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/bg11.png b/src/assets/images/map_bi/right_utils/branch_office/bg11.png new file mode 100644 index 0000000..1a599dd Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/bg11.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/button.png b/src/assets/images/map_bi/right_utils/branch_office/button.png new file mode 100644 index 0000000..1cc99fe Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/button.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico1.png b/src/assets/images/map_bi/right_utils/branch_office/ico1.png new file mode 100644 index 0000000..ef12f34 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico1.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico2.png b/src/assets/images/map_bi/right_utils/branch_office/ico2.png new file mode 100644 index 0000000..269da92 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico2.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico3.png b/src/assets/images/map_bi/right_utils/branch_office/ico3.png new file mode 100644 index 0000000..58b0075 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico3.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico4.png b/src/assets/images/map_bi/right_utils/branch_office/ico4.png new file mode 100644 index 0000000..bedaf47 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico4.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico5.png b/src/assets/images/map_bi/right_utils/branch_office/ico5.png new file mode 100644 index 0000000..c44a6ed Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico5.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico6.png b/src/assets/images/map_bi/right_utils/branch_office/ico6.png new file mode 100644 index 0000000..d3a3b6e Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico6.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico7.png b/src/assets/images/map_bi/right_utils/branch_office/ico7.png new file mode 100644 index 0000000..7e69cc3 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico7.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico8.png b/src/assets/images/map_bi/right_utils/branch_office/ico8.png new file mode 100644 index 0000000..d382cab Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico8.png differ diff --git a/src/assets/images/map_bi/right_utils/branch_office/ico9.png b/src/assets/images/map_bi/right_utils/branch_office/ico9.png new file mode 100644 index 0000000..3dc3343 Binary files /dev/null and b/src/assets/images/map_bi/right_utils/branch_office/ico9.png differ diff --git a/src/assets/images/map_bi/right_utils/back.png b/src/assets/images/map_bi/right_utils/port/back.png similarity index 100% rename from src/assets/images/map_bi/right_utils/back.png rename to src/assets/images/map_bi/right_utils/port/back.png diff --git a/src/assets/images/map_bi/right_utils/bianjie.png b/src/assets/images/map_bi/right_utils/port/bianjie.png similarity index 100% rename from src/assets/images/map_bi/right_utils/bianjie.png rename to src/assets/images/map_bi/right_utils/port/bianjie.png diff --git a/src/assets/images/map_bi/right_utils/bianjie_on.png b/src/assets/images/map_bi/right_utils/port/bianjie_on.png similarity index 100% rename from src/assets/images/map_bi/right_utils/bianjie_on.png rename to src/assets/images/map_bi/right_utils/port/bianjie_on.png diff --git a/src/assets/images/map_bi/right_utils/del.png b/src/assets/images/map_bi/right_utils/port/del.png similarity index 100% rename from src/assets/images/map_bi/right_utils/del.png rename to src/assets/images/map_bi/right_utils/port/del.png diff --git a/src/assets/images/map_bi/right_utils/full.png b/src/assets/images/map_bi/right_utils/port/full.png similarity index 100% rename from src/assets/images/map_bi/right_utils/full.png rename to src/assets/images/map_bi/right_utils/port/full.png diff --git a/src/assets/images/map_bi/right_utils/full_on.png b/src/assets/images/map_bi/right_utils/port/full_on.png similarity index 100% rename from src/assets/images/map_bi/right_utils/full_on.png rename to src/assets/images/map_bi/right_utils/port/full_on.png diff --git a/src/assets/images/map_bi/right_utils/img2.png b/src/assets/images/map_bi/right_utils/port/img2.png similarity index 100% rename from src/assets/images/map_bi/right_utils/img2.png rename to src/assets/images/map_bi/right_utils/port/img2.png diff --git a/src/assets/images/map_bi/right_utils/img4.png b/src/assets/images/map_bi/right_utils/port/img4.png similarity index 100% rename from src/assets/images/map_bi/right_utils/img4.png rename to src/assets/images/map_bi/right_utils/port/img4.png diff --git a/src/assets/images/map_bi/right_utils/img4_on.png b/src/assets/images/map_bi/right_utils/port/img4_on.png similarity index 100% rename from src/assets/images/map_bi/right_utils/img4_on.png rename to src/assets/images/map_bi/right_utils/port/img4_on.png diff --git a/src/assets/images/map_bi/right_utils/map.png b/src/assets/images/map_bi/right_utils/port/map.png similarity index 100% rename from src/assets/images/map_bi/right_utils/map.png rename to src/assets/images/map_bi/right_utils/port/map.png diff --git a/src/assets/images/map_bi/right_utils/map_on.png b/src/assets/images/map_bi/right_utils/port/map_on.png similarity index 100% rename from src/assets/images/map_bi/right_utils/map_on.png rename to src/assets/images/map_bi/right_utils/port/map_on.png diff --git a/src/assets/images/map_bi/right_utils/qixiang.png b/src/assets/images/map_bi/right_utils/port/qixiang.png similarity index 100% rename from src/assets/images/map_bi/right_utils/qixiang.png rename to src/assets/images/map_bi/right_utils/port/qixiang.png diff --git a/src/assets/images/map_bi/right_utils/sisetu.png b/src/assets/images/map_bi/right_utils/port/sisetu.png similarity index 100% rename from src/assets/images/map_bi/right_utils/sisetu.png rename to src/assets/images/map_bi/right_utils/port/sisetu.png diff --git a/src/assets/images/map_bi/right_utils/sisetu_on.png b/src/assets/images/map_bi/right_utils/port/sisetu_on.png similarity index 100% rename from src/assets/images/map_bi/right_utils/sisetu_on.png rename to src/assets/images/map_bi/right_utils/port/sisetu_on.png diff --git a/src/assets/images/map_bi/right_utils/tooltip.png b/src/assets/images/map_bi/right_utils/port/tooltip.png similarity index 100% rename from src/assets/images/map_bi/right_utils/tooltip.png rename to src/assets/images/map_bi/right_utils/port/tooltip.png diff --git a/src/assets/images/map_bi/tanks.png b/src/assets/images/map_bi/tanks.png deleted file mode 100644 index 06472ba..0000000 Binary files a/src/assets/images/map_bi/tanks.png and /dev/null differ diff --git a/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js b/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js new file mode 100644 index 0000000..31bc7e4 --- /dev/null +++ b/src/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList.js @@ -0,0 +1,236 @@ +import pointIco1 from "~/assets/images/map_bi/point/ico1.png"; +import pointIco2 from "~/assets/images/map_bi/point/ico2.png"; +import pointIco3 from "~/assets/images/map_bi/point/ico3.png"; +import pointIco4 from "~/assets/images/map_bi/point/ico4.png"; +import pointIco5 from "~/assets/images/map_bi/point/ico5.png"; +import pointIco6 from "~/assets/images/map_bi/point/ico6.png"; +import pointIco7 from "~/assets/images/map_bi/point/ico7.png"; +import pointIco8 from "~/assets/images/map_bi/point/ico8.png"; +import pointIco9 from "~/assets/images/map_bi/point/ico9.png"; +import pointIco10 from "~/assets/images/map_bi/point/ico10.png"; +import pointIco11 from "~/assets/images/map_bi/point/ico11.png"; +import pointIco12 from "~/assets/images/map_bi/point/ico12.png"; +import pointIco13 from "~/assets/images/map_bi/point/ico13.png"; +import pointIco14 from "~/assets/images/map_bi/point/ico14.png"; +import pointIco15 from "~/assets/images/map_bi/point/ico15.png"; +import pointIco16 from "~/assets/images/map_bi/point/ico16.png"; +import pointIco17 from "~/assets/images/map_bi/point/ico17.png"; +import pointIco19 from "~/assets/images/map_bi/point/ico19.png"; +import pointIco30 from "~/assets/images/map_bi/point/ico30.png"; +import pointIco31 from "~/assets/images/map_bi/point/ico31.png"; +import pointIco32 from "~/assets/images/map_bi/point/ico32.png"; +import pointIco33 from "~/assets/images/map_bi/point/ico33.png"; + +export const branchOfficeUtilsList = [ + { + label: "重点作业", + type: "danger", + list: [ + { + label: "动火作业", + type: "hotWork", + check: false, + mapIcon: pointIco9, + }, + { + label: "受限空间作业", + type: "confinedSpace", + check: false, + mapIcon: pointIco10, + }, + { + label: "临时用电作业", + type: "electricity", + check: false, + mapIcon: pointIco11, + }, + { + label: "高处作业", + type: "highWork", + check: false, + mapIcon: pointIco12, + }, + { + label: "断路作业", + type: "cutRoad", + check: false, + mapIcon: pointIco13, + }, + { + label: "动土作业", + type: "breakGround", + check: false, + mapIcon: pointIco14, + }, + { + label: "吊装作业", + type: "hoisting", + check: false, + mapIcon: pointIco15, + }, + { + label: "盲板抽堵作业", + type: "blindBoard", + check: false, + mapIcon: pointIco16, + }, + { + label: "摄像头", + check: false, + type: "camera", + mapIcon: pointIco3, + }, + ], + }, + { + label: "口门门禁", + type: "door", + list: [ + { + label: "口门", + check: false, + mapIcon: pointIco1, + type: "car", + }, + { + label: "人员", + check: false, + mapIcon: pointIco33, + type: "person", + }, + { + label: "车辆", + check: false, + mapIcon: pointIco2, + type: "car", + }, + { + label: "人员闸机", + check: false, + type: "personMachine", + }, + { + label: "车辆闸机", + check: false, + type: "carMachine", + }, + { + label: "摄像头", + check: false, + type: "camera", + mapIcon: pointIco3, + }, + ], + }, + { + label: "消防安全", + type: "fire", + list: [ + { + label: "消防救援队", + check: false, + mapIcon: pointIco4, + type: "xfjyd01", + }, + { + label: "消防控制室", + check: false, + type: "xfkzs01", + mapIcon: pointIco5, + }, + { + label: "消防泵房", + check: false, + type: "xfbf01", + mapIcon: pointIco6, + }, + { + label: "消防水源", + check: false, + type: "xfsy01", + mapIcon: pointIco7, + }, + { + label: "消防点位", + check: false, + type: "point", + mapIcon: pointIco8, + }, + { + label: "报警设备", + check: false, + type: "alarm", + mapIcon: pointIco32, + }, + ], + }, + { + label: "人员定位", + type: "people", + list: [ + { + label: "人员定位", + check: false, + type: "peoplePosition", + }, + { + label: "人员轨迹", + check: false, + type: "peopleTrajectory", + }, + ], + }, + { + label: "气象监测", + type: "weather", + list: [ + { + label: "气象站", + type: "293187ddfd984c9ab3fd716aef58da0e", + check: false, + mapIcon: pointIco17, + }, + { + label: "风速站", + type: "2da29f00852a4653ba3e760b9de57412", + check: false, + mapIcon: pointIco19, + }, + ], + }, + { + label: "重点工程", + type: "project", + list: [ + { + label: "重点工程定位", + check: false, + type: "project", + mapIcon: pointIco30, + }, + { + label: "视频定位", + check: false, + type: "video", + mapIcon: pointIco31, + }, + ], + }, + { + label: "视频巡屏", + type: "camera", + list: [ + { + label: "摄像头", + check: false, + type: "platCamera", + mapIcon: pointIco3, + }, + ], + }, + { + label: "封闭区域", + type: "closedArea", + list: [], + }, +]; diff --git a/src/pages/Container/Map/components/BottomUtils/index.js b/src/pages/Container/Map/components/BottomUtils/index.js index 08bd388..8016d3d 100644 --- a/src/pages/Container/Map/components/BottomUtils/index.js +++ b/src/pages/Container/Map/components/BottomUtils/index.js @@ -1,8 +1,10 @@ -import { useMount } from "ahooks"; -import { useContext, useState } from "react"; -import { CSSTransition } from "react-transition-group"; +import { useContext, useEffect, useState } from "react"; +import { CSSTransition, SwitchTransition } from "react-transition-group"; +import bg7 from "~/assets/images/map_bi/bottom_utils/bg7.png"; +import bg8 from "~/assets/images/map_bi/bottom_utils/bg8.png"; import titleImg from "~/assets/images/map_bi/bottom_utils/title.png"; import titleOnImg from "~/assets/images/map_bi/bottom_utils/title_on.png"; +import { branchOfficeUtilsList } from "~/pages/Container/Map/components/BottomUtils/branchOfficeUtilsList"; import { Context } from "~/pages/Container/Map/js/context"; import mitt from "~/pages/Container/Map/js/mitt"; import { @@ -20,10 +22,9 @@ function BottomUtils(props) { const { currentPort, pureMap, currentBranchOffice, bottomUtilsCurrentIndex } = useContext(Context); const [list, setList] = useState([]); - const [animationKey, setAnimationKey] = useState(0); const initList = () => { - setList(portUtilsList); + setList(!currentBranchOffice ? portUtilsList : branchOfficeUtilsList); }; const resetAllCheck = () => { @@ -35,11 +36,18 @@ function BottomUtils(props) { }); }; - useMount(() => { - setAnimationKey(Math.random()); + useEffect(() => { + mitt.on(initBottomUtilsMittKey, () => { + initList(); + }); + return () => { + mitt.off(initBottomUtilsMittKey); + }; + }, [currentBranchOffice]); + + useEffect(() => { mitt.on(changeBottomUtilsAnimationMittKey, () => { - setAnimationKey(Math.random()); }); mitt.on(resetBottomCurrentIndexMittKey, () => { props.setBottomUtilsCurrentIndex(-1); @@ -48,16 +56,18 @@ function BottomUtils(props) { resetAllCheck(); }); mitt.on(deletePeoplePositionPointMittKey, () => { - // closePeoplePosition(); }); - mitt.on(initBottomUtilsMittKey, () => { - initList(); - }); - }); + + return () => { + mitt.off(changeBottomUtilsAnimationMittKey); + mitt.off(resetBottomCurrentIndexMittKey); + mitt.off(resetAllBottomUtilsCheckMittKey); + mitt.off(deletePeoplePositionPointMittKey); + }; + }, []); const optionsClick = (index) => { props.setBottomUtilsCurrentIndex(bottomUtilsCurrentIndex === index ? -1 : index); - setAnimationKey(Math.random()); mitt.emit(changeContentAnimationKeyMittKey); }; @@ -70,83 +80,134 @@ function BottomUtils(props) { }); }; + const renderBranchOfficeUtils = () => { + return ( +