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.

342 lines
8.3 KiB

5 months ago
<template>
<view class="LieBIaoListindexcontent">
<!-- <u-navbar :leftText="'事件逐条审核'+'('+tiaoshu+')'+'条'" :safeAreaInsetTop="false" @rightClick="rightClick"
:autoBack="true" :placeholder="true" leftIconColor="#ffffff">
</u-navbar> -->
5 months ago
5 months ago
<view class="LieBIaoListindexcontent-bottom">
<view class="LieBIaoListindexcontentbttom-item" v-for="item in contentList" @click="gotoXiangqing(item)">
<view class="LieBIaoListindexcontentbttom-item-top">
{{item.caseTitle}}
</view>
<!-- <view class="LieBIaoListindexcontentbttom-item-bottom">
<view class="LieBIaoListindexcontentbttom-item-bottom-left">
<u-icon name="file-text" size="18" color="#595F66" class="icon"></u-icon>
5 months ago
</view>
5 months ago
<view class="LieBIaoListindexcontentbttom-item-bottom-rigth">
{{item.caseSerial}}
5 months ago
</view>
5 months ago
</view> -->
<view class="LieBIaoListindexcontentbttom-item-bottom">
<view class="LieBIaoListindexcontentbttom-item-bottom-left">
5 months ago
<u-icon name="map" size="14" color="#595F66" class="icon"></u-icon>
5 months ago
</view>
5 months ago
<view class="LieBIaoListindexcontentbttom-item-bottom-rigth">
{{item.caseAddress}}
</view>
</view>
<view class="LieBIaoListindexcontentbttom-item-bottom">
<view class="LieBIaoListindexcontentbttom-item-bottom-left">
5 months ago
<u-icon name="clock" size="14" color="#595F66" class="icon"></u-icon>
5 months ago
</view>
<view class="LieBIaoListindexcontentbttom-item-bottom-rigth">
{{item.caseDate}}
</view>
</view>
5 months ago
5 months ago
<view class="" v-if="tabscurrent == 0">
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom " :class="" v-show="!item.isReport">
<!-- <u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
5 months ago
v-show="item.caseSerialShow">
</u-icon> -->
5 months ago
<!-- v-if="item.caseSerialShow" -->
<view class="fuhe" :class="item.caseSerialShow?'huise':''" @click.stop="nextblack(item,false)">
符合
</view>
<view class="bufuhe" :class="item.caseSerialShow?'hongse':''"
@click.stop="nextblack(item,true)">
不符合
</view>
</view>
</view>
<view class="" v-else>
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom chengse" v-if="item.isReport">
<view class="bufuhe">
5 months ago
不符合
</view>
5 months ago
</view>
<view class="LieBIaoListindexcontentbttom-item-bottom-bottom chengse" :class=""
v-show="!item.isReport">
<!-- <u-icon name="tags" size="24" color="#2baa04" class="" class="icon"
v-show="item.caseSerialShow">
</u-icon> -->
<!-- v-if="item.caseSerialShow" -->
<view class="fuhe">
5 months ago
符合
5 months ago
</view>
5 months ago
5 months ago
</view>
</view>
</view>
</view>
</view>
</template>
<script>
5 months ago
import {
5 months ago
massEventsinfoTow
} from '@/api/system/ApiList.js'
export default {
data() {
return {
tiaoshu: 0,
contentList: [
5 months ago
5 months ago
],
massEventsObj: {
current: 1,
size: 10000
},
shijianList: [],
innerEventId: "",
// 判断从哪里来 0 是 待审核 1 是已上报 2是重训练
tabscurrent: "",
}
},
// props:{
// innerEventId:{
// type:String,
// default:"123"
// },
// tabscurrent:{
// type:String,
// default:"123"
// }
// },
methods: {
5 months ago
open(opent) {
5 months ago
this.innerEventId = opent.innerEventId
this.tabscurrent = opent.tabscurrent
this.getList()
},
5 months ago
gotoXiangqing(item) {
5 months ago
uni.navigateTo({
url: `/views/Xiangqing/Xiangqing?caseSerial=${item.caseSerial}&innerEventId=${this.innerEventId}`
})
},
nextblack(item, type) {
if (this.tabscurrent != 0) return
//判断是否为同人同诉,如果为,那么判断点击时的状态 2 为非同人 对应字段caseSerialShowleft
//3 为 非同诉对应字段caseSerialShowRight
5 months ago
item.caseSerialShow = type
console.log(item.caseSerialShow);
5 months ago
if (!item.caseSerialShow) {
this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial;
});
} else {
5 months ago
this.shijianList = this.shijianList.filter((obj) => {
return obj != item.caseSerial;
});
5 months ago
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
};
});
5 months ago
// console.log("到组件中",this.contentList);
5 months ago
})
},
},
onLoad(opent) {
// this.innerEventId = opent.innerEventId
// this.tabscurrent = opent.tabscurrent
this.getList()
}
}
</script>
<style lang="scss" scoped>
.LieBIaoListindexcontent {
width: 100%;
5 months ago
margin: 0rpx 0;
height: 100%;
padding-bottom: 80rpx;
5 months ago
overflow-y: scroll;
5 months ago
5 months ago
.LieBIaoListindexcontent-bottom {
width: 100%;
5 months ago
padding: 10rpx;
5 months ago
border-radius: 10rpx;
.LieBIaoListindexcontentbttom-item {
5 months ago
padding: 15rpx;
5 months ago
width: 100%;
5 months ago
background: #f1f1f1fa;
5 months ago
border-radius: 10rpx;
5 months ago
margin: 5rpx 0;
5 months ago
.LieBIaoListindexcontentbttom-item-top {
text-align: left;
font-weight: 500;
5 months ago
font-size: 28rpx;
5 months ago
font-weight: bold;
color: #35393D;
overflow: hidden;
}
5 months ago
5 months ago
.LieBIaoListindexcontentbttom-item-bottom {
5 months ago
margin: 10rpx 0;
5 months ago
display: grid;
5 months ago
grid-template-columns: 5% auto;
5 months ago
5 months ago
view {
font-size: 25rpx;
color: #35393D;
5 months ago
line-height: 25rpx;
5 months ago
}
5 months ago
.LieBIaoListindexcontentbttom-item-bottom-left {
color: #595F66;
text-align: left;
}
5 months ago
5 months ago
.LieBIaoListindexcontentbttom-item-bottom-rigth {
font-weight: bold;
}
5 months ago
5 months ago
.leibie {
color: #E72C2C;
5 months ago
}
5 months ago
}
5 months ago
5 months ago
.LieBIaoListindexcontentbttom-item-bottom-bottom {
border-radius: 10rpx;
width: 100%;
5 months ago
height: 50rpx;
5 months ago
text-align: center;
5 months ago
line-height: 50rpx;
display: flex;
align-items: center;
justify-content: space-between;
.fuhe {
width: 49%;
background: rgba(0, 170, 0, 0.1);
color: #2baa04;
}
.bufuhe {
width: 49%;
background: rgba(245, 154, 35, 0.1);
color: #F59A23;
}
.huise {
width: 49%;
background: rgba(126, 123, 121, 0.1);
color: #999999;
}
.hongse {
width: 49%;
background: rgba(255, 0, 0, 0.1);
color: red;
}
}
.chengse {
border-radius: 10rpx;
width: 100%;
height: 50rpx;
text-align: center;
line-height: 50rpx;
5 months ago
display: flex;
align-items: center;
justify-content: center;
5 months ago
.fuhe {
5 months ago
width: 100%;
5 months ago
background: rgba(0, 170, 0, 0.1);
color: #2baa04;
5 months ago
}
5 months ago
5 months ago
.bufuhe {
5 months ago
width: 100%;
background: rgba(245, 154, 35, 0.1);
color: #F59A23;
}
5 months ago
}
.LieBIaoListindexcontentbttom-item-bottom-bottomTRTS {
background: #ffffff;
display: grid;
5 months ago
grid-template-columns: 1fr;
5 months ago
grid-column-gap: 20rpx;
5 months ago
5 months ago
view {
background: rgba(0, 170, 0, .1);
border-radius: 10rpx;
text-align: center;
line-height: 69rpx;
display: flex;
align-items: center;
justify-content: center;
5 months ago
5 months ago
.icon {
background: rgba(0, 170, 0, 0);
5 months ago
}
}
}
5 months ago
5 months ago
}
}
5 months ago
5 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>