4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
aed43d3a
阿宝
即时测修改答案
|
2
3
4
5
6
7
|
<div>
<back-box>
<template slot="title">
<span>学校管理</span>
</template>
</back-box>
|
e823fb79
阿宝
集团管理员
|
8
|
<div class="page-content">
|
e5ff81a1
阿宝
集团管理员接口
|
9
|
<div class="content-box" v-loading="loading">
|
e823fb79
阿宝
集团管理员
|
10
11
|
<div class="left-box">
<p class="h-title">
|
e5ff81a1
阿宝
集团管理员接口
|
12
|
<span class="tog-type">集团列表</span>
|
e823fb79
阿宝
集团管理员
|
13
14
15
16
17
|
<i class="icon el-icon-circle-plus-outline" @click="edit"></i>
</p>
<ul class="school-ul">
<li
class="school-item"
|
e5ff81a1
阿宝
集团管理员接口
|
18
19
20
21
22
23
24
|
:class="showId == '' ? 'active' : ''"
@click="(showId = ''), showSchool(false)"
>
全部({{ schoolTotal }})
</li>
<li
class="school-item"
|
e823fb79
阿宝
集团管理员
|
25
26
27
|
v-for="item in tableList"
:key="item.id"
:class="showId == item.id ? 'active' : ''"
|
e5ff81a1
阿宝
集团管理员接口
|
28
|
@click="(showId = item.id), showSchool()"
|
e823fb79
阿宝
集团管理员
|
29
|
>
|
e5ff81a1
阿宝
集团管理员接口
|
30
31
|
{{ item.regionName }}({{ item.schoolCount }})
<i class="el-icon-edit-outline" @click.stop="setRegion(item)"></i>
|
e823fb79
阿宝
集团管理员
|
32
33
34
35
36
|
</li>
</ul>
</div>
<div class="content-detail">
<div class="title-box">
|
225a00b6
梁保满
飞书问题解决
|
37
|
<span>管辖的学校({{ schoolData.num }})</span>
|
e823fb79
阿宝
集团管理员
|
38
39
|
<i class="icon el-icon-circle-plus-outline" @click="addSchool"></i>
</div>
|
e5ff81a1
阿宝
集团管理员接口
|
40
41
42
43
44
45
|
<el-empty
:image-size="100"
v-if="!schoolData.list.length && loading == false"
description="没有更多数据"
></el-empty>
<ul v-else class="detail-list">
|
e823fb79
阿宝
集团管理员
|
46
47
48
49
50
51
|
<li
class="detail-item"
v-for="item in schoolData.list"
:key="item.id"
>
<p class="item-tit">
|
e5ff81a1
阿宝
集团管理员接口
|
52
53
|
<span class="name active" @click="setSchool(item)">{{
item.schoolName
|
e823fb79
阿宝
集团管理员
|
54
|
}}</span>
|
e5ff81a1
阿宝
集团管理员接口
|
55
|
<i @click="addAdmin(item)" class="icon el-icon-user-solid"></i>
|
e823fb79
阿宝
集团管理员
|
56
57
58
59
|
</p>
<div class="info">
<p class="info-item">
<span class="txt">基站</span>
|
77ebf04d
梁保满
个人版
|
60
|
<img class="pic" src="../../../assets/images/jizhan.png" />
|
e5ff81a1
阿宝
集团管理员接口
|
61
|
<span>{{ item.stationCount }}</span>
|
e823fb79
阿宝
集团管理员
|
62
63
64
|
</p>
<p class="info-item">
<span class="txt">键盘</span>
|
77ebf04d
梁保满
个人版
|
65
|
<img class="pic" src="../../../assets/images/jianpan.png" />
|
e5ff81a1
阿宝
集团管理员接口
|
66
|
<span>{{ item.keyboardCount }}</span>
|
e823fb79
阿宝
集团管理员
|
67
68
69
|
</p>
<p class="info-item">
<span class="txt">班级</span>
|
77ebf04d
梁保满
个人版
|
70
|
<img class="pic" src="../../../assets/images/banji.png" />
|
e5ff81a1
阿宝
集团管理员接口
|
71
|
<span>{{ item.classCount }}</span>
|
e823fb79
阿宝
集团管理员
|
72
73
74
|
</p>
<p class="info-item">
<span class="txt">学生</span>
|
77ebf04d
梁保满
个人版
|
75
|
<img class="pic" src="../../../assets/images/xuesheng.png" />
|
e5ff81a1
阿宝
集团管理员接口
|
76
|
<span>{{ item.studentCount }}</span>
|
e823fb79
阿宝
集团管理员
|
77
78
79
|
</p>
<p class="info-item">
<span class="txt">老师</span>
|
77ebf04d
梁保满
个人版
|
80
|
<img class="pic" src="../../../assets/images/laoshi.png" />
|
e5ff81a1
阿宝
集团管理员接口
|
81
|
<span>{{ item.teacherCount }}</span>
|
e823fb79
阿宝
集团管理员
|
82
83
84
85
86
87
88
|
</p>
</div>
</li>
</ul>
</div>
</div>
</div>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
89
90
|
<el-dialog
:close-on-click-modal="false"
|
e5ff81a1
阿宝
集团管理员接口
|
91
92
93
94
|
:title="isAdd ? '添加区域/集团' : '修改区域/集团'"
:visible.sync="diaCL"
width="400"
>
|
e823fb79
阿宝
集团管理员
|
95
96
97
98
99
100
101
|
<el-form
class="form-box"
ref="formCL"
:model="formCL"
:rules="rulesCL"
label-width="160px"
>
|
e5ff81a1
阿宝
集团管理员接口
|
102
|
<el-form-item label="区域/集团名称:" prop="regionName">
|
e823fb79
阿宝
集团管理员
|
103
104
105
|
<el-col :span="10">
<el-input
maxlength="30"
|
e5ff81a1
阿宝
集团管理员接口
|
106
|
v-model.trim="formCL.regionName"
|
e823fb79
阿宝
集团管理员
|
107
108
109
110
111
112
113
114
115
116
|
placeholder="请输入区域/集团名称"
/>
</el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button type="primary" round @click="saveFormCL">确 定</el-button>
<el-button round @click="diaCL = false">取 消</el-button>
</div>
</el-dialog>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
117
118
119
120
121
122
|
<el-dialog
:close-on-click-modal="false"
title="添加管理员"
:visible.sync="diaAdmin"
width="400"
>
|
e823fb79
阿宝
集团管理员
|
123
124
125
126
127
128
129
130
|
<el-form
class="form-box"
ref="formAdmin"
:model="formAdmin"
:rules="rulesAdmin"
label-width="160px"
>
<el-form-item label="学校名称:">
|
e5ff81a1
阿宝
集团管理员接口
|
131
|
<span>{{ formAdmin.schoolName }}</span>
|
e823fb79
阿宝
集团管理员
|
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
</el-form-item>
<el-form-item label="手机号码:" prop="phone">
<el-col :span="10">
<el-input
maxlength="11"
v-model.trim="formAdmin.phone"
placeholder="请输入手机号码"
/>
</el-col>
</el-form-item>
<el-form-item label="密码:" prop="password">
<el-col :span="10">
<el-input
maxlength="18"
|
e5ff81a1
阿宝
集团管理员接口
|
146
147
|
v-model.trim="formAdmin.password"
show-password
|
e823fb79
阿宝
集团管理员
|
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
placeholder="请输入密码"
/>
</el-col>
</el-form-item>
<el-form-item label="姓名:" prop="realName">
<el-col :span="10">
<el-input
maxlength="30"
v-model.trim="formAdmin.realName"
placeholder="请输入姓名"
/>
</el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button type="primary" round @click="saveFormAdmin">确 定</el-button>
<el-button round @click="diaAdmin = false">取 消</el-button>
</div>
</el-dialog>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
167
168
169
170
171
172
|
<el-dialog
:close-on-click-modal="false"
title="添加学校"
:visible.sync="diaSchool"
width="400"
>
|
e823fb79
阿宝
集团管理员
|
173
174
175
176
177
178
179
|
<el-form
class="form-box"
ref="formSchool"
:model="formSchool"
:rules="rulesSchool"
label-width="160px"
>
|
e5ff81a1
阿宝
集团管理员接口
|
180
|
<el-form-item label="学校名称:" prop="schoolName">
|
e823fb79
阿宝
集团管理员
|
181
182
|
<el-col :span="10">
<el-input
|
e5ff81a1
阿宝
集团管理员接口
|
183
184
|
maxlength="30"
v-model.trim="formSchool.schoolName"
|
e823fb79
阿宝
集团管理员
|
185
186
187
188
189
190
191
|
placeholder="请输入学校名称"
/>
</el-col>
</el-form-item>
<el-form-item label="所属区域/集团:">
<el-select
class="sel"
|
e5ff81a1
阿宝
集团管理员接口
|
192
|
v-model="formSchool.regionId"
|
e823fb79
阿宝
集团管理员
|
193
194
195
196
197
|
placeholder="选择所属区域/集团"
>
<el-option
v-for="item in tableList"
:key="item.id"
|
e5ff81a1
阿宝
集团管理员接口
|
198
|
:label="item.regionName"
|
e823fb79
阿宝
集团管理员
|
199
200
201
202
203
|
:value="item.id"
>
</el-option>
</el-select>
</el-form-item>
|
6d7bd862
梁保满
飞书bug
|
204
|
<el-form-item label="学段:" prop="sections">
|
e5ff81a1
阿宝
集团管理员接口
|
205
|
<el-checkbox-group v-model="formSchool.sections">
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
206
207
208
209
210
211
|
<el-checkbox
v-for="item in sectionsList"
:label="item.code"
:key="item.code"
>{{ item.name }}</el-checkbox
>
|
e823fb79
阿宝
集团管理员
|
212
213
214
215
216
217
218
219
220
221
|
</el-checkbox-group>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button type="primary" round @click="saveFormSchool"
>确 定</el-button
>
<el-button round @click="diaSchool = false">取 消</el-button>
</div>
</el-dialog>
|
a4074db8
梁保满
使用分析,集团管理元交互
|
222
223
224
225
226
227
|
<el-dialog
:close-on-click-modal="false"
title="学校信息修改"
:visible.sync="diaSchool2"
width="400"
>
|
e5ff81a1
阿宝
集团管理员接口
|
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
|
<el-form
class="form-box"
ref="formSchool2"
:model="setFormSchool"
:rules="rulesSchool"
label-width="160px"
>
<el-form-item label="学校名称:" prop="schoolName">
<el-col :span="10">
<el-input
maxlength="30"
v-model.trim="setFormSchool.schoolName"
placeholder="请输入学校名称"
/>
</el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
<el-button type="primary" round @click="saveSetFormSchool"
>确 定</el-button
>
<el-button round @click="diaSchool2 = false">取 消</el-button>
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
250
251
252
|
<el-button round v-if="showDelSclBtn" @click="removeSchool"
>删除学校</el-button
>
|
e5ff81a1
阿宝
集团管理员接口
|
253
254
|
</div>
</el-dialog>
|
aed43d3a
阿宝
即时测修改答案
|
255
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
256
257
258
|
</template>
<script>
|
e5ff81a1
阿宝
集团管理员接口
|
259
|
import { encryptLoginPassword } from "@/utils";
|
e823fb79
阿宝
集团管理员
|
260
261
262
|
export default {
data() {
return {
|
e5ff81a1
阿宝
集团管理员接口
|
263
|
isAdd: true,
|
e823fb79
阿宝
集团管理员
|
264
265
266
|
diaCL: false,
diaAdmin: false,
diaSchool: false,
|
e5ff81a1
阿宝
集团管理员接口
|
267
|
diaSchool2: false,
|
e823fb79
阿宝
集团管理员
|
268
|
loading: false,
|
e5ff81a1
阿宝
集团管理员接口
|
269
270
|
showId: "", //显示学校Id
schoolTotal: 0,
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
271
|
sectionsList: [],
|
e823fb79
阿宝
集团管理员
|
272
273
274
275
|
tableList: [
// 集团列表/区域列表
{
id: 1,
|
e5ff81a1
阿宝
集团管理员接口
|
276
277
|
regionName: "云南衡水实验中学",
schoolCount: 5,
|
e823fb79
阿宝
集团管理员
|
278
279
280
281
|
},
],
schoolData: {
//学校信息
|
e5ff81a1
阿宝
集团管理员接口
|
282
283
|
num: 0,
list: [{ id: 1, schoolName: "曲靖校区" }],
|
e823fb79
阿宝
集团管理员
|
284
285
|
},
formCL: {
|
e5ff81a1
阿宝
集团管理员接口
|
286
287
|
regionId: "",
regionName: "",
|
e823fb79
阿宝
集团管理员
|
288
289
|
},
rulesCL: {
|
e5ff81a1
阿宝
集团管理员接口
|
290
|
regionName: [
|
e823fb79
阿宝
集团管理员
|
291
292
293
294
|
{ required: true, message: "请输入区域/集团名称", trigger: "blur" },
],
},
formAdmin: {
|
e5ff81a1
阿宝
集团管理员接口
|
295
296
|
schoolId: "",
schoolName: "",
|
e823fb79
阿宝
集团管理员
|
297
298
299
300
301
302
303
304
305
306
|
phone: "",
password: "",
realName: "",
},
rulesAdmin: {
phone: [{ required: true, message: "请输入手机号码", trigger: "blur" }],
password: [{ required: true, message: "请输入密码", trigger: "blur" }],
realName: [{ required: true, message: "请输入姓名", trigger: "blur" }],
},
formSchool: {
|
e5ff81a1
阿宝
集团管理员接口
|
307
308
309
|
schoolName: "",
regionId: "",
sections: [],
|
e823fb79
阿宝
集团管理员
|
310
311
|
},
rulesSchool: {
|
e5ff81a1
阿宝
集团管理员接口
|
312
313
314
|
schoolName: [
{ required: true, message: "请输入学校名称", trigger: "blur" },
],
|
225a00b6
梁保满
飞书问题解决
|
315
|
sections: [{ required: true, message: "请选择学段", trigger: "blur" }],
|
e5ff81a1
阿宝
集团管理员接口
|
316
317
318
319
|
},
setFormSchool: {
schoolId: "",
schoolName: "",
|
e823fb79
阿宝
集团管理员
|
320
|
},
|
225a00b6
梁保满
飞书问题解决
|
321
|
showDelSclBtn: false,
|
e823fb79
阿宝
集团管理员
|
322
323
|
};
},
|
e5ff81a1
阿宝
集团管理员接口
|
324
325
326
|
created() {
this._QueryData();
this.showSchool();
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
327
|
this._QuerySectionList();
|
e5ff81a1
阿宝
集团管理员接口
|
328
|
},
|
e823fb79
阿宝
集团管理员
|
329
330
331
|
methods: {
edit() {
//添加区域/集团
|
e5ff81a1
阿宝
集团管理员接口
|
332
333
334
|
this.isAdd = true;
this.formCL.regionId = "";
this.formCL.regionName = "";
|
e823fb79
阿宝
集团管理员
|
335
336
337
338
|
this.diaCL = true;
},
addAdmin(obj) {
//添加管理员
|
e5ff81a1
阿宝
集团管理员接口
|
339
340
341
342
343
344
|
this.formAdmin.schoolId = obj.id;
this.formAdmin.schoolName = obj.schoolName;
this.formAdmin.phone = "";
this.formAdmin.password = "";
this.formAdmin.realName = "";
|
e823fb79
阿宝
集团管理员
|
345
346
|
this.diaAdmin = true;
},
|
e5ff81a1
阿宝
集团管理员接口
|
347
|
addSchool() {
|
e823fb79
阿宝
集团管理员
|
348
|
//添加学校
|
296f7c47
梁保满
集团管理员接口调整
|
349
350
351
|
this.formSchool.schoolName = "";
this.formSchool.sections = [];
this.formSchool.regionId = "";
|
e823fb79
阿宝
集团管理员
|
352
353
|
this.diaSchool = true;
},
|
e5ff81a1
阿宝
集团管理员接口
|
354
355
356
357
358
|
setRegion(obj) {
this.isAdd = false;
this.formCL.regionId = obj.id;
this.formCL.regionName = obj.regionName;
this.diaCL = true;
|
e823fb79
阿宝
集团管理员
|
359
|
},
|
e5ff81a1
阿宝
集团管理员接口
|
360
361
362
|
setSchool(obj) {
this.setFormSchool.schoolId = obj.id;
this.setFormSchool.schoolName = obj.schoolName;
|
225a00b6
梁保满
飞书问题解决
|
363
364
365
366
367
368
369
|
let num =
obj.stationCount +
obj.keyboardCount +
obj.classCount +
obj.studentCount +
obj.teacherCount;
this.showDelSclBtn = num == 0 ? true : false;
|
e5ff81a1
阿宝
集团管理员接口
|
370
|
this.diaSchool2 = true;
|
e823fb79
阿宝
集团管理员
|
371
|
},
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
372
373
374
|
async _QuerySectionList() {
//学校学段
const { data, status, info } = await this.$request.sectionList();
|
9c17317a
梁保满
集团管理添加学校学段请求接口
|
375
376
377
378
379
380
|
if (status === 0) {
this.sectionsList = data?.list || [];
} else {
this.$message.error(info);
}
},
|
e5ff81a1
阿宝
集团管理员接口
|
381
382
383
384
385
|
async removeSchool() {
const { data, status, info } = await this.$request.removeSchool({
schoolId: this.setFormSchool.schoolId,
});
if (status === 0) {
|
225a00b6
梁保满
飞书问题解决
|
386
387
|
this._QueryData();
this.showSchool();
|
e5ff81a1
阿宝
集团管理员接口
|
388
|
this.$message.success(info);
|
225a00b6
梁保满
飞书问题解决
|
389
|
this.diaSchool2 = false;
|
e5ff81a1
阿宝
集团管理员接口
|
390
391
392
|
} else {
this.$message.error(info);
}
|
e823fb79
阿宝
集团管理员
|
393
394
395
|
},
saveFormCL() {
//保存添加区域/集团
|
e5ff81a1
阿宝
集团管理员接口
|
396
397
398
399
400
401
402
403
|
this.$refs["formCL"].validate(async (valid) => {
// 验证通过:保存
if (valid) {
const { data, status, info } = await this.$request.saveRegion({
regionId: this.formCL.regionId,
regionName: this.formCL.regionName,
});
if (status === 0) {
|
225a00b6
梁保满
飞书问题解决
|
404
|
this._QueryData();
|
e5ff81a1
阿宝
集团管理员接口
|
405
406
407
408
409
410
411
412
413
414
|
this.$message.success(info);
this.diaCL = false;
} else {
this.$message.error(info);
}
} else {
this.$message.error("区域/集团名称数据有误,请检查!");
return false;
}
});
|
e823fb79
阿宝
集团管理员
|
415
416
417
|
},
saveFormAdmin() {
//保存管理员
|
e5ff81a1
阿宝
集团管理员接口
|
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
|
this.$refs["formAdmin"].validate(async (valid) => {
// 验证通过:保存
if (valid) {
let params = { ...this.formAdmin };
params.password = encryptLoginPassword(this.formAdmin.password);
delete params.schoolName;
const { data, status, info } = await this.$request.addSchoolManager({
...params,
});
if (status === 0) {
this.$message.success(info);
this.diaAdmin = false;
} else {
this.$message.error(info);
}
} else {
this.$message.error("数据有误,请检查!");
return false;
}
});
|
e823fb79
阿宝
集团管理员
|
438
439
440
|
},
saveFormSchool() {
//保存学校
|
e5ff81a1
阿宝
集团管理员接口
|
441
442
443
|
this.$refs["formSchool"].validate(async (valid) => {
// 验证通过:保存
if (valid) {
|
225a00b6
梁保满
飞书问题解决
|
444
445
|
let query = { ...this.formSchool };
query.sections = query.sections.join(",");
|
e5ff81a1
阿宝
集团管理员接口
|
446
|
const { data, status, info } = await this.$request.saveSchool({
|
296f7c47
梁保满
集团管理员接口调整
|
447
|
...query,
|
e5ff81a1
阿宝
集团管理员接口
|
448
449
450
451
452
453
454
455
456
457
458
459
460
461
|
});
if (status === 0) {
this.$message.success(info);
this.diaSchool = false;
this._QueryData();
this.showSchool();
} else {
this.$message.error(info);
}
} else {
this.$message.error("学校名称数据有误,请检查!");
return false;
}
});
|
e823fb79
阿宝
集团管理员
|
462
|
},
|
e5ff81a1
阿宝
集团管理员接口
|
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
|
saveSetFormSchool() {
//保存学校
this.$refs["formSchool2"].validate(async (valid) => {
// 验证通过:保存
if (valid) {
const { data, status, info } = await this.$request.saveSchool({
...this.setFormSchool,
});
if (status === 0) {
this.$message.success(info);
this.diaSchool2 = false;
this.showSchool();
} else {
this.$message.error(info);
}
} else {
|
6d7bd862
梁保满
飞书bug
|
479
|
this.$message.error("数据有误,请检查!");
|
e5ff81a1
阿宝
集团管理员接口
|
480
481
482
483
484
|
return false;
}
});
},
async showSchool() {
|
225a00b6
梁保满
飞书问题解决
|
485
|
this.loading = true;
|
e5ff81a1
阿宝
集团管理员接口
|
486
487
|
const { data, status, info } = await this.$request.schoolList({
regionId: this.showId,
|
a4074db8
梁保满
使用分析,集团管理元交互
|
488
|
needCount: 1,
|
e5ff81a1
阿宝
集团管理员接口
|
489
|
});
|
225a00b6
梁保满
飞书问题解决
|
490
|
this.loading = false;
|
e5ff81a1
阿宝
集团管理员接口
|
491
492
493
494
495
496
|
if (status === 0) {
this.schoolData.list = [...data.list] || [];
this.schoolData.num = data.count;
} else {
this.$message.error(info);
}
|
e823fb79
阿宝
集团管理员
|
497
498
|
},
async _QueryData() {
|
e5ff81a1
阿宝
集团管理员接口
|
499
500
501
502
503
504
505
|
const { data, status, info } = await this.$request.regionList();
if (status === 0) {
this.tableList = [...data.list] || [];
this.schoolTotal = data.schoolCount;
} else {
this.$message.error(info);
}
|
e823fb79
阿宝
集团管理员
|
506
507
508
|
},
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
509
510
|
</script>
|
e823fb79
阿宝
集团管理员
|
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
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
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
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
|
<style lang="scss" scoped>
.page-content {
padding: 20px 30px;
}
.content-box {
display: flex;
background: #f8f8f8;
border-radius: 10px;
overflow: hidden;
min-height: 400px;
.h-title {
height: 40px;
line-height: 40px;
background: #eee;
border-radius: 10px 10px 0 0;
}
.left-box {
width: 240px;
.h-title {
display: flex;
justify-content: space-between;
align-items: center;
padding-right: 16px;
box-sizing: border-box;
.tog-type {
cursor: pointer;
}
.icon {
font-size: 20px;
color: #7f7f7f;
cursor: pointer;
}
}
.school-ul {
max-height: 70vh;
overflow-y: scroll;
}
.school-item {
font-size: 16px;
color: #7f7f7f;
line-height: 36px;
cursor: pointer;
padding-left: 12px;
position: relative;
&:hover {
background: #eee;
}
&.active {
color: #667ffd;
}
.el-icon-edit-outline {
position: absolute;
top: 8px;
right: 12px;
font-size: 20px;
display: none;
&:hover {
color: #667ffd;
}
}
&:hover {
background: #eee;
.el-icon-edit-outline {
display: block;
}
}
}
}
.content-detail {
flex: 1;
position: relative;
border-left: 0.5px solid #eee;
.title-box {
display: flex;
justify-content: space-between;
padding: 10px 20px;
.icon {
font-size: 24px;
color: #7f7f7f;
cursor: pointer;
}
.el-icon-circle-plus-outline {
margin-left: 10px;
}
}
.detail-list {
padding-left: 20px;
display: flex;
flex-wrap: wrap;
}
.detail-item {
width: 320px;
padding: 12px 16px;
border-radius: 10px;
box-shadow: 1px 1px 3px #888;
box-sizing: border-box;
margin: 0 20px 20px 0;
.item-tit {
font-size: 16px;
position: relative;
padding-bottom: 10px;
.name {
cursor: pointer;
&.active {
color: #667ffd;
}
}
&:hover {
.icon {
display: block;
}
}
.icon {
display: none;
position: absolute;
right: -5px;
top: 0;
color: #7f7f7f;
cursor: pointer;
padding: 2px;
&:hover {
color: #667ffd;
}
}
}
.info {
width: 100%;
display: flex;
.info-item {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
}
.txt {
color: #7f7f7f;
}
.pic {
height: 28px;
margin: 2px 0 5px;
}
}
}
}
}
.dialog-footer {
text-align: center;
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
660
|
</style>
|