You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

232 lines
5.4 KiB

2 months ago
<template>
<view class="indexcontent">
<u-navbar :leftText="'事件逐条审核'+'('+tiaoshu+')'+'条'" :safeAreaInsetTop="false" @rightClick="rightClick"
:autoBack="true" :placeholder="true" leftIconColor="#ffffff">
</u-navbar>
<view class="indexcontent-box">
<view class="indexcontent-bottom">
<view class="indexcontentbttom-item" v-for="item in contentList">
<view class="indexcontentbttom-item-top">
<view class="indexcontentbttom-item-text">
2 months ago
{{item.caseTitle}}
2 months ago
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
<u-icon name="file-text" size="18" color="#595F66" class="icon"></u-icon>
</view>
<view class="indexcontentbttom-item-bottom-rigth">
2 months ago
{{item.caseSerial}}
2 months ago
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
<u-icon name="map" size="18" color="#595F66" class="icon"></u-icon>
</view>
<view class="indexcontentbttom-item-bottom-rigth">
2 months ago
{{item.caseAddress}}
2 months ago
</view>
</view>
<view class="indexcontentbttom-item-bottom">
<view class="indexcontentbttom-item-bottom-left">
<u-icon name="clock" size="18" color="#595F66" class="icon"></u-icon>
</view>
<view class="indexcontentbttom-item-bottom-rigth">
2 months ago
{{item.caseDate}}
2 months ago
</view>
</view>
2 months ago
<view class="indexcontentbttom-item-bottom-bottom" @click="nextblack(item)" v-show="item.isReport">
2 months ago
非同一事件
</view>
2 months ago
<view class="indexcontentbttom-item-bottom-bottom lvse" :class="" @click="nextblack(item)"
v-show="!item.isReport">
<u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show="item.caseSerialShow"></u-icon>
2 months ago
同一事件
</view>
</view>
</view>
</view>
</view>
</template>
<script>
2 months ago
import {
massEventsinfoTow
} from '@/api/system/ApiList.js'
2 months ago
export default {
data() {
return {
tiaoshu: 0,
contentList: [
2 months ago
],
massEventsObj: {
current: 1,
2 months ago
size: 10000
2 months ago
},
shijianList: [],
innerEventId: "",
tabscurrent:""
2 months ago
}
},
methods: {
nextblack(item) {
2 months ago
if(this.tabscurrent != 0) return
item.caseSerialShow = !item.caseSerialShow
if (!item.caseSerialShow) {
this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial;
});
} else {
this.shijianList.push(item.caseSerial)
}
this.$store.dispatch("setstate", this.shijianList)
console.log(this.shijianList);
console.log(this.$store.state.tijiaoList.shijianList);
},
getList() {
massEventsinfoTow(this.innerEventId, this.massEventsObj).then(res => {
let storeList = this.$store.state.tijiaoList.shijianList
this.shijianList = storeList
this.tiaoshu = res.data.total
this.contentList = res.data.records
this.contentList = this.contentList.map((obj) => {
const caseSerialShow = storeList.includes(obj.caseSerial);
return {
...obj,
caseSerialShow
};
});
})
2 months ago
},
},
onLoad(opent) {
2 months ago
this.innerEventId = opent.innerEventId
this.tabscurrent = opent.tabscurrent
this.getList()
2 months ago
}
}
</script>
<style lang="scss" scoped>
.indexcontent {
width: 100%;
height: 100%;
.indexcontent-box {
.indexcontent-bottom {
width: 100%;
padding: 20rpx;
border-radius: 10rpx;
.indexcontentbttom-item {
padding: 25rpx;
width: 100%;
background: #f7f7f7fa;
border-radius: 10rpx;
margin: 20rpx 0;
.indexcontentbttom-item-top {
display: grid;
grid-template-columns: 70% 20%;
.indexcontentbttom-item-text {
text-align: left;
font-weight: 500;
font-size: 30rpx;
font-weight: bold;
color: #35393D;
overflow: hidden;
}
2 months ago
2 months ago
}
.indexcontentbttom-item-bottom {
margin: 20rpx 0;
display: grid;
grid-template-columns: 8% auto;
view {
font-size: 25rpx;
color: #35393D;
line-height: 30rpx;
}
.indexcontentbttom-item-bottom-left {
color: #595F66;
text-align: left;
}
.indexcontentbttom-item-bottom-rigth {
font-weight: bold;
}
.leibie {
color: #E72C2C;
}
}
.indexcontentbttom-item-bottom-bottom {
2 months ago
background: rgba(245, 154, 35, 0.1);
2 months ago
border-radius: 10rpx;
width: 100%;
height: 69rpx;
text-align: center;
line-height: 69rpx;
color: #F59A23;
2 months ago
display: flex;
align-items: center;
justify-content: center;
2 months ago
}
2 months ago
.lvse {
2 months ago
background: rgba(0, 170, 0, 0.1);
2 months ago
color: #2baa04;
2 months ago
}
}
}
}
.dibuaBtn {
position: sticky;
bottom: 0;
left: 0;
width: 100%;
height: 120rpx;
padding: 30rpx;
display: grid;
grid-template-columns: 1fr 1fr;
grid-column-gap: 20rpx;
color: #ffffff;
background-color: #ffffff;
view {
text-align: center;
line-height: 60rpx;
height: 60rpx;
border-radius: 10rpx;
}
.dibuaBtn-lanse {
background-color: #4379D6;
}
.dibuaBtn-hongse {
background-color: #E72C2C;
}
}
}
</style>