4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
db11048f
阿宝
设备状态,学校管理
|
2
3
4
5
6
|
<div>
<back-box>
<template slot="title">
<span>学校设置</span>
</template>
|
b21d90ef
梁保满
长水登录
|
7
|
<template slot="btns" v-if="!code">
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
8
|
<el-tooltip effect="dark" content="导入班级名单" placement="bottom">
|
db11048f
阿宝
设备状态,学校管理
|
9
10
11
12
13
14
15
16
17
|
<el-button
type="primary"
icon="el-icon-upload2"
size="mini"
plain
circle
@click="diaUp = true"
></el-button>
</el-tooltip>
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
18
19
20
21
22
23
24
25
26
27
|
<el-tooltip effect="dark" content="导出班级名单" placement="bottom">
<el-button
type="primary"
icon="el-icon-download"
size="mini"
plain
circle
@click="exportClazzExl"
></el-button>
</el-tooltip>
|
db11048f
阿宝
设备状态,学校管理
|
28
29
30
31
|
</template>
</back-box>
<div class="page-content">
<div class="content-box">
|
560c12f2
阿宝
学校设置,软件下载
|
32
|
<i class="el-icon-edit" @click="diaSchool = true"></i>
|
db11048f
阿宝
设备状态,学校管理
|
33
34
35
|
<ul class="school-info">
<li class="school-item">
<span class="s1">学校名称:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
36
|
<span class="s2">{{ school.schoolName || "--" }}</span>
|
db11048f
阿宝
设备状态,学校管理
|
37
38
39
|
</li>
<li class="school-item">
<span class="s1">授课端管理密码:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
40
|
<span class="s2">{{ school.managePwd || "--" }}</span>
|
db11048f
阿宝
设备状态,学校管理
|
41
42
43
|
</li>
<li class="school-item">
<span class="s1">联系人:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
44
|
<span class="s2">{{ school.contactPerson || "--" }}</span>
|
db11048f
阿宝
设备状态,学校管理
|
45
46
47
|
</li>
<li class="school-item">
<span class="s1">手机号码:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
48
|
<span class="s2">{{ school.contactPhone || "--" }}</span>
|
db11048f
阿宝
设备状态,学校管理
|
49
50
51
|
</li>
<li class="school-item">
<span class="s1">学段:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
52
53
54
|
<span class="s2">{{
school.sections | getSections(school.sections)
}}</span>
|
db11048f
阿宝
设备状态,学校管理
|
55
56
57
|
</li>
<li class="school-item">
<span class="s1">所属集团:</span>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
58
|
<span class="s2">{{ school.tenantName || "--" }}</span>
|
db11048f
阿宝
设备状态,学校管理
|
59
|
</li>
|
4c2fb560
梁保满
反馈新需求
|
60
61
62
63
|
<li class="school-item">
<span class="s1">基站登录密码 :</span>
<span class="s2">{{ school.stationPwd || "--" }}</span>
</li>
|
db11048f
阿宝
设备状态,学校管理
|
64
65
|
</ul>
<div class="grade-box">
|
e5e4a3e6
梁保满
v1.3
|
66
67
68
69
70
71
|
<p class="h-title">
年级管理
<span class="popconfirm-box" @click="diaUpgradeGrade = true">
年级升级<i class="fa fa-level-up"></i>
</span>
</p>
|
db11048f
阿宝
设备状态,学校管理
|
72
|
<ul class="grade-info">
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
73
74
75
76
77
78
79
|
<li
class="grade-item"
v-for="item in tableData"
:key="item.grade"
@click="setGrade(item)"
>
<p class="grade-name">{{ item.gradeName }}</p>
|
db11048f
阿宝
设备状态,学校管理
|
80
|
<div class="grade-class">
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
81
82
83
84
85
86
87
88
89
90
|
<p>
<i class="fa fa-building"></i>班级:{{
item.classList.length
}}个
</p>
<p>
<i class="fa fa-book"></i>科目:{{
item.subjectNames.length
}}个
</p>
|
db11048f
阿宝
设备状态,学校管理
|
91
92
93
|
</div>
</li>
</ul>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
94
95
96
97
98
|
<el-empty
:image-size="100"
v-if="!tableData.length && loading == false"
description="没有更多数据"
></el-empty>
|
db11048f
阿宝
设备状态,学校管理
|
99
100
101
102
|
</div>
</div>
</div>
<el-dialog title="导入学校名单" :visible.sync="diaUp" width="400">
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
103
104
105
106
107
108
|
<up-load
id="downDevice"
:url="url"
@upSuccess="upSuccess"
fileName="学校名单"
>
|
db11048f
阿宝
设备状态,学校管理
|
109
|
<p class="down-txt" slot="down">
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
110
|
通过Excel导入学校全部班级名单,点击
|
db11048f
阿宝
设备状态,学校管理
|
111
112
113
114
115
116
117
|
<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>
|
dd5150c5
阿宝
数据同步
|
118
119
120
121
122
123
124
125
|
<el-dialog title="修改年级信息" :visible.sync="diaGrade" width="400">
<el-form
class="form-box"
:model="formGrade"
:rules="rulesGrade"
label-width="160px"
>
<el-form-item label="科目:" prop="subjectNames">
|
225a00b6
梁保满
飞书问题解决
|
126
127
128
129
|
<div class="subject-box" :class="showAll ? 'active' : ''">
<span class="showAll" @click="showAll = !showAll">{{
showAll ? "收起" : "更多..."
}}</span>
|
ca39cc52
阿宝
飞书问题处理
|
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<el-checkbox-group v-model="formGrade.subjectNames">
<el-checkbox
v-for="item in subjectList"
:label="item"
:key="item"
>{{ item }}</el-checkbox
>
</el-checkbox-group>
</div>
<el-col :span="8">
<el-input
placeholder="添加科目"
v-model.trim="subjectName"
maxlength="30"
|
dd5150c5
阿宝
数据同步
|
144
|
>
|
ca39cc52
阿宝
飞书问题处理
|
145
146
147
148
149
150
151
|
<i
slot="suffix"
class="el-input__icon el-icon-plus"
@click="addSubjectName"
></i>
</el-input>
</el-col>
|
dd5150c5
阿宝
数据同步
|
152
153
154
155
156
157
158
159
160
161
162
163
164
165
|
</el-form-item>
<el-form-item label="班级:">
<span v-for="(item, index) in formGrade.classList" :key="item.id">{{
`${item.className}${
index == formGrade.classList.length - 1 ? "" : "、"
}`
}}</span>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button @click="editGrade">确 定</el-button>
<el-button @click="diaGrade = false">取 消</el-button>
</div>
</el-dialog>
|
560c12f2
阿宝
学校设置,软件下载
|
166
167
|
<el-dialog title="修改学校信息" :visible.sync="diaSchool" width="400">
<el-form
|
225a00b6
梁保满
飞书问题解决
|
168
|
ref="formSchool"
|
560c12f2
阿宝
学校设置,软件下载
|
169
170
171
172
173
174
175
176
177
|
class="form-box"
:model="formSchool"
:rules="rulesSchool"
label-width="160px"
>
<el-form-item label="学段:" prop="sections">
<el-checkbox-group v-model="formSchool.sections">
<el-checkbox
v-for="item in sectionsList"
|
c3cdce9c
梁保满
bug
|
178
179
|
:label="item.code"
:key="item.code"
|
560c12f2
阿宝
学校设置,软件下载
|
180
181
182
183
184
185
186
|
>{{ item.name }}</el-checkbox
>
</el-checkbox-group>
</el-form-item>
<el-form-item label="授课端管理密码:" prop="managePwd">
<el-col :span="10">
<el-input
|
225a00b6
梁保满
飞书问题解决
|
187
|
maxlength="20"
|
560c12f2
阿宝
学校设置,软件下载
|
188
|
v-model="formSchool.managePwd"
|
225a00b6
梁保满
飞书问题解决
|
189
|
show-password
|
560c12f2
阿宝
学校设置,软件下载
|
190
191
192
193
|
placeholder="请输入授课端管理密码"
></el-input>
</el-col>
</el-form-item>
|
4c2fb560
梁保满
反馈新需求
|
194
195
196
197
198
199
200
201
202
203
|
<el-form-item label="基站登录密码:" prop="stationPwd">
<el-col :span="10">
<el-input
maxlength="6"
v-model="formSchool.stationPwd"
show-password
placeholder="请输入基站登录密码"
></el-input>
</el-col>
</el-form-item>
|
560c12f2
阿宝
学校设置,软件下载
|
204
205
206
207
208
209
210
211
212
213
214
|
<el-form-item label="联系人:" prop="contactPerson"
><el-col :span="10"
><el-input
maxlength="30"
v-model="formSchool.contactPerson"
placeholder="请输入联系人"
></el-input></el-col
></el-form-item>
<el-form-item label="手机号码:" prop="contactPhone"
><el-col :span="10"
><el-input
|
560c12f2
阿宝
学校设置,软件下载
|
215
|
v-model="formSchool.contactPhone"
|
e5ff81a1
阿宝
集团管理员接口
|
216
|
type="number"
|
ca39cc52
阿宝
飞书问题处理
|
217
|
oninput="if(value.length > 11) value = value.slice(0,11)"
|
560c12f2
阿宝
学校设置,软件下载
|
218
219
220
221
222
223
224
225
226
|
placeholder="请输入联系人手机号码"
></el-input></el-col
></el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button @click="editSchool">确 定</el-button>
<el-button @click="diaSchool = false">取 消</el-button>
</div>
</el-dialog>
|
e5e4a3e6
梁保满
v1.3
|
227
228
229
230
231
232
233
234
235
|
<el-dialog title="班级升级" :visible.sync="diaUpgradeGrade" width="400">
<p>注意该操作会将所有年级升级,请谨慎操作!</p>
<div class="dialog-footer" slot="footer">
<el-button type="danger" @click="_UpgradeGrade()">确认升级</el-button>
<el-button type="primary" @click="diaUpgradeGrade = false"
>取 消</el-button
>
</div>
</el-dialog>
|
db11048f
阿宝
设备状态,学校管理
|
236
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
237
238
239
|
</template>
<script>
|
db11048f
阿宝
设备状态,学校管理
|
240
|
import { downloadFile } from "@/utils";
|
4c4f7640
梁保满
路由表,路由前端文件
|
241
|
export default {
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
filters: {
getSections(val) {
let arr = val.split(",");
let sections = arr.map((item) => {
let txt;
switch (item) {
case "0":
txt = "未知";
break;
case "1":
txt = "小学";
break;
case "2":
txt = "初中";
break;
case "3":
txt = "高中";
break;
case "4":
txt = "大学";
break;
case "7":
txt = "未知";
break;
default:
txt = "未知";
}
return txt;
});
return sections.join(",");
},
},
|
db11048f
阿宝
设备状态,学校管理
|
274
275
|
data() {
return {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
276
|
code: "", //长水跳转标志
|
560c12f2
阿宝
学校设置,软件下载
|
277
|
loading: false,
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
278
|
url: "/api_html/school/manager/importClassAndStudent",
|
db11048f
阿宝
设备状态,学校管理
|
279
|
diaUp: false,
|
560c12f2
阿宝
学校设置,软件下载
|
280
|
diaSchool: false,
|
dd5150c5
阿宝
数据同步
|
281
|
diaGrade: false,
|
225a00b6
梁保满
飞书问题解决
|
282
|
showAll: false, //修改年级科目显示
|
db11048f
阿宝
设备状态,学校管理
|
283
|
school: {
|
dd5150c5
阿宝
数据同步
|
284
285
286
287
288
289
|
schoolName: "",
managePwd: "",
contactPerson: "",
contactPhone: "",
sections: "",
tenantName: "",
|
db11048f
阿宝
设备状态,学校管理
|
290
|
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
291
|
tableData: [],
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
292
293
|
formSchool: {
//修改学校
|
560c12f2
阿宝
学校设置,软件下载
|
294
295
|
sections: "",
managePwd: "",
|
4c2fb560
梁保满
反馈新需求
|
296
|
stationPwd: "",
|
560c12f2
阿宝
学校设置,软件下载
|
297
298
299
300
301
302
303
|
contactPerson: "",
contactPhone: "",
},
rulesSchool: {
sections: [{ required: true, message: "请选择学段", trigger: "blur" }],
managePwd: [
{ required: true, message: "请填写管理密码", trigger: "blur" },
|
225a00b6
梁保满
飞书问题解决
|
304
305
306
307
308
309
|
{
min: 8,
max: 20,
message: "长度在 8 到 20 个字符",
trigger: "blur",
},
|
560c12f2
阿宝
学校设置,软件下载
|
310
|
],
|
4c2fb560
梁保满
反馈新需求
|
311
312
313
314
315
316
317
318
319
|
stationPwd: [
{ required: true, message: "请填写基站登陆密码", trigger: "blur" },
{
min: 6,
max: 6,
message: "长度为 6 个字符",
trigger: "blur",
},
],
|
560c12f2
阿宝
学校设置,软件下载
|
320
|
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
321
322
|
formGrade: {
//修改年级
|
dd5150c5
阿宝
数据同步
|
323
324
325
326
327
328
329
330
331
|
gradeName: "",
subjectNames: [],
classList: [],
},
rulesGrade: {
subjectNames: [
{ required: true, message: "请选择科目", trigger: "blur" },
],
},
|
ca39cc52
阿宝
飞书问题处理
|
332
|
subjectName: "",
|
c3cdce9c
梁保满
bug
|
333
|
sectionsList: [],
|
dd5150c5
阿宝
数据同步
|
334
|
subjectList: [],
|
e5e4a3e6
梁保满
v1.3
|
335
|
diaUpgradeGrade: false, //班级升级
|
db11048f
阿宝
设备状态,学校管理
|
336
337
|
};
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
338
|
created() {
|
225a00b6
梁保满
飞书问题解决
|
339
|
this.code = localStorage.getItem("csCode") || "";
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
340
341
|
this._QueryDataSchool();
this._QueryDataGrade();
|
dd5150c5
阿宝
数据同步
|
342
|
this._QuerySubject();
|
c3cdce9c
梁保满
bug
|
343
|
this._QuerySectionList();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
344
|
},
|
db11048f
阿宝
设备状态,学校管理
|
345
|
methods: {
|
757a21e3
梁保满
上传成功提示成功数量
|
346
|
upSuccess(res) {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
347
|
//导入成功
|
757a21e3
梁保满
上传成功提示成功数量
|
348
349
350
351
352
|
this.$message.closeAll();
this.$message({
showClose: true,
message: `成功(${res.data.success})`,
type: "success",
|
e5e4a3e6
梁保满
v1.3
|
353
|
duration: 5000,
|
757a21e3
梁保满
上传成功提示成功数量
|
354
|
});
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
355
|
this.diaUp = false;
|
255e2506
梁保满
飞书bug及优化
|
356
357
358
|
this._QueryDataSchool();
this._QueryDataGrade();
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
359
360
|
setGrade(obj) {
//打开年级设置
|
dd5150c5
阿宝
数据同步
|
361
362
363
|
this.formGrade.subjectNames = obj.subjectNames;
this.formGrade.classList = obj.classList;
this.formGrade.gradeName = obj.gradeName;
|
225a00b6
梁保满
飞书问题解决
|
364
|
this.showAll = false;
|
dd5150c5
阿宝
数据同步
|
365
366
|
this.diaGrade = true;
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
367
368
|
addSubjectName() {
//添加科目
|
ca39cc52
阿宝
飞书问题处理
|
369
370
371
|
if (!this.subjectName) {
this.$message.warning("请填写科目名称");
return;
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
372
|
} else if (this.subjectList.includes(this.subjectName)) {
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
373
374
|
this.$message.warning("科目已存在,请重新填写~");
return;
|
dd5150c5
阿宝
数据同步
|
375
|
}
|
ca39cc52
阿宝
飞书问题处理
|
376
377
378
|
this.subjectList.push(this.subjectName);
this.formGrade.subjectNames.push(this.subjectName);
this.subjectName = "";
|
dd5150c5
阿宝
数据同步
|
379
|
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
380
381
|
editSchool() {
//保存修改学校信息
|
560c12f2
阿宝
学校设置,软件下载
|
382
383
384
385
386
387
388
389
|
if (!this.formSchool.sections.length) {
this.$message.error("请选择学段!");
return;
}
if (!this.formSchool.managePwd) {
this.$message.error("请填写密码!");
return;
}
|
4c2fb560
梁保满
反馈新需求
|
390
391
392
393
|
if (!this.formSchool.stationPwd) {
this.$message.error("请填写基站登录密码!");
return;
}
|
560c12f2
阿宝
学校设置,软件下载
|
394
395
396
|
if (this.loading) {
return;
}
|
225a00b6
梁保满
飞书问题解决
|
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
|
this.$refs.formSchool.validate(async (valid) => {
if (valid) {
this.loading = true;
let form = { ...this.formSchool };
form.sections = this.formSchool.sections.join(",");
const { data, status, info } = await this.$request.updateSchool({
...form,
});
this.loading = false;
if (status === 0) {
this.$message.success("修改成功~");
this.diaSchool = false;
this._QueryDataSchool();
} else {
this.$message.error(info);
}
} else {
this.$message.error("数据有误,请检查!");
}
|
dd5150c5
阿宝
数据同步
|
416
|
});
|
560c12f2
阿宝
学校设置,软件下载
|
417
|
},
|
e5e4a3e6
梁保满
v1.3
|
418
419
420
421
422
423
424
425
426
427
428
429
430
|
async _UpgradeGrade() {
this.loading = true;
const { data, status, info } = await this.$request.upgradeGrade();
this.loading = false;
if (status === 0) {
this.$message.success("升级成功~");
this.diaUpgradeGrade = false;
this._QueryDataGrade();
this._QuerySubject();
} else {
this.$message.error(info);
}
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
431
432
|
async editGrade() {
//保存修改年级信息
|
dd5150c5
阿宝
数据同步
|
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
|
if (!this.formGrade.subjectNames.length) {
this.$message.error("请选择科目!");
return;
}
if (this.loading) {
return;
}
this.loading = true;
const { data, status, info } = await this.$request.updateGrade({
gradeName: this.formGrade.gradeName,
subjectNames: this.formGrade.subjectNames,
});
this.loading = false;
if (status === 0) {
this.$message.success("修改成功~");
this.diaGrade = false;
this._QueryDataGrade();
} else {
this.$message.error(info);
}
},
|
c3cdce9c
梁保满
bug
|
454
455
456
457
458
459
460
461
462
463
|
async _QuerySectionList() {
//学校学段
const { data, status, info } = await this.$request.sectionList();
console.log(status);
if (status === 0) {
this.sectionsList = data?.list || [];
} else {
this.$message.error(info);
}
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
464
465
|
async _QueryDataSchool() {
//学校详情
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
466
467
468
469
470
471
|
this.loading = true;
const { data, status, info } = await this.$request.schoolDetail();
this.loading = false;
console.log(status);
if (status === 0) {
this.school = { ...data };
|
560c12f2
阿宝
学校设置,软件下载
|
472
473
474
475
|
for (let key in this.formSchool) {
this.formSchool[key] = data[key] || "";
}
this.formSchool.sections = this.formSchool.sections.split(",");
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
|
} else {
this.$message.error(info);
}
},
async _QueryDataGrade() {
this.loading = true;
const { data, status, info } = await this.$request.gradeList();
this.loading = false;
console.log(status);
if (status === 0) {
this.tableData = data.list || [];
} else {
this.$message.error(info);
}
},
|
dd5150c5
阿宝
数据同步
|
491
492
|
async _QuerySubject() {
const { data, status, info } = await this.$request.subjectList();
|
dd5150c5
阿宝
数据同步
|
493
494
495
496
497
498
|
if (status === 0) {
this.subjectList = [...data.subjectNames] || [];
} else {
this.$message.error(info);
}
},
|
db11048f
阿宝
设备状态,学校管理
|
499
|
async downExcel() {
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
500
|
let data = await this.$request.classAndStudentTemplate();
|
db11048f
阿宝
设备状态,学校管理
|
501
502
503
504
|
if (data && !data.code) {
let blob = new Blob([data], {
type: "application/vnd.ms-excel;charset=utf-8",
});
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
505
|
downloadFile(`班级名单模版.xlsx`, blob);
|
db11048f
阿宝
设备状态,学校管理
|
506
|
} else {
|
236b1f0e
梁保满
周末-飞书bug
|
507
|
this.$message.error(data.info);
|
db11048f
阿宝
设备状态,学校管理
|
508
509
|
}
},
|
e371f2dc
梁保满
软件下载,学校,班级老师等报表导入...
|
510
511
512
513
514
515
516
517
518
519
520
521
522
|
async exportClazzExl() {
this.loadingDown = true;
let data = await this.$request.exportClassAndStudent();
this.loadingDown = false;
if (data) {
let blob = new Blob([data], {
type: "application/vnd.ms-excel;charset=utf-8",
});
downloadFile(`班级名单.xlsx`, blob);
} else {
this.$message.error("下载失败");
}
},
|
db11048f
阿宝
设备状态,学校管理
|
523
524
|
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
525
526
|
</script>
|
db11048f
阿宝
设备状态,学校管理
|
527
528
529
530
531
532
533
534
535
536
537
|
<style lang="scss" scoped>
.page-content {
padding: 20px;
.content-box {
background: #f8f8f8;
border-radius: 16px;
position: relative;
.el-icon-edit {
position: absolute;
top: 12px;
right: 12px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
538
539
|
padding: 5px;
font-size: 18px;
|
db11048f
阿宝
设备状态,学校管理
|
540
|
cursor: pointer;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
541
542
|
&:hover {
color: #36f;
|
db11048f
阿宝
设备状态,学校管理
|
543
544
545
546
547
548
549
|
}
}
}
.school-info {
display: flex;
flex-wrap: wrap;
padding: 16px 0;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
550
|
border-bottom: 0.5px solid #f2f2f2;
|
db11048f
阿宝
设备状态,学校管理
|
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
|
.school-item {
width: 50%;
line-height: 48px;
padding-left: 100px;
display: flex;
box-sizing: border-box;
.s1 {
width: 160px;
font-size: 15px;
color: #888;
}
.s2 {
flex: 1;
}
}
}
.grade-box {
padding: 20px;
|
e5e4a3e6
梁保满
v1.3
|
569
570
571
572
573
574
575
576
|
.h-title {
display: flex;
justify-content: space-between;
align-items: center;
.popconfirm-box {
cursor: pointer;
font-size: 14px;
color: #999;
|
c3cdce9c
梁保满
bug
|
577
578
579
|
.fa-level-up {
font-size: 16px;
padding-left: 2px;
|
e5e4a3e6
梁保满
v1.3
|
580
581
582
583
584
585
|
}
&:hover {
color: #f30;
}
}
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
586
|
.grade-info {
|
db11048f
阿宝
设备状态,学校管理
|
587
|
display: flex;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
588
589
590
|
flex-wrap: wrap;
padding: 20px;
.grade-item {
|
ca39cc52
阿宝
飞书问题处理
|
591
|
width: calc((100% - 100px) / 3);
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
592
593
|
margin-right: 50px;
margin-bottom: 40px;
|
db11048f
阿宝
设备状态,学校管理
|
594
|
box-sizing: border-box;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
595
596
|
padding: 12px 16px;
border-radius: 10px;
|
db11048f
阿宝
设备状态,学校管理
|
597
|
box-shadow: 1px 1px 3px #888;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
598
|
cursor: pointer;
|
560c12f2
阿宝
学校设置,软件下载
|
599
600
601
|
transition: all 0.5s;
&:hover {
transform: translate(-2px, -5px);
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
602
603
|
box-shadow: 5px 5px 10px #888;
}
|
ca39cc52
阿宝
飞书问题处理
|
604
605
606
|
&:nth-of-type(3n) {
margin-right: 0;
}
|
db11048f
阿宝
设备状态,学校管理
|
607
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
608
609
|
.grade-name {
font-size: 16px;
|
db11048f
阿宝
设备状态,学校管理
|
610
611
|
font-weight: bold;
line-height: 18px;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
612
|
padding-bottom: 12px;
|
db11048f
阿宝
设备状态,学校管理
|
613
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
614
|
.grade-class {
|
db11048f
阿宝
设备状态,学校管理
|
615
616
|
display: flex;
justify-content: space-between;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
617
618
619
620
621
622
|
font-size: 15px;
padding-right: 20px;
.fa {
font-size: 18px;
margin-right: 5px;
color: #a4a4a4;
|
db11048f
阿宝
设备状态,学校管理
|
623
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
624
625
|
.fa-book {
font-size: 20px;
|
db11048f
阿宝
设备状态,学校管理
|
626
627
628
629
630
|
}
}
}
}
}
|
560c12f2
阿宝
学校设置,软件下载
|
631
632
|
.form-box {
margin: 0 20px;
|
225a00b6
梁保满
飞书问题解决
|
633
634
635
636
637
638
639
|
.subject-box {
height: 90px;
overflow: hidden;
position: relative;
&.active {
height: auto;
overflow: auto;
|
ca39cc52
阿宝
飞书问题处理
|
640
|
}
|
225a00b6
梁保满
飞书问题解决
|
641
642
643
644
|
.showAll {
position: absolute;
bottom: 0;
right: 10px;
|
ca39cc52
阿宝
飞书问题处理
|
645
646
647
|
font-size: 12px;
color: #7f7f7f;
cursor: pointer;
|
225a00b6
梁保满
飞书问题解决
|
648
649
650
|
padding: 2px;
&:hover {
color: #667ffd;
|
ca39cc52
阿宝
飞书问题处理
|
651
652
653
|
}
}
}
|
560c12f2
阿宝
学校设置,软件下载
|
654
|
}
|
ca39cc52
阿宝
飞书问题处理
|
655
|
.el-icon-plus {
|
dd5150c5
阿宝
数据同步
|
656
|
cursor: pointer;
|
ca39cc52
阿宝
飞书问题处理
|
657
658
|
&:hover {
color: #667ffd;
|
dd5150c5
阿宝
数据同步
|
659
660
|
}
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
661
|
</style>
|