Browse Source

工资汇总

tall-salary-summary
xuesinan 4 years ago
parent
commit
cdfae93e77
  1. 23
      index.html

23
index.html

@ -48,33 +48,30 @@
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button> <button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="p100.show()">测试组建2</button>
<div data-tname="工资条" data-pid="1448173415050780672" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> <div data-tname="工资条" data-pid="1448173415050780672" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%">
<div data-root="p1457912674670354432" class="w-full h-full flex justify-between items-center"> <div data-root="p1458326054384181248" class="w-full h-full flex justify-between items-center">
<div class="title" style="font-size: 14px;"></div> <div class="title" style="font-size: 14px;"></div>
<button style="width: 50px; height: 24px; font-size: 14px; line-height: 24px; background-color: #1890FF; color: #fff; border-radius: 4px;" onclick="p1457912674670354432.jumpDetails(this)">查看</button> <button style="width: 50px; height: 24px; font-size: 14px; line-height: 24px; background-color: #1890FF; color: #fff; border-radius: 4px;" onclick="p1458326054384181248.jumpDetails(this)">查看</button>
</div> </div>
</div> </div>
<script> <script>
var p1457912674670354432 = { (function() {
dom: '', var salary_title = document.querySelector("div[data-root=p1458326054384181248]>div[class=title]");
init() {
this.dom = document.querySelector("div[data-root=p1457912674670354432]");
var title = this.dom.querySelector('.title');
var myDate = new Date(); var myDate = new Date();
var tMonth = myDate.getMonth(); var tMonth = myDate.getMonth();
title.innerHTML = tMonth + 1 + '月份工资表'; if (salary_title) {
}, salary_title.innerHTML = tMonth === 0 ? '12月份工资汇总' : tMonth + '月份工资汇总';
}
})();
var p1458326054384181248 = {
jumpDetails(that) { jumpDetails(that) {
var pId = that.parentNode.parentNode.getAttribute('data-pid'); var pId = that.parentNode.parentNode.getAttribute('data-pid');
var rId = that.parentNode.parentNode.getAttribute('data-rid'); var rId = that.parentNode.parentNode.getAttribute('data-rid');
var uId = that.parentNode.parentNode.getAttribute('data-uid'); var uId = that.parentNode.parentNode.getAttribute('data-uid');
location.href = `https://test.tall.wiki/checkwork/salary/?pid=${pId}&uid=${uId}&rid=${rId}`; location.href = `https://test.tall.wiki/checkwork/salary-summary/?pid=${pId}&uid=${uId}&rid=${rId}`;
} }
} }
p1457912674670354432.init()
</script> </script>
</div> </div>
</div> </div>

Loading…
Cancel
Save