校园报告code更改

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