|
|
@ -682,35 +682,6 @@
|
|
|
|
var workstateObject = workstateData.find(obj => obj.dictValue === workstateToFind);
|
|
|
|
var workstateObject = workstateData.find(obj => obj.dictValue === workstateToFind);
|
|
|
|
var workstateresult = workstateObject ? workstateObject.dictLabel : "";
|
|
|
|
var workstateresult = workstateObject ? workstateObject.dictLabel : "";
|
|
|
|
document.querySelector('#workstate').innerHTML = workstateresult
|
|
|
|
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()
|
|
|
|
function ChangeRowspanHiddenData()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var node;
|
|
|
|
var node;
|
|
|
|