Browse Source

红头文件审核

tiaosheng-zx
xuesinan 4 years ago
parent
commit
1b1ee3c8fd
  1. 32
      index.html

32
index.html

@ -44,7 +44,7 @@
<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-root="p1449944565028233216" style="height:100%;width:100%;">
<div class="train-plan-check" style="display: none;">
<div class="train-plan-check">
<div class="title"></div>
<div class="flex justify-between">
<div class="text-sm">培训计划审核</div>
@ -98,12 +98,12 @@
</div>
</div>
<div class="train-plan-hide">
<!-- <div class="train-plan-hide">
<div class="title"></div>
<div class="flex justify-between">
<div class="text-sm">培训计划审核</div>
</div>
</div>
</div> -->
</div>
</div>
@ -114,17 +114,17 @@
roleId: '',
dom: '',
planId: '', // 计划ID
trainPlanCheck: '', // 培训计划待审核div
// trainPlanCheck: '', // 培训计划待审核div
trainPlanReject: '', // 培训计划已驳回div
trainPlanHide: '', // 培训计划未加载完div
// trainPlanHide: '', // 培训计划未加载完div
init() {
this.dom = document.querySelector("div[data-root=p1449944565028233216]");
var domBox = this.dom.parentNode;
var title = this.dom.querySelector('.title');
this.trainPlanCheck = document.querySelector('.train-plan-check'); // 培训计划待审核div
this.trainPlanHide = document.querySelector('.train-plan-hide'); // 培训计划已驳回div
// this.trainPlanCheck = document.querySelector('.train-plan-check'); // 培训计划待审核div
// this.trainPlanHide = document.querySelector('.train-plan-hide'); // 培训计划已驳回div
this.trainPlanReject = document.querySelector('.train-plan-reject'); // 培训计划未加载完div
// 获取父元素携带的参数
@ -175,20 +175,20 @@
const { success, code, data, msg } = res;
if (success && code === 200) {
if (!data) {
that.trainPlanHide.style.display = 'block';
that.trainPlanCheck.style.display = 'none';
// that.trainPlanHide.style.display = 'block';
// that.trainPlanCheck.style.display = 'none';
that.trainPlanReject.style.display = 'none';
} else {
that.dom.querySelector('.file-name').innerHTML = data.name;
that.planId = data.id;
if (data.checkStatus === 0) {
that.trainPlanHide.style.display = 'none';
that.trainPlanCheck.style.display = 'block';
// 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.trainPlanHide.style.display = 'none';
// that.trainPlanCheck.style.display = 'none';
that.trainPlanReject.style.display = 'block';
var trainPlanStatusReject = that.dom.querySelector('.reject-text');
@ -254,13 +254,13 @@
const { success, code, data, msg } = res;
if (success && code === 200) {
var trainPlanReject = that.dom.querySelector('.train-plan-reject');
var trainPlanCheck = that.dom.querySelector('.train-plan-check');
// var trainPlanCheck = that.dom.querySelector('.train-plan-check');
if (type == 2) {
trainPlanReject.style.display = 'block';
trainPlanCheck.style.display = 'none';
// trainPlanCheck.style.display = 'none';
} else {
trainPlanReject.style.display = 'none';
trainPlanCheck.style.display = 'block';
// trainPlanCheck.style.display = 'block';
}
} else {
console.log('msg: ', msg);

Loading…
Cancel
Save