-
+
培训计划审核
@@ -98,12 +98,12 @@
-
+
@@ -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);