校园报告code更改

parent 33787b57
......@@ -835,13 +835,13 @@
this.isAttendanceOpen = true;
this.isPubTalkOpen = true;
} else {
this.queryIsDredgeMember(4002);
this.queryIsDredgeMember(4003);
this.queryIsDredgeMember(2002);
this.queryIsDredgeMember(3002);
}
// 消费报告
this.queryIsDredgeMember(4001).then(() => {
this.queryIsDredgeMember(1002).then(() => {
if (this.isOpen) {
this.queryMemberValidTime(4001).then(e => {
this.queryMemberValidTime(1002).then(e => {
if (new Date(this.memberInfo.invalidDate).getTime() <= new Date('2022/06/30')
.getTime()) {
this.isOpen = true;
......@@ -852,7 +852,7 @@
this.queryStudentConsumerPreference(1).then(e => this.piechart());
this.queryDayConsumerTrend(1).then(e => this.linechart(this.reportTypeIndex));
} else {
this.queryIsDredgeMember(4001, 1).then(() => {
this.queryIsDredgeMember(1002, 1).then(() => {
this.queryStudentConsumerPreference(1).then(e => this
.piechart());
this.queryDayConsumerTrend(1).then(e => this.linechart(this
......@@ -870,7 +870,7 @@
this.queryStudentConsumerPreference(1).then(e => this.piechart());
this.queryDayConsumerTrend(1).then(e => this.linechart(this.reportTypeIndex));
} else {
this.queryIsDredgeMember(4001, 1).then(() => {
this.queryIsDredgeMember(1002, 1).then(() => {
this.queryStudentConsumerPreference();
this.queryDayConsumerTrend();
});
......@@ -942,7 +942,7 @@
this.memberInfo.differDay = '';
this.memberInfo.invalidDateStr = '';
this.memberInfo.leastAmount = '';
this.queryIsDredgeMember(4003).then(() => {
this.queryIsDredgeMember(3002).then(() => {
if (this.isAttendanceOpen) {
if (new Date(this.memberInfo.invalidDate).getTime() <= new Date('2022/06/30')
.getTime()) {
......@@ -960,7 +960,7 @@
}
});
} else {
this.queryIsDredgeMember(4003, 2);
this.queryIsDredgeMember(3002, 2);
this.statisAttendanceAbnormal();
this.attendanceReprotDatail(this.dataRangeArr[this.dataRangeIndex].startDate)
.then(e => {
......@@ -987,7 +987,7 @@
}
});
} else {
this.queryIsDredgeMember(4003, 2);
this.queryIsDredgeMember(3002, 2);
}
}
})
......@@ -995,7 +995,7 @@
this.memberInfo.differDay = '';
this.memberInfo.invalidDateStr = '';
this.memberInfo.leastAmount = '';
this.queryIsDredgeMember(4002).then(() => {
this.queryIsDredgeMember(2002).then(() => {
if (this.isPubTalkOpen) {
if (new Date(this.memberInfo.invalidDate).getTime() <= new Date('2022/06/30')
.getTime()) {
......@@ -1012,7 +1012,7 @@
})
})
} else {
this.queryIsDredgeMember(4002, 3).then(() => {
this.queryIsDredgeMember(2002, 3).then(() => {
this.$nextTick(() => {
this.callNumberBarchart();
this.callDurationBarchart();
......@@ -1035,7 +1035,7 @@
})
})
} else {
this.queryIsDredgeMember(4002, 3).then(() => {
this.queryIsDredgeMember(2002, 3).then(() => {
this.queryStudentConsumerPreference();
this.queryDayConsumerTrend();
this.getPubTalkReport().then(e => {
......@@ -1887,8 +1887,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
userId: getQueryParams('userId'),
startTime: this.dataRangeArr[this.dataRangeIndex].startDate,
endTime: this.dataRangeArr[this.dataRangeIndex].endDate,
// classId:this.userInfo.classId
classId: 16186
classId:this.userInfo.classId
})
if (data.code != 200) {
uni.showToast({
......@@ -1919,8 +1918,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
schoolId: getQueryParams('schoolId'),
userId: getQueryParams('userId'),
currentDate,
// classId:this.userInfo.classId
classId: 16186
classId:this.userInfo.classId
})
if (data.code != 200) {
uni.showToast({
......@@ -1973,19 +1971,19 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
return
}
switch (serviceItemCode) {
case 4001:
case 1002:
this.isOpen = data.obj.status;
if (!this.isOpen) {
this.flag = 1;
}
break;
case 4002:
case 2002:
this.isPubTalkOpen = data.obj.status;
if (!this.isPubTalkOpen) {
this.flag = 3;
}
break;
case 4003:
case 3002:
this.isAttendanceOpen = data.obj.status;
if (!this.isAttendanceOpen) {
this.flag = 2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment