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