From 731b55ff0fd2461bfba1f5c636b81291f3a5ac59 Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Tue, 16 Apr 2024 16:36:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E4=BA=BA=E5=91=98=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/user/userexamine/examineprint.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examineprint.html b/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examineprint.html index 5f1440d..0fea349 100644 --- a/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examineprint.html +++ b/ruoyi-admin/src/main/resources/templates/system/user/userexamine/examineprint.html @@ -1124,7 +1124,22 @@ document.querySelector('.date').innerHTML = '日期:' + new Date().toLocaleDateString().replace(/\//g, '-') document.querySelector('#politics').innerHTML = document.querySelector('#politics').innerHTML === '1' ? '党员' : document.querySelector('#politics').innerHTML === '2' ? '团员' : '群众'; document.querySelector('#sex').innerHTML = document.querySelector('#sex').innerHTML === '0' ? '男' : '女' - + var postHtml = document.querySelector("#posts").innerHTML; + const dataArray = postHtml.split("], "); + const postsArray = dataArray.map(item => { + const trimmedItem = item.replace("[", "").replace("]", "").trim(); + const lines = trimmedItem.split("\n"); + const postObject = {}; + lines.forEach(line => { + const [key, value] = line.split("="); + if (key && value) { + postObject[key.trim()] = value.trim(); + } + }); + return postObject; + }); + document.querySelector("#posts").innerHTML = '' + document.querySelector("#posts").innerHTML = postsArray[0].postName !== undefined ? postsArray[0].postName : '' function ChangeRowspanHiddenData() { var node;