|
@@ -58,11 +58,13 @@
|
|
|
v-model="searchForm.studentName"></el-input>
|
|
|
</el-form-item> -->
|
|
|
<el-form-item>
|
|
|
- <el-button @click="onSearch"
|
|
|
- type="danger">搜索</el-button>
|
|
|
- <el-button @click="onReSet"
|
|
|
- type="primary">重置</el-button>
|
|
|
- <el-button type="primary" v-permission="'export/studentHasCourse'" @click="downLoadStudent">未激活学生导出</el-button>
|
|
|
+ <el-button @click="onSearch"
|
|
|
+ type="danger">搜索</el-button>
|
|
|
+ <el-button @click="onReSet"
|
|
|
+ type="primary">重置</el-button>
|
|
|
+ <el-button type="primary"
|
|
|
+ v-permission="'export/studentHasCourse'"
|
|
|
+ @click="downLoadStudent">未激活学生导出</el-button>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<!-- 列表 -->
|
|
@@ -288,7 +290,7 @@ export default {
|
|
|
this.pageInfo.page = 1;
|
|
|
this.getList()
|
|
|
},
|
|
|
- onCreateQRCode () { // 生成报名二维码
|
|
|
+ onCreateQRCode () { // 生成报名二维码
|
|
|
this.qrcodeStatus = true
|
|
|
// let id = this.$route.query.id
|
|
|
// let teamName = this.$route.query.name
|
|
@@ -330,7 +332,7 @@ export default {
|
|
|
isActive: null
|
|
|
}
|
|
|
},
|
|
|
- downLoadStudent() {
|
|
|
+ downLoadStudent () {
|
|
|
let url = '/api-web/export/studentHasCourse'
|
|
|
const options = {
|
|
|
method: 'POST',
|
|
@@ -340,7 +342,7 @@ export default {
|
|
|
url,
|
|
|
responseType: 'blob'
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
this.$confirm('您确定导出未激活学生列表?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
@@ -348,9 +350,9 @@ export default {
|
|
|
}).then(() => {
|
|
|
axios(options).then(res => {
|
|
|
let blob = new Blob([res.data], {
|
|
|
- // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
|
|
|
- type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
- // word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
+ // type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8',
|
|
|
+ type: 'application/vnd.ms-excel;charset=utf-8'
|
|
|
+ // word文档为application/msword,pdf文档为application/pdf,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8
|
|
|
})
|
|
|
let objectUrl = URL.createObjectURL(blob)
|
|
|
let link = document.createElement("a")
|
|
@@ -363,7 +365,7 @@ export default {
|
|
|
link.click()
|
|
|
})
|
|
|
}).catch(() => { })
|
|
|
-
|
|
|
+
|
|
|
},
|
|
|
checkPhone (val) {
|
|
|
var regu = /^1[3456789]\d{9}$/;
|