|
@@ -46,6 +46,7 @@ export default {
|
|
|
methods: {
|
|
|
...student(['query', 'delete']),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ if (!this.id) return;
|
|
|
const res = await this.query({ skip, limit, ...info, classid: this.id });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `tableData`, res.data);
|