|
@@ -21,6 +21,34 @@
|
|
|
</el-col> -->
|
|
|
<chat></chat>
|
|
|
</el-col>
|
|
|
+ <el-col :span="24" class="tab">
|
|
|
+ <el-tabs v-model="activeName" stretch type="border-card">
|
|
|
+ <el-tab-pane label="技术成果" name="first">
|
|
|
+ <el-col :span="24" class="two">
|
|
|
+ <el-col :span="24" class="twoList" v-for="(item, index) in demandList" :key="index">
|
|
|
+ <el-col :span="24" class="name">{{ item.name }}</el-col>
|
|
|
+ <el-col :span="24" class="field">所属领域:{{ item.field }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="科技需求" name="second">
|
|
|
+ <el-col :span="24" class="two">
|
|
|
+ <el-col :span="24" class="twoList" v-for="(item, index) in twoList" :key="index">
|
|
|
+ <el-col :span="24" class="name">{{ item.name }}</el-col>
|
|
|
+ <el-col :span="24" class="field">所属领域:{{ item.field }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ <el-tab-pane label="专家智库" name="third">
|
|
|
+ <el-col :span="24" class="two">
|
|
|
+ <el-col :span="24" class="twoList" v-for="(item, index) in twoList" :key="index">
|
|
|
+ <el-col :span="24" class="name">{{ item.name }}</el-col>
|
|
|
+ <el-col :span="24" class="field">所属领域:{{ item.field }}</el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-tab-pane>
|
|
|
+ </el-tabs>
|
|
|
+ </el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -30,6 +58,8 @@
|
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
const { mapActions: dock } = createNamespacedHelpers('dock');
|
|
|
import chat from '@/components/parts/chat.vue';
|
|
|
+// const { mapActions: expertsuser } = createNamespacedHelpers('expertsuser');
|
|
|
+
|
|
|
export default {
|
|
|
name: 'videoDetail',
|
|
|
props: {},
|
|
@@ -40,6 +70,13 @@ export default {
|
|
|
return {
|
|
|
input: '',
|
|
|
file_path: '',
|
|
|
+ activeName: 'first',
|
|
|
+ //科技需求
|
|
|
+ twoList: [],
|
|
|
+ //技术成果
|
|
|
+ demandList: [],
|
|
|
+ //专家智库
|
|
|
+ expertList: [],
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -47,11 +84,28 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...dock({ dockQuery: 'query', palcefetch: 'fetch' }),
|
|
|
- async seachInfo() {
|
|
|
+ // ...expertsuser({ expertQuery: 'query' }),
|
|
|
+ async seachInfo({ skip = 0, limit = 5, ...info } = {}) {
|
|
|
let res = await this.palcefetch(this.id);
|
|
|
+ console.log(res);
|
|
|
if (this.$checkRes(res)) {
|
|
|
this.$set(this, `file_path`, res.data.file_path);
|
|
|
}
|
|
|
+ let czxm = res.data.apply.map(item => item.goodsList);
|
|
|
+ czxm = _.flattenDeep(czxm);
|
|
|
+ var czxmNew = czxm.filter(item => item.dockStatus == '1');
|
|
|
+ //科技需求
|
|
|
+ var jishuData = czxmNew.filter(item => item.type === '0');
|
|
|
+ this.$set(this, `twoList`, jishuData);
|
|
|
+ // console.log(jishuData);
|
|
|
+ //技术成果
|
|
|
+ var chanpinData = czxmNew.filter(item => item.type === '1');
|
|
|
+ if (chanpinData) this.$set(this, `demandList`, chanpinData);
|
|
|
+ // console.log(chanpinData);
|
|
|
+ // 专家智库
|
|
|
+ // let exportdata = await this.expertQuery({ role: 6, limit: 8 });
|
|
|
+ // if (this.$checkRes(exportdata)) this.$set(this, `expertList`, exportdata.data);
|
|
|
+ // console.log(this.expertList);
|
|
|
},
|
|
|
onSubmit() {
|
|
|
console.log(this.input);
|
|
@@ -98,6 +152,25 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .two {
|
|
|
+ .twoList {
|
|
|
+ padding: 5px 0px;
|
|
|
+ // font-size: 14px;
|
|
|
+ border-bottom: 1px dashed #ccc;
|
|
|
+ overflow: hidden;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ .name {
|
|
|
+ font-size: 18px;
|
|
|
+ font-weight: bolder;
|
|
|
+ }
|
|
|
+ .field {
|
|
|
+ margin-top: 8px;
|
|
|
+ font-size: 16px;
|
|
|
+ color: #666;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
/deep/.video-js {
|
|
|
height: 190px !important;
|