4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
e3b0e3e7
梁保满
季度时间格式调整
|
2
|
<div ref="main" class="page-content">
|
bb778c90
阿宝
设备状态
|
3
4
5
6
|
<back-box>
<template slot="title">
<span>设备管理</span>
</template>
|
47a01cb6
梁保满
v1.3测试问题
|
7
|
<template slot="btns">
|
78ea6110
梁保满
设备导出提示
|
8
9
10
11
12
13
14
15
16
17
18
19
|
<template v-if="tableData.length">
<el-tooltip effect="dark" content="设备导出" placement="bottom">
<el-button
type="primary"
icon="fa fa-cloud-download"
size="mini"
plain
circle
@click="downExl"
></el-button>
</el-tooltip>
</template>
|
47a01cb6
梁保满
v1.3测试问题
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<template v-if="role == 'ROLE_XUEXIAO' && type == 1">
<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 effect="dark" content="添加基站" placement="bottom">
<el-button
type="primary"
icon="el-icon-receiving"
size="mini"
plain
circle
@click="addDev"
></el-button> </el-tooltip
></template>
|
bb778c90
阿宝
设备状态
|
41
42
|
</template>
</back-box>
|
1365ef5e
梁保满
优化
|
43
|
<div>
|
db11048f
阿宝
设备状态,学校管理
|
44
45
46
47
48
49
50
|
<div class="tab-box">
<el-radio-group v-model="type">
<el-radio-button :label="1">基站管理</el-radio-button>
<el-radio-button :label="2">答题器管理</el-radio-button>
<el-radio-button :label="3">授课端管理</el-radio-button>
</el-radio-group>
</div>
|
d4b9eb45
梁保满
设备异常信息
|
51
52
53
54
55
56
57
58
|
<p
v-show="(type == 1 && stationCount) || (type == 2 && clickerCount)"
class="error-tips"
>
有{{
type == 1 ? stationCount : clickerCount
}}条设备异常信息,<router-link
:to="{ path: '/deviceError', query: { type: type } }"
|
8ef22809
梁保满
软件下载页面添加.net环境下载
|
59
60
61
|
>点击查看>></router-link
>
</p>
|
db11048f
阿宝
设备状态,学校管理
|
62
|
<div class="content">
|
8ea67428
梁保满
飞书bug
|
63
|
<div v-show="type == 1">
|
225a00b6
梁保满
飞书问题解决
|
64
|
<div class="chart-box" v-if="count">
|
db11048f
阿宝
设备状态,学校管理
|
65
|
<div class="device-num">
|
225a00b6
梁保满
飞书问题解决
|
66
|
<p class="p1">{{ count }}</p>
|
db11048f
阿宝
设备状态,学校管理
|
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
<p class="p2">基站数量</p>
</div>
<div class="chart">
<pie-chart
id="pieChart"
:params="chartData"
@clickPieChart="clickPieChart"
></pie-chart>
</div>
</div>
<div class="table-box">
<div class="answer-header">
<div class="sel-box">
<el-cascader
|
225a00b6
梁保满
飞书问题解决
|
81
|
size="small"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
82
|
class="sel sel2"
|
db11048f
阿宝
设备状态,学校管理
|
83
84
85
|
clearable
placeholder="选择班级"
v-model="query.classId"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
86
|
:options="gradeList"
|
db11048f
阿宝
设备状态,学校管理
|
87
|
:props="props"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
88
|
collapse-tags
|
db11048f
阿宝
设备状态,学校管理
|
89
|
:show-all-levels="false"
|
db11048f
阿宝
设备状态,学校管理
|
90
91
92
|
></el-cascader>
<el-select
class="sel"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
93
|
v-model="query.onlineStatus"
|
db11048f
阿宝
设备状态,学校管理
|
94
|
placeholder="选择状态"
|
b21d90ef
梁保满
长水登录
|
95
|
@change="_QueryData(true)"
|
db11048f
阿宝
设备状态,学校管理
|
96
97
98
99
100
101
102
103
104
105
|
>
<el-option
v-for="item in statusList"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-input
|
db11048f
阿宝
设备状态,学校管理
|
106
|
placeholder="请输入设备编码"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
107
|
v-model="query.sn"
|
db11048f
阿宝
设备状态,学校管理
|
108
|
class="input-with-select"
|
4c2fb560
梁保满
反馈新需求
|
109
|
clearable
|
db11048f
阿宝
设备状态,学校管理
|
110
111
112
113
114
115
116
117
|
@keyup.enter.native="_QueryData(true)"
>
<el-button
slot="append"
icon="el-icon-search"
@click="_QueryData(true)"
></el-button>
</el-input>
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
118
|
<el-button class="serach-box" round @click="_QueryData(true)"
|
b21d90ef
梁保满
长水登录
|
119
120
|
>筛选</el-button
>
|
db11048f
阿宝
设备状态,学校管理
|
121
122
|
</div>
</div>
|
47a01cb6
梁保满
v1.3测试问题
|
123
124
125
126
|
<p class="loading" v-if="!tableData.length && loading">
加载中<i class="el-icon-loading"></i>
</p>
<el-table v-else :data="tableData" border style="width: 100%">
|
db11048f
阿宝
设备状态,学校管理
|
127
|
<el-table-column
|
6d7bd862
梁保满
飞书bug
|
128
|
prop="sn"
|
db11048f
阿宝
设备状态,学校管理
|
129
130
131
132
|
label="设备编码"
align="center"
></el-table-column>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
133
|
prop="frequency"
|
db11048f
阿宝
设备状态,学校管理
|
134
135
|
label="频点"
align="center"
|
4c2fb560
梁保满
反馈新需求
|
136
|
width="60"
|
db11048f
阿宝
设备状态,学校管理
|
137
138
|
></el-table-column>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
139
|
prop="pairingCode"
|
db11048f
阿宝
设备状态,学校管理
|
140
141
142
143
|
label="配对码"
align="center"
></el-table-column>
<el-table-column
|
e5e4a3e6
梁保满
v1.3
|
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
v-if="role == 'ROLE_JITUAN'"
prop="schoolName"
label="学校"
align="center"
></el-table-column>
<el-table-column
v-if="role == 'ROLE_JITUAN'"
prop="gradeName"
label="年级"
align="center"
><template slot-scope="scoped">
<p v-for="(item, index) in scoped.row.classList" :key="index">
{{ item.gradeName }}
</p>
</template></el-table-column
>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
161
|
prop="roomName"
|
db11048f
阿宝
设备状态,学校管理
|
162
163
164
|
label="所在教室"
align="center"
></el-table-column>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
165
166
|
<el-table-column label="关联班级" align="center">
<template slot-scope="scoped">
|
e3b0e3e7
梁保满
季度时间格式调整
|
167
|
<p v-for="(item, index) in scoped.row.classList" :key="index">
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
168
169
170
171
|
{{ item.className }}
</p>
</template>
</el-table-column>
|
db11048f
阿宝
设备状态,学校管理
|
172
|
<el-table-column
|
6d7bd862
梁保满
飞书bug
|
173
|
prop="otaVersionName"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
174
|
label="固件版本号"
|
db11048f
阿宝
设备状态,学校管理
|
175
176
177
|
align="center"
></el-table-column>
<el-table-column
|
6d7bd862
梁保满
飞书bug
|
178
|
prop="onlineTime"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
179
|
label="最近上报"
|
db11048f
阿宝
设备状态,学校管理
|
180
|
align="center"
|
4c2fb560
梁保满
反馈新需求
|
181
182
183
184
185
186
187
|
width="160"
></el-table-column>
<el-table-column
prop="createdTime"
label="创建时间"
align="center"
width="160"
|
db11048f
阿宝
设备状态,学校管理
|
188
|
></el-table-column>
|
4c2fb560
梁保满
反馈新需求
|
189
|
<el-table-column label="状态" align="center" width="60"
|
db11048f
阿宝
设备状态,学校管理
|
190
191
|
><template slot-scope="scope">
{{
|
6d7bd862
梁保满
飞书bug
|
192
|
scope.row.onlineStatus == 1
|
db11048f
阿宝
设备状态,学校管理
|
193
|
? "在线"
|
6d7bd862
梁保满
飞书bug
|
194
195
196
|
: scope.row.onlineStatus == 2
? "异常"
: "离线"
|
db11048f
阿宝
设备状态,学校管理
|
197
198
199
200
201
|
}}
</template></el-table-column
>
<el-table-column label="操作" align="center"
><template slot-scope="scoped">
|
225a00b6
梁保满
飞书问题解决
|
202
203
204
205
206
207
|
<el-tooltip
effect="dark"
v-if="role != 'ROLE_JITUAN'"
content="修改基站"
placement="top"
>
|
db11048f
阿宝
设备状态,学校管理
|
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
<el-button
type="primary"
circle
size="mini"
icon="fa fa-edit"
@click="edit(scoped.row)"
></el-button>
</el-tooltip>
<el-tooltip effect="dark" content="日志" placement="top">
<el-button
type="warning"
circle
size="mini"
icon="fa fa-eye"
@click="linkTo(scoped.row, 1)"
></el-button>
</el-tooltip> </template
></el-table-column>
</el-table>
</div>
</div>
|
8ea67428
梁保满
飞书bug
|
229
|
<div v-show="type == 2">
|
225a00b6
梁保满
飞书问题解决
|
230
|
<div class="chart-box" v-if="count">
|
db11048f
阿宝
设备状态,学校管理
|
231
|
<div class="device-num">
|
225a00b6
梁保满
飞书问题解决
|
232
|
<p class="p1">{{ count }}</p>
|
db11048f
阿宝
设备状态,学校管理
|
233
234
235
236
237
238
239
240
241
242
243
244
245
246
|
<p class="p2">答题器数量</p>
</div>
<div class="chart">
<scatter-chart
id="scatterChart"
:params="chartData2"
@clickScatterChart="clickScatterChart"
></scatter-chart>
</div>
</div>
<div class="table-box">
<div class="answer-header">
<div class="sel-box">
<el-cascader
|
225a00b6
梁保满
飞书问题解决
|
247
|
size="small"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
248
|
class="sel sel2"
|
db11048f
阿宝
设备状态,学校管理
|
249
250
251
|
clearable
placeholder="选择班级"
v-model="query.classId"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
252
|
:options="gradeList"
|
db11048f
阿宝
设备状态,学校管理
|
253
|
:props="props"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
254
|
collapse-tags
|
db11048f
阿宝
设备状态,学校管理
|
255
|
:show-all-levels="false"
|
db11048f
阿宝
设备状态,学校管理
|
256
257
258
|
></el-cascader>
<el-select
class="sel"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
259
|
v-model="query.type"
|
db11048f
阿宝
设备状态,学校管理
|
260
|
placeholder="选择状态"
|
b21d90ef
梁保满
长水登录
|
261
|
@change="_QueryData(true)"
|
db11048f
阿宝
设备状态,学校管理
|
262
263
|
>
<el-option
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
264
|
v-for="item in typeList"
|
db11048f
阿宝
设备状态,学校管理
|
265
266
267
268
269
270
271
|
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<el-input
|
db11048f
阿宝
设备状态,学校管理
|
272
|
placeholder="请输入设备编码"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
273
|
v-model="query.sn"
|
db11048f
阿宝
设备状态,学校管理
|
274
|
class="input-with-select"
|
4c2fb560
梁保满
反馈新需求
|
275
|
clearable
|
78ea6110
梁保满
设备导出提示
|
276
|
@input.native="query.studentName = ''"
|
4c2fb560
梁保满
反馈新需求
|
277
278
279
280
281
282
283
284
285
286
287
288
289
|
@keyup.enter.native="_QueryData(true)"
>
<el-button
slot="append"
icon="el-icon-search"
@click="_QueryData(true)"
></el-button>
</el-input>
<el-input
placeholder="学生姓名"
v-model="query.studentName"
class="input-with-select"
clearable
|
78ea6110
梁保满
设备导出提示
|
290
|
@input.native="query.sn = ''"
|
db11048f
阿宝
设备状态,学校管理
|
291
292
293
294
295
296
297
298
|
@keyup.enter.native="_QueryData(true)"
>
<el-button
slot="append"
icon="el-icon-search"
@click="_QueryData(true)"
></el-button>
</el-input>
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
299
|
<el-button class="serach-box" round @click="_QueryData(true)"
|
b21d90ef
梁保满
长水登录
|
300
|
>筛选</el-button
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
301
|
>
|
db11048f
阿宝
设备状态,学校管理
|
302
303
|
</div>
</div>
|
47a01cb6
梁保满
v1.3测试问题
|
304
305
306
307
|
<p class="loading" v-if="!tableData.length && loading">
加载中<i class="el-icon-loading"></i>
</p>
<el-table v-else :data="tableData" border style="width: 100%">
|
db11048f
阿宝
设备状态,学校管理
|
308
|
<el-table-column
|
6d7bd862
梁保满
飞书bug
|
309
|
prop="sn"
|
db11048f
阿宝
设备状态,学校管理
|
310
311
|
label="设备编码"
align="center"
|
db11048f
阿宝
设备状态,学校管理
|
312
|
></el-table-column>
|
af0d559b
梁保满
样式调整
|
313
|
<el-table-column label="学生信息" align="center"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
314
315
|
><template slot-scope="scoped"
><p
|
6d7bd862
梁保满
飞书bug
|
316
317
|
v-for="(item, index) in scoped.row.studentList"
:key="index"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
318
319
320
321
322
|
>
{{ item.studentName }}
</p></template
></el-table-column
>
|
e5e4a3e6
梁保满
v1.3
|
323
324
325
326
327
328
329
330
331
332
333
|
<el-table-column
v-if="role == 'ROLE_JITUAN'"
prop="schoolName"
label="学校"
align="center"
></el-table-column>
<el-table-column
v-if="role == 'ROLE_JITUAN'"
prop="gradeName"
label="年级"
align="center"
|
4c2fb560
梁保满
反馈新需求
|
334
|
width="120"
|
e5e4a3e6
梁保满
v1.3
|
335
336
337
338
339
340
|
><template slot-scope="scoped">
<p v-for="(item, index) in scoped.row.classList" :key="index">
{{ item.gradeName }}
</p>
</template></el-table-column
>
|
4c2fb560
梁保满
反馈新需求
|
341
342
343
344
345
346
|
<el-table-column
prop="class"
label="关联班级"
align="center"
width="160"
>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
347
|
<template slot-scope="scoped">
|
6d7bd862
梁保满
飞书bug
|
348
|
<p v-for="(item, index) in scoped.row.classList" :key="index">
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
349
350
351
352
|
{{ item.className }}
</p>
</template></el-table-column
>
|
5fb1f184
梁保满
答题器管理:不显示 题器配对码,修...
|
353
|
<!-- <el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
354
|
prop="pairingCode"
|
db11048f
阿宝
设备状态,学校管理
|
355
356
|
label="配对码"
align="center"
|
5fb1f184
梁保满
答题器管理:不显示 题器配对码,修...
|
357
|
></el-table-column> -->
|
cffc1a98
梁保满
3-8BUG
|
358
|
<!-- <el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
359
|
prop="answerTimes"
|
db11048f
阿宝
设备状态,学校管理
|
360
361
|
label="答题次数"
align="center"
|
cffc1a98
梁保满
3-8BUG
|
362
|
></el-table-column> -->
|
db11048f
阿宝
设备状态,学校管理
|
363
|
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
364
|
prop="latestReportTime"
|
db11048f
阿宝
设备状态,学校管理
|
365
366
|
label="最后答题时间"
align="center"
|
4c2fb560
梁保满
反馈新需求
|
367
|
width="160"
|
db11048f
阿宝
设备状态,学校管理
|
368
|
></el-table-column>
|
4c2fb560
梁保满
反馈新需求
|
369
|
<el-table-column label="操作" align="center" width="80"
|
db11048f
阿宝
设备状态,学校管理
|
370
371
372
373
374
375
376
377
378
379
380
381
382
383
|
><template slot-scope="scoped">
<el-tooltip effect="dark" content="日志" placement="top">
<el-button
type="warning"
circle
size="mini"
icon="fa fa-eye"
@click="linkTo(scoped.row, 2)"
></el-button>
</el-tooltip> </template
></el-table-column>
</el-table>
</div>
</div>
|
8ea67428
梁保满
飞书bug
|
384
|
<div v-show="type == 3">
|
db11048f
阿宝
设备状态,学校管理
|
385
386
387
388
|
<div class="table-box">
<div class="answer-header">
<div class="sel-box">
<el-cascader
|
225a00b6
梁保满
飞书问题解决
|
389
|
size="small"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
390
|
class="sel sel2"
|
db11048f
阿宝
设备状态,学校管理
|
391
392
393
|
clearable
placeholder="选择班级"
v-model="query.classId"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
394
|
:options="gradeList"
|
db11048f
阿宝
设备状态,学校管理
|
395
|
:props="props"
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
396
|
collapse-tags
|
db11048f
阿宝
设备状态,学校管理
|
397
398
399
|
:show-all-levels="false"
@change="_QueryData(false)"
></el-cascader>
|
e5ff81a1
阿宝
集团管理员接口
|
400
401
402
|
<span class="sel"
>共选择{{ selectionTabIds.length }}个授课端</span
>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
403
|
<el-button plan round @click="autoUpDate(false)"
|
db11048f
阿宝
设备状态,学校管理
|
404
405
|
>开启自动更新</el-button
>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
406
|
<el-button plan round @click="stopUpdate(false)"
|
db11048f
阿宝
设备状态,学校管理
|
407
408
409
|
>停止自动更新</el-button
>
</div>
|
ec6394d1
梁保满
v1.3.1。细节调整
|
410
411
412
413
414
|
<p class="upgrade-all" v-if="this.role == 'ROLE_XUEXIAO'">
<span>全校更新:</span>
<el-switch v-model="upgradeFlag" @change="changeUpdateBySchool">
</el-switch>
</p>
|
db11048f
阿宝
设备状态,学校管理
|
415
|
</div>
|
47a01cb6
梁保满
v1.3测试问题
|
416
417
418
|
<p class="loading" v-if="!tableData.length && loading">
加载中<i class="el-icon-loading"></i>
</p>
|
db11048f
阿宝
设备状态,学校管理
|
419
|
<el-table
|
47a01cb6
梁保满
v1.3测试问题
|
420
|
v-else
|
0e46bc25
梁保满
优化
|
421
|
ref="multipleTable"
|
db11048f
阿宝
设备状态,学校管理
|
422
423
424
425
426
|
:data="tableData"
border
style="width: 100%"
@selection-change="handleSelectionChange"
>
|
6d7bd862
梁保满
飞书bug
|
427
|
<el-table-column type="selection" width="55"></el-table-column>
|
a0d49348
梁保满
授课端管理添加设备编码,随堂问、即...
|
428
429
430
431
432
|
<el-table-column
prop="sn"
label="设备编码"
align="center"
></el-table-column>
|
47a01cb6
梁保满
v1.3测试问题
|
433
434
435
436
437
|
<el-table-column
prop="class"
label="关联班级"
align="center"
width="100"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
438
|
><template slot-scope="scoped">
|
6d7bd862
梁保满
飞书bug
|
439
|
<p v-for="(item, index) in scoped.row.classList" :key="index">
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
440
441
442
443
|
{{ item.className }}
</p>
</template></el-table-column
>
|
db11048f
阿宝
设备状态,学校管理
|
444
|
<el-table-column
|
e5e4a3e6
梁保满
v1.3
|
445
446
447
448
449
450
|
v-if="role == 'ROLE_JITUAN'"
prop="schoolName"
label="学校"
align="center"
></el-table-column>
<el-table-column
|
4c2fb560
梁保满
反馈新需求
|
451
452
453
454
455
456
457
458
459
460
461
462
|
v-if="role == 'ROLE_JITUAN'"
prop="gradeName"
label="年级"
align="center"
width="80"
><template slot-scope="scoped">
<p v-for="(item, index) in scoped.row.classList" :key="index">
{{ item.gradeName }}
</p>
</template></el-table-column
>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
463
|
prop="lastUpdateTime"
|
db11048f
阿宝
设备状态,学校管理
|
464
465
466
467
|
label="最近更新"
align="center"
></el-table-column>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
468
|
prop="osInfo"
|
db11048f
阿宝
设备状态,学校管理
|
469
470
471
472
|
label="软件系统"
align="center"
></el-table-column>
<el-table-column
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
473
|
prop="hardwareInfo"
|
db11048f
阿宝
设备状态,学校管理
|
474
475
476
477
|
label="硬件环境"
align="center"
></el-table-column>
<el-table-column
|
255e2506
梁保满
飞书bug及优化
|
478
|
prop="otaVersionName"
|
db11048f
阿宝
设备状态,学校管理
|
479
480
|
label="版本号"
align="center"
|
4c2fb560
梁保满
反馈新需求
|
481
|
width="80"
|
db11048f
阿宝
设备状态,学校管理
|
482
|
></el-table-column>
|
47a01cb6
梁保满
v1.3测试问题
|
483
|
<el-table-column label="状态" align="center" width="80"
|
db11048f
阿宝
设备状态,学校管理
|
484
485
|
><template slot-scope="scope">
{{
|
6d7bd862
梁保满
飞书bug
|
486
|
scope.row.onlineStatus == 1
|
db11048f
阿宝
设备状态,学校管理
|
487
|
? "在线"
|
6d7bd862
梁保满
飞书bug
|
488
489
490
|
: scope.row.onlineStatus == 2
? "异常"
: "离线"
|
db11048f
阿宝
设备状态,学校管理
|
491
492
|
}}
</template></el-table-column
|
47a01cb6
梁保满
v1.3测试问题
|
493
494
|
>
<el-table-column label="自动更新" align="center" width="100"
|
db11048f
阿宝
设备状态,学校管理
|
495
496
|
><template slot-scope="scoped">
<el-switch
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
497
|
v-model="scoped.row.upgradeFlag"
|
db11048f
阿宝
设备状态,学校管理
|
498
499
500
501
502
503
504
|
@change="changeUpdate($event, scoped.row, this)"
>
</el-switch> </template
></el-table-column>
</el-table>
</div>
</div>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
505
506
507
508
509
510
511
512
513
514
515
516
|
<div class="pagination-box">
<el-pagination
small=""
layout="total,prev, pager, next"
:hide-on-single-page="true"
:total="total"
@current-change="changePage"
:current-page="page"
:page-size="size"
>
</el-pagination>
</div>
|
db11048f
阿宝
设备状态,学校管理
|
517
518
|
</div>
</div>
|
5cfb0264
梁保满
班级管理交互优化
|
519
|
<el-dialog :close-on-click-modal="false" title="设备导入" :visible.sync="diaUp" width="400">
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
520
|
<upload :url="url" @upSuccess="upSuccess" fileName="设备信息">
|
db11048f
阿宝
设备状态,学校管理
|
521
522
|
<p class="down-txt" slot="down">
通过Excel名单导入设备,需要提供设备编码,点击
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
523
|
<el-link type="danger" @click="downExcel">模板下载</el-link> 。
|
db11048f
阿宝
设备状态,学校管理
|
524
|
</p>
|
6192eba8
梁保满
引用上传文件组件问题,备题组卷顶部
|
525
|
</upload>
|
db11048f
阿宝
设备状态,学校管理
|
526
527
528
529
|
<div class="dialog-footer" slot="footer">
<el-button @click="diaUp = false">取 消</el-button>
</div>
</el-dialog>
|
5cfb0264
梁保满
班级管理交互优化
|
530
|
<el-dialog :close-on-click-modal="false"
|
0e46bc25
梁保满
优化
|
531
532
533
534
|
:title="isAdd ? '添加基站' : '修改基站'"
:visible.sync="diaAnswerEqu"
width="400"
>
|
db11048f
阿宝
设备状态,学校管理
|
535
|
<el-form ref="forms" :model="form" :rules="formRules" label-width="140px">
|
1365ef5e
梁保满
优化
|
536
|
<el-form-item label="设备编码:" prop="sn">
|
6d7bd862
梁保满
飞书bug
|
537
|
<el-col :span="16"
|
db11048f
阿宝
设备状态,学校管理
|
538
539
540
|
><el-input
type="text"
placeholder="输入设备编码"
|
1365ef5e
梁保满
优化
|
541
|
v-model.trim="form.sn"
|
db11048f
阿宝
设备状态,学校管理
|
542
543
544
|
maxlength="30"
size="45"
show-word-limit
|
e3b0e3e7
梁保满
季度时间格式调整
|
545
|
:disabled="!isAdd"
|
db11048f
阿宝
设备状态,学校管理
|
546
547
548
549
|
>
</el-input
></el-col>
</el-form-item>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
550
|
<el-form-item label="频点:" prop="frequency">
|
6d7bd862
梁保满
飞书bug
|
551
|
<el-col :span="16"
|
db11048f
阿宝
设备状态,学校管理
|
552
553
554
|
><el-input
type="text"
placeholder="输入频点"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
555
|
v-model.trim="form.frequency"
|
db11048f
阿宝
设备状态,学校管理
|
556
557
558
559
560
561
562
|
maxlength="30"
size="45"
show-word-limit
>
</el-input
></el-col>
</el-form-item>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
563
|
<el-form-item label="配对码:" prop="pairingCode">
|
6d7bd862
梁保满
飞书bug
|
564
|
<el-col :span="16"
|
db11048f
阿宝
设备状态,学校管理
|
565
566
567
|
><el-input
type="text"
placeholder="输入配对码"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
568
|
v-model.trim="form.pairingCode"
|
db11048f
阿宝
设备状态,学校管理
|
569
570
571
572
573
574
575
|
maxlength="30"
size="45"
show-word-limit
>
</el-input
></el-col>
</el-form-item>
|
6d7bd862
梁保满
飞书bug
|
576
577
|
<el-form-item label="选择班级:" prop="classIds">
<el-col :span="16">
|
db11048f
阿宝
设备状态,学校管理
|
578
|
<el-cascader
|
6d7bd862
梁保满
飞书bug
|
579
|
class="sel"
|
db11048f
阿宝
设备状态,学校管理
|
580
|
clearable
|
6d7bd862
梁保满
飞书bug
|
581
|
v-model="form.classIds"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
582
|
:options="gradeList"
|
db11048f
阿宝
设备状态,学校管理
|
583
584
585
586
587
|
:show-all-levels="false"
></el-cascader>
</el-col>
</el-form-item>
<el-form-item label="所在教室:">
|
6d7bd862
梁保满
飞书bug
|
588
|
<el-col :span="16"
|
db11048f
阿宝
设备状态,学校管理
|
589
590
591
|
><el-input
type="text"
placeholder="输入所在教室"
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
592
|
v-model.trim="form.roomName"
|
db11048f
阿宝
设备状态,学校管理
|
593
594
595
596
597
598
599
600
601
|
maxlength="30"
size="45"
show-word-limit
>
</el-input
></el-col>
</el-form-item>
</el-form>
<div class="dialog-footer" slot="footer">
|
236b1f0e
梁保满
周末-飞书bug
|
602
|
<el-button type="primary" @click="setAnswerEqu">确 定</el-button>
|
db11048f
阿宝
设备状态,学校管理
|
603
604
605
|
<el-button @click="diaAnswerEqu = false">取 消</el-button>
</div>
</el-dialog>
|
bb778c90
阿宝
设备状态
|
606
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
607
608
609
|
</template>
<script>
|
db11048f
阿宝
设备状态,学校管理
|
610
611
612
|
import pieChart from "@/components/charts/pieChart";
import scatterChart from "@/components/charts/scatterChart";
import _ from "lodash";
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
613
|
import { downloadFile, getBlob, formatGradeNameClass } from "@/utils";
|
255e2506
梁保满
飞书bug及优化
|
614
|
import api from "@/api/apis/apis";
|
db11048f
阿宝
设备状态,学校管理
|
615
616
|
export default {
components: { pieChart, scatterChart },
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
617
618
619
620
|
watch: {
type: function (val) {
this.page = 1;
this.total = 0;
|
225a00b6
梁保满
飞书问题解决
|
621
|
this.count = 0;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
622
623
624
|
this.query.classId = [];
this.query.onlineStatus = "";
this.query.sn = "";
|
4c2fb560
梁保满
反馈新需求
|
625
|
this.query.studentName = "";
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
626
627
628
629
630
631
632
633
634
|
this.query.type = "";
if (val == 1) {
this.stationReport();
} else if (val == 2) {
this.keyboardReport();
}
this._QueryData();
},
},
|
db11048f
阿宝
设备状态,学校管理
|
635
636
|
data() {
return {
|
d32e461c
梁保满
备题组卷
|
637
|
code: "",
|
4c2fb560
梁保满
反馈新需求
|
638
|
role: "",
|
db11048f
阿宝
设备状态,学校管理
|
639
|
loading: false,
|
4c2fb560
梁保满
反馈新需求
|
640
641
|
exportLoading: false,
isAdd: false, //添加还是修改基站
|
87abc4f3
梁保满
基站上传接口地址修改
|
642
|
url: "/api_html/school/manager/importStation",
|
db11048f
阿宝
设备状态,学校管理
|
643
644
|
diaUp: false,
diaAnswerEqu: false,
|
4c2fb560
梁保满
反馈新需求
|
645
646
|
gradeList: [], //年级列表
schoolAll: [], //所有学校刘表
|
e3b0e3e7
梁保满
季度时间格式调整
|
647
|
school: {}, //校园账号所属学校信息
|
255e2506
梁保满
飞书bug及优化
|
648
649
650
|
props: {
multiple: true,
checkStrictly: true,
|
255e2506
梁保满
飞书bug及优化
|
651
|
},
|
db11048f
阿宝
设备状态,学校管理
|
652
653
654
|
type: 1,
query: {
classId: [],
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
655
656
657
|
onlineStatus: "",
sn: "",
type: "",
|
4c2fb560
梁保满
反馈新需求
|
658
|
studentName: "",
|
db11048f
阿宝
设备状态,学校管理
|
659
660
|
},
statusList: [
|
dbbfc6c5
梁保满
飞书优化及bug
|
661
|
{ label: "全部", value: "" },
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
662
|
{ label: "离线", value: 0 },
|
db11048f
阿宝
设备状态,学校管理
|
663
|
{ label: "在线", value: 1 },
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
664
665
666
667
668
669
670
671
672
673
|
{ label: "异常", value: 2 },
],
typeList: [
{ label: "全部", value: 0 },
{ label: "1日内", value: 1 },
{ label: "3日内", value: 2 },
{ label: "7日内", value: 3 },
{ label: "1月内", value: 4 },
{ label: "3月内", value: 5 },
{ label: "3月以上", value: 6 },
|
db11048f
阿宝
设备状态,学校管理
|
674
675
|
],
form: {
|
4c2fb560
梁保满
反馈新需求
|
676
|
//修改/添加基站信息
|
255e2506
梁保满
飞书bug及优化
|
677
|
deviceId: "",
|
1365ef5e
梁保满
优化
|
678
|
sn: "",
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
679
680
|
frequency: "",
pairingCode: "",
|
183bfae8
梁保满
设备修改班级选择调整
|
681
|
classIds: [],
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
682
|
roomName: "",
|
db11048f
阿宝
设备状态,学校管理
|
683
684
|
},
formRules: {
|
e3b0e3e7
梁保满
季度时间格式调整
|
685
|
sn: [{ required: true, message: "请输入设备编码", trigger: "blur" }],
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
686
687
688
689
|
frequency: [{ required: true, message: "请输入频点", trigger: "blur" }],
pairingCode: [
{ required: true, message: "请输入配对码", trigger: "blur" },
],
|
4c2fb560
梁保满
反馈新需求
|
690
|
// classIds: [{ required: true, message: "请选择班级", trigger: "blur" }],
|
db11048f
阿宝
设备状态,学校管理
|
691
|
},
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
692
693
|
tableData: [],
total: 0,
|
225a00b6
梁保满
飞书问题解决
|
694
|
count: 0,
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
695
696
|
chartData: [],
chartData2: [],
|
4c2fb560
梁保满
反馈新需求
|
697
|
selectionTabIds: [], //已选择授课段
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
698
699
|
page: 1,
size: 20,
|
4c2fb560
梁保满
反馈新需求
|
700
|
isBack: false, //是否是日志页面回来
|
ec6394d1
梁保满
v1.3.1。细节调整
|
701
|
upgradeFlag: false,
|
d4b9eb45
梁保满
设备异常信息
|
702
703
|
stationCount: 0, //异常基站数量
clickerCount: 0, //异常答题器数量
|
db11048f
阿宝
设备状态,学校管理
|
704
705
706
|
};
},
created() {
|
e3b0e3e7
梁保满
季度时间格式调整
|
707
|
this.code = localStorage.getItem("csCode") || "";
|
87053bc8
梁保满
设备状态模版下载更新
|
708
709
710
|
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
|
d4b9eb45
梁保满
设备异常信息
|
711
|
this._QueryErrorTotal();
|
255e2506
梁保满
飞书bug及优化
|
712
|
if (this.role == "ROLE_JITUAN") {
|
e3b0e3e7
梁保满
季度时间格式调整
|
713
714
715
716
|
(this.props.lazy = true),
(this.props.lazyLoad = function (node, resolve) {
const { level } = node;
if (level == 2) {
|
e3b0e3e7
梁保满
季度时间格式调整
|
717
718
719
720
721
722
723
724
725
726
|
api
.tenantClassList({
schoolId: node.data.value,
})
.then((res) => {
let children = formatGradeNameClass(res.data?.list).sort(
(a, b) => {
return a.grade - b.grade;
}
);
|
e3b0e3e7
梁保满
季度时间格式调整
|
727
728
729
730
731
732
733
734
735
736
737
|
const nodes = [...children];
// 通过调用resolve将子节点数据返回,通知组件数据加载完成
resolve(nodes);
});
} else {
resolve(node);
}
});
}
if (this.role == "ROLE_XUEXIAO") {
this._QueryDataSchool();
|
255e2506
梁保满
飞书bug及优化
|
738
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
739
|
this._QueryGradeList();
|
11cb8ce0
梁保满
样式调整
|
740
|
if (this.role == "ROLE_JITUAN") {
|
225a00b6
梁保满
飞书问题解决
|
741
742
|
this.showSchool();
}
|
db11048f
阿宝
设备状态,学校管理
|
743
|
},
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
744
745
|
activated() {
const that = this;
|
e5e4a3e6
梁保满
v1.3
|
746
|
this.isBack = this.$route.query.back ? this.$route.query.back : false;
|
e5e4a3e6
梁保满
v1.3
|
747
|
if (!this.isBack) {
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
748
749
750
751
752
753
754
755
|
that.type = 1;
that.page = 1;
that.total = 0;
that.count = 0;
that.query.classId = [];
that.query.onlineStatus = "";
that.query.sn = "";
that.query.type = "";
|
47a01cb6
梁保满
v1.3测试问题
|
756
757
758
759
|
if (this.role == "ROLE_XUEXIAO") {
this._QueryDataSchool();
}
this._QueryGradeList();
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
760
761
|
that.stationReport();
that._QueryData();
|
e5e4a3e6
梁保满
v1.3
|
762
|
}
|
5be3bb70
梁保满
切换账号,缓存组件接口报错问题
|
763
|
},
|
db11048f
阿宝
设备状态,学校管理
|
764
|
methods: {
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
765
|
upSuccess(res) {
|
e3b0e3e7
梁保满
季度时间格式调整
|
766
|
//导入成功
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
767
768
769
|
this.$message.closeAll();
this.$message({
showClose: true,
|
fc9cbff6
梁保满
上传信息显示调整
|
770
|
message: `成功(${res.data.success})`,
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
771
|
type: "success",
|
183bfae8
梁保满
设备修改班级选择调整
|
772
|
duration: 5000,
|
191d5bfa
梁保满
学生管理、基站管理下载名称设置,上...
|
773
|
});
|
e3b0e3e7
梁保满
季度时间格式调整
|
774
|
this.diaUp = false;
|
87abc4f3
梁保满
基站上传接口地址修改
|
775
|
this.page = 1;
|
255e2506
梁保满
飞书bug及优化
|
776
777
|
this._QueryData();
},
|
575eb544
梁保满
账号异常提示,放开长水学校管理员设...
|
778
779
|
edit(obj) {
//修改设备
|
0e46bc25
梁保满
优化
|
780
|
this.isAdd = false;
|
255e2506
梁保满
飞书bug及优化
|
781
782
|
for (let key in this.form) {
if (key == "classIds") {
|
5fb1f184
梁保满
答题器管理:不显示 题器配对码,修...
|
783
784
785
|
this.form[key] = obj.classList.length
? [obj.classList[0].gradeName, obj.classList[0].classId]
: [];
|
255e2506
梁保满
飞书bug及优化
|
786
787
|
} else {
this.form[key] = obj[key];
|
6d7bd862
梁保满
飞书bug
|
788
789
|
}
}
|
0e46bc25
梁保满
优化
|
790
|
delete this.form.schoolId;
|
e3b0e3e7
梁保满
季度时间格式调整
|
791
|
this.form.deviceId = obj.id;
|
255e2506
梁保满
飞书bug及优化
|
792
|
this.diaAnswerEqu = true;
|
6d7bd862
梁保满
飞书bug
|
793
|
},
|
db11048f
阿宝
设备状态,学校管理
|
794
795
796
797
798
799
800
801
802
803
|
linkTo(obj, type) {
this.$router.push({
path: "/deviceLog",
query: {
id: obj.id,
type: type,
},
});
},
clickPieChart(obj) {
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
804
805
806
|
this.query.onlineStatus =
obj.name == "在线" ? 1 : obj.name == "离线" ? 0 : 2;
this.query.sn = "";
|
c4eb9615
梁保满
日志页面调整
|
807
|
this.query.classId = [];
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
808
|
this.page = 1;
|
b21d90ef
梁保满
长水登录
|
809
|
this._QueryData(false);
|
db11048f
阿宝
设备状态,学校管理
|
810
811
|
},
clickScatterChart(obj) {
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
812
813
814
815
816
817
818
819
820
821
822
823
824
|
this.query.type =
obj.name == "1日内"
? 1
: obj.name == "3日内"
? 2
: obj.name == "7日内"
? 3
: obj.name == "1月内"
? 4
: obj.name == "3月内"
? 5
: 6;
this.query.sn = "";
|
c4eb9615
梁保满
日志页面调整
|
825
|
this.query.classId = [];
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
826
|
this.page = 1;
|
b21d90ef
梁保满
长水登录
|
827
|
this._QueryData(false);
|
db11048f
阿宝
设备状态,学校管理
|
828
829
830
831
832
833
834
|
},
handleSelectionChange(val) {
console.log(val);
this.selectionTabIds = val.map((item) => {
return item.id;
});
},
|
ec6394d1
梁保满
v1.3.1。细节调整
|
835
836
837
|
changeUpdateBySchool: _.debounce(function (event) {
this._ModifyUpgradeFlagBySchool();
}, 800),
|
db11048f
阿宝
设备状态,学校管理
|
838
839
840
841
842
843
844
845
|
changeUpdate: _.debounce(function (event, obj) {
console.log(this);
if (event) {
this.autoUpDate(obj.id);
} else {
this.stopUpdate(obj.id);
}
}, 800),
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
846
847
|
changePage(page) {
this.page = page;
|
b21d90ef
梁保满
长水登录
|
848
|
this._QueryData(false);
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
849
|
},
|
e3b0e3e7
梁保满
季度时间格式调整
|
850
851
852
853
|
addDev() {
this.form.sn = "";
this.form.frequency = "";
this.form.pairingCode = "";
|
183bfae8
梁保满
设备修改班级选择调整
|
854
|
this.form.classIds = [];
|
e3b0e3e7
梁保满
季度时间格式调整
|
855
|
this.form.roomName = "";
|
0e46bc25
梁保满
优化
|
856
857
858
|
this.form.schoolId = this.school.id;
delete this.form.deviceId;
this.isAdd = true;
|
e3b0e3e7
梁保满
季度时间格式调整
|
859
860
|
this.diaAnswerEqu = true;
},
|
ec6394d1
梁保满
v1.3.1。细节调整
|
861
862
863
864
865
866
867
|
_ModifyUpgradeFlagBySchool() {
let data = this.$request.modifyUpgradeFlagBySchool({
upgradeFlag: this.upgradeFlag ? 1 : 0,
});
if (data && !data.code) {
this._QueryData(false);
this.selectionTabIds = [];
|
fa1c0241
梁保满
全校设备自动更新提示语
|
868
|
this.$message.success(this.upgradeFlag?"开启自动更新成功":"关闭/停止自动更新成功");
|
ec6394d1
梁保满
v1.3.1。细节调整
|
869
870
871
872
|
} else {
this.$message.error(data.info);
}
},
|
225a00b6
梁保满
飞书问题解决
|
873
|
async showSchool() {
|
296f7c47
梁保满
集团管理员接口调整
|
874
875
|
const { data, status, info } = await this.$request.schoolList();
if (status === 0) {
|
183bfae8
梁保满
设备修改班级选择调整
|
876
877
878
879
880
881
|
let gradeListAll = data.list?.map((item) => {
return {
value: item.id,
label: item.schoolName,
};
});
|
225a00b6
梁保满
飞书问题解决
|
882
883
884
885
|
this.schoolAll = [
{
value: 0,
label: "全部",
|
183bfae8
梁保满
设备修改班级选择调整
|
886
|
children: [...gradeListAll],
|
225a00b6
梁保满
飞书问题解决
|
887
888
889
|
},
];
this.gradeList = [...this.schoolAll, ...this.gradeList];
|
296f7c47
梁保满
集团管理员接口调整
|
890
891
892
893
|
} else {
this.$message.error(info);
}
},
|
db11048f
阿宝
设备状态,学校管理
|
894
895
896
897
898
899
900
|
async autoUpDate(id) {
if (!this.selectionTabIds.length && !id) {
this.$message.warning("请选择授课端~");
return;
}
if (this.loadingUpDate) return;
this.loadingUpDate = true;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
901
|
let data = await this.$request.modifyUpgradeFlag({
|
dd5150c5
阿宝
数据同步
|
902
|
deviceIds: id ? [id] : this.selectionTabIds,
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
903
|
upgradeFlag: 1,
|
db11048f
阿宝
设备状态,学校管理
|
904
905
906
907
|
});
this.loadingUpDate = false;
if (data && !data.code) {
this._QueryData(false);
|
e5ff81a1
阿宝
集团管理员接口
|
908
|
this.selectionTabIds = [];
|
db11048f
阿宝
设备状态,学校管理
|
909
910
|
this.$message.success("开启自动更新成功");
} else {
|
236b1f0e
梁保满
周末-飞书bug
|
911
|
this.$message.error(data.info);
|
db11048f
阿宝
设备状态,学校管理
|
912
913
914
915
916
917
918
919
920
|
}
},
async stopUpdate(id) {
if (!this.selectionTabIds.length && !id) {
this.$message.warning("请选择授课端~");
return;
}
if (this.loadingUpDate) return;
this.loadingUpDate = true;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
921
|
let data = await this.$request.modifyUpgradeFlag({
|
dd5150c5
阿宝
数据同步
|
922
|
deviceIds: id ? [id] : this.selectionTabIds,
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
923
|
upgradeFlag: 0,
|
db11048f
阿宝
设备状态,学校管理
|
924
925
926
|
});
this.loadingUpDate = false;
if (data && !data.code) {
|
e5ff81a1
阿宝
集团管理员接口
|
927
|
this.selectionTabIds = [];
|
db11048f
阿宝
设备状态,学校管理
|
928
929
930
|
this._QueryData(false);
this.$message.success("关闭自动更新成功");
} else {
|
236b1f0e
梁保满
周末-飞书bug
|
931
|
this.$message.error(data.info);
|
db11048f
阿宝
设备状态,学校管理
|
932
933
934
|
}
},
async downExcel() {
|
87053bc8
梁保满
设备状态模版下载更新
|
935
|
let data = await this.$request.stationTemplate({
|
db11048f
阿宝
设备状态,学校管理
|
936
937
|
id: this.id,
});
|
87053bc8
梁保满
设备状态模版下载更新
|
938
939
940
941
942
|
if (data) {
let blob = new Blob([data], {
type: "application/vnd.ms-excel;charset=utf-8",
});
downloadFile(`基站模版.xlsx`, blob);
|
db11048f
阿宝
设备状态,学校管理
|
943
|
} else {
|
87053bc8
梁保满
设备状态模版下载更新
|
944
|
this.$message.error("下载失败");
|
db11048f
阿宝
设备状态,学校管理
|
945
946
|
}
},
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
947
|
async downExl() {
|
e5e4a3e6
梁保满
v1.3
|
948
|
//报表导出
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
949
|
if (this.exportLoading == true) return;
|
e5e4a3e6
梁保满
v1.3
|
950
|
let query = this.setQuery();
|
4c2fb560
梁保满
反馈新需求
|
951
952
953
954
955
|
const exportDevice =
this.role != "ROLE_JITUAN"
? this.$request.exportDevice
: this.$request.tenantExportDevice;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
956
|
this.exportLoading = true;
|
4c2fb560
梁保满
反馈新需求
|
957
|
const data = await exportDevice({
|
e5e4a3e6
梁保满
v1.3
|
958
959
960
|
...query,
deviceType: this.type,
});
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
|
this.exportLoading = false;
if (data && !data.code) {
let blob = new Blob([data], {
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
});
let txt =
this.type == 1
? "基站管理报表.xlsx"
: this.type == 2
? "答题器报表.xlsx"
: "授课端报表.xlsx";
downloadFile(txt, blob);
} else {
this.$message.error(data.info);
}
},
|
db11048f
阿宝
设备状态,学校管理
|
977
|
|
236b1f0e
梁保满
周末-飞书bug
|
978
979
|
// 修改基站
setAnswerEqu() {
|
6d7bd862
梁保满
飞书bug
|
980
981
982
983
|
this.$refs.forms.validate(async (valid) => {
if (valid) {
if (this.loadingAnswerEqu) return;
this.loadingAnswerEqu = true;
|
255e2506
梁保满
飞书bug及优化
|
984
|
let query = { ...this.form };
|
236b1f0e
梁保满
周末-飞书bug
|
985
|
|
5fb1f184
梁保满
答题器管理:不显示 题器配对码,修...
|
986
|
query.classIds = query.classIds.length ? [query.classIds[1]] : [];
|
0e46bc25
梁保满
优化
|
987
988
989
|
let deviceApi = this.isAdd
? this.$request.addStation
: this.$request.updateDevice;
|
e3b0e3e7
梁保满
季度时间格式调整
|
990
|
const { data, status, info } = await deviceApi({
|
255e2506
梁保满
飞书bug及优化
|
991
992
|
...query,
});
|
6d7bd862
梁保满
飞书bug
|
993
994
995
|
this.loadingAnswerEqu = false;
console.log(status);
if (status === 0) {
|
255e2506
梁保满
飞书bug及优化
|
996
|
this.diaAnswerEqu = false;
|
1365ef5e
梁保满
优化
|
997
|
this.$message.success(info);
|
6d7bd862
梁保满
飞书bug
|
998
|
this._QueryData();
|
0e46bc25
梁保满
优化
|
999
1000
|
if (this.isAdd) {
this.stationReport();
|
e3b0e3e7
梁保满
季度时间格式调整
|
1001
|
}
|
6d7bd862
梁保满
飞书bug
|
1002
1003
1004
1005
1006
1007
1008
|
} else {
this.$message.error(info);
}
} else {
this.$message.warning("数据有误,请检查!");
}
});
|
db11048f
阿宝
设备状态,学校管理
|
1009
|
},
|
e3b0e3e7
梁保满
季度时间格式调整
|
1010
1011
1012
1013
1014
1015
1016
1017
|
async _QueryDataSchool() {
const { data, status, info } = await this.$request.schoolDetail();
if (status === 0) {
this.school = { ...data };
} else {
this.$message.error(info);
}
},
|
db11048f
阿宝
设备状态,学校管理
|
1018
|
// 查找班级
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1019
1020
|
async _QueryGradeList() {
this.loading = true;
|
e5ff81a1
阿宝
集团管理员接口
|
1021
1022
1023
1024
1025
|
const gradeList =
this.role != "ROLE_JITUAN"
? this.$request.gradeList
: this.$request.regionList;
const { data, status, info } = await gradeList();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1026
1027
|
if (status === 0) {
if (!!data.list) {
|
e5ff81a1
阿宝
集团管理员接口
|
1028
1029
1030
1031
|
if (this.role != "ROLE_JITUAN") {
this.gradeList =
data.list?.map((item) => {
let gradeList = {
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1032
|
value: item.gradeName,
|
e5ff81a1
阿宝
集团管理员接口
|
1033
1034
1035
1036
1037
|
label: item.gradeName,
};
gradeList.children =
item.classList?.map((items) => {
return {
|
1365ef5e
梁保满
优化
|
1038
|
value: Number(items.id),
|
e5ff81a1
阿宝
集团管理员接口
|
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
|
label: items.className,
};
}) || [];
return gradeList;
}) || [];
} else {
this.gradeList =
data.list?.map((item) => {
let gradeList = {
value: item.id,
label: item.regionName,
};
gradeList.children =
item.schoolList?.map((items) => {
return {
value: items.id,
label: items.schoolName,
};
}) || [];
return gradeList;
}) || [];
|
225a00b6
梁保满
飞书问题解决
|
1060
|
this.gradeList = [...this.schoolAll, ...this.gradeList];
|
e5ff81a1
阿宝
集团管理员接口
|
1061
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1062
1063
1064
1065
1066
1067
1068
|
}
} else {
this.$message.error(info);
}
},
// 基站统计数据
async stationReport() {
|
e5ff81a1
阿宝
集团管理员接口
|
1069
1070
1071
1072
1073
|
const stationReport =
this.role != "ROLE_JITUAN"
? this.$request.stationReport
: this.$request.tenantStationReport;
const { data, status, info } = await stationReport();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1074
1075
1076
1077
1078
|
if (status === 0) {
this.chartData =
data.list?.map((item) => {
return {
name:
|
e5ff81a1
阿宝
集团管理员接口
|
1079
1080
1081
1082
1083
|
item.onlineStatus == "1"
? "在线"
: item.onlineStatus == 0
? "离线"
: "异常",
|
296f7c47
梁保满
集团管理员接口调整
|
1084
1085
|
value: item.total,
rate: item.rate,
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1086
1087
|
};
}) || [];
|
225a00b6
梁保满
飞书问题解决
|
1088
|
this.count = data.total || 0;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1089
1090
1091
1092
1093
1094
|
} else {
this.$message.error(info);
}
},
// 答题器统计数据
async keyboardReport() {
|
e5ff81a1
阿宝
集团管理员接口
|
1095
1096
1097
1098
1099
|
const keyboardReport =
this.role != "ROLE_JITUAN"
? this.$request.keyboardReport
: this.$request.tenantKeyboardReport;
const { data, status, info } = await keyboardReport();
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
|
if (status === 0) {
this.chartData2 =
data.list?.map((item) => {
return {
name:
item.type == 1
? "1日内"
: item.type == 2
? "3日内"
: item.type == 3
? "7日内"
: item.type == 4
? "1月内"
: item.type == 5
? "3月内"
: "3月以上",
|
225a00b6
梁保满
飞书问题解决
|
1116
1117
|
count: item.total,
value: item.rate * 100,
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1118
1119
|
};
}) || [];
|
225a00b6
梁保满
飞书问题解决
|
1120
|
this.count = data.total || 0;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1121
1122
1123
|
} else {
this.$message.error(info);
}
|
db11048f
阿宝
设备状态,学校管理
|
1124
|
},
|
225a00b6
梁保满
飞书问题解决
|
1125
1126
1127
|
setQuery() {
//整理传参
let query = {};
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1128
|
if (this.query.sn) {
|
5e2e009a
梁保满
基站筛选条件显示问题,归档文本替换
|
1129
1130
1131
1132
|
this.query.classId = [];
this.query.onlineStatus = "";
this.query.type = "";
this.query.studentName = "";
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1133
|
query.sn = this.query.sn;
|
4c2fb560
梁保满
反馈新需求
|
1134
|
} else if (this.query.studentName) {
|
5e2e009a
梁保满
基站筛选条件显示问题,归档文本替换
|
1135
1136
1137
1138
|
this.query.classId = [];
this.query.onlineStatus = "";
this.query.type = "";
this.query.sn = "";
|
4c2fb560
梁保满
反馈新需求
|
1139
|
query.studentName = this.query.studentName;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1140
|
} else {
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1141
1142
1143
1144
1145
1146
1147
|
if (this.type == 1) {
this.query.onlineStatus !== ""
? (query.onlineStatus = this.query.onlineStatus)
: "";
} else if (this.type == 2) {
this.query.type !== "" ? (query.type = this.query.type) : "";
}
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1148
1149
1150
|
if (this.role == "ROLE_JITUAN") {
query.regionIds = [];
query.schoolIds = [];
|
255e2506
梁保满
飞书bug及优化
|
1151
1152
|
query.gradeNames = [];
query.classIds = [];
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1153
1154
|
this.query.classId?.map((item) => {
if (item.length == 1) {
|
225a00b6
梁保满
飞书问题解决
|
1155
|
if (!query.regionIds.includes(item[0])) {
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1156
1157
|
query.regionIds.push(item[0]);
}
|
255e2506
梁保满
飞书bug及优化
|
1158
|
} else if (item.length == 2) {
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1159
1160
1161
|
if (!query.schoolIds.includes(item[1])) {
query.schoolIds.push(item[1]);
}
|
255e2506
梁保满
飞书bug及优化
|
1162
1163
1164
1165
|
query.regionIds.includes(item[0])
? query.regionIds.remove(item[0])
: "";
} else if (item.length == 3) {
|
1365ef5e
梁保满
优化
|
1166
1167
1168
|
if (!query.schoolIds.includes(item[1])) {
query.schoolIds.push(item[1]);
}
|
255e2506
梁保满
飞书bug及优化
|
1169
1170
|
if (!query.gradeNames.includes(item[2])) {
query.gradeNames.push(item[2]);
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1171
|
}
|
255e2506
梁保满
飞书bug及优化
|
1172
1173
1174
|
query.regionIds.includes(item[0])
? query.regionIds.remove(item[0])
: "";
|
255e2506
梁保满
飞书bug及优化
|
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
|
} else if (item.length == 4) {
if (!query.classIds.includes(item[3])) {
query.classIds.push(item[3]);
}
query.regionIds.includes(item[0])
? query.regionIds.remove(item[0])
: "";
query.schoolIds.includes(item[1])
? query.schoolIds.remove(item[1])
: "";
query.gradeNames.includes(item[2])
? query.gradeNames.remove(item[2])
: "";
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1188
1189
1190
1191
1192
1193
1194
|
}
});
} else {
query.gradeNames = [];
query.classIds = [];
this.query.classId?.map((item) => {
if (item.length == 1) {
|
225a00b6
梁保满
飞书问题解决
|
1195
|
if (!query.gradeNames.includes(item[0])) {
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
|
query.gradeNames.push(item[0]);
}
} else {
if (!query.classIds.includes(item[1])) {
query.classIds.push(item[1]);
}
if (query.gradeNames.includes(item[0])) {
query.gradeNames.remove(item[0]);
}
}
});
}
delete query.classId;
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1209
|
}
|
225a00b6
梁保满
飞书问题解决
|
1210
|
return query;
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1211
1212
1213
|
},
// 设备列表信息
async _QueryData(isRef) {
|
225a00b6
梁保满
飞书问题解决
|
1214
|
let query = this.setQuery();
|
1b9bae95
梁保满
级联选择器调整,日志接口调整
|
1215
1216
|
if (isRef) {
this.page = 1;
|
b21d90ef
梁保满
长水登录
|
1217
|
}
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1218
|
this.loading = true;
|
e5ff81a1
阿宝
集团管理员接口
|
1219
1220
1221
1222
|
const deviceList =
this.role != "ROLE_JITUAN"
? this.$request.deviceList
: this.$request.tenantDeviceList;
|
6d7bd862
梁保满
飞书bug
|
1223
|
this.tableData = [];
|
e5ff81a1
阿宝
集团管理员接口
|
1224
|
const { data, status, info } = await deviceList({
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1225
1226
1227
1228
1229
1230
|
...query,
deviceType: this.type,
page: this.page,
size: this.size,
});
this.loading = false;
|
e5ff81a1
阿宝
集团管理员接口
|
1231
|
if (status == 0) {
|
225a00b6
梁保满
飞书问题解决
|
1232
|
this.tableData =
|
255e2506
梁保满
飞书bug及优化
|
1233
1234
1235
1236
1237
1238
|
(data?.list &&
data?.list.map((item) => {
item.upgradeFlag = item.upgradeFlag == 1 ? true : false;
return item;
})) ||
[];
|
0e46bc25
梁保满
优化
|
1239
|
|
225a00b6
梁保满
飞书问题解决
|
1240
|
this.total = data.count;
|
e3b0e3e7
梁保满
季度时间格式调整
|
1241
1242
|
this.$nextTick(function () {
this.$refs.main.scrollTop = 0;
|
0e46bc25
梁保满
优化
|
1243
1244
1245
1246
1247
1248
|
if (this.query.classId.length) {
this.selectionTabIds = this.tableData.map((item) => {
this.$refs.multipleTable.toggleRowSelection(item);
return item.id;
});
}
|
e3b0e3e7
梁保满
季度时间格式调整
|
1249
|
});
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
1250
1251
1252
|
} else {
this.$message.error(info);
}
|
db11048f
阿宝
设备状态,学校管理
|
1253
|
},
|
d4b9eb45
梁保满
设备异常信息
|
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
|
// 异常设备数量
async _QueryErrorTotal() {
const abnormalDeviceCount =
this.role != "ROLE_JITUAN"
? this.$request.abnormalDeviceCount
: this.$request.tenantAbnormalDeviceCount;
this.tableData = [];
const { data, status, info } = await abnormalDeviceCount();
if (status == 0) {
this.stationCount = data?.stationCount;
this.clickerCount = data?.clickerCount;
} else {
this.$message.error(info);
}
},
|
db11048f
阿宝
设备状态,学校管理
|
1269
1270
|
},
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
1271
1272
|
</script>
|
db11048f
阿宝
设备状态,学校管理
|
1273
1274
|
<style lang="scss" scoped>
.page-content {
|
1365ef5e
梁保满
优化
|
1275
1276
1277
|
padding: 0 20px;
height: 100%;
overflow-y: auto;
|
db11048f
阿宝
设备状态,学校管理
|
1278
1279
|
}
.tab-box {
|
e3b0e3e7
梁保满
季度时间格式调整
|
1280
|
padding: 20px 0 12px;
|
db11048f
阿宝
设备状态,学校管理
|
1281
|
}
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
1282
|
.down {
|
e5e4a3e6
梁保满
v1.3
|
1283
|
padding: 0 0 16px 20px;
|
ae0a304c
梁保满
学生管理-显示班级基站信息
|
1284
|
}
|
d4b9eb45
梁保满
设备异常信息
|
1285
1286
|
.error-tips {
margin-bottom: 12px;
|
8ef22809
梁保满
软件下载页面添加.net环境下载
|
1287
|
}
|
db11048f
阿宝
设备状态,学校管理
|
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
|
.content {
background: #f8f8f8;
border: 1px solid #e2e2e2;
border-radius: 10px;
overflow: hidden;
:deep(.fa-edit) {
width: 12px;
height: 12px;
&::before {
margin-left: 2px;
}
}
:deep(.fa-eye) {
width: 12px;
height: 12px;
&::before {
margin-left: 1px;
}
}
.chart-box {
display: flex;
overflow: hidden;
height: 240px;
border-bottom: 0.5px solid #e2e2e2;
.device-num {
width: 280px;
border-right: 0.5px solid #e2e2e2;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.p1 {
font-size: 28px;
}
}
.chart {
flex: 1;
height: 100%;
}
}
.table-box {
|
e5e4a3e6
梁保满
v1.3
|
1329
|
padding: 20px 20px 0;
|
47a01cb6
梁保满
v1.3测试问题
|
1330
1331
1332
1333
1334
1335
|
.loading {
text-align: center;
line-height: 36px;
font-size: 16px;
color: #666;
}
|
db11048f
阿宝
设备状态,学校管理
|
1336
1337
1338
|
.answer-header {
padding: 0;
margin-bottom: 12px;
|
8ef22809
梁保满
软件下载页面添加.net环境下载
|
1339
|
.upgrade-all {
|
ec6394d1
梁保满
v1.3.1。细节调整
|
1340
1341
1342
|
display: flex;
align-items: center;
}
|
db11048f
阿宝
设备状态,学校管理
|
1343
1344
1345
|
}
}
}
|
4c2fb560
梁保满
反馈新需求
|
1346
1347
1348
1349
1350
1351
1352
1353
1354
|
.answer-header .sel-box .input-with-select {
margin-right: 20px;
:deep(.el-input__suffix) {
right: -5px;
}
:deep(.el-button) {
padding: 12px 16px 12px 10px;
}
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
1355
|
</style>
|