|
@@ -120,11 +120,6 @@ export default {
|
|
|
...place({ palcequery: 'query', palcefetch: 'fetch' }),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
if (this.user.role != '1') info.user_id = this.user.uid;
|
|
|
- // const res = await this.query({ skip, limit, ...info });
|
|
|
- // if (this.$checkRes(res)) {
|
|
|
- // for (const val of res.data) {
|
|
|
- // val.role = this.user.role;
|
|
|
- // }
|
|
|
let res = await this.query({ skip, limit });
|
|
|
for (const val of res.data) {
|
|
|
let parent = val.province;
|
|
@@ -140,7 +135,6 @@ export default {
|
|
|
val.sheng = sheng.name;
|
|
|
}
|
|
|
}
|
|
|
- console.log(res.data);
|
|
|
this.$set(this, `list`, res.data);
|
|
|
this.$set(this, `total`, res.total);
|
|
|
},
|