Browse Source

审核培训计划

tiaosheng-zx
xuesinan 4 years ago
parent
commit
d4a1415353
  1. 35
      index.html

35
index.html

@ -42,7 +42,7 @@
<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="alert('hello')">测试组建1</button>
<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: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 data-root="p1449944565028233216" style="height:100%;width:100%;">
<div class="train-plan-check" style="display: none;"> <div class="train-plan-check" style="display: none;">
<div class="title"></div> <div class="title"></div>
@ -53,7 +53,7 @@
<button class="px-2.5 h-6 bg-blue-500 text-sm rounded text-white" onclick="p1449944565028233216.submit(1)">通过</button> <button class="px-2.5 h-6 bg-blue-500 text-sm rounded text-white" onclick="p1449944565028233216.submit(1)">通过</button>
</div> </div>
<div class="text-sm train-pass-status" style="display: none;"> <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> </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"> <div class="mt-2.5 px-2 flex justify-between items-center w-full h-8 border border-gray-200 rounded-sm text-sm">
@ -181,24 +181,35 @@
that.dom.querySelector('.file-name-2').innerHTML = data.name; that.dom.querySelector('.file-name-2').innerHTML = data.name;
that.planId = data.id; that.planId = data.id;
let pass = that.dom.querySelector('.train-pass-status');
let btns = that.dom.querySelector('.train-pass-btn');
if (data.checkStatus === 0) { if (data.checkStatus === 0) {
that.trainPlanHide.style.display = 'none'; that.trainPlanHide.style.display = 'none';
that.trainPlanCheck.style.display = 'block'; that.trainPlanCheck.style.display = 'block';
that.trainPlanReject.style.display = 'none'; that.trainPlanReject.style.display = 'none';
pass.style.display = 'none';
btns.style.display = 'block';
} else if (data.checkStatus === 1 || data.checkStatus === 2) { } else if (data.checkStatus === 1 || data.checkStatus === 2) {
that.trainPlanHide.style.display = 'none'; that.trainPlanHide.style.display = 'none';
that.trainPlanCheck.style.display = 'none'; // var trainPlanStatusReject = that.dom.querySelector('.reject-text');
that.trainPlanReject.style.display = 'block'; // var trainPlanStatusPass = that.dom.querySelector('.pass-text');
var trainPlanStatusReject = that.dom.querySelector('.reject-text');
var trainPlanStatusPass = that.dom.querySelector('.pass-text');
if (data.checkStatus === 1) { if (data.checkStatus === 1) {
trainPlanStatusReject.style.display = 'none'; that.trainPlanCheck.style.display = 'block';
trainPlanStatusPass.style.display = 'block'; that.trainPlanReject.style.display = 'none';
// trainPlanStatusReject.style.display = 'none';
// trainPlanStatusPass.style.display = 'block';
pass.style.display = 'block';
btns.style.display = 'none';
} else { } else {
that.dom.querySelector('.reason-box').innerHTML = data.rejectCause; that.dom.querySelector('.reason-box').innerHTML = data.rejectCause;
trainPlanStatusReject.style.display = 'block'; that.trainPlanCheck.style.display = 'none';
trainPlanStatusPass.style.display = 'none'; that.trainPlanReject.style.display = 'block';
// trainPlanStatusReject.style.display = 'block';
// trainPlanStatusPass.style.display = 'none';
} }
} }
} }
@ -261,6 +272,10 @@
} else { } else {
trainPlanReject.style.display = 'none'; trainPlanReject.style.display = 'none';
trainPlanCheck.style.display = 'block'; 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 { } else {
console.log('msg: ', msg); console.log('msg: ', msg);

Loading…
Cancel
Save