|
@@ -46,7 +46,7 @@ export default {
|
|
|
...mapState(['user']),
|
|
|
},
|
|
|
methods: {
|
|
|
- ...product(['query', 'delete', 'fetch', 'update']),
|
|
|
+ ...product(['query', 'comquery', 'delete', 'fetch', 'update']),
|
|
|
async submit() {
|
|
|
this.search(this.forms.status);
|
|
|
},
|
|
@@ -54,16 +54,16 @@ export default {
|
|
|
if (this.forms.status) {
|
|
|
status = this.forms.status;
|
|
|
skip = this.skip;
|
|
|
- let userid = this.user.uid;
|
|
|
- const res = await this.query({ skip, limit, status, userid, ...info });
|
|
|
- this.$set(this, `recruitInfo`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ let code = this.user.code;
|
|
|
+ const arr = await this.comquery({ status, code, ...info });
|
|
|
+ this.$set(this, `recruitInfo`, arr.res);
|
|
|
+ this.$set(this, `total`, arr.res.length);
|
|
|
} else {
|
|
|
skip = this.skip;
|
|
|
- let userid = this.user.uid;
|
|
|
- const res = await this.query({ skip, limit, status: 3, userid, ...info });
|
|
|
- this.$set(this, `recruitInfo`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ let code = this.user.code;
|
|
|
+ const arr = await this.comquery({ status: 3, code, ...info });
|
|
|
+ this.$set(this, `recruitInfo`, arr.res);
|
|
|
+ this.$set(this, `total`, arr.res.length);
|
|
|
}
|
|
|
},
|
|
|
// 删除
|