|
@@ -0,0 +1,52 @@
|
|
|
+<template>
|
|
|
+ <div id="news-index">
|
|
|
+ <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search"></data-table>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+export default {
|
|
|
+ name: 'newsIndex',
|
|
|
+ props: {},
|
|
|
+ components: {},
|
|
|
+ data: function () {
|
|
|
+ return {
|
|
|
+ list: [],
|
|
|
+ total: 0,
|
|
|
+ opera: [
|
|
|
+ {
|
|
|
+ label: '审核',
|
|
|
+ method: 'check',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ fields: [
|
|
|
+ { label: '产品名称', prop: 'name' },
|
|
|
+ { label: '类型', prop: 'type', format: (i) => (i == '1' ? '技术成果' : i == '2' ? '商务服务' : '科技需求') },
|
|
|
+ { label: '联系人', prop: 'contacts' },
|
|
|
+ { label: '联系电话', prop: 'phone' },
|
|
|
+ { label: '所属领域', prop: 'field' },
|
|
|
+ { label: '合作方式', prop: 'cooperation' },
|
|
|
+ { label: '审核状态', prop: 'dockStatus', format: (i) => (i == '1' ? '已通过' : i == '2' ? '已拒绝' : '未审核') },
|
|
|
+ ],
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {},
|
|
|
+ methods: {
|
|
|
+ async search() {
|
|
|
+ console.log('in function:');
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapState(['user', 'menuParams']),
|
|
|
+ pageTitle() {
|
|
|
+ return `${this.$route.meta.title}`;
|
|
|
+ },
|
|
|
+ },
|
|
|
+ metaInfo() {
|
|
|
+ return { title: this.$route.meta.title };
|
|
|
+ },
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="less" scoped></style>
|