Browse Source

调整: 修复宿舍内务检查列表页顶部按钮样式

1. 列表页移除 Vant 图标依赖,日期筛选和右上角增加按钮改用文字及 CSS 形状,避免小程序 WebView 图标字体缺失导致显示不全和乱码。

2. 增加顶部按钮最小尺寸、自动高度、换行和溢出约束,日期按钮支持长日期文本完整显示。

3. 已发布到正式环境两个列表页路径并校验线上内容;本地保留产物哈希为 27c37e250a6bcec07cc2c94f9e01372fe645a03ec5363288d961609d4157def6。
“gaohp” 2 months ago
parent
commit
a5c2fac1db

+ 127 - 0
docs/17_升旗礼_宿舍内务检查小程序开发/2026-09-20_宿舍内务检查列表页与历史学员快照实施方案.md

@@ -1427,3 +1427,130 @@ PC 端 `SsnwjcServ.excelSubmAdd()` 本次不增加一行式源码中的快照调
 5. GRJJ.BJM/GRJJ.FWM 切换。
 6. 生产列表页、详情页和新增页发布。
 ```
+
+---
+
+## 22. 2026-09-20 生产执行记录
+
+### 22.1 数据库
+
+已执行:
+
+```text
+1. 创建备份表:
+   SSNWJC_BAK_20260920       10 条
+   SSNWJCMX_BAK_20260920    100 条
+   CDSY_BAK_20260920       5910 条
+
+2. 创建:
+   SSNWJCXY
+   SSNWJCXYID
+   PK_SSNWJCXY
+   UK_SSNWJCXY_JC_RY
+   FK_SSNWJC_SSNWJCXY
+   IDX_SSNWJC_JC_DATE
+   IDX_CDSY_CD_TIME
+
+3. 回填:
+   SSNWJCID=10 -> 9 条
+   SSNWJCID=11 -> 9 条
+   SSNWJCID=12 -> 8 条
+
+4. 重复检查:
+   SSNWJCID + RYID 重复行 = 0
+
+5. 约束状态:
+   PK、UK、FK 全部 ENABLED
+```
+
+### 22.2 应用
+
+已发布:
+
+```text
+Pod:tomcat-pms-5f7f695867-dzqvt
+class:
+  biz.xyss.SsnwjcMpServ
+  biz.xyss.SsnwjcU
+  base.po.SsnwjcxyPo
+
+页面:
+  /page/mp_ssnwjc_list.html
+  /page/mp/mp_ssnwjc_list.html
+  /page/mp/mp_ssnwjc_record_detail.html
+  /page/mp_ssnwjc_inp.html
+  /page/mp/mp_ssnwjc_inp.html
+
+配置:
+  cfg/biz/xyss/ssnwjc.serv.xml
+  WEB-INF/cfg/ser/servMap
+
+备份:
+  ROOT/_codex_backup/ssnwjc_list_20260920_1606
+```
+
+### 22.3 权限和快捷入口
+
+已更新:
+
+```text
+GWID=1015504
+  FWC 已加入 ssnwjc_mpList、ssnwjc_mpPlay
+
+GRJJID=106145
+  BJM = mp_ssnwjc_list
+  FWM = ssnwjc_mpList
+  DXM = ssnwjc
+```
+
+### 22.4 接口验证
+
+使用测试宿管账号 `cssg1` 登录后:
+
+```text
+ssnwjc_mpList
+  jcsjDate=2026-09-18
+  total=3
+  hasMore=false
+
+返回记录:
+  SSNWJCID=12,三区-101,25中德SGAVE班,89 分
+  SSNWJCID=11,四区-201,24会计3升大班,100 分
+  SSNWJCID=10,四区-201,24室内冲本班,100 分
+
+ssnwjc_mpPlay
+  ssnwjcid=11
+  房间解析为四区-201
+  评分明细 10 条
+  历史名单 9 条
+  rosterSource=snapshot
+```
+
+静态页面验证:
+
+```text
+/page/mp_ssnwjc_list.html                 200
+/page/mp/mp_ssnwjc_list.html              200
+/page/mp/mp_ssnwjc_record_detail.html     200
+/page/mp/mp_ssnwjc_inp.html               200
+```
+
+生产日志已出现:
+
+```text
+serviceName: ssnwjc_mpList
+ssnwjc_mpList:biz.xyss.SsnwjcMpServ...listByA
+serviceName: ssnwjc_mpPlay
+ssnwjc_mpPlay:biz.xyss.SsnwjcMpServ...playByA
+```
+
+日志中的 `eachBmid/bpmParam` 空指针是平台既有启动提示,后续日志明确说明可忽略,与本次功能无关。
+
+### 22.5 现场验收建议
+
+1. 退出小程序账号后重新登录,或刷新“我的”页,让快捷入口重新加载。
+2. 点击“宿舍内务检查”,应进入列表页。
+3. 默认今天为空时,切换到 `2026-09-18` 应看到 3 条记录。
+4. 点击记录 10、11、12,应进入只读详情页。
+5. 点击右上角加号,应进入原检查录入页。
+6. 新提交一条记录并返回列表,应能查到新记录和对应学员快照。

+ 49 - 9
web/page/mp/mp_ssnwjc_list.html

@@ -50,8 +50,9 @@
       display: flex;
       align-items: center;
       justify-content: space-between;
+      gap: 12px;
       min-height: 52px;
-      padding: 0 14px;
+      padding: 6px 14px;
     }
 
     .header-title {
@@ -65,6 +66,7 @@
 
     .add-button {
       display: inline-flex;
+      flex: 0 0 36px;
       align-items: center;
       justify-content: center;
       width: 36px;
@@ -74,25 +76,63 @@
       background: var(--green);
       border: 0;
       border-radius: 50%;
-      font-size: 22px;
-      line-height: 1;
+      font-size: 28px;
+      line-height: 36px;
+      appearance: none;
+      -webkit-appearance: none;
+    }
+
+    .add-symbol {
+      display: block;
+      height: 36px;
+      line-height: 34px;
     }
 
     .filter-bar {
-      padding: 0 14px 10px;
+      display: flex;
+      align-items: center;
+      padding: 2px 14px 10px;
     }
 
     .date-button {
       display: inline-flex;
       align-items: center;
       gap: 6px;
-      height: 34px;
+      max-width: 100%;
+      min-height: 34px;
+      height: auto;
       padding: 0 12px;
       color: #4d5563;
       background: #f7f8fa;
       border: 1px solid var(--line);
       border-radius: 17px;
       font-size: 14px;
+      line-height: 1.2;
+      white-space: nowrap;
+      appearance: none;
+      -webkit-appearance: none;
+    }
+
+    .date-label {
+      color: var(--muted);
+      font-size: 13px;
+    }
+
+    .date-value {
+      min-width: 0;
+      overflow: hidden;
+      text-overflow: ellipsis;
+      white-space: nowrap;
+      font-weight: 600;
+    }
+
+    .date-arrow {
+      flex: 0 0 auto;
+      width: 0;
+      height: 0;
+      border-top: 5px solid #8b95a5;
+      border-right: 4px solid transparent;
+      border-left: 4px solid transparent;
     }
 
     .list-wrap {
@@ -222,14 +262,14 @@
     <div class="header-main">
       <div class="header-title">宿舍内务检查</div>
       <button class="add-button" type="button" @click="goAdd">
-        <van-icon name="plus"/>
+        <span class="add-symbol">+</span>
       </button>
     </div>
     <div class="filter-bar">
       <button class="date-button" type="button" @click="showCalendar = true">
-        <van-icon name="calendar-o"/>
-        <span>{{ selectedDate || '选择日期' }}</span>
-        <van-icon name="arrow-down"/>
+        <span class="date-label">日期</span>
+        <span class="date-value">{{ selectedDate || '选择日期' }}</span>
+        <span class="date-arrow"></span>
       </button>
     </div>
   </div>