# 特色区域查看客户功能实施计划 > **For Claude:** REQUIRED SUB-SKILL: Use superpowers:executing-plans to implement this plan task-by-task. **目标:** 在特色区域详情窗口添加"查看客户"图标按钮,复用现有的 customer-modal 组件,实现客户列表查看功能。 **架构:** 组件复用架构 - BMapPolygonEditor.vue 引入 CustomerModal.vue,通过 refs 调用模态框的 onOpen() 方法。 **技术栈:** Vue 2.x, Element UI, 若依框架 **设计文档:** `docs/plans/2026-02-28-featured-area-customer-view-design.md` --- ## 任务 1: 引入 CustomerModal 组件 **文件:** - 修改: `ruoyi-ui/src/map/BMapPolygonEditor.vue:20-30`(import 区域) **步骤 1: 在 script 标签内添加 import 语句** 在第22行(MenuEdit 导入语句之后)添加: ```javascript import CustomerModal from "@/views/grid/map/draw-area/customer-modal.vue" ``` **步骤 2: 在 components 中注册组件** 在第26-30行的 components 对象中添加 CustomerModal: ```javascript components: { MenuEdit, BMapPolygonEditor, MenuEdit, CustomerModal, // 新增 }, ``` **步骤 3: 验证 import 路径正确** 运行前端项目验证无报错: ```bash cd ruoyi-ui npm run dev ``` 预期: 浏览器控制台无 "Failed to mount component" 错误 **步骤 4: 提交代码** ```bash git add ruoyi-ui/src/map/BMapPolygonEditor.vue git commit -m "feat(featured-areas): 引入 CustomerModal 组件" ``` --- ## 任务 2: 在 template 中添加组件引用 **文件:** - 修改: `ruoyi-ui/src/map/BMapPolygonEditor.vue:270-275`(template 末尾) **步骤 1: 在 template 末尾添加组件标签** 在第273行(`` 之后,`