Files
dvcp_v2_wxcp_app/library/project/saas/AppConflictMediation/myReply.vue

165 lines
3.4 KiB
Vue
Raw Normal View History

2022-02-11 16:58:58 +08:00
<template>
2022-02-11 17:25:55 +08:00
<div class="myReply">
<template>
2022-02-14 10:42:29 +08:00
<AiCard v-for="(item, i) in datas" :key="i" @click.native="goDetail(item)">
2022-02-11 17:25:55 +08:00
<template #custom>
<div class="card-top">
<div class="titles">{{ item.content }}</div>
<div class="types">
<span class="label label1">事件类型</span>
<span class="types-right">{{ item.groupName }}</span>
</div>
2022-02-14 09:03:59 +08:00
<div class="gards">
2022-02-11 17:25:55 +08:00
<div class="label">所属网格</div>
<div class="gards-right">{{ item.girdName }}</div>
</div>
</div>
2022-02-14 10:42:29 +08:00
<div class="status" :class="item.eventStatus == 0 ? 'status1':'status2'" v-if="item.eventStatus">
2022-02-11 17:25:55 +08:00
<span class="icon"></span>
<span>
{{ $dict.getLabel('clapEventStatus', item.eventStatus) }}
</span>
</div>
</template>
</AiCard>
<AiEmpty v-if="!datas.length"></AiEmpty>
</template>
</div>
2022-02-11 16:58:58 +08:00
</template>
<script>
2022-02-11 17:25:55 +08:00
import { mapState } from 'vuex'
2022-02-11 16:58:58 +08:00
export default {
name: 'myReply',
components: {},
props: {},
data() {
2022-02-11 17:25:55 +08:00
return {
datas: [],
current: 1,
}
},
computed: {
...mapState(['user']),
2022-02-11 16:58:58 +08:00
},
watch: {},
2022-02-11 17:25:55 +08:00
onLoad() {
this.getList()
},
onShow() {
document.title = '我的上报'
},
methods: {
getList() {
this.$http
2022-02-14 16:33:14 +08:00
.post(`/app/appclapeventinfo/list`, null, {
2022-02-11 17:25:55 +08:00
params: {
size: 10,
current: this.current,
openId: this.user.openId,
},
})
.then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
this.$forceUpdate()
}
})
},
goDetail(item) {
2022-05-07 10:21:36 +08:00
uni.navigateTo({ url: `./detail?id=${item.id}&isMine=1` })
2022-02-11 17:25:55 +08:00
},
},
2022-02-11 16:58:58 +08:00
}
</script>
<style scoped lang="scss">
2022-02-11 17:25:55 +08:00
.uni-page-body {
height: 100%;
}
2022-02-11 16:58:58 +08:00
.myReply {
height: 100%;
2022-02-11 17:25:55 +08:00
::v-deep .AiTopFixed .content {
padding: 0;
}
::v-deep .AiCard {
background: none;
padding: 24px 30px 0;
.start {
background: #fff;
border-radius: 16px;
.card-top {
padding: 32px;
.titles {
margin-bottom: 34px;
font-size: 32px;
font-weight: 500;
color: #333333;
line-height: 1.4;
word-break: break-all;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
.types,
.gards {
margin-top: 8px;
font-size: 26px;
2022-02-14 09:03:59 +08:00
display: flex;
2022-02-11 17:25:55 +08:00
.types-right,
.gards-right {
color: #333333;
2022-02-14 13:35:43 +08:00
width: calc(100% - 120px);
}
.label {
width: 120px;
2022-02-11 17:25:55 +08:00
}
.label1 {
2022-02-14 13:35:43 +08:00
width: 120px;
2022-02-11 17:25:55 +08:00
}
}
}
.status {
padding: 32px;
border-top: 1px solid #dddddd;
.icon {
display: inline-block;
width: 8px;
height: 8px;
vertical-align: middle;
margin-right: 8px;
}
}
.status1 {
2022-05-07 10:13:59 +08:00
color: #ff883c;
2022-02-11 17:25:55 +08:00
.icon {
2022-05-07 10:13:59 +08:00
background: #ff883c;
2022-02-11 17:25:55 +08:00
}
}
.status2 {
color: #42d784;
.icon {
background: #42d784;
}
}
}
}
2022-02-11 16:58:58 +08:00
}
</style>