zs 3 years ago
parent
commit
db21fa65fa

+ 2 - 2
src/views/innovate/achieve/index.vue

@@ -12,7 +12,7 @@
 import list1 from '@/layout/innovate/achieve/list.vue';
 import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('usual');
+const { mapActions } = createNamespacedHelpers('outcome');
 export default {
   name: 'index',
   props: {},
@@ -31,7 +31,7 @@ export default {
     ...mapActions(['query', 'fetch']),
     async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
       if (searchName) condition.name = searchName;
-      const res = await this.query({ table: 'Outcome', skip, limit, ...condition });
+      const res = await this.query({ skip, limit, ...condition });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);

+ 2 - 2
src/views/innovate/learning/index.vue

@@ -12,7 +12,7 @@
 import list1 from '@/layout/innovate/learning/list.vue';
 import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('usual');
+const { mapActions } = createNamespacedHelpers('sjactivity');
 export default {
   name: 'index',
   props: {},
@@ -31,7 +31,7 @@ export default {
     ...mapActions(['query', 'fetch']),
     async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
       if (searchName) condition.name = searchName;
-      const res = await this.query({ table: 'Loso', skip, limit, ...condition });
+      const res = await this.query({ skip, limit, ...condition });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);

+ 3 - 3
src/views/innovate/popularization/index.vue

@@ -16,7 +16,7 @@ import list1 from '@/layout/innovate/popularization/list-1.vue';
 import info1 from '@/layout/innovate/popularization/info-1.vue';
 import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('usual');
+const { mapActions } = createNamespacedHelpers('scienceactivities');
 export default {
   name: 'index',
   props: {},
@@ -41,14 +41,14 @@ export default {
     ...mapActions(['query', 'fetch']),
     async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
       if (searchName) condition.name = searchName;
-      const res = await this.query({ table: 'Losc', skip, limit, ...condition });
+      const res = await this.query({ skip, limit, ...condition });
       if (res.errcode == '0') {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);
       }
     },
     async toView(data) {
-      const res = await this.fetch({ table: 'Losc', id: data.id });
+      const res = await this.fetch({ id: data.id });
       if (this.$checkRes(res)) {
         this.$set(this, 'info', res.data);
         this.dialog = { show: true, title: '详细信息' };

+ 2 - 2
src/views/innovate/service/index.vue

@@ -12,7 +12,7 @@
 import list1 from '@/layout/innovate/service/list.vue';
 import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
 import { mapState, createNamespacedHelpers } from 'vuex';
-const { mapActions } = createNamespacedHelpers('usual');
+const { mapActions } = createNamespacedHelpers('technicalservice');
 export default {
   name: 'index',
   props: {},
@@ -31,7 +31,7 @@ export default {
     ...mapActions(['query']),
     async search({ skip = 0, limit = this.limit, searchName, ...condition } = {}) {
       if (searchName) condition.name = searchName;
-      const res = await this.query({ table: 'Lote', skip, limit, ...condition });
+      const res = await this.query({ skip, limit, ...condition });
       if (this.$checkRes(res)) {
         this.$set(this, 'list', res.data);
         this.$set(this, 'total', res.total);