|
@@ -3,7 +3,7 @@
|
|
|
<el-row>
|
|
|
<el-col :span="24" class="product">
|
|
|
<!-- 是否支持多开 accordion -->
|
|
|
- <el-collapse v-model="activeName" accordion>
|
|
|
+ <!-- <el-collapse v-model="activeName" accordion>
|
|
|
<el-collapse-item title="创新成果" name="1">
|
|
|
<kjpdlist :list="onelist" @query="searchList"></kjpdlist>
|
|
|
</el-collapse-item>
|
|
@@ -13,7 +13,8 @@
|
|
|
<el-collapse-item title="专家讲堂" name="3">
|
|
|
<kjpdlist :list="threelist" @query="searchList"></kjpdlist>
|
|
|
</el-collapse-item>
|
|
|
- </el-collapse>
|
|
|
+ </el-collapse> -->
|
|
|
+ <kjpdlist :list="oneList" @query="searchList" :typelist="typelist"></kjpdlist>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
</div>
|
|
@@ -34,9 +35,10 @@ export default {
|
|
|
data: function() {
|
|
|
return {
|
|
|
activeName: '1',
|
|
|
- onelist: [],
|
|
|
- twolist: [],
|
|
|
- threelist: [],
|
|
|
+ // onelist: [],
|
|
|
+ // twolist: [],
|
|
|
+ // threelist: [],
|
|
|
+ oneList: [],
|
|
|
// 类型
|
|
|
typelist: [],
|
|
|
};
|
|
@@ -57,22 +59,26 @@ export default {
|
|
|
},
|
|
|
// 查询
|
|
|
async searchList() {
|
|
|
- let type = this.typelist;
|
|
|
- let one = type.find(f => f.code == '040');
|
|
|
- let res = await this.query({ type: one.id });
|
|
|
+ let res = await this.query();
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `onelist`, res.data);
|
|
|
- }
|
|
|
- let two = type.find(f => f.code == '041');
|
|
|
- res = await this.query({ type: two.id });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `twolist`, res.data);
|
|
|
- }
|
|
|
- let three = type.find(f => f.code == '042');
|
|
|
- res = await this.query({ type: three.id });
|
|
|
- if (this.$checkRes(res)) {
|
|
|
- this.$set(this, `threelist`, res.data);
|
|
|
+ this.$set(this, `oneList`, res.data);
|
|
|
}
|
|
|
+ // let type = this.typelist;
|
|
|
+ // let one = type.find(f => f.code == '040');
|
|
|
+ // let res = await this.query({ type: one.id });
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$set(this, `onelist`, res.data);
|
|
|
+ // }
|
|
|
+ // let two = type.find(f => f.code == '041');
|
|
|
+ // res = await this.query({ type: two.id });
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$set(this, `twolist`, res.data);
|
|
|
+ // }
|
|
|
+ // let three = type.find(f => f.code == '042');
|
|
|
+ // res = await this.query({ type: three.id });
|
|
|
+ // if (this.$checkRes(res)) {
|
|
|
+ // this.$set(this, `threelist`, res.data);
|
|
|
+ // }
|
|
|
},
|
|
|
},
|
|
|
computed: {
|