guhongwei 5 years ago
parent
commit
da7cc9221c
1 changed files with 22 additions and 4 deletions
  1. 22 4
      src/views/enterprise/enterprisedg.vue

+ 22 - 4
src/views/enterprise/enterprisedg.vue

@@ -27,6 +27,7 @@
 import enterprisedgDetail from '@/components/enterprise/enterpisedg.vue';
 import { createNamespacedHelpers, mapGetters, mapState } from 'vuex';
 const { mapActions: transaction } = createNamespacedHelpers('transaction');
+const { mapActions: expertsaudit } = createNamespacedHelpers('expertsaudit');
 const { mapActions: login } = createNamespacedHelpers('login');
 export default {
   name: 'adviserList',
@@ -66,6 +67,7 @@ export default {
   },
   methods: {
     ...transaction({ transactionList: 'query', transactiondtetle: 'delete', shenheupdate: 'update' }),
+    ...expertsaudit({ expertsauditList: 'query', expertsauditdtetle: 'delete', expertsauditupdate: 'update' }),
     ...login({ logout: 'logout', transactiondtetlse: 'delete' }),
     // 查询
     async faqijiaoyi({ skip = 0, limit = 3, ...info } = {}) {
@@ -79,7 +81,11 @@ export default {
           this.$set(this, `totalfaqi`, res.total);
         }
       } else if (this.role == '6') {
-        console.log('专家事项管理');
+        const res = await this.expertsauditList({ skip, limit, market_userid, status, ...info });
+        if (this.$checkRes(res)) {
+          this.$set(this, `faqilist`, res.data);
+          this.$set(this, `totalfaqi`, res.total);
+        }
       }
     },
     async jiaoyi1({ skip = 0, limit = 3, ...info } = {}) {
@@ -93,7 +99,11 @@ export default {
           this.$set(this, `total1`, res.total);
         }
       } else if (this.role == '6') {
-        console.log('专家事项管理');
+        const res = await this.expertsauditList({ skip, limit, market_userid, status, ...info });
+        if (this.$checkRes(res)) {
+          this.$set(this, `faqilist`, res.data);
+          this.$set(this, `totalfaqi`, res.total);
+        }
       }
     },
     async jiaoyi2({ skip = 0, limit = 3, ...info } = {}) {
@@ -107,7 +117,11 @@ export default {
           this.$set(this, `total2`, res.total);
         }
       } else if (this.role == '6') {
-        console.log('专家事项管理');
+        const res = await this.expertsauditList({ skip, limit, market_userid, status, ...info });
+        if (this.$checkRes(res)) {
+          this.$set(this, `faqilist`, res.data);
+          this.$set(this, `totalfaqi`, res.total);
+        }
       }
     },
     async jiaoyi3({ skip = 0, limit = 3, ...info } = {}) {
@@ -119,7 +133,11 @@ export default {
           this.$set(this, `total3`, res.total);
         }
       } else if (this.role == '6') {
-        console.log('专家事项管理');
+        const res = await this.expertsauditList({ skip, limit, market_userid, status, ...info });
+        if (this.$checkRes(res)) {
+          this.$set(this, `faqilist`, res.data);
+          this.$set(this, `totalfaqi`, res.total);
+        }
       }
     },