diff --git a/src/views/standard/device/index.vue b/src/views/standard/device/index.vue index f6acbda..99c4a64 100644 --- a/src/views/standard/device/index.vue +++ b/src/views/standard/device/index.vue @@ -386,6 +386,16 @@ > + @@ -506,6 +516,7 @@ export default { }, data() { return { + exportLoading: false, isAdd: false, //添加还是修改基站 role: "", code: "", @@ -794,6 +805,33 @@ export default { this.$message.error("下载失败"); } }, + async downExl() { + //报表到处 + if (this.exportLoading == true) return; + const exportPhaseExamReport = + this.type == 1 + ? this.$request.cTExportPhaseExamReport + : this.type == 1 + ? this.$request.exportPhaseExamReport + : this.$request.exportPhaseExamReport; + this.exportLoading = true; + const data = await exportPhaseExamReport({ ...this.query }); + 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); + } + }, // 修改基站 setAnswerEqu() { @@ -1075,6 +1113,9 @@ export default { .tab-box { padding: 20px 0 12px; } +.down { + padding:0 0 16px 20px; +} .content { background: #f8f8f8; border: 1px solid #e2e2e2; diff --git a/src/views/standard/setUp/student.vue b/src/views/standard/setUp/student.vue index 744f2ca..dd8b462 100644 --- a/src/views/standard/setUp/student.vue +++ b/src/views/standard/setUp/student.vue @@ -70,6 +70,11 @@
+
+

基站SN:{{ clazzDetail.stationSn }}

+

配对码:{{ clazzDetail.pairingCode }}

+

频点:{{ clazzDetail.frequency }}

+
\ No newline at end of file