4c4f7640
梁保满
路由表,路由前端文件
|
1
|
<template>
|
ca39cc52
阿宝
飞书问题处理
|
2
|
<div class="content-box">
|
560c12f2
阿宝
学校设置,软件下载
|
3
|
<back-box>
|
23a6dc5f
阿宝
学校管理相关接口简单对接
|
4
5
6
7
|
<template slot="title">
<span>软件下载</span>
</template>
</back-box>
|
560c12f2
阿宝
学校设置,软件下载
|
8
9
10
11
12
13
14
|
<div class="page-content">
<div class="down-item">
<p class="txt">
K12公私立学校、高等院校、教育培训机构的课堂互动教学、即时课堂测验
</p>
<el-button plan round @click="links">授课端下载</el-button>
</div>
|
53424e83
梁保满
教师管理筛选条件
|
15
|
<div class="down-item" v-loading="loading" v-if="role != 'ROLE_JIAOSHI'">
|
560c12f2
阿宝
学校设置,软件下载
|
16
17
18
|
<p class="txt">
配合发卡器硬件,方便学校管理员进行发卡补卡操作的软件。
</p>
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
19
|
<el-button plan round @click="downCard">发卡软件下载</el-button>
|
560c12f2
阿宝
学校设置,软件下载
|
20
|
</div>
|
53424e83
梁保满
教师管理筛选条件
|
21
22
23
24
|
<div class="down-item" v-loading="loading">
<p class="txt">。</p>
<el-button plan round @click="downNet">.Net环境下载</el-button>
</div>
|
560c12f2
阿宝
学校设置,软件下载
|
25
|
</div>
|
4c4f7640
梁保满
路由表,路由前端文件
|
26
27
28
29
30
|
</div>
</template>
<script>
export default {
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
31
32
|
data() {
return {
|
53424e83
梁保满
教师管理筛选条件
|
33
|
role: "",
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
34
|
loading: false,
|
53424e83
梁保满
教师管理筛选条件
|
35
|
loadingNet: false,
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
36
37
|
};
},
|
53424e83
梁保满
教师管理筛选条件
|
38
39
40
41
42
|
created() {
this.role =
this.$store.getters.info.showRole ||
this.$store.getters.info.permissions[0].role;
},
|
ca39cc52
阿宝
飞书问题处理
|
43
44
|
methods: {
links() {
|
560c12f2
阿宝
学校设置,软件下载
|
45
|
this.$router.push({
|
ca39cc52
阿宝
飞书问题处理
|
46
47
48
|
path: "/downClient",
});
},
|
3ba60a63
梁保满
发卡补卡,设备状态上传下载接口联调
|
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
async downCard() {
if (this.loading == true) return;
this.loading = true;
const { data, status, info } = await this.$request.latestClickersApp();
this.loading = false;
if (status == 0) {
const a = document.createElement("a");
a.href = data.downloadUrl;
a.download = data.appName;
document.body.appendChild(a);
a.click();
a.remove();
} else {
this.$message.error(info);
}
},
|
53424e83
梁保满
教师管理筛选条件
|
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
async downNet() {
if (this.loadingNet == true) return;
this.loadingNet = true;
const { data, status, info } = await this.$request.latestClickersApp();
this.loadingNet = false;
if (status == 0) {
const a = document.createElement("a");
a.href = data.downloadUrl;
a.download = data.appName;
document.body.appendChild(a);
a.click();
a.remove();
} else {
this.$message.error(info);
}
},
|
ca39cc52
阿宝
飞书问题处理
|
81
|
},
|
560c12f2
阿宝
学校设置,软件下载
|
82
|
};
|
4c4f7640
梁保满
路由表,路由前端文件
|
83
84
|
</script>
|
560c12f2
阿宝
学校设置,软件下载
|
85
|
<style lang="scss" scoped>
|
ca39cc52
阿宝
飞书问题处理
|
86
87
88
|
.content-box {
width: 100%;
}
|
560c12f2
阿宝
学校设置,软件下载
|
89
|
.page-content {
|
560c12f2
阿宝
学校设置,软件下载
|
90
|
display: flex;
|
ca39cc52
阿宝
飞书问题处理
|
91
|
padding-top: 50px;
|
53424e83
梁保满
教师管理筛选条件
|
92
|
margin-left: 160px;
|
560c12f2
阿宝
学校设置,软件下载
|
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
.down-item {
width: 200px;
padding: 50px 20px;
border-radius: 20px;
margin: 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: #f8f8f8;
box-shadow: 2px 2px 5px #ccc;
.txt {
font-size: 16px;
color: #7f7f7f;
line-height: 24px;
height: 120px;
}
}
}
|
4c4f7640
梁保满
路由表,路由前端文件
|
112
|
</style>
|