|
@@ -49,7 +49,7 @@ export default {
|
|
async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
let user = this.user;
|
|
let user = this.user;
|
|
if (this.active == '0') {
|
|
if (this.active == '0') {
|
|
- if (user.role != '0') info.code = 'JLKJQYJD';
|
|
|
|
|
|
+ if (user.role != '0') info.code = this.user.code;
|
|
let res = await this.query({ skip, limit, ...info });
|
|
let res = await this.query({ skip, limit, ...info });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `personalList`, res.data);
|
|
this.$set(this, `personalList`, res.data);
|