|
|
@ -42,18 +42,18 @@ |
|
|
|
<button class="bg-blue-500 py-2 px-5 rounded text-white" onclick="alert('hello')">测试组建1</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:5.375rem;width:100%"> |
|
|
|
<div data-tname="考勤" data-pid="1451447721818071040" data-uid="1217647686598135808" data-rid="rid333" data-tid="tid444" data-did="did555" style="height:5.375rem;width:100%"> |
|
|
|
<div data-root="p1449944565028233216" style="height:100%;width:100%;"> |
|
|
|
<div class="train-plan-check"> |
|
|
|
<div class="title"></div> |
|
|
|
<div class="flex justify-between"> |
|
|
|
<div class="text-sm">培训计划审核</div> |
|
|
|
<div class="train-pass-btn text-sm flex"> |
|
|
|
<button class="mr-2 text-sm text-gray-400 border border-gray-400 rounded w-12 h-6" onclick="p1449944565028233216.showReject()">驳回</button> |
|
|
|
<button class="bg-blue-500 text-sm rounded w-12 h-6 text-white" onclick="p1449944565028233216.submit(1)">通过</button> |
|
|
|
<button class="mr-2 px-2.5 h-6 text-sm text-gray-400 border border-gray-400 rounded" onclick="p1449944565028233216.showReject()">驳回</button> |
|
|
|
<button class="px-2.5 h-6 bg-blue-500 text-sm rounded text-white" onclick="p1449944565028233216.submit(1)">通过</button> |
|
|
|
</div> |
|
|
|
<div class="text-sm train-pass-status" style="display: none;"> |
|
|
|
<span class="text-green-500 pass-text">已通过</span> |
|
|
|
<span class="pass-text">已通过</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mt-2.5 px-2 flex justify-between items-center w-full h-8 border border-gray-200 rounded-sm text-sm"> |
|
|
@ -83,18 +83,16 @@ |
|
|
|
<div class="flex justify-between"> |
|
|
|
<div class="text-sm">培训计划审核</div> |
|
|
|
<div class="text-sm"> |
|
|
|
<span class="text-red-500 reject-text">已驳回</span> |
|
|
|
<span class="text-yellow-500 reject-text">已驳回</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mt-2.5 px-2 flex justify-between items-center w-full h-8 border border-gray-200 rounded-sm text-sm"> |
|
|
|
<p class="file-name text-gray-400 truncate" style="width: calc(100vw - 9rem)">山西跳协**培训红头文件</p> |
|
|
|
<p class="file-name-2 text-gray-400 truncate" style="width: calc(100vw - 9rem)"></p> |
|
|
|
<button class="text-xs text-blue-400 border border-blue-400 rounded-full w-10 h-5" onclick="p1449944565028233216.checkFile()">查看</button> |
|
|
|
</div> |
|
|
|
<div class="border-2 w-full mt-2.5 flex justify-between p-2 text-sm reason-box"> |
|
|
|
<p class="w-20 flex-shrink-0" style="color: #999999;">驳回原因</p></p> |
|
|
|
<div> |
|
|
|
这里是驳回原因这里是驳回原因这里是驳回原因这里是驳回原因 |
|
|
|
</div> |
|
|
|
<div class="reason-box"></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
@ -180,25 +178,31 @@ |
|
|
|
that.trainPlanReject.style.display = 'none'; |
|
|
|
} else { |
|
|
|
that.dom.querySelector('.file-name').innerHTML = data.name; |
|
|
|
that.dom.querySelector('.file-name-2').innerHTML = data.name; |
|
|
|
that.planId = data.id; |
|
|
|
|
|
|
|
let pass = that.dom.querySelector('.train-pass-status'); |
|
|
|
let btns = that.dom.querySelector('.train-pass-btn'); |
|
|
|
|
|
|
|
if (data.checkStatus === 0) { |
|
|
|
// that.trainPlanHide.style.display = 'none'; |
|
|
|
// that.trainPlanCheck.style.display = 'block'; |
|
|
|
that.trainPlanReject.style.display = 'none'; |
|
|
|
} else if (data.checkStatus === 1 && data.checkStatus === 2) { |
|
|
|
// that.trainPlanHide.style.display = 'none'; |
|
|
|
// that.trainPlanCheck.style.display = 'none'; |
|
|
|
that.trainPlanReject.style.display = 'block'; |
|
|
|
|
|
|
|
var trainPlanStatusReject = that.dom.querySelector('.reject-text'); |
|
|
|
var trainPlanStatusPass = that.dom.querySelector('.pass-text'); |
|
|
|
pass.style.display = 'none'; |
|
|
|
btns.style.display = 'block'; |
|
|
|
} else if (data.checkStatus === 1 || data.checkStatus === 2) { |
|
|
|
that.trainPlanHide.style.display = 'none'; |
|
|
|
|
|
|
|
if (data.checkStatus === 1) { |
|
|
|
trainPlanStatusReject.style.display = 'none'; |
|
|
|
trainPlanStatusPass.style.display = 'block'; |
|
|
|
that.trainPlanCheck.style.display = 'block'; |
|
|
|
that.trainPlanReject.style.display = 'none'; |
|
|
|
pass.style.display = 'block'; |
|
|
|
btns.style.display = 'none'; |
|
|
|
} else { |
|
|
|
trainPlanStatusReject.style.display = 'block'; |
|
|
|
trainPlanStatusPass.style.display = 'none'; |
|
|
|
that.dom.querySelector('.reason-box').innerHTML = data.rejectCause; |
|
|
|
that.trainPlanCheck.style.display = 'none'; |
|
|
|
that.trainPlanReject.style.display = 'block'; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -261,6 +265,10 @@ |
|
|
|
} else { |
|
|
|
trainPlanReject.style.display = 'none'; |
|
|
|
// trainPlanCheck.style.display = 'block'; |
|
|
|
let pass = that.dom.querySelector('.train-pass-status'); |
|
|
|
let btns = that.dom.querySelector('.train-pass-btn'); |
|
|
|
pass.style.display = 'block'; |
|
|
|
btns.style.display = 'none'; |
|
|
|
} |
|
|
|
} else { |
|
|
|
console.log('msg: ', msg); |
|
|
|