|
@ -43,28 +43,17 @@ |
|
|
<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="1451447721818071040" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> |
|
|
<div data-tname="考勤" data-pid="1451447721818071040" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:50px;width:100%"> |
|
|
<div data-root="p1449944565242142720" style="height:100%;width:100%;"> |
|
|
<div data-root="p1473205892894957568" class="mt-3" style="height: 100%; width: 100%;"> |
|
|
<div class="certificate-box px-2 py-1.5 flex justify-between w-full border border-gray-200 rounded-sm text-sm"> |
|
|
|
|
|
<p class="w-20 flex-shrink-0 text-gray-400">红头文件</p> |
|
|
|
|
|
<div class="certificate py-1 flex justify-end" style="max-width: 100px; max-height: 100px;"> |
|
|
|
|
|
<img style="max-width: 100%; max-height: 100%;" onclick="p1449944565242142720.bigImg()" src="http://test.tall.wiki/staticrec/plan.png" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="img-preview fixed z-10 inset-0 bg-black bg-opacity-60 p-4 flex justify-center items-center" style="display: none;"> |
|
|
|
|
|
<img id="img" src="http://test.tall.wiki/staticrec/plan.png" /> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="student-box mt-2.5 px-2 py-1.5 flex justify-between items-center w-full border border-gray-200 rounded-sm text-sm"> |
|
|
<div class="student-box mt-2.5 px-2 py-1.5 flex justify-between items-center w-full border border-gray-200 rounded-sm text-sm"> |
|
|
<p style="color: #999999;">报名人员</p> |
|
|
<p style="color: #999999;">报名人员</p> |
|
|
<button class="check-btn text-xs text-blue-400 border border-blue-400 rounded-full w-10 h-5" onclick="p1449944565242142720.studentList()">查看</button> |
|
|
<button class="check-btn text-xs text-blue-400 border border-blue-400 rounded-full w-10 h-5" onclick="p1473205892894957568.studentList()">查看</button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mt-2.5 py-1.5 w-full border border-gray-200 rounded-sm"> |
|
|
<div class="mt-2.5 py-1.5 w-full border border-gray-200 rounded-sm"> |
|
|
<div class="select-teacher px-2 flex justify-between items-center w-full text-sm"> |
|
|
<div class="select-teacher px-2 flex justify-between items-center w-full text-sm"> |
|
|
<p class="text-gray-400 truncate w-20">导师委派</p> |
|
|
<p class="text-gray-400 truncate w-20">委派人</p> |
|
|
<div class="flex justify-end rounded-md startBtnBox" style="width: calc(100% - 5rem)" onclick="p1449944565242142720.show()"> |
|
|
<div class="flex justify-end rounded-md startBtnBox" style="width: calc(100% - 5rem)" onclick="p1473205892894957568.show()"> |
|
|
<div class="startBtn mr-1 text-right" style="width: calc(100% - 15px);">请选择委派导师</div> |
|
|
<div class="startBtn mr-1 text-right" style="width: calc(100% - 15px);">请选择委派人</div> |
|
|
<img class="direction-icon" style="width: 15px;" src="https://www.tall.wiki/staticrec/icon/down.svg" /> |
|
|
<img class="direction-icon" style="width: 15px;" src="https://www.tall.wiki/staticrec/icon/down.svg" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -75,7 +64,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="selected-teacher mt-2.5 p-2 border border-gray-200 rounded-sm w-full text-sm" style="display: none;"> |
|
|
<div class="selected-teacher mt-2.5 p-2 border border-gray-200 rounded-sm w-full text-sm" style="display: none;"> |
|
|
<p class="mb-1" style="color: #999999;">导师委派</p> |
|
|
<p class="mb-1" style="color: #999999;">委派信息</p> |
|
|
<div class="flex justify-between rounded-md leading-7"> |
|
|
<div class="flex justify-between rounded-md leading-7"> |
|
|
<div class="mr-1">导师</div> |
|
|
<div class="mr-1">导师</div> |
|
|
<div class="">未接受</div> |
|
|
<div class="">未接受</div> |
|
@ -92,21 +81,13 @@ |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<div class="mt-4 flex justify-center items-center w-full text-sm"> |
|
|
<div class="mt-4 flex justify-center items-center w-full text-sm"> |
|
|
<button class="border border-blue-500 bg-blue-500 text-white rounded-sm" style="width: 45%; height: 34px;" onclick="p1449944565242142720.release()">发布</button> |
|
|
<button class="border border-blue-500 bg-blue-500 text-white rounded-sm" style="width: 45%; height: 34px;" onclick="p1473205892894957568.release()">提交</button> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
|
document.querySelector('.img-preview').onclick = function(e){ |
|
|
var p1473205892894957568 = { |
|
|
e = window.event || e; |
|
|
|
|
|
let parentApp = document.getElementById('img'); |
|
|
|
|
|
if(!parentApp.contains(e.target)){ |
|
|
|
|
|
document.querySelector('.img-preview').style.display = 'none'; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var p1449944565242142720 = { |
|
|
|
|
|
token: '', |
|
|
token: '', |
|
|
projectId: '', |
|
|
projectId: '', |
|
|
roleId: '', |
|
|
roleId: '', |
|
@ -118,7 +99,7 @@ |
|
|
selectedTeachers: [], // 被选中的导师数组 |
|
|
selectedTeachers: [], // 被选中的导师数组 |
|
|
|
|
|
|
|
|
init() { |
|
|
init() { |
|
|
this.dom = document.querySelector("div[data-root=p1449944565242142720]"); |
|
|
this.dom = document.querySelector("div[data-root=p1473205892894957568]"); |
|
|
var domBox = this.dom.parentNode; |
|
|
var domBox = this.dom.parentNode; |
|
|
var title = this.dom.querySelector('.title'); |
|
|
var title = this.dom.querySelector('.title'); |
|
|
|
|
|
|
|
@ -141,7 +122,7 @@ |
|
|
const { success, code, data, msg } = res; |
|
|
const { success, code, data, msg } = res; |
|
|
if (success && code === 200) { |
|
|
if (success && code === 200) { |
|
|
that.token = data.token; |
|
|
that.token = data.token; |
|
|
// 查询培训计划是否待审核 |
|
|
// 查询培训计划是否发布 |
|
|
that.getTrainPlan() |
|
|
that.getTrainPlan() |
|
|
// 委派导师列表 |
|
|
// 委派导师列表 |
|
|
that.getTeacherList() |
|
|
that.getTeacherList() |
|
@ -189,15 +170,13 @@ |
|
|
|
|
|
|
|
|
that.dom.querySelector('.startBtn').innerHTML = names; |
|
|
that.dom.querySelector('.startBtn').innerHTML = names; |
|
|
} else { |
|
|
} else { |
|
|
that.dom.querySelector('.startBtn').innerHTML = "请选择委派导师"; |
|
|
that.dom.querySelector('.startBtn').innerHTML = "请选择委派人"; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 查询培训计划是否待审核 |
|
|
// 查询培训计划是否发布 |
|
|
getTrainPlan(){ |
|
|
getTrainPlan(){ |
|
|
var that = this; |
|
|
var that = this; |
|
|
// let trainPlan = that.dom.querySelector('.train-release'); |
|
|
|
|
|
// trainPlan.style.display = 'block'; |
|
|
|
|
|
|
|
|
|
|
|
fetch(`https://test.tall.wiki/gateway/sports/training/get`, { |
|
|
fetch(`https://test.tall.wiki/gateway/sports/training/get`, { |
|
|
headers: new Headers({ |
|
|
headers: new Headers({ |
|
@ -216,12 +195,6 @@ |
|
|
const { success, code, data, msg } = res; |
|
|
const { success, code, data, msg } = res; |
|
|
if (success && code === 200) { |
|
|
if (success && code === 200) { |
|
|
that.planId = data.id; |
|
|
that.planId = data.id; |
|
|
that.dom.querySelector('.file-name').innerHTML = data.name; |
|
|
|
|
|
if (data && data.checkStatus === 1) { |
|
|
|
|
|
// trainPlan.style.display = 'block'; |
|
|
|
|
|
} else { |
|
|
|
|
|
// trainPlan.style.display = 'none' |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
} else { |
|
|
console.log('msg: ', msg); |
|
|
console.log('msg: ', msg); |
|
|
} |
|
|
} |
|
@ -261,9 +234,9 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
html += `<li class="teacher-box w-1/4 h-6 text-xs flex items-center" onclick="p1449944565242142720.chooseItem(${i}, ${data[0].id})"> |
|
|
html += `<li class="teacher-box w-1/4 h-6 text-xs flex items-center" onclick="p1473205892894957568.chooseItem(${i}, ${data[i].id})"> |
|
|
<input class="teacher-id mr-1" type="checkbox" ${flag && status !== 2 ? 'checked' : ''} ${status !== 0 ? 'disabled' : ''} value="${data[0].name}" /> |
|
|
<input class="teacher-id mr-1" type="checkbox" ${flag && status !== 2 ? 'checked' : ''} ${status !== 0 ? 'disabled' : ''} value="${data[i].name}" /> |
|
|
<span class="teacher-name" style="height: 13px; line-height: 13px;">${data[0].name}</span> |
|
|
<span class="teacher-name" style="height: 13px; line-height: 13px;">${data[i].name}</span> |
|
|
</li>`; |
|
|
</li>`; |
|
|
} |
|
|
} |
|
|
that.dom.querySelector('.teacher-list').innerHTML = html; |
|
|
that.dom.querySelector('.teacher-list').innerHTML = html; |
|
@ -333,7 +306,7 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 发布 |
|
|
// 提交 |
|
|
release() { |
|
|
release() { |
|
|
let that = this; |
|
|
let that = this; |
|
|
|
|
|
|
|
@ -389,19 +362,6 @@ |
|
|
// }); |
|
|
// }); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 预览 |
|
|
|
|
|
bigImg() { |
|
|
|
|
|
document.querySelector('.img-preview').style.display = 'flex'; |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 查看红头文件 |
|
|
|
|
|
checkFile() { |
|
|
|
|
|
const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
|
|
|
|
const uId = this.dom.parentNode.getAttribute('data-uid'); |
|
|
|
|
|
const rId = this.dom.parentNode.getAttribute('data-rid'); |
|
|
|
|
|
location.href = `https://test.tall.wiki/ts/file?pid=${pId}&uid=${uId}&rid=${rId}` |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 跳转详情 |
|
|
// 跳转详情 |
|
|
studentList() { |
|
|
studentList() { |
|
|
const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
|
const pId = this.dom.parentNode.getAttribute('data-pid'); |
|
@ -410,7 +370,7 @@ |
|
|
location.href = `https://test.tall.wiki/ts/peopleList?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
location.href = `https://test.tall.wiki/ts/peopleList?pid=${pId}&uid=${uId}&rid=${rId}`; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
p1449944565242142720.init() |
|
|
p1473205892894957568.init() |
|
|
</script> |
|
|
</script> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|