|
@@ -1,32 +1,145 @@
|
|
|
<template>
|
|
|
<div id="index">
|
|
|
<el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <p>index</p>
|
|
|
+ <el-col :span="24" class="main">
|
|
|
+ <subTop :liveInfo="liveInfo"></subTop>
|
|
|
+ <el-col :span="24" class="info">
|
|
|
+ <div class="w_1200">
|
|
|
+ <el-col :span="24" class="infoMess">
|
|
|
+ <el-col :span="24" class="btn">
|
|
|
+ <el-col :span="12" class="left">
|
|
|
+ <span>项目成果:{{ total }}项</span>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12" class="right">
|
|
|
+ <el-button type="primary" size="mini" @click="back">返回活动首页</el-button>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" class="list">
|
|
|
+ <data-table :fields="fields" :opera="opera" :data="list" :total="total" @query="search" @check="toCheck"></data-table>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import subTop from '../parts/subTop.vue';
|
|
|
+import dataTable from '@common/src/components/frame/filter-page-table.vue';
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
+const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
|
+const { mapActions: expert } = createNamespacedHelpers('expert');
|
|
|
export default {
|
|
|
metaInfo() {
|
|
|
return { title: this.$route.meta.title };
|
|
|
},
|
|
|
name: 'index',
|
|
|
props: {},
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ subTop,
|
|
|
+ dataTable,
|
|
|
+ },
|
|
|
data: function() {
|
|
|
- return {};
|
|
|
+ return {
|
|
|
+ // 展会详情
|
|
|
+ liveInfo: {},
|
|
|
+ opera: [
|
|
|
+ {
|
|
|
+ label: '对接',
|
|
|
+ method: 'check',
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ fields: [
|
|
|
+ { label: '产品名称', prop: 'name' },
|
|
|
+ { label: '联系人', prop: 'contacts' },
|
|
|
+ { label: '企业名称', prop: 'company' },
|
|
|
+ { label: '所属领域', prop: 'field' },
|
|
|
+ { label: '合作方式', prop: 'cooperation' },
|
|
|
+ ],
|
|
|
+ list: [],
|
|
|
+ total: 0,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ async created() {
|
|
|
+ await this.search();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ ...dock(['fetch', 'productQuery']),
|
|
|
+ async search({ skip = 0, limit = 10, ...info } = {}) {
|
|
|
+ if (this.dock_id) {
|
|
|
+ let res = await this.fetch(this.dock_id);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$set(this, `liveInfo`, res.data);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.type == '0') {
|
|
|
+ // 科技需求
|
|
|
+ res = await this.productQuery({ skip, limit, type: '0', dock_id: this.dock_id, ...info });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ } else {
|
|
|
+ // 技术成果
|
|
|
+ let res = await this.productQuery({ skip, limit, type: '1', dock_id: this.dock_id, ...info });
|
|
|
+ if (this.$checkRes(res)) this.$set(this, `list`, res.data);
|
|
|
+ this.$set(this, `total`, res.total);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 对接
|
|
|
+ toCheck({ data }) {
|
|
|
+ console.log(data);
|
|
|
+ },
|
|
|
+ // 返回
|
|
|
+ back() {
|
|
|
+ this.$router.push({ path: '/achieveLive/detail', query: { id: this.dock_id } });
|
|
|
+ },
|
|
|
},
|
|
|
- created() {},
|
|
|
- methods: {},
|
|
|
computed: {
|
|
|
...mapState(['user']),
|
|
|
+ dock_id() {
|
|
|
+ return this.$route.query.dock_id;
|
|
|
+ },
|
|
|
+ type() {
|
|
|
+ return this.$route.query.type;
|
|
|
+ },
|
|
|
},
|
|
|
watch: {},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
-<style lang="less" scoped></style>
|
|
|
+<style lang="less" scoped>
|
|
|
+.main {
|
|
|
+ .info {
|
|
|
+ position: absolute;
|
|
|
+ top: 70%;
|
|
|
+ padding: 0 0 15px 0;
|
|
|
+ .infoMess {
|
|
|
+ min-height: 630px;
|
|
|
+ box-shadow: 0 0 5px #ccc;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 20px;
|
|
|
+ .btn {
|
|
|
+ margin: 0 0 10px 0;
|
|
|
+ height: 40px;
|
|
|
+ overflow: hidden;
|
|
|
+ border-bottom: 2px solid #666;
|
|
|
+ .left {
|
|
|
+ span {
|
|
|
+ display: inline-block;
|
|
|
+ background: #ff0000;
|
|
|
+ color: #fff;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ padding: 0px 10px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .right {
|
|
|
+ text-align: right;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|