|
@@ -100,7 +100,6 @@
|
|
|
:selectable='checkboxT'
|
|
|
width="55"
|
|
|
v-if='this.majorStatus <= 2'>
|
|
|
-
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="city"
|
|
|
align="center"
|
|
@@ -250,6 +249,7 @@ import {
|
|
|
updateClass
|
|
|
} from "@/api/table";
|
|
|
import { setTimeout } from "timers";
|
|
|
+import { rename } from 'fs';
|
|
|
export default {
|
|
|
name: "dashboard",
|
|
|
data () {
|
|
@@ -370,7 +370,7 @@ export default {
|
|
|
this.getMajors();
|
|
|
},
|
|
|
// 获取学生列表(查询也用这个接口)
|
|
|
- getstudentList () {
|
|
|
+ getstudentList (callBack) {
|
|
|
if (!this.majorId) {
|
|
|
this.$message.error("请先选择分部与乐团在搜索学生");
|
|
|
return;
|
|
@@ -388,6 +388,10 @@ export default {
|
|
|
this.tableData = res.data.rows;
|
|
|
this.total = res.data.total;
|
|
|
this.pageSize = res.data.limit;
|
|
|
+ // 回调函数
|
|
|
+ if(callBack && typeof callBack === 'function') {
|
|
|
+ callBack()
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 重置搜索
|
|
@@ -483,7 +487,7 @@ export default {
|
|
|
},
|
|
|
// 点击打开报名链接
|
|
|
openUrl () {
|
|
|
- // debugger
|
|
|
+ // debugger
|
|
|
this.code = true;
|
|
|
this.qrcode();
|
|
|
// window.open(`https://pay.dayaedu.com/#/order?classId=${this.majorId}&schoolName=${this.actionTearm}`)
|
|
@@ -514,7 +518,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
qrcode () {
|
|
|
-
|
|
|
+ let date = new Date().getTime()
|
|
|
setTimeout(() => {
|
|
|
let date = new Date().getTime();
|
|
|
this.qrcodes = new QRCode(document.getElementById("qrCode"), {
|
|
@@ -528,13 +532,25 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
exportis () {
|
|
|
- // var curTbl = document.getElementById('tableid');
|
|
|
- // this.tableId = curTbl;
|
|
|
- // console.log(curTbl);
|
|
|
- if (this.tableData.length <= 0) {
|
|
|
- return false
|
|
|
- }
|
|
|
- this.method5('tableid');
|
|
|
+ // var curTbl = document.getElementById('tableid');
|
|
|
+ // this.tableId = curTbl;
|
|
|
+ // 获取所有学生数据然后到出
|
|
|
+ this.limit = 200 // 每页获取200条数据
|
|
|
+ this.topForm.team = "";
|
|
|
+ this.topForm.status = "";
|
|
|
+ this.topForm.major = "";
|
|
|
+ this.page = 1;
|
|
|
+ // 重置,显示所有数据,然后到出
|
|
|
+ this.getstudentList(() => {
|
|
|
+ // 需要等数据更新,然后做下载功能
|
|
|
+ setTimeout(() => {
|
|
|
+ if (this.tableData.length <= 0) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.method5('tableid');
|
|
|
+ }, 500);
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 导出
|
|
@@ -622,7 +638,6 @@ export default {
|
|
|
return ''
|
|
|
}
|
|
|
let temp = remark.split('\n')
|
|
|
- console.log(temp)
|
|
|
return temp
|
|
|
}
|
|
|
},
|
|
@@ -741,4 +756,7 @@ export default {
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
}
|
|
|
+.nomargin {
|
|
|
+ margin: 0;
|
|
|
+}
|
|
|
</style>
|