diff --git a/index.html b/index.html index be16edc..3662e6e 100644 --- a/index.html +++ b/index.html @@ -100,6 +100,7 @@ var p1432643387798069248 = { token: '', projectId: '', + roleId: '', dom: '', lists: [], currentIndex: '', @@ -116,6 +117,7 @@ // 获取父元素携带的参数 var userId = domBox.getAttribute("data-uid"); this.projectId = domBox.getAttribute("data-pid"); + this.roleId = domBox.getAttribute("data-rid"); // 初始化的时候 获取token this.getTokenByUserId(userId); }, @@ -150,7 +152,7 @@ let d = new Date() let startTime = new Date(d).getTime() 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'; fetch(url, {