|
@@ -14,25 +14,22 @@
|
|
|
<script>
|
|
|
const _ = require('lodash');
|
|
|
import listPage from '@c/list/list-page.vue';
|
|
|
-const { newsColumn } = require('@common/dict/index');
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
-const { mapActions: news } = createNamespacedHelpers('news');
|
|
|
+const { mapActions: roadShow } = createNamespacedHelpers('roadShow');
|
|
|
export default {
|
|
|
name: 'xmlu',
|
|
|
props: ['listModel'],
|
|
|
components: {
|
|
|
listPage,
|
|
|
- model2: () => import('../list-model/model-2.vue'),
|
|
|
- dmodel: () => import('../detail-model/model-2.vue'),
|
|
|
+ model3: () => import('../list-model/model-3.vue'),
|
|
|
+ dmodel: () => import('../detail-model/model-3.vue'),
|
|
|
},
|
|
|
data: function () {
|
|
|
return {
|
|
|
- // 栏目
|
|
|
- column: newsColumn,
|
|
|
// 列表
|
|
|
list: [],
|
|
|
total: 0,
|
|
|
- pageSize: 4,
|
|
|
+ pageSize: 7,
|
|
|
// 详情
|
|
|
detail: {},
|
|
|
};
|
|
@@ -41,9 +38,8 @@ export default {
|
|
|
this.search();
|
|
|
},
|
|
|
methods: {
|
|
|
- ...news(['query', 'fetch']),
|
|
|
+ ...roadShow(['query', 'fetch']),
|
|
|
async search({ skip = 0, limit = this.pageSize, ...info } = {}) {
|
|
|
- info.column_name = this.column[this.listModel];
|
|
|
let res = await this.query({ skip, limit, ...info });
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `list`, res.data);
|