|
@@ -72,7 +72,7 @@ export default {
|
|
|
methods: {
|
|
|
...authUser(['query', 'update', 'create']),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- const res = await this.query({ skip, limit, ...info });
|
|
|
+ const res = await this.query({ skip, limit, ...info, role: '4' });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
@@ -85,6 +85,7 @@ export default {
|
|
|
let res;
|
|
|
let msg;
|
|
|
if (isNew) {
|
|
|
+ data.role = '4';
|
|
|
res = await this.create(data);
|
|
|
msg = '创建成功';
|
|
|
} else {
|