From 9a60f8bba90e54a8ff192c93c829e2dbf63a943a Mon Sep 17 00:00:00 2001 From: dsh <15569653818@163.com> Date: Wed, 17 Apr 2024 15:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=89=E5=AF=86=E4=BA=BA=E5=91=98=E7=A6=BB?= =?UTF-8?q?=E8=81=8C,=E5=AE=A1=E6=A0=B8=E3=80=82=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/system/leave/leaveprint.html | 29 ------------------- 1 file changed, 29 deletions(-) diff --git a/ruoyi-admin/src/main/resources/templates/system/leave/leaveprint.html b/ruoyi-admin/src/main/resources/templates/system/leave/leaveprint.html index 7aefbe7..40db844 100644 --- a/ruoyi-admin/src/main/resources/templates/system/leave/leaveprint.html +++ b/ruoyi-admin/src/main/resources/templates/system/leave/leaveprint.html @@ -682,35 +682,6 @@ var workstateObject = workstateData.find(obj => obj.dictValue === workstateToFind); var workstateresult = workstateObject ? workstateObject.dictLabel : ""; document.querySelector('#workstate').innerHTML = workstateresult - // document.querySelector('#birthday').innerHTML = formattedDate - - // document.querySelector('.revalidate').innerHTML = new Date().toLocaleDateString().replace(/\//g, '-') - // document.querySelector('.liquidate').innerHTML ='离职日期:' + new Date().toLocaleDateString().replace(/\//g, '-') - // var date = new Date(document.querySelector('#birthday').innerHTML); - // var year = date.getFullYear(); - // var month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从 0 开始,需要加 1 - // var day = String(date.getDate()).padStart(2, '0'); // 日可能是个位数,需要补零 - // var formattedDate = year + '-' + month + '-' + day; - // document.querySelector('#birthday').innerHTML = formattedDate - - // 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;