Browse Source

工资汇总

tall-salary-summary
xuesinan 4 years ago
parent
commit
69b68df7a8
  1. 29
      index.html

29
index.html

@ -55,16 +55,29 @@
</div>
<script>
(function() {
var salary_title = document.querySelector("div[data-root=p1458326054384181248]>div[class=title]");
var myDate = new Date();
var tMonth = myDate.getMonth();
if (salary_title) {
salary_title.innerHTML = tMonth === 0 ? '12月份工资汇总' : tMonth + '月份工资汇总';
}
})();
// (function() {
// var salary_title = document.querySelector("div[data-root=p1458326054384181248]>div[class=title]");
// var myDate = new Date();
// var tMonth = myDate.getMonth();
// if (salary_title) {
// salary_title.innerHTML = tMonth === 0 ? '12月份工资汇总' : tMonth + '月份工资汇总';
// }
// })();
var p1458326054384181248 = {
dom: '',
init() {
this.dom = document.querySelector("div[data-root=p1458326054384181248]");
if (this.dom) {
var title = this.dom.querySelector('.title');
var myDate = new Date();
var tMonth = myDate.getMonth();
title.innerHTML = tMonth === 0 ? '12月份工资表' : tMonth + '月份工资表';
}
},
jumpDetails(that) {
var pId = that.parentNode.parentNode.getAttribute('data-pid');
var rId = that.parentNode.parentNode.getAttribute('data-rid');

Loading…
Cancel
Save