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

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

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