wuhongyu 5 lat temu
rodzic
commit
3cef3c710c
1 zmienionych plików z 12 dodań i 4 usunięć
  1. 12 4
      src/views/enterpriseTrans/index.vue

+ 12 - 4
src/views/enterpriseTrans/index.vue

@@ -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);