Browse Source

Merge branch 'tall-check-work' of https://dd.tall.wiki/gitea/wally/plugin-templete into tall-check-work

21-tall-login
song 4 years ago
parent
commit
8dd9dbeb65
  1. 4
      index.html

4
index.html

@ -100,6 +100,7 @@
var p1432643387798069248 = { var p1432643387798069248 = {
token: '', token: '',
projectId: '', projectId: '',
roleId: '',
dom: '', dom: '',
lists: [], lists: [],
currentIndex: '', currentIndex: '',
@ -116,6 +117,7 @@
// 获取父元素携带的参数 // 获取父元素携带的参数
var userId = domBox.getAttribute("data-uid"); var userId = domBox.getAttribute("data-uid");
this.projectId = domBox.getAttribute("data-pid"); this.projectId = domBox.getAttribute("data-pid");
this.roleId = domBox.getAttribute("data-rid");
// 初始化的时候 获取token // 初始化的时候 获取token
this.getTokenByUserId(userId); this.getTokenByUserId(userId);
}, },
@ -150,7 +152,7 @@
let d = new Date() let d = new Date()
let startTime = new Date(d).getTime() let startTime = new Date(d).getTime()
const params = JSON.stringify({ const params = JSON.stringify({
param: { projectId: that.projectId, memberIdList: [], startTime, endTime: startTime } param: { projectId: that.projectId,roleId: that.roleId, memberIdList: [], startTime, endTime: startTime }
}); });
var url = 'https://www.tall.wiki/gateway/defaultwbs/clock/query'; var url = 'https://www.tall.wiki/gateway/defaultwbs/clock/query';
fetch(url, { fetch(url, {

Loading…
Cancel
Save