"use strict"; // 管理员模块 - 专门处理管理员相关功能 Object.defineProperty(exports, "__esModule", { value: true }); exports.AdminModule = void 0; class AdminModule { constructor(_pageContext, dataModule) { this.dataModule = dataModule; } /** * 处理管理员标记点点击 */ onAdminMarkerClick(admin, position) { console.log('管理员被点击:', admin); // 显示管理员详情面板 this.showAdminPanel(admin, position); } /** * 显示管理员详情面板 */ showAdminPanel(admin, _position) { console.log('显示管理员详情面板:', admin); // 设置当前管理员 this.dataModule.setCurrentDeliveryPerson(admin); // 显示面板 this.dataModule.toggleDeliveryPersonModal(true, 'bottom'); } /** * 隐藏管理员详情面板 */ hideAdminPanel() { this.dataModule.toggleDeliveryPersonModal(false); this.dataModule.setCurrentDeliveryPerson(null); } /** * 展开管理员详情面板 */ expandAdminPanel() { this.dataModule.toggleDeliveryPersonModal(true, 'full'); } /** * 收起管理员详情面板 */ collapseAdminPanel() { this.dataModule.toggleDeliveryPersonModal(true, 'bottom'); } /** * 获取管理员信息摘要 */ getAdminSummary(admin) { return `${admin.name || '管理员'} - ${admin.role || 'ADMIN'}`; } /** * 清理资源 */ cleanup() { console.log('清理管理员模块资源'); } } exports.AdminModule = AdminModule;