|
@@ -59,15 +59,12 @@ export default {
|
|
|
...productpact({ transactionQuery: 'query', productpactFetch: 'findpact', productpactUpdate: 'update' }),
|
|
|
...tranaudit({ tranauditList: 'query', tranauditListupdate: 'update' }),
|
|
|
...transactions({ transactionsfetch: 'fetch', transactionslist: 'query', transactiondetele: 'detele', transactionupdate: 'update' }),
|
|
|
- ...dock({ dockQuery: 'query' }),
|
|
|
- async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
- skip = this.skip;
|
|
|
- let docklist = await this.dockQuery({ uid: this.user.uid });
|
|
|
- for (const dock of docklist.data) {
|
|
|
- const res = await this.transactionslist({ skip, dockid: dock.id, limit, ...info });
|
|
|
- this.$set(this, `recruitInfo`, res.data);
|
|
|
- this.$set(this, `total`, res.total);
|
|
|
- }
|
|
|
+ ...dock({ dockQuery: 'query', dockFetch: 'fetch' }),
|
|
|
+ async search() {
|
|
|
+ const res = await this.dockFetch(this.user.uid);
|
|
|
+ const arr = await this.transactionslist({ skip, dockid: res.data.id, limit, ...info });
|
|
|
+ this.$set(this, `recruitInfo`, arr.data);
|
|
|
+ this.$set(this, `total`, arr.total);
|
|
|
},
|
|
|
|
|
|
async handleCurrentChange({ skip, limit, currentPage }) {
|