diff --git a/src/api/apis/apis.js b/src/api/apis/apis.js index 9f29251..fa38c2d 100644 --- a/src/api/apis/apis.js +++ b/src/api/apis/apis.js @@ -529,6 +529,13 @@ export default { data, }); }, + // 导入基站模板下载地址 + stationTemplateUrl() { + return service({ + url: setUpUrls.stationTemplateUrl, + method: "POST", + }); + }, // 查询下载配置列表 appConfigList(data) { return service({ @@ -594,6 +601,14 @@ export default { responseType: 'arraybuffer', }); }, + // 发卡应用下载 + latestClickersApp(data) { + return service({ + url: setUpUrls.latestClickersApp, + method: "POST", + data, + }); + }, /** * 集团管理员-学校管理 diff --git a/src/api/urls/apis.js b/src/api/urls/apis.js index 5698b95..86ff435 100644 --- a/src/api/urls/apis.js +++ b/src/api/urls/apis.js @@ -134,6 +134,8 @@ export default { updateDevice: "/api_html/school/manager/updateDevice", // 新增基站 addStation: "/api_html/school/manager/addStation", + // 导入基站模板下载地址 + stationTemplateUrl: "/api_html/school/manager/stationTemplateUrl", // 查询下载配置列表 appConfigList: "/api_html/school/manager/appConfigList", // 查询最新的授课端应用版本 @@ -147,9 +149,11 @@ export default { // 设备使用分析 usageAnalysis: "/api_html/school/manager/usageAnalysis", // 发卡记录 - cardList: "/api_html/school/manager/cardList", + cardList: "/api_html/school/manager/clickersLogList", // 导出设备使用分析 exportUsageAnalysis: "/api_html/school/manager/exportUsageAnalysis", + // 发卡应用下载 + latestClickersApp: "/api_html/school/manager/latestClickersApp", // 查询区域列表 diff --git a/src/components/upload.vue b/src/components/upload.vue index 92b1ade..8a7c0c4 100644 --- a/src/components/upload.vue +++ b/src/components/upload.vue @@ -76,7 +76,6 @@ export default { // } }, upSuccess(res) { - debugger if (res && res.status == 0 ) { this.$message.success("上传成功"); this.$emit("upSuccess"); @@ -85,7 +84,6 @@ export default { } }, upError(res) { - debugger if (res && res.status == 0) { this.$message.error("上传失败"); } else { diff --git a/src/views/card/index.vue b/src/views/card/index.vue index e5b91f7..1a7d551 100644 --- a/src/views/card/index.vue +++ b/src/views/card/index.vue @@ -10,6 +10,7 @@
-
+
- + + + - - + + + + +
+ + +
@@ -100,19 +121,23 @@ export default { data() { return { - loading:false, - props: { multiple: true, checkStrictly: false }, + loading: false, + props: { multiple: false }, query: { - classId: [], + classId: "", studentName: "", studentCode: "", }, gradeList: [], tableData: [], + page: 1, + size: 20, + total: 0, }; }, created() { - // this._QueryGradeList(); + this._QueryGradeList(); + this._QueryData(); }, methods: { // 查找班级 @@ -142,12 +167,15 @@ export default { this.$message.error(info); } }, + changePage(page) { + this.page = page; + this._QueryData(4); + }, async _QueryData(type) { let query = {}; query.gradeName = this.query.gradeName; - query.classId = this.query.classId; if (type == 1) { - query.classId = this.query.classId; + query.classId = this.query.classId[1] ? this.query.classId[1] : ""; this.query.studentCode = ""; this.query.studentName = ""; } else if (type == 2) { @@ -158,15 +186,20 @@ export default { query.studentCode = this.query.studentCode; this.query.classId = ""; this.query.studentName = ""; + } else { + query = { ...this.query }; } this.loading = true; const { data, status, info } = await this.$request.cardList({ ...query, + page: this.page, + size: 20, }); this.loading = false; console.log(status); if (status === 0) { this.tableData = data.list || []; + this.total = data.count; } else { this.$message.error(info); } diff --git a/src/views/device/index.vue b/src/views/device/index.vue index e3a45c2..4385104 100644 --- a/src/views/device/index.vue +++ b/src/views/device/index.vue @@ -5,7 +5,7 @@ 设备管理