From 982065c424de46c511a8cadb66660c941ebbfff5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A8=8B=E8=AF=9A?= <1009578407@qq.com>
Date: Tue, 1 Sep 2026 16:00:11 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E8=81=8C=E5=B7=A5=E7=A6=8F=E5=88=A9PC?=
=?UTF-8?q?=E7=AB=AF=E7=B3=BB=E7=BB=9F=E9=BB=98=E8=AE=A4=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=A4=8D=E9=80=89=E6=A1=86=E7=BB=84=E4=BB=B6?=
=?UTF-8?q?=EF=BC=9B=E8=81=8C=E4=BB=A3=E4=BC=9APC=E7=AB=AF=E6=8A=95?=
=?UTF-8?q?=E7=A5=A8=E7=BB=9F=E8=AE=A1=E7=BB=93=E6=9E=9C=E6=98=BE=E7=A4=BA?=
=?UTF-8?q?=E4=B8=8D=E6=AD=A3=E7=A1=AE=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?=
=?UTF-8?q?=EF=BC=9B=E4=BD=93=E8=82=B2=E6=B4=BB=E5=8A=A8h5=E5=88=86?=
=?UTF-8?q?=E5=B7=A5=E4=BC=9A=E6=8A=A5=E5=90=8D=E6=9D=83=E9=99=90=E6=8F=90?=
=?UTF-8?q?=E7=A4=BA=EF=BC=9B=E5=93=81=E7=89=8C=E6=B4=BB=E5=8A=A8h5?=
=?UTF-8?q?=E8=81=94=E7=B3=BB=E4=BA=BA=E5=AD=97=E6=AE=B5=E8=B6=85=E9=95=BF?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E9=80=82=E9=85=8D=E4=BF=AE=E5=A4=8D=EF=BC=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../congress/materials/statistical/index.html | 18 ++++++--
.../welfare/projectMange/welfareOption.js | 16 +++----
.../zhghh5/activity/sports/eventList.html | 35 +++++++++++++++
.../activity/trainSignUp/list/index.html | 44 ++++++++++++++++++-
4 files changed, 100 insertions(+), 13 deletions(-)
diff --git a/src/main/resources/views/platform/zhgh/democratic/congress/materials/statistical/index.html b/src/main/resources/views/platform/zhgh/democratic/congress/materials/statistical/index.html
index 8c98b79b..2b5f8ace 100644
--- a/src/main/resources/views/platform/zhgh/democratic/congress/materials/statistical/index.html
+++ b/src/main/resources/views/platform/zhgh/democratic/congress/materials/statistical/index.html
@@ -109,15 +109,27 @@ layout("/layouts/platform.html"){
if (!value) return []
try {
const data = typeof value === "string" ? JSON.parse(value) : value
- return Array.isArray(data) ? data : []
+ if (Array.isArray(data)) return data
+ if (data && typeof data === "object") {
+ return Object.keys(data).map(item => ({item, result: data[item]}))
+ }
+ return []
} catch (e) {
return []
}
},
+ voteOptionText(item) {
+ const value = item.result || item.vote || item.selected || item.option || item.value
+ if (Array.isArray(value)) return value.join("、")
+ if (value && typeof value === "object") {
+ return value.label || value.name || value.value || "-"
+ }
+ return value || "-"
+ },
voteResultText(value) {
return this.parseVoteResult(value).map(item => {
return (item.item || item.itemName || "投票项") + ":" +
- (item.selected || item.option || item.value || "-")
+ this.voteOptionText(item)
}).join(";")
},
buildSummary(records) {
@@ -125,7 +137,7 @@ layout("/layouts/platform.html"){
records.forEach(record => {
this.parseVoteResult(record.voteResult).forEach(item => {
const itemName = item.item || item.itemName || "投票项"
- const option = item.selected || item.option || item.value || "-"
+ const option = this.voteOptionText(item)
if (!counter[itemName]) counter[itemName] = {}
counter[itemName][option] = (counter[itemName][option] || 0) + 1
})
diff --git a/src/main/resources/views/platform/zhgh/welfare/projectMange/welfareOption.js b/src/main/resources/views/platform/zhgh/welfare/projectMange/welfareOption.js
index 0629aebd..4c2239a7 100644
--- a/src/main/resources/views/platform/zhgh/welfare/projectMange/welfareOption.js
+++ b/src/main/resources/views/platform/zhgh/welfare/projectMange/welfareOption.js
@@ -14,12 +14,11 @@ const welfareOption = {