4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
2
3
4
|
<div>
<back-box>
<template slot="title">
|
560c12f2
阿宝
学校设置,软件下载
|
5
|
<span>学生管理</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
6
|
</template>
|
f5729396
梁保满
批量设置答案
|
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<template slot="btns" v-if="role == 'ROLE_XUEXIAO'">
<el-tooltip effect="dark" content="设置答题器" placement="bottom">
<el-button
type="primary"
icon="el-icon-upload2"
size="mini"
plain
circle
@click="diaUp = true"
></el-button>
</el-tooltip>
<el-tooltip
v-if="!code"
effect="dark"
content="添加学生"
placement="bottom"
>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
24
25
26
27
28
29
|
<el-button
type="primary"
icon="el-icon-plus"
size="mini"
plain
circle
|
dd5150c5
阿宝
数据同步
|
30
|
@click="openAddDia"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
31
32
33
34
|
></el-button>
</el-tooltip>
</template>
</back-box>
|
ec6394d1
梁保满
v1.3.1。细节调整
|
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
|
<div class="answer-header">
<div class="sel-box">
<el-input
placeholder="请输入学生姓名"
v-model="query.studentName"
class="input-with-select"
@keyup.enter.native="_QueryData(1)"
>
<el-button
slot="append"
icon="el-icon-search"
@click="_QueryData(1)"
></el-button>
</el-input>
<el-input
placeholder="请输入学生学号"
v-model="query.studentCode"
class="input-with-select"
@keyup.enter.native="_QueryData(2)"
>
<el-button
slot="append"
icon="el-icon-search"
@click="_QueryData(2)"
></el-button>
</el-input>
</div>
</div>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
63
|
<div class="page-content">
|
1fa74ed0
梁保满
班级 不加归档入口, 班级、答题卡...
|
64
|
<!-- <template v-if="!code && role !== 'ROLE_PERSONAL'">
|
e5e4a3e6
梁保满
v1.3
|
65
66
67
68
|
<p class="tips" v-show="archivedTotal">
<span>另有{{ archivedTotal }}个班级已经归档,</span>
<router-link to="/archivedClazz">点击查看>></router-link>
</p>
|
1fa74ed0
梁保满
班级 不加归档入口, 班级、答题卡...
|
69
|
</template> -->
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
<div class="stu-box">
<div class="stu-list">
<div class="h-title">
<el-select
class="sel"
v-model="query.gradeName"
placeholder="选择年级"
@change="changeGrade"
>
<el-option
v-for="item in gradeList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
</div>
<ul class="stu-ul">
<li
class="stu-item"
|
e5e4a3e6
梁保满
v1.3
|
91
|
v-for="(item, index) in classList"
|
1365ef5e
梁保满
优化
|
92
|
:key="item.id"
|
560c12f2
阿宝
学校设置,软件下载
|
93
|
:class="query.classId == item.id ? 'active' : ''"
|
dd5150c5
阿宝
数据同步
|
94
|
@click="classDetail(item)"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
95
|
>
|
e5e4a3e6
梁保满
v1.3
|
96
|
<template v-if="!code && role !== 'ROLE_PERSONAL'">
|
1fa74ed0
梁保满
班级 不加归档入口, 班级、答题卡...
|
97
|
<!-- <el-tooltip effect="dark" content="班级归档" placement="top">
|
c3cdce9c
梁保满
bug
|
98
|
<div class="popconfirm-box">
|
4fab460c
梁保满
班级归档操作交互
|
99
100
101
102
103
|
<i
slot="reference"
class="fa fa-file-archive-o"
@click.stop="openArchivingDia(item, index)"
></i>
|
c3cdce9c
梁保满
bug
|
104
|
</div>
|
1fa74ed0
梁保满
班级 不加归档入口, 班级、答题卡...
|
105
|
</el-tooltip> -->
|
c3cdce9c
梁保满
bug
|
106
107
108
109
110
111
|
<el-tooltip effect="dark" content="修改班级" placement="top">
<i
class="el-icon-edit-outline"
@click.stop="setClass(item)"
></i>
</el-tooltip>
|
e5e4a3e6
梁保满
v1.3
|
112
|
</template>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
113
114
115
116
117
|
{{ item.className }}({{ item.studentCount }})
</li>
</ul>
</div>
<div class="stu-detail">
|
e5e4a3e6
梁保满
v1.3
|
118
|
<div class="clazz-detail" v-if="clazzDetail.stationSn">
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
119
120
121
122
|
<p>基站SN:{{ clazzDetail.stationSn }}</p>
<p>配对码:{{ clazzDetail.pairingCode }}</p>
<p>频点:{{ clazzDetail.frequency }}</p>
</div>
|
ec6394d1
梁保满
v1.3.1。细节调整
|
123
|
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
124
|
<ul class="s-ul" v-loading="loading">
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
125
126
127
128
129
|
<li
class="s-li"
v-for="(item, index) in studentList"
:key="item.id"
>
|
bb4c8454
阿宝
添加,修改教师
|
130
|
<el-popconfirm
|
255e2506
梁保满
飞书bug及优化
|
131
|
v-if="!code"
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
132
133
134
135
|
title="确定删除吗?"
@confirm="removeStu(item, index)"
>
<i class="el-icon-delete" slot="reference"></i>
|
bb4c8454
阿宝
添加,修改教师
|
136
|
</el-popconfirm>
|
ec6394d1
梁保满
v1.3.1。细节调整
|
137
138
139
140
141
142
143
144
145
146
147
|
<i
class="el-icon-user-solid"
v-if="!code"
@click="openChangeClazz(item)"
></i>
<p class="name">
{{ item.studentName }}
</p>
<p class="p2" v-if="!query.classId">
{{ getGradeName(item.grade) }}﹒{{ item.className }}
</p>
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
148
|
<p class="p1">答题器:{{ item.clickerSn || "--" }}</p>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
149
150
151
152
153
154
155
156
157
158
159
160
|
<p class="p1">长学号:{{ item.studentCode }}</p>
<p class="p1">短学号:{{ item.shortNumber || "--" }}</p>
</li>
</ul>
<el-empty
:image-size="100"
v-if="!studentList.length && loading == false"
description="没有更多数据"
></el-empty>
</div>
</div>
</div>
|
e5e4a3e6
梁保满
v1.3
|
161
162
163
164
165
166
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
205
206
|
<el-dialog title="学生调班" :visible.sync="diaChangeClass" width="400">
<el-form
class="form-box"
ref="formStuCla"
:model="formStuCla"
:rules="rulesStuCla"
label-width="160px"
>
<el-form-item label="学生姓名:">
<span>{{ formStuCla.studentName }}</span>
</el-form-item>
<el-form-item label="当前班级:">
<span>{{ formStuCla.className }}</span>
</el-form-item>
<el-form-item label="调到班级:">
<el-col :span="10">
<el-select
class="sel"
v-model="formStuCla.classId"
placeholder="选择年级"
>
<el-option
v-for="item in classList"
:key="item.id"
:label="item.className"
:value="item.id"
>
</el-option>
</el-select>
</el-col>
</el-form-item>
<el-form-item label="长学号:" prop="studentCode">
<el-col :span="10">
<el-input
maxlength="12"
placeholder="输入学生长学号"
v-model.trim="formStuCla.studentCode"
/>
</el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button @click="changeStu">确 定</el-button>
<el-button @click="diaChangeClass = false">取 消</el-button>
</div>
</el-dialog>
|
dd5150c5
阿宝
数据同步
|
207
208
|
<el-dialog title="添加学生" :visible.sync="diaStu" width="400">
<el-form
|
225a00b6
梁保满
飞书问题解决
|
209
|
ref="formBox"
|
dd5150c5
阿宝
数据同步
|
210
211
212
213
214
215
216
217
218
219
|
class="form-box"
:model="formStu"
:rules="rulesStu"
label-width="160px"
>
<el-form-item label="所在班级:">
<span>{{ formStu.className }}</span>
</el-form-item>
<el-form-item label="学生姓名:" prop="studentName">
<el-col :span="10">
|
255e2506
梁保满
飞书bug及优化
|
220
221
222
223
224
|
<el-input
maxlength="30"
placeholder="输入学生姓名"
v-model.trim="formStu.studentName"
/>
|
dd5150c5
阿宝
数据同步
|
225
226
227
228
|
</el-col>
</el-form-item>
<el-form-item label="长学号:" prop="studentCode">
<el-col :span="10">
|
255e2506
梁保满
飞书bug及优化
|
229
230
231
232
233
|
<el-input
maxlength="12"
placeholder="输入学生长学号"
v-model.trim="formStu.studentCode"
/>
|
dd5150c5
阿宝
数据同步
|
234
235
236
237
|
</el-col>
</el-form-item>
<el-form-item label="短学号:">
<el-col :span="10">
|
aeac66d4
阿宝
飞书测试bug
|
238
|
<el-input maxlength="12" v-model.trim="formStu.shortNumber" />
|
dd5150c5
阿宝
数据同步
|
239
240
241
242
243
244
245
246
247
248
|
</el-col>
</el-form-item>
<el-form-item label="性别:">
<el-radio-group v-model="formStu.sex">
<el-radio :label="1">男</el-radio>
<el-radio :label="2">女</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="答题器编码:">
<el-col :span="10">
|
9309dc5d
梁保满
任课老师接口完成
|
249
|
<el-input v-model.trim="formStu.clickerSn" />
|
dd5150c5
阿宝
数据同步
|
250
251
252
|
</el-col>
</el-form-item>
</el-form>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
253
|
<div class="dialog-footer" slot="footer">
|
dd5150c5
阿宝
数据同步
|
254
255
|
<el-button @click="addStu">确 定</el-button>
<el-button @click="diaStu = false">取 消</el-button>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
256
257
|
</div>
</el-dialog>
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
|
<el-dialog title="修改班级" :visible.sync="diaClass" width="400">
<el-form
class="form-box"
ref="formClass"
:model="formClass"
:rules="rulesClass"
label-width="160px"
>
<el-form-item label="所在年级:">
<span>{{ formClass.gradeName }}</span>
</el-form-item>
<el-form-item label="班级名称:" prop="studentName">
<el-col :span="10">
<el-input maxlength="30" v-model.trim="formClass.className" />
</el-col>
</el-form-item>
<el-form-item label="入学年份:" prop="studentCode">
<el-col :span="10">
<el-date-picker
v-model="formClass.intoSchoolYear"
type="year"
|
a37317f4
阿宝
使用分析,发卡记录
|
279
|
value-format="yyyy"
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
280
281
282
283
284
285
286
287
288
289
290
|
placeholder="选择年"
>
</el-date-picker>
</el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button @click="saveClass">确 定</el-button>
<el-button @click="diaClass = false">取 消</el-button>
</div>
</el-dialog>
|
14a23714
梁保满
学生答题卡绑定模版下载上传
|
291
|
<el-dialog title="学生答题器绑定" :visible.sync="diaUp" width="600">
|
f5729396
梁保满
批量设置答案
|
292
293
294
295
|
<up-load
id="downTeacher"
:url="url"
@upSuccess="upSuccess"
|
14a23714
梁保满
学生答题卡绑定模版下载上传
|
296
|
fileName="学生答题器绑定模板"
|
f5729396
梁保满
批量设置答案
|
297
298
|
>
<p class="down-txt" slot="down">
|
14a23714
梁保满
学生答题卡绑定模版下载上传
|
299
|
通过Excel名单导入学生答题器绑定模板,点击
|
f5729396
梁保满
批量设置答案
|
300
301
302
303
304
305
306
|
<el-link type="danger" @click="downExcel">模板下载</el-link> 。
</p>
</up-load>
<div class="dialog-footer" slot="footer">
<el-button @click="diaUp = false">取 消</el-button>
</div>
</el-dialog>
|
4fab460c
梁保满
班级归档操作交互
|
307
|
<el-dialog title="班级归档" :visible.sync="diaArchiving" width="400">
|
ec6394d1
梁保满
v1.3.1。细节调整
|
308
309
310
|
<p>
注意班级归档后,学生解除班级关系且相关老师任课信息将不存在,确认要将班级归档吗?
</p>
|
4fab460c
梁保满
班级归档操作交互
|
311
312
313
314
315
316
317
|
<div class="dialog-footer" slot="footer">
<el-button type="danger" @click="archivingClass">确认归档</el-button>
<el-button type="primary" @click="diaArchiving = false"
>取 消</el-button
>
</div>
</el-dialog>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
318
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
319
320
321
|
</template>
<script>
|
e5e4a3e6
梁保满
v1.3
|
322
|
import _ from "lodash";
|
ec6394d1
梁保满
v1.3.1。细节调整
|
323
|
import { setGradeName } from "@/utils";
|
4c4f7640
梁保满
路由表,路由前端文件
|
324
|
export default {
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
325
326
|
data() {
return {
|
255e2506
梁保满
飞书bug及优化
|
327
|
code: "",
|
f5729396
梁保满
批量设置答案
|
328
329
|
role: "",
diaUp: false,
|
14a23714
梁保满
学生答题卡绑定模版下载上传
|
330
|
url: "/api_html/school/manager/importStudentClicker",
|
dd5150c5
阿宝
数据同步
|
331
|
diaStu: false,
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
332
|
diaClass: false,
|
e5e4a3e6
梁保满
v1.3
|
333
|
diaChangeClass: false,
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
334
|
clazzDetail: { stationSn: "", pairingCode: "", frequency: "" },
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
335
336
337
338
339
340
|
query: {
gradeName: "",
classId: "",
studentCode: "",
studentName: "",
},
|
dd5150c5
阿宝
数据同步
|
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
|
formStu: {
className: "",
studentName: "",
studentCode: "",
shortNumber: "",
sex: 1,
clickerSn: "",
},
rulesStu: {
studentName: [
{ required: true, message: "请输入学生名称", trigger: "blur" },
],
studentCode: [
{ required: true, message: "请输入学生长学号", trigger: "blur" },
],
},
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
357
358
359
360
361
362
363
364
365
366
|
formClass: {
gradeName: "",
className: "",
intoSchoolYear: "",
},
rulesClass: {
className: [
{ required: true, message: "请输入班级名称", trigger: "blur" },
],
},
|
e5e4a3e6
梁保满
v1.3
|
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
|
formStuCla: {
studentName: "",
studentId: "",
oldClassId: "",
className: "",
classId: "",
studentCode: "",
},
rulesStuCla: {
className: [
{ required: true, message: "请输入班级名称", trigger: "blur" },
],
studentCode: [
{ required: true, message: "请输入学生号", trigger: "blur" },
],
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
383
384
385
386
387
388
389
390
391
392
393
394
395
|
gradeName: "",
gradeList: [],
classList: [],
studentList: [],
teacherDetail: {
teacherName: "",
loginName: "",
sex: "",
available: "",
managerList: [],
teacherCourseList: [],
teacherGradeList: [],
},
|
4fab460c
梁保满
班级归档操作交互
|
396
|
diaArchiving: false,
|
e5e4a3e6
梁保满
v1.3
|
397
|
archivedTotal: 0, //已归档班级
|
4fab460c
梁保满
班级归档操作交互
|
398
399
|
archivingObj: {}, //即将归档班级信息
archivingIndex: 0, //即将归档班级下标
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
400
401
402
|
};
},
async created() {
|
255e2506
梁保满
飞书bug及优化
|
403
|
this.code = localStorage.getItem("csCode") || "";
|
54857fa3
梁保满
下载模板跨域,集团管理员选择角色范...
|
404
405
406
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
|
e5e4a3e6
梁保满
v1.3
|
407
|
this._QueryArchivedNum();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
408
|
await this._QueryDataGrade();
|
560c12f2
阿宝
学校设置,软件下载
|
409
|
await this._QueryClass();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
410
411
412
|
this._QueryData(3);
},
methods: {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
413
414
415
|
getGradeName(type) {
return setGradeName(type);
},
|
dd5150c5
阿宝
数据同步
|
416
|
openAddDia() {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
417
418
419
|
if (!this.query.classId) {
this.$message.warning("暂无班级信息,请选择或导入班级!");
return;
|
84bc1b0b
梁保满
打印样式调整,添加学生钱判断有无班级
|
420
|
}
|
dd5150c5
阿宝
数据同步
|
421
422
423
424
425
426
427
428
|
this.formStu.studentName = "";
this.formStu.studentCode = "";
this.formStu.shortNumber = "";
this.formStu.sex = 1;
this.formStu.clickerSn = "";
this.diaStu = true;
},
classDetail(obj) {
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
429
430
431
|
this.clazzDetail.stationSn = obj.stationSn;
this.clazzDetail.pairingCode = obj.pairingCode;
this.clazzDetail.frequency = obj.frequency;
|
dd5150c5
阿宝
数据同步
|
432
433
|
this.query.classId = obj.id;
this.formStu.className = obj.className;
|
e5e4a3e6
梁保满
v1.3
|
434
|
this.formStuCla.className = obj.className;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
435
436
|
this._QueryData(3);
},
|
e5e4a3e6
梁保满
v1.3
|
437
|
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
|
setClass(obj) {
this.formClass.gradeName = obj.gradeName;
this.formClass.classId = obj.id;
this.formClass.className = obj.className;
this.formClass.intoSchoolYear = obj.intoSchoolYear + "";
this.diaClass = true;
},
saveClass() {
this.$refs.formClass.validate(async (valid) => {
if (valid) {
const { data, status, info } = await this.$request.updateClass({
classId: this.formClass.classId,
className: this.formClass.className,
intoSchoolYear: this.formClass.intoSchoolYear,
});
if (status === 0) {
this.$message.success("修改成功");
this.diaClass = false;
this._QueryClass();
} else {
this.$message.error(info);
}
} else {
|
e5ff81a1
阿宝
集团管理员接口
|
461
|
this.$message.warning("输入有误请检查!");
|
0a4de034
阿宝
教师管理,学生管理班级设置
|
462
463
464
465
|
return false;
}
});
},
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
466
467
468
469
|
upSuccess(res) {
this.$message.closeAll();
this.$message({
showClose: true,
|
fc9cbff6
梁保满
上传信息显示调整
|
470
|
message: `成功(${res.data.success})`,
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
471
|
type: "success",
|
54857fa3
梁保满
下载模板跨域,集团管理员选择角色范...
|
472
|
duration: 5000,
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
473
|
});
|
f5729396
梁保满
批量设置答案
|
474
475
476
477
|
//导入成功
this.diaUp = false;
this._QueryData(3);
},
|
e5e4a3e6
梁保满
v1.3
|
478
|
//添加学生
|
225a00b6
梁保满
飞书问题解决
|
479
|
addStu() {
|
dd5150c5
阿宝
数据同步
|
480
481
482
483
484
485
486
|
let query = {};
for (let key in this.formStu) {
if (key != "className" && this.formStu[key]) {
query[key] = this.formStu[key];
}
}
this.loading = true;
|
225a00b6
梁保满
飞书问题解决
|
487
488
|
this.$refs.formBox.validate(async (valid) => {
if (valid) {
|
255e2506
梁保满
飞书bug及优化
|
489
490
491
492
493
494
495
496
|
let hasName = this.studentList.find((item) => {
return item.studentName == this.formStu.studentName;
});
console.log(hasName);
if (hasName) {
this.$message.warning("学生姓名已存在");
return;
}
|
225a00b6
梁保满
飞书问题解决
|
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
|
const { data, status, info } = await this.$request.addStudent({
classId: this.query.classId,
...query,
});
this.loading = false;
console.log(status);
if (status === 0) {
this.$message.success(info);
this.diaStu = false;
this._QueryClass();
this._QueryData();
} else {
this.$message.error(info);
}
} else {
this.$message.error("数据有误,请检查!");
}
|
dd5150c5
阿宝
数据同步
|
514
|
});
|
dd5150c5
阿宝
数据同步
|
515
|
},
|
e5e4a3e6
梁保满
v1.3
|
516
517
518
519
520
|
//学生调班弹窗
openChangeClazz(obj) {
this.formStuCla.studentId = obj.id;
this.formStuCla.studentName = obj.studentName;
this.formStuCla.studentCode = obj.studentCode;
|
ec6394d1
梁保满
v1.3.1。细节调整
|
521
522
|
this.formStuCla.classId = obj.classId;
this.formStuCla.oldClassId = obj.classId;
|
e5e4a3e6
梁保满
v1.3
|
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
|
this.diaChangeClass = true;
},
//学生调班
changeStu: _.throttle(
function () {
this.$refs.formStuCla.validate(async (valid) => {
if (valid) {
const { data, status, info } =
await this.$request.studentChangeClass({
studentId: this.formStuCla.studentId,
oldClassId: this.formStuCla.oldClassId,
classId: this.formStuCla.classId,
studentCode: this.formStuCla.studentCode,
});
if (status == 0) {
this.diaChangeClass = false;
this.$message.success(info);
|
ec6394d1
梁保满
v1.3.1。细节调整
|
540
|
this._QueryClass();
|
e5e4a3e6
梁保满
v1.3
|
541
542
543
544
545
546
547
548
549
550
551
552
|
this._QueryData();
} else {
this.$message.error(info);
}
} else {
this.$message.error("数据有误请检查!");
}
});
},
2000,
{ leading: true, trailing: false }
),
|
4fab460c
梁保满
班级归档操作交互
|
553
554
555
556
557
558
|
openArchivingDia(obj, index) {
this.archivingObj = { ...obj };
this.archivingIndex = index;
this.diaArchiving = true;
},
|
e5e4a3e6
梁保满
v1.3
|
559
|
//班级归档
|
4fab460c
梁保满
班级归档操作交互
|
560
|
async archivingClass() {
|
e5e4a3e6
梁保满
v1.3
|
561
|
const { data, status, info } = await this.$request.classArchiving({
|
4fab460c
梁保满
班级归档操作交互
|
562
|
classId: this.archivingObj.id,
|
e5e4a3e6
梁保满
v1.3
|
563
|
});
|
4fab460c
梁保满
班级归档操作交互
|
564
|
this.diaArchiving = false;
|
e5e4a3e6
梁保满
v1.3
|
565
566
|
if (status === 0) {
this.$message.success("归档成功");
|
4fab460c
梁保满
班级归档操作交互
|
567
568
569
570
571
572
|
this.classList.splice(this.archivingIndex, 1);
if (this.archivingIndex == this.classList.length) {
this.classDetail(this.classList[this.archivingIndex - 1]);
} else {
this.classDetail(this.classList[this.archivingIndex]);
}
|
c3cdce9c
梁保满
bug
|
573
|
this._QueryArchivedNum();
|
47a01cb6
梁保满
v1.3测试问题
|
574
|
this._QueryData(3);
|
e5e4a3e6
梁保满
v1.3
|
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
|
} else {
this.$message.error(info);
}
},
async removeStu(obj, index) {
const { data, status, info } = await this.$request.delStudent({
studentId: obj.id,
});
if (status === 0) {
this.$message.success("删除成功");
this.studentList.splice(index, 1);
this._QueryClass();
} else {
this.$message.error(info);
}
},
async changeGrade(val) {
this.query.classId = "";
await this._QueryClass(val);
this._QueryData(3);
},
async _QueryArchivedNum() {
const { data, status, info } = await this.$request.archivingClassList();
if (status === 0) {
this.archivedTotal = data?.count || 0;
} else {
this.$message.error(info);
}
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
604
605
|
async _QueryData(type) {
let query = {};
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
606
|
if (type == 1) {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
607
|
this.query.classId = "";
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
608
609
610
|
query.studentName = this.query.studentName;
this.query.studentCode = "";
} else if (type == 2) {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
611
|
this.query.classId = "";
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
612
613
614
615
616
|
query.studentCode = this.query.studentCode;
this.query.studentName = "";
} else if (type == 3) {
this.query.studentName = "";
this.query.studentCode = "";
|
ec6394d1
梁保满
v1.3.1。细节调整
|
617
618
|
query.gradeName = this.query.gradeName;
query.classId = this.query.classId;
|
225a00b6
梁保满
飞书问题解决
|
619
620
|
} else {
query = this.query;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
|
}
this.loading = true;
const { data, status, info } = await this.$request.studentList({
...query,
});
this.loading = false;
console.log(status);
if (status === 0) {
this.studentList = data.list || [];
} else {
this.$message.error(info);
}
},
async _QueryDataGrade() {
this.loading = true;
const { data, status, info } = await this.$request.gradeList();
if (status === 0) {
this.gradeList =
data.list?.map((item) => {
return {
value: item.gradeName,
label: item.gradeName,
};
}) || [];
this.query.gradeName = this.gradeList[0]?.value;
} else {
this.$message.error(info);
}
},
async _QueryClass(value) {
const { data, status, info } = await this.$request.schoolClassList({
gradeName: value || this.query.gradeName,
});
if (status === 0) {
this.classList = [...data.list] || [];
|
560c12f2
阿宝
学校设置,软件下载
|
656
|
this.query.classId = this.classList[0]?.id;
|
dd5150c5
阿宝
数据同步
|
657
|
this.formStu.className = this.classList[0]?.className;
|
e5e4a3e6
梁保满
v1.3
|
658
|
this.formStuCla.className = this.classList[0]?.className;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
659
660
661
|
this.clazzDetail.stationSn = this.classList[0]?.stationSn;
this.clazzDetail.pairingCode = this.classList[0]?.pairingCode;
this.clazzDetail.frequency = this.classList[0]?.frequency;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
662
663
664
665
|
} else {
this.$message.error(info);
}
},
|
54857fa3
梁保满
下载模板跨域,集团管理员选择角色范...
|
666
|
async downExcel() {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
667
668
669
670
671
|
this.loadingDown = true;
let { data, info, status } =
await this.$request.studentClickerTemplateUrl();
this.loadingDown = false;
if (status == 0) {
|
54857fa3
梁保满
下载模板跨域,集团管理员选择角色范...
|
672
673
674
675
676
|
const a = document.createElement("a");
a.href = data.downloadUrl;
document.body.appendChild(a);
a.click();
a.remove();
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
677
678
679
680
|
} else {
this.$message.error(info);
}
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
681
682
|
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
683
684
|
</script>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
685
686
|
<style lang="scss" scoped>
.page-content {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
687
|
padding: 0 20px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
688
|
}
|
e5e4a3e6
梁保满
v1.3
|
689
690
691
692
693
694
695
|
.tips {
display: flex;
line-height: 16px;
font-size: 14px;
color: #999;
margin-bottom: 10px;
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
696
697
698
699
700
|
.stu-box {
display: flex;
background: #f8f8f8;
border-radius: 10px;
overflow: hidden;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
701
|
.answer-header {
|
e5e4a3e6
梁保满
v1.3
|
702
|
padding-top: 10px;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
703
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
704
705
706
707
|
.stu-list {
max-height: 80vh;
.h-title {
height: 40px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
708
709
710
711
712
713
714
715
716
717
718
719
720
|
line-height: 40px;
background: #eee;
}
.stu-item {
font-size: 16px;
color: #7f7f7f;
line-height: 36px;
cursor: pointer;
padding-left: 12px;
position: relative;
.el-icon-edit-outline {
position: absolute;
top: 8px;
|
e5e4a3e6
梁保满
v1.3
|
721
|
right: 4px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
722
723
724
725
726
727
|
font-size: 20px;
display: none;
&:hover {
color: #667ffd;
}
}
|
e5e4a3e6
梁保满
v1.3
|
728
729
730
731
732
733
734
735
736
737
738
|
.popconfirm-box {
position: absolute;
top: 6px;
right: 31px;
font-size: 17px;
line-height: 24px;
display: none;
&:hover {
color: #667ffd;
}
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
739
740
741
742
743
|
&:hover {
background: #eee;
.el-icon-edit-outline {
display: block;
}
|
e5e4a3e6
梁保满
v1.3
|
744
745
746
|
.popconfirm-box {
display: block;
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
747
748
749
|
}
&.active {
color: #667ffd;
|
6d7bd862
梁保满
飞书bug
|
750
|
background: #eee;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
|
}
}
.sel {
width: 180px;
:deep(.el-input__inner) {
font-size: 16px;
padding-left: 0;
border: none;
background: transparent;
}
:deep(.el-icon-arrow-up:before) {
content: "\e78f";
}
}
}
.stu-detail {
flex: 1;
border-left: 0.5px solid #eee;
.s-ul {
display: flex;
flex-wrap: wrap;
padding-left: 20px;
.s-li {
width: 180px;
|
ec6394d1
梁保满
v1.3.1。细节调整
|
775
|
min-height: 120px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
776
777
778
779
780
|
box-shadow: 2px 2px 5px #7f7f7f;
border-radius: 10px;
margin: 0 20px 20px 0;
padding: 0 12px 5px;
position: relative;
|
e5e4a3e6
梁保满
v1.3
|
781
782
783
784
785
786
787
788
789
790
791
792
793
|
.el-icon-user-solid {
position: absolute;
top: 8px;
left: 8px;
font-size: 18px;
color: #666;
padding: 2px;
display: none;
cursor: pointer;
&:hover {
color: #667ffd;
}
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
794
795
796
797
798
799
800
801
802
803
804
805
806
|
.el-icon-delete {
position: absolute;
top: 8px;
right: 8px;
font-size: 18px;
padding: 2px;
display: none;
cursor: pointer;
&:hover {
color: #667ffd;
}
}
&:hover {
|
e5e4a3e6
梁保满
v1.3
|
807
808
809
|
.el-icon-user-solid {
display: block;
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
|
.el-icon-delete {
display: block;
}
}
.name {
text-align: center;
font-size: 16px;
line-height: 18px;
padding: 10px 0;
}
.p1 {
color: #7f7f7f;
line-height: 20px;
padding-bottom: 5px;
}
|
ec6394d1
梁保满
v1.3.1。细节调整
|
825
826
827
828
829
|
.p2 {
color: #333;
line-height: 20px;
padding-bottom: 5px;
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
830
831
832
|
}
}
}
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
833
834
|
.clazz-detail {
display: flex;
|
ec6394d1
梁保满
v1.3.1。细节调整
|
835
|
padding: 12px 12px 12px 20px;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
836
837
838
839
840
|
p {
margin-right: 16px;
color: #666;
}
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
841
|
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
842
|
</style>
|