|
@@ -181,11 +181,13 @@ export default {
|
|
|
...users(['fetch', 'create', 'update']),
|
|
|
...exportuser({ exportuserFetch: 'fetch', exportuserCreate: 'create', exportuserUpdate: 'update' }),
|
|
|
async search() {
|
|
|
- if (this.role == '4' || this.role == '5') {
|
|
|
+ if (this.role === '4' || this.role === '5') {
|
|
|
const res = await this.fetch(this.id);
|
|
|
if (this.$checkRes(res)) this.$set(this, `form`, res.data);
|
|
|
- } else if (this.role == '6') {
|
|
|
+ console.log(res.data);
|
|
|
+ } else if (this.role === '6') {
|
|
|
const res = await this.exportuserFetch(this.id);
|
|
|
+ console.log(res.data);
|
|
|
if (this.$checkRes(res)) this.$set(this, `form`, res.data);
|
|
|
}
|
|
|
},
|