v24 第 9 批:名册九条(分组按钮/加入名册/生日月日/地址四级/千人性能/拖动修复/删除人员/返回名册/Semi DatePicker)

- #131 名册卡片加「分组」按钮(details+radio,显示当前分组,选中即改)
- #132 修复「从已有人里加入名册」无反应
- #133 生日只显示月和日(阳历 MM-DD / 农历中文名),PersonQuery::birthdaysOf 取代 birthdayOf
- #134 地址结构化为 国家/省/市/区+详细:regions 表(3429 行全国区划)+ Region.php +
  ?r=regions 级联接口 + 表单 .addr-grid + 老地址回填(Schema v16)
- #135 千人名册性能:.person content-visibility:auto + 名册页 ob_gzhandler
  (实测 服务端 1.15s/3.8MB → 0.17s/87KB;客户端导航→load 1.35s → 0.37s)
- #136 拖动排序改 Pointer Events(Chrome 下 HTML5 DnD 在 DOM 变动时断)
- #137 个人详情页底部「删除人员」
- #138 编辑资料页加「返回名册」
- #139 所有日期选择换 Semi Design DatePicker(渐进增强:原生四字段保 POST 契约,
  懒加载 vendor semi UMD,值回写原字段;工作经历 type=month 一并升级;宣纸主题对齐)

验证:e2e 785/0、batch9 37/0、upgrade 126/0、picker 28/0、mobile 688/0、interact 97/0、
batch_e 91/0、import 21/0、douban 22/0、drag 5/0、semi-integrate 28/0、semi-probe 17/0、
geom 5/5;部署后线上自检 16/16(含 4 个 semi 资源 200 + regions 路由)。
This commit is contained in:
2026-10-04 08:56:40 +08:00
parent 864e281265
commit 52cc1ecccb
19 changed files with 1629 additions and 154 deletions
+16 -2
View File
@@ -209,8 +209,22 @@ $shortKind = \App\Birthday::KINDS;
<dd><?= e(trim((string)$p['org'] . (($p['org'] ?? '') !== '' && ($p['title'] ?? '') !== '' ? ' · ' : '') . (string)$p['title'])) ?></dd>
</div>
<?php endif; ?>
<?php if (!empty($p['address'])): ?>
<div class="kv-row"><dt>住址</dt><dd><?= e($p['address']) ?></dd></div>
<?php /* 用户 2026-10-04 第 4 条:地址是**结构化的**五级。
显示时把「国家 + 省 + 市 + 区」拼成一行前缀、详细地址接在后面;
一级都没填就退化成原来那一整串(老数据/只填了详细地址的情况)。
⚠️ 没有详细地址时**只显示到区**(不再跟着一个空的「·」)。 */ ?>
<?php
$addrHead = implode(' ', array_filter([
(string)($p['addr_country'] ?? ''),
(string)($p['addr_province'] ?? ''),
(string)($p['addr_city'] ?? ''),
(string)($p['addr_district'] ?? ''),
], static fn($s) => trim($s) !== ''));
$addrTail = trim((string)($p['address'] ?? ''));
$addrFull = $addrHead !== '' ? $addrHead . ($addrTail !== '' ? ' ' . $addrTail : '') : $addrTail;
?>
<?php if ($addrFull !== ''): ?>
<div class="kv-row"><dt>住址</dt><dd><?= e($addrFull) ?></dd></div>
<?php endif; ?>
<?php foreach (($contacts['address'] ?? []) as $r): ?>
<div class="kv-row">