d4283687
梁保满
首页布局完成,页面顶部返回组件
|
1
|
<template>
|
a37317f4
阿宝
使用分析,发卡记录
|
2
3
4
5
6
|
<div>
<back-box>
<template slot="title">
<span>使用分析</span>
</template>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
7
8
9
10
11
12
13
14
15
16
17
18
|
<template slot="btns">
<el-tooltip effect="dark" content="导出报表" placement="bottom">
<el-button
type="primary"
icon="fa fa-cloud-download"
size="mini"
plain
circle
@click="downExc"
></el-button>
</el-tooltip>
</template>
|
a37317f4
阿宝
使用分析,发卡记录
|
19
20
|
</back-box>
<div class="page-content">
|
5e11badb
梁保满
使用分析
|
21
|
<ul class="params-box">
|
a4074db8
梁保满
使用分析,集团管理元交互
|
22
|
<li class="item item3">
|
5e11badb
梁保满
使用分析
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<span class="s-txt">时间段:</span>
<div class="sel-box">
<div class="d1">
<el-date-picker
v-model="query.startDay"
type="date"
@change="handleChangeTimeStart"
placeholder="选择日期时间"
value-format="yyyy-MM-dd"
size="mini"
>
</el-date-picker>
~
<el-date-picker
v-model="query.endDay"
type="date"
placeholder="选择日期时间"
@change="handleChangeTimeEnd"
value-format="yyyy-MM-dd"
size="mini"
>
</el-date-picker>
</div>
<p class="p1">
<span
@click="setDate(1)"
:class="[date == 1 ? 'active' : '', 's1']"
>今天</span
>
<span
@click="setDate(2)"
:class="[date == 2 ? 'active' : '', 's1']"
>本周</span
>
<span
@click="setDate(3)"
:class="[date == 3 ? 'active' : '', 's1']"
>本月</span
>
<span
@click="setDate(4)"
:class="[date == 4 ? 'active' : '', 's1']"
>本季度</span
>
</p>
|
a37317f4
阿宝
使用分析,发卡记录
|
68
|
</div>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
69
70
71
72
73
74
75
76
77
|
<el-button
class="btn"
v-if="role == 'ROLE_JITUAN'"
type="primary"
round
size="small"
@click="resetRank"
>使用频率排名</el-button
>
|
5e11badb
梁保满
使用分析
|
78
|
</li>
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
79
|
<li class="item item2" v-for="(item, index) in query.secGraClaSub">
|
5e11badb
梁保满
使用分析
|
80
81
82
|
<span class="s-txt">对比项{{ setBigNum(index) }}:</span>
<div class="sel-box">
<el-cascader
|
55eb13fd
梁保满
中天提出的交互优化
|
83
|
:ref="'cascader' + index"
|
5e11badb
梁保满
使用分析
|
84
85
86
87
|
size="small"
class="sel sel2"
clearable
placeholder="选择范围"
|
55eb13fd
梁保满
中天提出的交互优化
|
88
|
@change="secGraClaSubChange($event, index)"
|
5e11badb
梁保满
使用分析
|
89
90
91
92
93
94
95
96
97
98
99
|
v-model="query.secGraClaSub[index]"
:options="gradeList"
:props="props"
></el-cascader>
</div>
<i class="el-icon-delete" @click="removeQuery(index)"></i>
</li>
<li class="item">
<span class="s-txt"></span>
<div class="disflex-b">
<el-button
|
a4074db8
梁保满
使用分析,集团管理元交互
|
100
101
|
class="btn btn-none"
:class="query.secGraClaSub.length < 10 ? '' : 'active'"
|
5e11badb
梁保满
使用分析
|
102
103
104
|
icon="el-icon-plus"
size="small"
round
|
55eb13fd
梁保满
中天提出的交互优化
|
105
|
@click="addQuery"
|
5e11badb
梁保满
使用分析
|
106
|
>添加对比项</el-button
|
a37317f4
阿宝
使用分析,发卡记录
|
107
|
>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
108
109
110
111
112
113
114
115
|
<el-button
v-show="query.secGraClaSub.length"
class="btn"
type="primary"
round
size="small"
@click="getData"
>多项对比</el-button
|
a37317f4
阿宝
使用分析,发卡记录
|
116
|
>
|
5e11badb
梁保满
使用分析
|
117
118
119
120
121
|
</div>
</li>
</ul>
<div class="chart-box">
<barChart id="barChart" ref="barChart" />
|
a37317f4
阿宝
使用分析,发卡记录
|
122
123
124
|
</div>
</div>
</div>
|
d4283687
梁保满
首页布局完成,页面顶部返回组件
|
125
126
127
|
</template>
<script>
|
5e11badb
梁保满
使用分析
|
128
|
import barChart from "@/components/charts/barChart";
|
a4074db8
梁保满
使用分析,集团管理元交互
|
129
|
import { formatDate, downloadFile } from "@/utils";
|
d4283687
梁保满
首页布局完成,页面顶部返回组件
|
130
|
export default {
|
5e11badb
梁保满
使用分析
|
131
132
133
|
components: {
barChart,
},
|
a37317f4
阿宝
使用分析,发卡记录
|
134
135
|
data() {
return {
|
e5ff81a1
阿宝
集团管理员接口
|
136
|
role: "",
|
5e11badb
梁保满
使用分析
|
137
|
loading: false,
|
a37317f4
阿宝
使用分析,发卡记录
|
138
|
date: "", //今天-本周-本月-本季度
|
e5ff81a1
阿宝
集团管理员接口
|
139
|
type: 1, //集团管理员 表格切换
|
a37317f4
阿宝
使用分析,发卡记录
|
140
141
|
query: {
//搜索条件
|
a37317f4
阿宝
使用分析,发卡记录
|
142
143
144
|
startDay: "",
endDay: "",
day: "",
|
5e11badb
梁保满
使用分析
|
145
|
secGraClaSub: [],
|
55eb13fd
梁保满
中天提出的交互优化
|
146
|
secGraClaSubName: [],
|
a37317f4
阿宝
使用分析,发卡记录
|
147
|
},
|
5e11badb
梁保满
使用分析
|
148
149
150
151
|
props: {
multiple: false,
checkStrictly: true,
},
|
b8827a72
梁保满
测试bug
|
152
|
params: [],
|
a37317f4
阿宝
使用分析,发卡记录
|
153
|
gradeList: [],
|
5e11badb
梁保满
使用分析
|
154
155
156
157
158
159
160
161
162
163
164
|
chartData: [
{
name: "课时数",
value: [],
},
{
name: "测练数",
value: [],
},
],
xAxis: [],
|
a37317f4
阿宝
使用分析,发卡记录
|
165
166
|
};
},
|
5e11badb
梁保满
使用分析
|
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
async created() {
let that = this;
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
if (this.role == "ROLE_JITUAN") {
(this.props.lazy = true),
(this.props.lazyLoad = function (node, resolve) {
const { level } = node;
if (level == 3) {
console.log(node);
that.$request
.tenantSubjectList({
schoolId: node.path[0],
grade: node.value,
})
.then((res) => {
let children = res.data?.subjectNames.map((item) => {
return {
label: item,
value: item,
leaf: true,
};
});
const nodes = [...children];
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
resolve(nodes);
});
} else {
resolve(node);
}
});
await this._QuerySchool();
}
await this._QueryGradeList();
if (this.role == "ROLE_XUEXIAO") {
await this._QueryClassList();
}
|
a37317f4
阿宝
使用分析,发卡记录
|
205
206
|
let startDay = this.query?.startDay;
if (!startDay) {
|
5e11badb
梁保满
使用分析
|
207
208
|
this.query.startDay = formatDate(new Date(), "yyyy-MM-dd");
this.query.endDay = formatDate(new Date(), "yyyy-MM-dd");
|
a37317f4
阿宝
使用分析,发卡记录
|
209
|
}
|
a4074db8
梁保满
使用分析,集团管理元交互
|
210
|
this.setDate(3);
|
b8827a72
梁保满
测试bug
|
211
|
this._QueryData();
|
a37317f4
阿宝
使用分析,发卡记录
|
212
213
|
},
methods: {
|
a4074db8
梁保满
使用分析,集团管理元交互
|
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
|
async downExc() {
if (this.exportLoading == true) return;
let query = {
//搜索条件
startDay: this.query.startDay,
endDay: this.query.endDay,
day: this.query.day,
};
this.exportLoading = true;
const exportUsageAnalysis =
this.role != "ROLE_JITUAN"
? this.$request.exportUsageAnalysis
: this.$request.exportSchoolContrast;
const data = await exportUsageAnalysis({ ...query });
this.exportLoading = false;
if (data) {
let blob = new Blob([data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
});
downloadFile("使用分析.xlsx", blob);
} else {
this.$message.error("下载失败");
}
},
|
55eb13fd
梁保满
中天提出的交互优化
|
239
240
241
242
243
244
245
246
247
248
|
addQuery() {
this.query.secGraClaSub.push([]);
this.query.secGraClaSubName.push("");
},
filterObj(arr, value) {
return arr.filter((item) => {
return value == item.value;
})[0];
},
secGraClaSubChange(event, index) {
|
a4074db8
梁保满
使用分析,集团管理元交互
|
249
|
console.log(event);
|
55eb13fd
梁保满
中天提出的交互优化
|
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
let txt = "";
let xx = this.filterObj(this.gradeList, event[0]);
txt += xx.label;
if (event.length > 1) {
let grade = this.filterObj(xx.children, event[1]);
txt += "/" + grade.label;
if (event.length > 2) {
let clazz = this.filterObj(grade.children, event[2]);
txt += "/" + clazz.label;
if (event.length > 3) {
txt += "/" + event[3];
}
}
}
this.query.secGraClaSubName[index] = txt;
},
|
5e11badb
梁保满
使用分析
|
266
267
268
269
|
setBigNum(num) {
let txt = "";
let bigNum = ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十"];
txt = bigNum[num];
|
0e46bc25
梁保满
优化
|
270
|
|
5e11badb
梁保满
使用分析
|
271
|
return txt;
|
a37317f4
阿宝
使用分析,发卡记录
|
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
|
},
setDate(index) {
const that = this;
this.date = index == this.date ? "" : index;
let aYear = new Date().getFullYear();
let aMonth = new Date().getMonth() + 1;
that.query.day = "";
that.query.startDay = "";
that.query.endDay = "";
switch (index) {
case 1:
that.query.day = formatDate(new Date(), "yyyy-MM-dd");
that.query.startDay = that.query.day;
that.query.endDay = that.query.day;
break;
case 2:
let day = new Date().getDay();
if (day == 0) {
//中国式星期天是一周的最后一天
day = 7;
}
|
255e2506
梁保满
飞书bug及优化
|
293
|
day--;
|
a37317f4
阿宝
使用分析,发卡记录
|
294
295
296
297
298
299
300
301
302
303
|
let aTime = new Date().getTime() - 24 * 60 * 60 * 1000 * day;
that.query.startDay = formatDate(new Date(aTime), "yyyy-MM-dd");
that.query.endDay = formatDate(new Date(), "yyyy-MM-dd");
break;
case 3:
aMonth = aMonth < 10 ? "0" + aMonth : aMonth;
that.query.startDay = `${aYear}-${aMonth}-01`;
that.query.endDay = formatDate(new Date(), "yyyy-MM-dd");
break;
case 4:
|
6d7bd862
梁保满
飞书bug
|
304
|
if (aMonth > 0 && aMonth < 4) {
|
e3b0e3e7
梁保满
季度时间格式调整
|
305
|
aMonth = "1";
|
a37317f4
阿宝
使用分析,发卡记录
|
306
|
} else if (aMonth > 3 && aMonth < 7) {
|
e3b0e3e7
梁保满
季度时间格式调整
|
307
|
aMonth = "4";
|
a37317f4
阿宝
使用分析,发卡记录
|
308
|
} else if (aMonth > 6 && aMonth < 10) {
|
e3b0e3e7
梁保满
季度时间格式调整
|
309
|
aMonth = "7";
|
a37317f4
阿宝
使用分析,发卡记录
|
310
311
312
|
} else {
aMonth = "10";
}
|
d4283687
梁保满
首页布局完成,页面顶部返回组件
|
313
|
|
a37317f4
阿宝
使用分析,发卡记录
|
314
315
316
317
318
|
aMonth = aMonth < 10 ? "0" + aMonth : aMonth;
that.query.startDay = `${aYear}-${aMonth}-01`;
that.query.endDay = formatDate(new Date(), "yyyy-MM-dd");
break;
}
|
5e11badb
梁保满
使用分析
|
319
320
|
},
removeQuery(index) {
|
16c0b111
梁保满
使用分析对比项交互
|
321
322
|
let secGraClaSubLen = this.query.secGraClaSub.length;
let xAxisLen = this.xAxis.length;
|
55eb13fd
梁保满
中天提出的交互优化
|
323
324
325
|
this.query.secGraClaSub.splice(index, 1);
this.query.secGraClaSubName.splice(index, 1);
this.xAxis.splice(index, 1);
|
16c0b111
梁保满
使用分析对比项交互
|
326
327
328
329
|
if (
secGraClaSubLen == xAxisLen ||
(secGraClaSubLen > xAxisLen && index < xAxisLen)
) {
|
16c0b111
梁保满
使用分析对比项交互
|
330
331
332
333
|
this.chartData[0].value.splice(index, 1);
this.chartData[1].value.splice(index, 1);
this.$refs.barChart.initData(this.xAxis, this.chartData);
}
|
a37317f4
阿宝
使用分析,发卡记录
|
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
|
},
handleChangeTimeStart(val) {
this.query.day = "";
this.date = "";
if (this.query.endDay) {
if (new Date(val).getTime() > new Date(this.query.endDay).getTime()) {
this.$message.error("任务结束时间不能任务开始时间前面,请重新设置");
this.query.startDay = "";
}
}
},
handleChangeTimeEnd(val) {
this.query.day = "";
this.date = "";
if (this.query.startDay) {
if (new Date(val).getTime() < new Date(this.query.startDay).getTime()) {
this.$message.error("任务结束时间不能任务开始时间前面,请重新设置");
this.query.endDay = "";
}
}
},
|
5e11badb
梁保满
使用分析
|
355
356
357
358
359
360
|
getData() {
if (!this.query.secGraClaSub.length) {
this.$message.warning("请添加对比项,并选择对比条件!");
return;
}
let hasSpace = null;
|
8243c409
梁保满
设备错误列表返回,设备分析对比项数量限制
|
361
362
363
364
|
for (let i = 0; i < this.query.secGraClaSub.length; i++) {
if (!this.query.secGraClaSub[i].length) {
hasSpace = i;
break;
|
a37317f4
阿宝
使用分析,发卡记录
|
365
|
}
|
8243c409
梁保满
设备错误列表返回,设备分析对比项数量限制
|
366
|
}
|
5e11badb
梁保满
使用分析
|
367
368
369
370
371
|
if (hasSpace !== null) {
this.$message.warning(
`对比项${this.setBigNum(hasSpace)}对比条件不能为空请检查!`
);
return;
|
a37317f4
阿宝
使用分析,发卡记录
|
372
|
}
|
55eb13fd
梁保满
中天提出的交互优化
|
373
|
this.xAxis = [...this.query.secGraClaSubName];
|
5e11badb
梁保满
使用分析
|
374
375
376
377
378
379
380
381
382
|
this._QueryData();
},
setQuery() {
let query = { ...this.query };
delete query.secGraClaSub;
if (this.role != "ROLE_JITUAN") {
query.params = this.query.secGraClaSub.map((item) => {
let jsons = {};
jsons.section = item[0];
|
2abf89f9
梁保满
未分配学生调班,使用分析
|
383
|
item.length > 1 ? (jsons.grade = item[1]) : "";
|
5e11badb
梁保满
使用分析
|
384
385
386
387
|
item.length > 2 ? (jsons.classId = item[2]) : "";
item.length == 4 ? (jsons.subjectName = item[3]) : "";
return jsons;
});
|
225a00b6
梁保满
飞书问题解决
|
388
|
} else {
|
5e11badb
梁保满
使用分析
|
389
390
391
392
393
394
395
396
|
query.params = this.query.secGraClaSub.map((item) => {
let jsons = {};
jsons.schoolId = item[0];
item.length > 1 ? (jsons.section = item[1]) : "";
item.length > 2 ? (jsons.grade = item[2]) : "";
item.length == 4 ? (jsons.subjectName = item[3]) : "";
return jsons;
});
|
225a00b6
梁保满
飞书问题解决
|
397
|
}
|
5e11badb
梁保满
使用分析
|
398
399
|
return query;
},
|
a4074db8
梁保满
使用分析,集团管理元交互
|
400
401
402
403
404
405
406
407
408
409
410
|
async resetRank() {
this.query.secGraClaSub = [];
this.query.secGraClaSubName = [];
this.chartData[0].value = [];
this.chartData[1].value = [];
this.xAxis = [];
this.$refs.barChart.clearChart();
await this._QuerySchool();
await this._QueryGradeList();
this._QueryData();
},
|
5e11badb
梁保满
使用分析
|
411
412
413
414
|
async _QueryData() {
this.loading = true;
let query = this.setQuery();
const usageStatistics =
|
e5ff81a1
阿宝
集团管理员接口
|
415
|
this.role != "ROLE_JITUAN"
|
5e11badb
梁保满
使用分析
|
416
417
418
|
? this.$request.usageStatistics
: this.$request.tenantUsageStatistics;
const { data, status, info } = await usageStatistics({
|
a37317f4
阿宝
使用分析,发卡记录
|
419
420
421
422
|
...query,
});
this.loading = false;
if (status === 0) {
|
5e11badb
梁保满
使用分析
|
423
424
|
this.chartData[0].value = [];
this.chartData[1].value = [];
|
a4074db8
梁保满
使用分析,集团管理元交互
|
425
426
427
|
this.xAxis = this.query.secGraClaSubName.map((item) => {
let arr = item.split("/");
return arr[0] + "\n" + arr.slice(1, arr.length).join("/");
|
3a9aa32b
梁保满
学生搜索调班无数据问题,使用分析默...
|
428
|
});
|
5e11badb
梁保满
使用分析
|
429
|
data?.list.map((item, index) => {
|
5e11badb
梁保满
使用分析
|
430
431
|
this.chartData[0].value.push(item.periodCount);
this.chartData[1].value.push(item.examCount);
|
dbbfc6c5
梁保满
飞书优化及bug
|
432
|
});
|
5e11badb
梁保满
使用分析
|
433
|
this.$refs.barChart.initData(this.xAxis, this.chartData);
|
a37317f4
阿宝
使用分析,发卡记录
|
434
435
436
437
|
} else {
this.$message.error(info);
}
},
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
438
|
// 查找nian级
|
e5ff81a1
阿宝
集团管理员接口
|
439
440
441
442
|
async _QueryGradeList() {
this.loading = true;
const gradeList =
this.role != "ROLE_JITUAN"
|
5e11badb
梁保满
使用分析
|
443
444
|
? this.$request.sectionAndGradeList
: this.$request.tenantSectionAndGradeList;
|
e5ff81a1
阿宝
集团管理员接口
|
445
|
const { data, status, info } = await gradeList();
|
a37317f4
阿宝
使用分析,发卡记录
|
446
|
if (status === 0) {
|
e5ff81a1
阿宝
集团管理员接口
|
447
|
if (!!data.list) {
|
b8827a72
梁保满
测试bug
|
448
|
this.query.secGraClaSub = [];
|
55eb13fd
梁保满
中天提出的交互优化
|
449
|
this.query.secGraClaSubName = [];
|
e5ff81a1
阿宝
集团管理员接口
|
450
451
452
|
if (this.role != "ROLE_JITUAN") {
this.gradeList =
data.list?.map((item) => {
|
5e11badb
梁保满
使用分析
|
453
454
455
|
let gradeIds = [];
let children = item.gradeList.map((items) => {
gradeIds.push(items.grade);
|
5e11badb
梁保满
使用分析
|
456
457
458
459
460
461
462
463
464
465
|
return {
value: items.grade,
label: items.gradeName,
};
});
return {
value: item.section,
label: item.sectionName,
gradeIds: [...gradeIds],
children: [...children],
|
e5ff81a1
阿宝
集团管理员接口
|
466
|
};
|
e5ff81a1
阿宝
集团管理员接口
|
467
|
}) || [];
|
e5ff81a1
阿宝
集团管理员接口
|
468
|
} else {
|
5e11badb
梁保满
使用分析
|
469
470
471
472
473
|
let children = data.list?.map((item) => {
let children = item.gradeList.map((items) => {
return {
value: items.grade,
label: items.gradeName,
|
e5ff81a1
阿宝
集团管理员接口
|
474
|
};
|
5e11badb
梁保满
使用分析
|
475
476
477
478
479
480
|
});
return {
value: item.section,
label: item.sectionName,
children: [...children],
};
|
e5ff81a1
阿宝
集团管理员接口
|
481
|
});
|
5e11badb
梁保满
使用分析
|
482
|
this.gradeList = this.schoolList.map((item) => {
|
3a9aa32b
梁保满
学生搜索调班无数据问题,使用分析默...
|
483
|
if (this.query.secGraClaSub.length < 10) {
|
b8827a72
梁保满
测试bug
|
484
|
this.query.secGraClaSub.push([item.id]);
|
55eb13fd
梁保满
中天提出的交互优化
|
485
|
this.query.secGraClaSubName.push(item.schoolName);
|
b8827a72
梁保满
测试bug
|
486
|
}
|
5e11badb
梁保满
使用分析
|
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
|
return {
value: item.id,
label: item.schoolName,
children: [...children],
};
});
}
}
} else {
this.$message.error(info);
}
},
// 查找班级
async _QueryClassList() {
const { data, status, info } = await this.$request.gradeList();
if (status === 0) {
if (!!data.list) {
if (this.role == "ROLE_XUEXIAO") {
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
505
|
this.query.secGraClaSub = [];
|
55eb13fd
梁保满
中天提出的交互优化
|
506
|
this.query.secGraClaSubName = [];
|
5e11badb
梁保满
使用分析
|
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
|
data.list?.map((item) => {
let subList = item.subjectNames?.map((items) => {
return {
value: items,
label: items,
};
});
let children = item.classList.map((clazz) => {
return {
value: clazz.id,
label: clazz.className,
id: clazz.id,
children: [...subList],
};
});
this.gradeList.map((sec) => {
if (sec.gradeIds.includes(item.grade)) {
sec.children[sec.gradeIds.indexOf(item.grade)].children = [
...children,
];
}
});
}) || [];
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
530
|
this.gradeList.map((sec) => {
|
55eb13fd
梁保满
中天提出的交互优化
|
531
|
sec.children.map((items) => {
|
3a9aa32b
梁保满
学生搜索调班无数据问题,使用分析默...
|
532
|
if (this.query.secGraClaSub.length < 10) {
|
55eb13fd
梁保满
中天提出的交互优化
|
533
534
535
536
|
this.query.secGraClaSub.push([sec.value, items.value]);
this.query.secGraClaSubName.push(
`${sec.label}/${items.label}`
);
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
537
538
539
|
}
});
});
|
e5ff81a1
阿宝
集团管理员接口
|
540
541
|
}
}
|
a37317f4
阿宝
使用分析,发卡记录
|
542
543
544
545
|
} else {
this.$message.error(info);
}
},
|
5e11badb
梁保满
使用分析
|
546
547
|
async _QuerySchool() {
this.loading = true;
|
a4074db8
梁保满
使用分析,集团管理元交互
|
548
549
550
551
552
553
|
const { data, status, info } = await this.$request.schoolList({
needSort: 1,
day: this.query.day,
startDay: this.query.startDay,
endDay: this.query.endDay,
});
|
5e11badb
梁保满
使用分析
|
554
555
556
557
558
559
560
|
this.loading = false;
if (status === 0) {
this.schoolList = [...data.list] || [];
} else {
this.$message.error(info);
}
},
|
a37317f4
阿宝
使用分析,发卡记录
|
561
562
|
},
};
|
d4283687
梁保满
首页布局完成,页面顶部返回组件
|
563
|
</script>
|
203ff41a
梁保满
使用分析添加左右滚动
|
564
565
566
567
568
569
570
571
572
573
|
<style>
div::-webkit-scrollbar {
width: 3px;
height: 10px;
}
div::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #ccc;
}
</style>
|
a37317f4
阿宝
使用分析,发卡记录
|
574
|
<style lang="scss" scoped>
|
5e11badb
梁保满
使用分析
|
575
576
577
578
579
580
581
|
.page-content {
padding: 20px 40px;
}
.disflex-b {
display: flex;
justify-content: space-between;
align-items: center;
|
a4074db8
梁保满
使用分析,集团管理元交互
|
582
583
584
585
586
587
588
589
590
591
592
593
|
.btn-none {
border: none;
background: none;
}
.active {
transform: translateX(-999999px);
}
}
.item3 {
.sel-box {
flex: 1;
}
|
5e11badb
梁保满
使用分析
|
594
595
596
597
598
|
}
.sel-box {
display: flex;
align-items: center;
flex-wrap: nowrap;
|
a4074db8
梁保满
使用分析,集团管理元交互
|
599
600
601
|
.btn {
margin-left: 100px;
}
|
5e11badb
梁保满
使用分析
|
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
|
.sel {
width: 8%;
min-width: 160px;
margin-right: 20px;
}
:deep(.el-input__inner) {
border: 1px solid #e2e2e2;
border-radius: 20px;
height: 32px;
line-height: 30px;
}
.el-input__icon {
line-height: 34px;
}
.el-date-editor.el-input,
.el-date-editor.el-input__inner {
width: 160px;
}
.p1 {
flex: 1;
.s1 {
margin-left: 36px;
cursor: pointer;
color: #7f7f7f;
&:hover {
color: #409eff;
}
&.active {
color: #667ffd;
}
}
}
.sel2 {
width: 240px;
}
|
a37317f4
阿宝
使用分析,发卡记录
|
642
|
}
|
5e11badb
梁保满
使用分析
|
643
|
.params-box {
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
644
645
|
display: flex;
flex-wrap: wrap;
|
5e11badb
梁保满
使用分析
|
646
|
.item {
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
647
|
width: 100%;
|
5e11badb
梁保满
使用分析
|
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
|
display: flex;
align-items: center;
margin-bottom: 20px;
.s-txt {
width: 120px;
}
.btn {
font-size: 14px;
}
.disflex-b {
flex: 1;
padding-right: 100px;
}
&:hover {
.el-icon-delete {
display: block;
}
}
.el-icon-delete {
cursor: pointer;
display: none;
&:hover {
color: #667ffd;
}
}
}
|
99713685
梁保满
学生调班,班级数据重新请求,使用过...
|
674
675
676
|
.item2 {
width: 50%;
}
|
a4074db8
梁保满
使用分析,集团管理元交互
|
677
678
679
|
.item3 {
padding-right: 100px;
}
|
a37317f4
阿宝
使用分析,发卡记录
|
680
|
}
|
5e11badb
梁保满
使用分析
|
681
|
.chart-box {
|
55eb13fd
梁保满
中天提出的交互优化
|
682
|
height: 400px;
|
a37317f4
阿宝
使用分析,发卡记录
|
683
|
}
|
d4283687
梁保满
首页布局完成,页面顶部返回组件
|
684
|
</style>
|