From 0167021d8c08a2e009fed19873a5e1879025ec42 Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Sat, 23 Oct 2021 15:44:08 +0800
Subject: [PATCH 1/4] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=9F=B9=E8=AE=AD?=
=?UTF-8?q?=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/index.html b/index.html
index 340bfd6..55d0f53 100644
--- a/index.html
+++ b/index.html
@@ -83,11 +83,11 @@
@@ -180,13 +180,14 @@
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;
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) {
+ } else if (data.checkStatus === 1 || data.checkStatus === 2) {
that.trainPlanHide.style.display = 'none';
that.trainPlanCheck.style.display = 'none';
that.trainPlanReject.style.display = 'block';
From adb3129d7dac0d95d5aa52885eaaa7a5a9bf6aa4 Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Sat, 23 Oct 2021 16:25:15 +0800
Subject: [PATCH 2/4] =?UTF-8?q?=E5=9F=B9=E8=AE=AD=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/index.html b/index.html
index 55d0f53..a566db3 100644
--- a/index.html
+++ b/index.html
@@ -49,8 +49,8 @@
培训计划审核
-
-
+
+
已通过
@@ -92,9 +92,7 @@
驳回原因
-
- 这里是驳回原因这里是驳回原因这里是驳回原因这里是驳回原因
-
+
@@ -198,6 +196,7 @@
trainPlanStatusReject.style.display = 'none';
trainPlanStatusPass.style.display = 'block';
} else {
+ that.dom.querySelector('.reason-box').innerHTML = data.rejectCause;
trainPlanStatusReject.style.display = 'block';
trainPlanStatusPass.style.display = 'none';
}
From d4a1415353ff3844e4445bbb93f38613cdd43351 Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Sat, 23 Oct 2021 17:05:37 +0800
Subject: [PATCH 3/4] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=9F=B9=E8=AE=AD?=
=?UTF-8?q?=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 35 +++++++++++++++++++++++++----------
1 file changed, 25 insertions(+), 10 deletions(-)
diff --git a/index.html b/index.html
index a566db3..6e5acf7 100644
--- a/index.html
+++ b/index.html
@@ -42,7 +42,7 @@
-
+
@@ -181,24 +181,35 @@
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';
+
+ pass.style.display = 'none';
+ btns.style.display = 'block';
} 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');
- var trainPlanStatusReject = that.dom.querySelector('.reject-text');
- var trainPlanStatusPass = that.dom.querySelector('.pass-text');
if (data.checkStatus === 1) {
- trainPlanStatusReject.style.display = 'none';
- trainPlanStatusPass.style.display = 'block';
+ that.trainPlanCheck.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 {
that.dom.querySelector('.reason-box').innerHTML = data.rejectCause;
- trainPlanStatusReject.style.display = 'block';
- trainPlanStatusPass.style.display = 'none';
+ that.trainPlanCheck.style.display = 'none';
+ that.trainPlanReject.style.display = 'block';
+ // trainPlanStatusReject.style.display = 'block';
+ // trainPlanStatusPass.style.display = 'none';
}
}
}
@@ -261,6 +272,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);
From 8fec427dcae782f8d6ef399d4a18a7d0ab71a26f Mon Sep 17 00:00:00 2001
From: xuesinan <1404152492@qq.com>
Date: Sat, 23 Oct 2021 17:07:03 +0800
Subject: [PATCH 4/4] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E5=9F=B9=E8=AE=AD?=
=?UTF-8?q?=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 7 -------
1 file changed, 7 deletions(-)
diff --git a/index.html b/index.html
index 6e5acf7..13bcc5f 100644
--- a/index.html
+++ b/index.html
@@ -193,23 +193,16 @@
btns.style.display = 'block';
} else if (data.checkStatus === 1 || data.checkStatus === 2) {
that.trainPlanHide.style.display = 'none';
- // var trainPlanStatusReject = that.dom.querySelector('.reject-text');
- // var trainPlanStatusPass = that.dom.querySelector('.pass-text');
if (data.checkStatus === 1) {
that.trainPlanCheck.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 {
that.dom.querySelector('.reason-box').innerHTML = data.rejectCause;
that.trainPlanCheck.style.display = 'none';
that.trainPlanReject.style.display = 'block';
- // trainPlanStatusReject.style.display = 'block';
- // trainPlanStatusPass.style.display = 'none';
}
}
}