提交 dc5cf2c9 authored 作者: 龙菲's avatar 龙菲

修改文物和列表页为仅查看上架的

上级 37b97b74
......@@ -80,7 +80,7 @@
<div class="content-wrapper">
<div class="content">
<el-row :gutter="40" class="cr-list">
<el-col :span="item.status == 1 ? 6 : 0" class="cr-item" @click.native="handleClick(item)"
<el-col :span="6" class="cr-item" @click.native="handleClick(item)"
@mouseenter.native="handleEnterImg(item)" @mouseleave.native="handleLeaveImg(item)"
v-for="(item, index) in list.records" :key="index">
<div class="container wow animate__animated animate__fadeInUp" v-if="item.status == 1">
......@@ -281,6 +281,7 @@ export default {
name: this.keyword,
type: this.type,
years: this.years,
status:'1'
};
let res = await getCulturalRelicList(params);
if (res.code == 0) {
......
......@@ -25,9 +25,8 @@
</div>
</div>
<el-row :gutter="40" class="cr-list">
<el-col :span="item.status == 1 ? 8 : 0" class="cr-item" @click.native="handleClick(item)"
@mouseenter.native="handleEnterImg(item)" @mouseleave.native="handleLeaveImg(item)"
v-for="(item, index) in list.records" :key="index">
<el-col :span="8" class="cr-item" @click.native="handleClick(item)" @mouseenter.native="handleEnterImg(item)"
@mouseleave.native="handleLeaveImg(item)" v-for="(item, index) in list.records" :key="index">
<div class="container wow animate__animated animate__fadeInUp" v-if="item.status == 1">
<div class="img-container">
<img :src="
......@@ -128,9 +127,9 @@ export default {
regionCode: [],
regionTree: [],
currentImg: null,
typeList:[{
label:'全部',
value:''
typeList: [{
label: '全部',
value: ''
}]
};
},
......@@ -141,7 +140,7 @@ export default {
// await this.$store.dispatch("dict/getDictList", ["displayType"]);
// 获取已经存在展览的字典
let res = await getDisplayExistDict()
this.typeList =[...this.typeList,...res.data.typeList]
this.typeList = [...this.typeList, ...res.data.typeList]
},
mounted() {
this.loadData();
......@@ -164,6 +163,7 @@ export default {
title: this.keyword,
type: this.type,
regionCode: this.regionCode[this.regionCode.length - 1],
status: '1'
};
let res = await getList(params);
if (res.code == 0) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论