|
@@ -57,7 +57,7 @@
|
|
|
<p class="noDataText">暂无搜索结果</p>
|
|
|
</div>
|
|
|
<div class="listBox" v-for="(item, index) in dataList" :key="index">
|
|
|
- <albumBox :item="item" @del='del' class="listBoxitem"></albumBox>
|
|
|
+ <albumBox :item="item" :scope="scope" @del='del' class="listBoxitem"></albumBox>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -92,7 +92,7 @@ import albumBox from '../components/albumBox'
|
|
|
import pageBar from '../components/pageBar'
|
|
|
import album from '@/api/knowledge/album'
|
|
|
export default {
|
|
|
- name: 'contentData',
|
|
|
+ name: 'albumIndex',
|
|
|
components: {
|
|
|
search,
|
|
|
albumBox,
|
|
@@ -123,7 +123,11 @@ export default {
|
|
|
classifyArr:[],
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
created() {
|
|
|
+ if(this.$router.query.scope) {
|
|
|
+ this.scope = this.$router.query.scope
|
|
|
+ }
|
|
|
if (this.user.photo && this.user.photo != '') {
|
|
|
this.imgUrl = '/api/api-system/system/core/sysFile/previewFile?fileId='+this.user.photo
|
|
|
}
|
|
@@ -192,7 +196,8 @@ export default {
|
|
|
this.$router.push({
|
|
|
name: "albumDetail",
|
|
|
query: {
|
|
|
- isAdd: 1
|
|
|
+ isAdd: 1,
|
|
|
+ scope: this.scope
|
|
|
}
|
|
|
})
|
|
|
},
|