|
@@ -32,10 +32,10 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<div class="container" style="margin: 20px auto;">
|
|
|
- <div class="create-body" v-if="!isModifyMode">
|
|
|
+ <div class="create-body">
|
|
|
<div class="title h2">众测资源</div>
|
|
|
<el-collapse accordion style="margin: 0 30px">
|
|
|
- <el-collapse-item v-for="(item,index) in reourceList" :key="item.id" class="item-template">
|
|
|
+ <el-collapse-item v-for="(item,index) in curResourceList" :key="item.id" class="item-template">
|
|
|
<template slot="title">
|
|
|
<el-row style="width: 100%;font-size: 16px">
|
|
|
<el-col :span="2"><img :src="item.photoUrl" style="width: 50px; height: 50px;"></el-col>
|
|
@@ -47,7 +47,7 @@
|
|
|
</template>
|
|
|
</el-collapse-item>
|
|
|
<el-pagination
|
|
|
- v-if="reourceList&&reourceList.length"
|
|
|
+ v-if="curResourceList&&curResourceList.length"
|
|
|
:page-size="9"
|
|
|
layout="prev, pager, next"
|
|
|
:total="totalElements"
|
|
@@ -69,8 +69,8 @@
|
|
|
import {notify} from "../../constants";
|
|
|
|
|
|
export default {
|
|
|
- name: "ReourceList",
|
|
|
- props: ['searchVal', 'reourceList'],
|
|
|
+ name: "ResourceList",
|
|
|
+ props: ['searchVal', 'resourceList'],
|
|
|
components: {TopSearch},
|
|
|
data() {
|
|
|
return {
|
|
@@ -98,7 +98,7 @@
|
|
|
"name": "专家",
|
|
|
"value": "3"
|
|
|
}],
|
|
|
- expertList: [],
|
|
|
+ curResourceList: this.resourceList,
|
|
|
activePage: 1,
|
|
|
totalElements: 0
|
|
|
}
|
|
@@ -123,7 +123,7 @@
|
|
|
}
|
|
|
Http.post(url, params).then((res) => {
|
|
|
console.log(res.data)
|
|
|
- this.reourceList = res.data.content;
|
|
|
+ this.curResourceList = res.data.content;
|
|
|
})
|
|
|
},
|
|
|
checkLogin() {
|
|
@@ -150,7 +150,7 @@
|
|
|
]
|
|
|
}
|
|
|
Http.post(url, params).then((res) => {
|
|
|
- this.reourceList = res.data.resourcePage.content;
|
|
|
+ this.curResourceList = res.data.resourcePage.content;
|
|
|
})
|
|
|
},
|
|
|
gotoHome() {
|