|
@@ -5,7 +5,10 @@
|
|
<el-col :span="24" class="top">
|
|
<el-col :span="24" class="top">
|
|
<top topType="2" :leftArrow="false"></top>
|
|
<top topType="2" :leftArrow="false"></top>
|
|
</el-col>
|
|
</el-col>
|
|
- <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }"> 政策解读 </el-col>
|
|
|
|
|
|
+ <el-col :span="24" class="info" :style="{ height: clientHeight + 'px' }">
|
|
|
|
+ <model v-for="(i, index) in list" :key="`mod-${index}`" :data="i" />
|
|
|
|
+ </el-col>
|
|
|
|
+ <page :limit="limit" :total="total" @search="search" />
|
|
<el-col :span="24" class="foot">
|
|
<el-col :span="24" class="foot">
|
|
<foot :type="2"></foot>
|
|
<foot :type="2"></foot>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -15,27 +18,46 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
|
+import model from './parts/u-list.vue';
|
|
import top from '@/layout/common/top.vue';
|
|
import top from '@/layout/common/top.vue';
|
|
import foot from '@/layout/common/foot.vue';
|
|
import foot from '@/layout/common/foot.vue';
|
|
|
|
+import page from '@/layout/common/page.vue';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions: news } = createNamespacedHelpers('news');
|
|
export default {
|
|
export default {
|
|
name: 'unscramble',
|
|
name: 'unscramble',
|
|
props: {},
|
|
props: {},
|
|
components: {
|
|
components: {
|
|
top,
|
|
top,
|
|
foot,
|
|
foot,
|
|
|
|
+ model,
|
|
|
|
+ page,
|
|
},
|
|
},
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
clientHeight: '',
|
|
clientHeight: '',
|
|
|
|
+ list: [],
|
|
|
|
+ total: 0,
|
|
|
|
+ limit: '10',
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- async created() {},
|
|
|
|
|
|
+ async created() {
|
|
|
|
+ this.search();
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
- let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 80;
|
|
|
|
|
|
+ let clientHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 135;
|
|
this.$set(this, `clientHeight`, clientHeight);
|
|
this.$set(this, `clientHeight`, clientHeight);
|
|
},
|
|
},
|
|
- methods: {},
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ ...news(['query']),
|
|
|
|
+ async search({ skip = 0, limit = this.limit, ...info } = {}) {
|
|
|
|
+ const res = await this.query({ skip, limit, ...info, column_id: '609b2e5c0d3a9a3b3cd21dfd' });
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ this.$set(this, `list`, res.data);
|
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ },
|
|
computed: {
|
|
computed: {
|
|
...mapState(['user']),
|
|
...mapState(['user']),
|
|
},
|
|
},
|