From 1b1ee3c8fdfa4e8e1c774d1d596a4791ca4025cf Mon Sep 17 00:00:00 2001 From: xuesinan <1404152492@qq.com> Date: Wed, 27 Oct 2021 19:03:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BA=A2=E5=A4=B4=E6=96=87=E4=BB=B6=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index 340bfd6..c8ab2f6 100644 --- a/index.html +++ b/index.html @@ -44,7 +44,7 @@
- @@ -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);