|
@@ -40,10 +40,18 @@ export default {
|
|
|
...tranaudit({ tranauditList: 'query', tranauditListupdate: 'update' }),
|
|
|
...transactions({ transactionsfetch: 'fetch', transactionslist: 'query', transactiondetele: 'detele' }),
|
|
|
async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- skip = this.skip;
|
|
|
- const res = await this.transactionslist({ skip, limit, ...info });
|
|
|
- this.$set(this, `recruitInfo`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
+ if (this.user.role == '4') {
|
|
|
+ skip = this.skip;
|
|
|
+ let create_userid = this.user.uid;
|
|
|
+ const res = await this.transactionslist({ skip, limit, create_userid, ...info });
|
|
|
+ this.$set(this, `recruitInfo`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ } else {
|
|
|
+ skip = this.skip;
|
|
|
+ const res = await this.transactionslist({ skip, limit, ...info });
|
|
|
+ this.$set(this, `recruitInfo`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ }
|
|
|
},
|
|
|
async deleteData(item) {
|
|
|
const res = await this.transactiondetele(item.id);
|