|
@@ -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: '详细信息' };
|