|
@@ -59,15 +59,15 @@ export default {
|
|
|
...users(['query', 'delete', 'update', 'userquery']),
|
|
|
...exportuser({ exportuserQuery: 'query' }),
|
|
|
...authUser({ authUserDelete: 'delete' }),
|
|
|
- async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ async search({ skip = 0, limit = 10, pid = '', ...info } = {}) {
|
|
|
if (this.user.code.length == 3) {
|
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
+ const res = await this.userquery({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
}
|
|
|
} else {
|
|
|
- const res = await this.userquery({ skip, limit, pid: this.user.pid, code: this.user.code, ...info });
|
|
|
+ const res = await this.userquery({ skip, limit, pid, code: this.user.code, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|