|
@ -43,9 +43,9 @@ |
|
|
<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="1433332016270811136" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> |
|
|
<div data-tname="考勤" data-pid="1433332016270811136" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> |
|
|
<div data-root="p1432643387798069248" style="height:100%;width:100%;"> |
|
|
<div data-root="p1449927427387301888" style="height:100%;width:100%;"> |
|
|
<div class="title"></div> |
|
|
<div class="title"></div> |
|
|
<div class="flex justify-between mt-4"> |
|
|
<div class="flex justify-between"> |
|
|
<div class="text-sm">制定培训计划</div> |
|
|
<div class="text-sm">制定培训计划</div> |
|
|
<div id="submitProject" class="nightClockBtn bg-blue-500 text-xs rounded-md py-1 px-3 text-white">提交</div> |
|
|
<div id="submitProject" class="nightClockBtn bg-blue-500 text-xs rounded-md py-1 px-3 text-white">提交</div> |
|
|
</div> |
|
|
</div> |
|
@ -65,7 +65,7 @@ |
|
|
submitProject.onclick=function(){ |
|
|
submitProject.onclick=function(){ |
|
|
this.innerHTML='待审核' |
|
|
this.innerHTML='待审核' |
|
|
} |
|
|
} |
|
|
var p1432643387798069248 = { |
|
|
var p1449927427387301888 = { |
|
|
token: '', |
|
|
token: '', |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
roleId: '', |
|
|
roleId: '', |
|
@ -78,7 +78,7 @@ |
|
|
id: '', // 记录id |
|
|
id: '', // 记录id |
|
|
|
|
|
|
|
|
init() { |
|
|
init() { |
|
|
this.dom = document.querySelector("div[data-root=p1432643387798069248]"); |
|
|
this.dom = document.querySelector("div[data-root=p1449927427387301888]"); |
|
|
var domBox = this.dom.parentNode; |
|
|
var domBox = this.dom.parentNode; |
|
|
var title = this.dom.querySelector('.title'); |
|
|
var title = this.dom.querySelector('.title'); |
|
|
|
|
|
|
|
@ -102,7 +102,24 @@ |
|
|
if (success && code === 200) { |
|
|
if (success && code === 200) { |
|
|
that.token = data.token; |
|
|
that.token = data.token; |
|
|
// 查询考勤信息 |
|
|
// 查询考勤信息 |
|
|
that.getClockQuery() |
|
|
that.getTrainPlan() |
|
|
|
|
|
} else { |
|
|
|
|
|
console.log('msg: ', msg); |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getTrainPlan(projectId){ |
|
|
|
|
|
var that = this |
|
|
|
|
|
fetch(`https://www.tall.wiki/gateway/tall/v1.0/training/get?projectId=${projectId}`) |
|
|
|
|
|
.then(function(response) { |
|
|
|
|
|
return response.json(); |
|
|
|
|
|
}) |
|
|
|
|
|
.then(function(res) { |
|
|
|
|
|
const { success, code, data, msg } = res; |
|
|
|
|
|
console.log("res: ", res); |
|
|
|
|
|
if (success && code === 200) { |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('msg: ', msg); |
|
|
console.log('msg: ', msg); |
|
|
} |
|
|
} |
|
@ -117,7 +134,7 @@ |
|
|
location.href = `https://www.tall.wiki/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
location.href = `https://www.tall.wiki/checkwork/?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
p1432643387798069248.init() |
|
|
p1449927427387301888.init() |
|
|
</script> |
|
|
</script> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|